';
exit();
}
$go = 1 ;
//检测文件权限
if(!new_is_writeable("./")){
echo L("not_writable_install").'
';
$go = 0;
}
if(!new_is_writeable("../Public/Uploads")){
echo L("not_writable_upload").'
';
$go = 0;
}
if(!new_is_writeable("../server/Application/Runtime")){
echo L("not_writable_server_runtime").'
';
$go = 0;
}
if(!new_is_writeable("../server/Application/Common/Conf/config.php")){
echo L("not_writable_config").'
';
$go = 0;
}
if(!new_is_writeable("../server/Application/Home/Conf/config.php")){
echo L("not_writable_home_config").'
';
$go = 0;
}
if ($cur_lang == 'en') {
if(!new_is_writeable("../web/index.html")){
echo L("not_writable_web_docconfig").'
';
$go = 0;
}
if(!new_is_writeable("../web_src/index.html")){
echo L("not_writable_web_src_docconfig").'
';
$go = 0;
}
}
//检查扩展
if(!extension_loaded("gd")){
echo '请安装php-gd
';
$go = 0;
}
/*
if(!extension_loaded("mcrypt")){
echo '请安装php-mcrypt
';
$go = 0;
}
*/
if(!extension_loaded("mbstring")){
echo '请安装php-mbstring
';
$go = 0;
}
if(!extension_loaded("zlib")){
echo '请安装php-zlib
';
$go = 0;
}
if(!extension_loaded("PDO") && !extension_loaded("pdo") ){
echo '请安装php-pdo
';
$go = 0;
}
/*if(extension_loaded("sqlite") || extension_loaded("sqlite3")){
echo '请安装php-sqlite
';
$go = 0;
}
*/
if (!$go) {
exit();
}
?>