国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

218 lines
11KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $s_lang?>" />
  5. <title>安装程序 - 织梦内容管理系统<?php echo $verMsg; ?></title>
  6. <script src="../static/js/dedeajax2.js" language="javascript" type="text/javascript"></script>
  7. <script language="javascript" type="text/javascript">
  8. <!--
  9. function $o(tid){
  10. return document.getElementById(tid);
  11. }
  12. function TestDb()
  13. {
  14. var dbhost = $o('dbhost').value;
  15. var dbuser = $o('dbuser').value;
  16. var dbpwd = $o('dbpwd').value;
  17. $o('havedbsta').innerHTML='<img src=\'images/ajax-loader.gif\'>';
  18. var myajax = new DedeAjax($o('dbpwdsta'),false,true,'-','-','...');
  19. myajax.SendGet2('index.php?step=10&dbhost='+dbhost+'&dbuser='+dbuser+'&dbpwd='+dbpwd);
  20. DedeXHTTP = null;
  21. HaveDB();
  22. }
  23. function HaveDB()
  24. {
  25. var dbhost = $o('dbhost').value;
  26. var dbname = $o('dbname').value;
  27. var dbuser = $o('dbuser').value;
  28. var dbpwd = $o('dbpwd').value;
  29. var myajax = new DedeAjax($o('havedbsta'),false,true,'-','-','...');
  30. myajax.SendGet2('index.php?step=10&dbhost='+dbhost+'&dbuser='+dbuser+'&dbpwd='+dbpwd+'&dbname='+dbname);
  31. DedeXHTTP = null;
  32. }
  33. function DoInstall()
  34. {
  35. //$o('postloader').style.display = 'block';
  36. document.form1.submit();
  37. }
  38. function randpwd() {
  39. // >= IE8
  40. document.querySelector("input[name='adminpwd']").value = Math.random().toString(36).slice(-8) + Math.random().toString(36).slice(-8);
  41. }
  42. -->
  43. </script>
  44. <link href="style.css" rel="stylesheet" type="text/css" />
  45. </head>
  46. <body>
  47. <div id='postloader' class='waitpage'></div>
  48. <form action="index.php" method="post" name="form1">
  49. <input type="hidden" name="step" value="4" />
  50. <div class="top">
  51. <div class="top-logo">
  52. </div>
  53. <div class="top-link">
  54. <ul>
  55. <li><a href="http://www.dedecms.com" target="_blank">官方网站</a></li>
  56. <li><a href="http://bbs.dedecms.com" target="_blank">技术论坛</a></li>
  57. <li><a href="http://help.dedecms.com" target="_blank">帮助</a></li>
  58. </ul>
  59. </div>
  60. <div class="top-version">
  61. <!-- 版本信息 -->
  62. <h2>DEDECMS<?php echo $verMsg; ?></h2>
  63. </div>
  64. </div>
  65. <div class="main">
  66. <div class="pleft">
  67. <dl class="setpbox t1">
  68. <dt>安装步骤</dt>
  69. <dd>
  70. <ul>
  71. <li class="succeed">许可协议</li>
  72. <li class="succeed">环境检测</li>
  73. <li class="now">参数配置</li>
  74. <li>正在安装</li>
  75. <li>安装完成</li>
  76. </ul>
  77. </dd>
  78. </dl>
  79. </div>
  80. <div class="pright">
  81. <div class="pr-title"><h3>模块选择</h3></div>
  82. <table width="726" border="0" align="center" cellpadding="0" cellspacing="0" class="twbox">
  83. <tr>
  84. <td style='line-height:180%'>
  85. <b>默认已安装模块(不需要可在后台卸载):</b><br />
  86. 百度新闻、文件管理器、挑错管理、投票模块、友情链接<br />
  87. <b>已下载并可选安装的:(不能选中的为未下载)</b><br />
  88. <div class='modulesel'><input type='checkbox' name='modules[]' <?php if(!IsDownLoad($module_local.'0a7bea5dbe571d35def883cbec796437')){?>disabled = 'true'<?php }?> value='0a7bea5dbe571d35def883cbec796437' /> 留言簿模块</div>
  89. <div class='modulesel'><input type='checkbox' name='modules[]' <?php if(!IsDownLoad($module_local.'59155be87ea60c5c65ec1f7a46a0fc9d')){?>disabled = 'true'<?php }?> value='59155be87ea60c5c65ec1f7a46a0fc9d' /> 手机WAP浏览</div>
  90. <div class='modulesel'><input type='checkbox' name='modules[]' <?php if(!IsDownLoad($module_local.'7badb72a3ff79af2a7112beee60cb970')){?>disabled = 'true'<?php }?> value='7badb72a3ff79af2a7112beee60cb970' /> 小说模块</div>
  91. <div class='modulesel'><input type='checkbox' name='modules[]' <?php if(!IsDownLoad($module_local.'867af26e9c1ccf22a1cf67e756cf5acc')){?>disabled = 'true'<?php }?> value='867af26e9c1ccf22a1cf67e756cf5acc' /> 黄页模块</div>
  92. <div class='modulesel'><input type='checkbox' name='modules[]' <?php if(!IsDownLoad($module_local.'8964eda9013d1df0afea08ed63243436')){?>disabled = 'true'<?php }?> value='8964eda9013d1df0afea08ed63243436' /> 站内新闻</div>
  93. <div class='modulesel'><input type='checkbox' name='modules[]' <?php if(!IsDownLoad($module_local.'be722dbfa3cb3cb5628aab2d767ff62e')){?>disabled = 'true'<?php }?> value='be722dbfa3cb3cb5628aab2d767ff62e' /> 问答模块</div>
  94. <div class='modulesel'><input type='checkbox' name='modules[]' <?php if(!IsDownLoad($module_local.'dfcb5cd4d7bc0e3f7eb655e62dd6bc64')){?>disabled = 'true'<?php }?> value='dfcb5cd4d7bc0e3f7eb655e62dd6bc64' /> 圈子模块</div>
  95. <div class='modulesel'><input type='checkbox' name='modules[]' <?php if(!IsDownLoad($module_local.'c10bb6ac52082ab3e669b4814b44a6f1')){?>disabled = 'true'<?php }?> value='c10bb6ac52082ab3e669b4814b44a6f1' /> 邮件订阅</div>
  96. <div class='modulesel'><input type='checkbox' name='modules[]' <?php if(!IsDownLoad($module_local.'8a4773468b800900dcfefbc5988833ed')){?>disabled = 'true'<?php }?> value='8a4773468b800900dcfefbc5988833ed' /> UCenter模块</div>
  97. </td>
  98. </tr>
  99. </table>
  100. <div class="pr-title"><h3>数据库设定</h3></div>
  101. <table width="726" border="0" align="center" cellpadding="0" cellspacing="0" class="twbox">
  102. <tr>
  103. <td class="onetd"><strong>数据库类型:</strong></td>
  104. <td><select name="dbtype">
  105. <option value="mysql" selected>MySQL</option>
  106. <option value="sqlite">SQLite</option>
  107. </select>
  108. <small>一般为MySQL,SQLite仅用于开发调试不建议生产中使用</small></td>
  109. </tr>
  110. <tr>
  111. <td class="onetd"><strong>数据库主机:</strong></td>
  112. <td><input name="dbhost" id="dbhost" type="text" value="localhost" class="input-txt" />
  113. <small>一般为localhost</small></td>
  114. </tr>
  115. <tr>
  116. <td class="onetd"><strong>数据库用户:</strong></td>
  117. <td><input name="dbuser" id="dbuser" type="text" value="root" class="input-txt" /></td>
  118. </tr>
  119. <tr>
  120. <td class="onetd"><strong>数据库密码:</strong></td>
  121. <td>
  122. <div style='float:left;margin-right:3px;'><input name="dbpwd" id="dbpwd" type="text" class="input-txt" onChange="TestDb()" /></div>
  123. <div style='float:left' id='dbpwdsta'></div>
  124. </td>
  125. </tr>
  126. <tr>
  127. <td class="onetd"><strong>数据表前缀:</strong></td>
  128. <td><input name="dbprefix" id="dbprefix" type="text" value="dede_" class="input-txt" />
  129. <small>如无特殊需要,请不要修改</small></td>
  130. </tr>
  131. <tr>
  132. <td class="onetd"><strong>数据库名称:</strong></td>
  133. <td>
  134. <div style='float:left;margin-right:3px;'><input name="dbname" id="dbname" type="text" value="<?php echo $dfDbname; ?>" class="input-txt" onChange="HaveDB()" /></div>
  135. <div style='float:left' id='havedbsta'></div>
  136. </td>
  137. </tr>
  138. <tr>
  139. <td class="onetd"><strong>数据库编码:</strong></td>
  140. <td>
  141. <?php
  142. if($s_lang=='utf-8')
  143. {
  144. ?>
  145. <input type="radio" name="dblang" id="dblang_utf8" value="utf8" checked="checked" /><label for="dblang_latin1">UTF8</label>
  146. <?php
  147. }
  148. else
  149. {
  150. ?>
  151. <input type="radio" name="dblang" id="dblang_gbk" value="gbk" checked="checked" /><label for="dblang_gbk">GBK</label>
  152. <input type="radio" name="dblang" id="dblang_latin1" value="latin1" /><label for="dblang_latin1">LATIN1</label>
  153. <?php
  154. }
  155. ?>
  156. <small>仅对4.1+以上版本的MySql选择</small>
  157. </td>
  158. </tr>
  159. </table>
  160. <div class="pr-title"><h3>管理员初始密码</h3></div>
  161. <table width="726" border="0" align="center" cellpadding="0" cellspacing="0" class="twbox">
  162. <tr>
  163. <td class="onetd"><strong>用户名:</strong></td>
  164. <td>
  165. <input name="adminuser" type="text" value="admin" class="input-txt" />
  166. <p><small>只能用'0-9'、'a-z'、'A-Z'、'.'、'@'、'_'、'-'、'!'以内范围的字符</small></p>
  167. </td>
  168. </tr>
  169. <tr>
  170. <td class="onetd"><strong>密 码:</strong></td>
  171. <td><input name="adminpwd" type="text" value="admin" class="input-txt" /><small>默认密码:admin,建议 <a href="javascript:randpwd();">手动生成</a></small></td>
  172. </tr>
  173. <tr>
  174. <td class="onetd"><strong>Cookie加密码:</strong></td>
  175. <td><input name="cookieencode" type="text" value="<?php echo $rnd_cookieEncode; ?>" class="input-txt" /></td>
  176. </tr>
  177. </table>
  178. <div class="pr-title"><h3>网站设置</h3></div>
  179. <table width="726" border="0" align="center" cellpadding="0" cellspacing="0" class="twbox">
  180. <tr>
  181. <td class="onetd"><strong>网站名称:</strong></td>
  182. <td>
  183. <input name="webname" type="text" value="我的网站" class="input-txt" />
  184. </td>
  185. </tr>
  186. <tr>
  187. <td class="onetd"><strong>管理员邮箱:</strong></td>
  188. <td><input name="adminmail" type="text" value="admin@dedecms.com" class="input-txt" /></td>
  189. </tr>
  190. <tr>
  191. <td class="onetd"><strong> 网站网址:</strong></td>
  192. <td><input name="baseurl" type="text" value="<?php echo $baseurl; ?>" class="input-txt" /></td>
  193. </tr>
  194. <tr>
  195. <td class="onetd"><strong>CMS安装目录:</strong></td>
  196. <td><input name="cmspath" type="text" class="input-txt" value="<?php echo $basepath; ?>" /><small>在根目录安装时不必理会</small></td>
  197. </tr>
  198. </table>
  199. <div class="btn-box">
  200. <input type="button" class="btn-back" value="后退" onclick="window.location.href='index.php?step=2';" />
  201. <input type="button" class="btn-next" value="开始安装" onclick="DoInstall();" />
  202. </div>
  203. </div>
  204. </div>
  205. <div class="foot">
  206. </div>
  207. </form>
  208. </body>
  209. </html>