Commit 23f79dd7 authored by skummer's avatar skummer

ZP-357 #comment Migration tool can only be executed from cli #time 10m

git-svn-id: https://z-push.org/svn/z-push/trunk@1640 b7dd7b3b-3a3c-0410-9da9-bee62a6cc5b5
parent 8456d63d
......@@ -52,6 +52,9 @@ define('ZPUSH_BASE_PATH', "../src");
* MAIN
*/
try {
if (!isset($_SERVER["TERM"]) || !isset($_SERVER["LOGNAME"]))
die("This script should not be called in a browser.");
if (!defined('ZPUSH_BASE_PATH') || !file_exists(ZPUSH_BASE_PATH . "/config.php"))
die("ZPUSH_BASE_PATH not set correctly or no config.php file found\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment