The poller can now be called even inside the "include" directory.
This commit is contained in:
@@ -1,4 +1,15 @@
|
|||||||
<?php
|
<?php
|
||||||
|
if (sizeof($_SERVER["argv"]) == 0)
|
||||||
|
die();
|
||||||
|
|
||||||
|
$directory = dirname($_SERVER["argv"][0]);
|
||||||
|
|
||||||
|
if (substr($directory, 0, 1) != "/")
|
||||||
|
$directory = $_SERVER["PWD"]."/".$directory;
|
||||||
|
|
||||||
|
$directory = realpath($directory."/..");
|
||||||
|
|
||||||
|
chdir($directory);
|
||||||
|
|
||||||
require_once("boot.php");
|
require_once("boot.php");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user