예제 #1
0
/**
 * 任务计划执行入口
 *
 * 
 * by Uk86 商城开发
 */
define('InUk86', true);
// $_SERVER['argv'][1] = 'xs';
// $_SERVER['argv'][2] = 'create';
$_SERVER['argv'][1] = 'order';
$_SERVER['argv'][2] = 'create_bill';
if (empty($_SERVER['argv'][1]) || empty($_SERVER['argv'][2])) {
    exit('parameter error');
}
require dirname(__FILE__) . '/../../global.php';
if (!@(include BASE_CORE_PATH . '/ukshop.php')) {
    exit('ukshop.php isn\'t exists!');
}
Uk86Base::uk86_init();
$file_name = strtolower($_SERVER['argv'][1]);
$method = $_SERVER['argv'][2] . 'Op';
if (!@(include dirname(__FILE__) . '/include/' . $file_name . '.php')) {
    exit($file_name . '.php isn\'t exists!');
}
$class_name = $file_name . 'Control';
$cron = new $class_name();
if (method_exists($cron, $method)) {
    $cron->{$method}();
} else {
    exit('method ' . $method . ' isn\'t exists');
}
예제 #2
0
<?php

/**
 * 商城板块初始化文件
 *
 *
 * * by ukshop www.ukshop.com 运营版 */
define('BASE_PATH', str_replace('\\', '/', dirname(__FILE__)));
if (!@(include dirname(dirname(__FILE__)) . '/global.php')) {
    exit('global.php isn\'t exists!');
}
if (!@(include BASE_CORE_PATH . '/ukshop.php')) {
    exit('ukshop.php isn\'t exists!');
}
define('TPL_NAME', TPL_ADMIN_NAME);
define('ADMIN_TEMPLATES_URL', ADMIN_SITE_URL . '/templates/' . TPL_NAME);
define('BASE_TPL_PATH', BASE_PATH . '/templates/' . TPL_NAME);
if (!@(include BASE_PATH . '/control/control.php')) {
    exit('control.php isn\'t exists!');
}
Uk86Base::uk86_run();
예제 #3
0
 function __autoload($class)
 {
     return Uk86Base::uk86_autoload($class);
 }