|
@@ -1,19 +1,30 @@
|
|
<?php
|
|
<?php
|
|
|
|
|
|
|
|
|
|
|
|
+Log::record(__FILE__ . " 1",Log::DEBUG);
|
|
|
|
+
|
|
if (empty($_SERVER['argv'][1])) exit('Access Invalid!');
|
|
if (empty($_SERVER['argv'][1])) exit('Access Invalid!');
|
|
|
|
|
|
|
|
+Log::record(__FILE__ . " 2",Log::DEBUG);
|
|
|
|
+
|
|
define('APP_ID','crontab');
|
|
define('APP_ID','crontab');
|
|
define('BASE_PATH',str_replace('\\','/',dirname(__FILE__)));
|
|
define('BASE_PATH',str_replace('\\','/',dirname(__FILE__)));
|
|
define('TRANS_MASTER',true);
|
|
define('TRANS_MASTER',true);
|
|
|
|
|
|
|
|
+Log::record(__FILE__ . " 3",Log::DEBUG);
|
|
|
|
+
|
|
if (php_sapi_name() == 'cli') {
|
|
if (php_sapi_name() == 'cli') {
|
|
$_GET['act'] = $_SERVER['argv'][1];
|
|
$_GET['act'] = $_SERVER['argv'][1];
|
|
$_GET['op'] = empty($_SERVER['argv'][2]) ? 'index' : $_SERVER['argv'][2];
|
|
$_GET['op'] = empty($_SERVER['argv'][2]) ? 'index' : $_SERVER['argv'][2];
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+Log::record(__FILE__ . " 4",Log::DEBUG);
|
|
|
|
+
|
|
if (!@include(BASE_PATH.'/control/control.php')) exit('control.php isn\'t exists!');
|
|
if (!@include(BASE_PATH.'/control/control.php')) exit('control.php isn\'t exists!');
|
|
|
|
|
|
|
|
+Log::record(__FILE__ . " 5",Log::DEBUG);
|
|
|
|
+
|
|
|
|
+
|
|
echo "act=" . $_GET['act'] . "\n";
|
|
echo "act=" . $_GET['act'] . "\n";
|
|
echo "act=" . $_GET['op'] . "\n";
|
|
echo "act=" . $_GET['op'] . "\n";
|
|
|
|
|