⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 install_ing.php

📁 php写的论坛,代码精简到极点 请相看说明文件。是从英文翻译过来的:)
💻 PHP
字号:
<?
//////////////////////////////////ready
include "lib.php";

//////////////////////////////////check
$host=trim($host);
$db_id=trim($db_id);
$db_pass=trim($db_pass);
$db_name=trim($db_name);

//////////////////////////////////connect
$connect=@mysql_connect($host,$db_id,$db_pass);
if(!$connect){error($error.'数据库连接错误\n检查用户名和密码');exit;}
$mysql=@mysql_select_db($db_name,$connect);
if(!$mysql){error($error.'数据库连接错误\n检查数据库名称');exit;}

//////////////////////////////////Connection file creation
if(file_exists("connect.php")){error($error."请先删除connet.php文件");}
$fp = @fopen("connect.php", "w");
fwrite($fp, "<?
\$connect_host=\"$host\";
\$connect_id=\"$db_id\";
\$connect_pass=\"$db_pass\";
\$connect_db=\"$db_name\";
?>");
fclose($fp);

//////////////////////////////////Temporary cookie cycle
setcookie("na3_install","ok",0,"/");

//////////////////////////////////Permission alteration
@chmod("connect.php",0777);

//////////////////////////////////File folder creation
@mkdir("file",0777);

//////////////////////////////////default table creation
include "default_schema.php";

//////////////////////////////////Completion message

msg($message.'恭喜!社区程式安装成功!');

//////////////////////////////////-_-a Simply once
echo"
<script language=javascript>
window.open('http://navyism.com/english','navyism');
</script>
";

//////////////////////////////////Whether administrator, check
$query="select * from $member_table where root='1'";
$root=@mysql_fetch_array(@mysql_query($query,$connect));

//////////////////////////////////move
mysql_close($connect);
if(!$root){go("install_newid.php");}
else{go("root.php");}
?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -