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

📄 installzh.php

📁 软件类别: PHP源码 / 文章管理 软件语言: 简体中文 授权方式: 商业版 文件大小: 308K
💻 PHP
📖 第 1 页 / 共 5 页
字号:
  if ($fileexists & !$canwrite) {    include("admin/config.php");?>  <tr>    <td>请确认下面的详细资料,只有确认全部正确才能继续</td>  </tr>  <tr>    <td>      <table width="50%" cellpadding="5" cellspacing="0">        <tr>          <td>数据库服务器类型:</td>          <td><?php echo $dbservertype?></td>        </tr>        <tr>          <td>数据库服务器或IP:</td>          <td><?php echo $dbservername?></td>        </tr>        <tr>          <td>数据库用户名:</td>          <td><?php echo $dbusername?></td>        </tr>        <tr>          <td>数据库密码:</td>          <td><?php echo $dbpassword?></td>        </tr>        <tr>          <td>数据库名称:</td>          <td><?php echo $dbname?></td>        </tr>        <tr>          <td>管理员信箱:</td>          <td><?php echo $technicalemail?></td>        </tr>        <tr>          <td colspan="2">点击<a href="install.php?step=3"> 这里 </a>继续</td>        </tr>      </table>      </form>    </td>  </tr><?php  }  if ($fileexists & ($canwrite != 0)) {    include("admin/config.php");?>  <tr>    <td>请确认下面的资料</td>  </tr>  <tr>    <td>      <form action="install.php" method="post" name="form">      <input type="hidden" name="step" value="writeconfig">      <table width="50%" cellpadding="5" cellspacing="0">        <tr>          <td>数据库服务器类型:</td>          <td><input type="text" name="dbservertype" value="<?php echo $dbservertype?>" class="form" size="40"></td>        </tr>        <tr>          <td>数据库服务器或IP:</td>          <td><input type="text" name="dbservername" value="<?php echo $dbservername?>" class="form" size="40"></td>        </tr>        <tr>          <td>数据库用户名:</td>          <td><input type="text" name="dbusername" value="<?php echo $dbusername?>" class="form" size="40"></td>        </tr>        <tr>          <td>数据库密码:</td>          <td><input type="text" name="dbpassword" value="<?php echo $dbpassword?>" class="form" size="40"></td>        </tr>        <tr>          <td>数据库名称:</td>          <td><input type="text" name="dbname" value="<?php echo $dbname?>" class="form" size="40"></td>        </tr>        <tr>          <td>管理员信箱:<br>多个信箱用空格隔开</td>          <td><input type="text" name="technicalemail" value="<?php echo $technicalemail?>" class="form" size="40"></td>        </tr>        <tr>          <td colspan="2"><input type="submit" name="submit" value="提交" class="form"> <input type="reset" name="reset" value="重置" class="form"></td>        </tr>      </table>      </form>    </td>  </tr><?php  }}if ($step == "writeconfig") {  $dbservertype = strtolower($dbservertype);  $configfile = "<"."?php// type of database running// (only mysql is supported at the moment)\$dbservertype = \"$dbservertype\";// hostname or ip of server\$dbservername = \"$dbservername\";// username and password to log onto db server\$dbusername = \"$dbusername\";\$dbpassword = \"$dbpassword\";// name of database\$dbname = \"$dbname\";// technical email address, to specify multiple emails seperate each one with a space\$technicalemail = \"$technicalemail\";// set the staff ids for the users which can prune the admin log// enter a single id, or a string of ids seperated by a , eg. \"1,5,7\"\$canprunelog = \"1\";// 0 shows no debug info// 1 allows creation times to be viewed by adding showqueries=1 onto the query string,// also displays the time in the admin panel// 2 allows sql queries to be viewed also by adding showqueries=1 onto the query string\$debug = 1;// If you have a problem having the directory /admin/ on your server then change this variable below// Please ensure you do not have a / as the first or that last character// You must also edit the file admin/toggle.js to replace admin/ with whatever you want// Also, you MUST edit global.php and admin.php and edit the line saying require(\"admin/config.php\");// to point it to this file\$admindirectory = \"admin\";?>";  $file = fopen("admin/config.php","w");  fwrite($file,$configfile);  $file = fclose($file);  $step = 3;}if ($step == 3) {  include("admin/config.php");  include("includes/db_$dbservertype.php");  $db = vn_connect(0);  if (geterrno() == 1049) {    echo "  <tr>\n    <td>数据库不存在,现在试着创建一个..</td>\n  </tr>\n";    query("CREATE DATABASE $dbname",0);    if (geterrno() != 0) {      echo "  <tr>\n    <td>不能创建数据库:<br>错误编号: ".geterrno()."<br>错误描述: ".geterrordesc()."</td>\n  </tr>\n";      echo "  <tr>\n    <td>请手动创造或者联系你的系统管理员寻求帮助</td>\n  </tr>\n";    } else {      echo "  <tr>\n    <td>数据库现在创建</td>\n  </tr>\n";      echo "  <tr>\n    <td>点击<a href=\"install.php?step=4\">这里 </a>继续</td>\n  </tr>\n";    }  } elseif (geterrno() == 0) {      echo "  <tr>\n    <td>连接成功,数据库已经建立,正在校验数据库目录....</td>\n  </tr>\n";      $gettables = query("SHOW TABLES");      if (countrows($gettables)) {        echo "  <tr>\n    <td>数据库建立,但是数据库不是空的</td>\n  </tr>\n";        echo "  <tr>\n    <td>如果你想清空数据库,请点击 <a href=\"install.php?step=confirmempty\" onclick=\"return confirmempty()\">这里 </a>.  <font class=\"red\">这将无条件删除你数据库的数据.如果你想继续使用论坛或会员数据就不要这样做.</font></td>\n  </tr>\n";        echo "  <tr>\n    <td>如果你想确保你的数据库完整,请点击<a href=\"install.php?step=4\">这里 </a> 继续下一步安装。</td>\n  </tr>\n";      } else {        echo "  <tr>\n    <td>数据库存在并是空的</td>\n  </tr>\n";        echo "  <tr>\n    <td>点击<a href=\"install.php?step=4\">这里 </a>继续</td>\n  </tr>\n";      }  } else {    echo "  <tr>\n    <td>不能连接到服务器:<br>错误编号: ".geterrno()."<br>错误描述: ".geterrordesc()."</td>\n  </tr>\n";    echo "  <tr>\n    <td>请返回检查config.php的设置并再试一次.</td>\n  </tr>\n";  }}if ($step == "confirmempty") {  echo "  <tr>\n    <td><font class=\"red\">你打算删除你数据库的所有数据.如果这样做VIRTUANEWS将不能恢复执行前的数据. 如果你打算使用你的论坛或会员数据就不要这样做.</font></td>\n  </tr>\n";  echo "  <tr>\n    <td>你过你认可这个条件请点击<a href=\"install.php?step=empty&agree=1\" onclick=\"return confirmempty()\">这里 </a> 另外点击<a href=\"install.php?step=4\">这里 </a>不删除你的数据继续下一步安装.</td>\n  </tr>\n";}if (($step == "empty") & ($agree == 1)) {  include("admin/config.php");  include("includes/db_$dbservertype.php");  $db = vn_connect();  $gettables = query("SHOW TABLES");  while ($table_arr = fetch_array($gettables)) {    $query[$table_arr[0]] = "DROP TABLE $table_arr[0]";  }  echo "  <tr>\n    <td>VirtuaNews正在情空你的数据库:</tr>\n";

⌨️ 快捷键说明

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