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