Merge pull request #1407 from annando/1502-poller

The poller can now be called even inside the "include" directory
This commit is contained in:
Tobias Diekershoff 2015-02-19 10:54:33 +01:00
commit 1a52a238a0

View File

@ -1,4 +1,14 @@
<?php
if (!file_exists("boot.php") AND (sizeof($_SERVER["argv"]) != 0)) {
$directory = dirname($_SERVER["argv"][0]);
if (substr($directory, 0, 1) != "/")
$directory = $_SERVER["PWD"]."/".$directory;
$directory = realpath($directory."/..");
chdir($directory);
}
require_once("boot.php");