!defined('TMS_APP_URI') && define('TMS_APP_URI', ''); /** * prefix for rest. * 需要和web服务器的配置一致 */ !defined('TMS_APP_API_PREFIX') && define('TMS_APP_API_PREFIX', '/rest'); // 前缀API前缀 !defined('TMS_APP_VIEW_PREFIX') && define('TMS_APP_VIEW_PREFIX', '/page'); // 请求页面前缀 /** * default page. */ !defined('TMS_APP_UNAUTH') && define('TMS_APP_UNAUTH', '/rest/auth/auth'); // 未认证通过的缺省页 define('TMS_APP_AUTHED', TMS_APP_VIEW_PREFIX . '/main'); // 认证通过后的缺省页 /** * default upload directory */ if (defined('SAE_TMP_PATH')) { define('TMS_UPLOAD_DIR', SAE_TMP_PATH); } else { define('TMS_UPLOAD_DIR', 'kcfinder/upload/'); } /** * run application. */ require_once 'tms/tms_app.php'; $config = array(); TMS_APP::run($config);