代码拉取完成,页面将自动刷新
同步操作将从 IBOS开源OA协同办公管理/IBOS 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
<?php
/**
* 索引页
*
* @link http://www.ibos.com.cn/
* @copyright Copyright © 2012-2014 IBOS Inc
* @author banyanCheung <banyan@ibos.com.cn>
*/
if ( version_compare( PHP_VERSION, '5.3.0', '<' ) ) {
die( 'require PHP > 5.3.0 !' );
}
// 程序根目录路径
define( 'PATH_ROOT', dirname( __FILE__ ) );
$defines = PATH_ROOT . '/system/defines.php';
$yii = PATH_ROOT . '/library/yii.php';
$config = PATH_ROOT . '/system/config/common.php';
require_once ( $defines );
require_once ( $yii );
Yii::setPathOfAlias( 'application', PATH_ROOT . DIRECTORY_SEPARATOR . 'system' );
$str = strtolower($_SERVER['SERVER_SOFTWARE']);
list($server) = explode('/', $str);
if($server == "apache" || $server == "nginx" || $server == "lighttpd"){
if(isset($_SERVER['HTTP_ORIGIN'])){
header('Access-Control-Allow-Origin: '.$_SERVER['HTTP_ORIGIN']);
}
header('Access-Control-Allow-Headers: Origin, Accept, Content-Type, Authorization, ISCORS');
header('Access-Control-Allow-Credentials: true');
header('Access-Control-Allow-Methods: POST, GET, PUT, OPTIONS, DELETE');
if($_SERVER['REQUEST_METHOD'] == 'OPTIONS') {
exit();
}
}else if($server == "iis"){
if($_SERVER['REQUEST_METHOD'] == 'OPTIONS') {
// CORS 设置,有待讨论
if(isset($_SERVER['HTTP_ORIGIN'])){
header('Access-Control-Allow-Origin: '.$_SERVER['HTTP_ORIGIN']);
}
header('Access-Control-Allow-Headers: Origin, Accept, Content-Type, Authorization, ISCORS');
header('Access-Control-Allow-Credentials: true');
header('Access-Control-Allow-Methods: POST, GET, PUT, OPTIONS, DELETE');
exit();
}
}
Yii::createApplication( 'application\core\components\Application', $config )->run();
exit;
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。