Permalink
Browse files

adding security check to daemon endpoint

  • Loading branch information...
padams
padams committed Dec 11, 2010
1 parent 9177302 commit 2ac7cb16f04bce28395097677d7134e4b31670a4
Showing with 10 additions and 2 deletions.
  1. +10 −2 daemon.php
View
@@ -39,7 +39,15 @@
}
$owa = new owa_php();
$daemon = new owa_daemon();
$daemon->start();
if ( $owa->isEndpointEnabled( basename( __FILE__ ) ) ) {
// start daemon
$daemon = new owa_daemon();
$daemon->start();
} else {
// unload owa
$owa->restInPeace();
}
?>

0 comments on commit 2ac7cb1

Please sign in to comment.