?? setting.php
字號(hào):
<input type='radio' name='setting[enablebanip]' value='0' <?php if(!$enablebanip){ ?>checked <?php } ?>> 禁用
</td>
</tr>
<tr>
<td width='40%' class='tablerow'><strong>后臺(tái)登錄驗(yàn)證碼</strong><br/><?php if($enablegd){ ?>您的空間支持GD庫,建議開啟,這樣有利于加強(qiáng)系統(tǒng)安全。 <?php }else{ ?>您的空間不支持GD庫,無法開啟。 <?php } ?> </td>
<td class='tablerow'>
<input type='radio' name='setting[enableadmincheckcode]' value='1' <?php if($enableadmincheckcode){ ?>checked <?php } ?> <?php if(!$enablegd){ ?>disabled<?php } ?>> 啟用
<input type='radio' name='setting[enableadmincheckcode]' value='0' <?php if(!$enableadmincheckcode){ ?>checked <?php } ?>> 禁用
</td>
</tr>
</tbody>
<tbody id='Tabs' style='display:none'>
<th colspan=2>圖片處理</th>
<tr>
<td width='40%' class='tablerow'><strong>PHP圖形處理(GD庫)功能檢測(cè)</strong></td>
<td class='tablerow'>
<?=$gd?>
</td>
</tr>
<tr>
<td width='40%' class='tablerow'><strong>是否啟用縮略圖</strong></td>
<td class='tablerow'>
<input type='radio' name='setting[enablethumb]' value='1' <?php if($enablegd && $enablethumb){ ?>checked <?php } ?>> 啟用
<input type='radio' name='setting[enablethumb]' value='0' <?php if(!$enablegd || !$enablethumb){ ?>checked <?php } ?>> 禁用
</td>
</tr>
<tr>
<td width='40%' class='tablerow'><strong>縮略圖默認(rèn)寬度</strong></td>
<td class='tablerow'><input name='setting[thumb_width]' type='text' id='thumb_width' value='<?=$thumb_width?>' size='40' maxlength='50'></td>
</tr>
<tr>
<td width='40%' class='tablerow'><strong>縮略圖默認(rèn)高度</strong></td>
<td class='tablerow'><input name='setting[thumb_height]' type='text' id='thumb_height' value='<?=$thumb_height?>' size='40' maxlength='50'></td>
</tr>
<tr>
<td width='40%' class='tablerow'><strong>縮略圖算法</strong></td>
<td class='tablerow'>
寬和高都大于0時(shí),縮小成指定大小,其中一個(gè)為0時(shí),按比例縮小<br>
</td>
</tr>
<tr>
<td width='40%' class='tablerow'><strong>水印類型</strong></td>
<td class='tablerow'>
<input type='radio' name='setting[water_type]' value='0' <?php if(!$enablegd || $water_type==0){ ?>checked <?php } ?>> 不啟用
<input type='radio' name='setting[water_type]' value='1' <?php if($enablegd && $water_type==1){ ?>checked <?php } ?>> 文字水印
<input type='radio' name='setting[water_type]' value='2' <?php if($enablegd && $water_type==2){ ?>checked <?php } ?>> 圖片水印
</td>
</tr>
<tr>
<td width='40%' class='tablerow'><strong>水印文字</strong></td>
<td class='tablerow'><input name='setting[water_text]' type='text' id='water_text' value='<?=$water_text?>' size='40' maxlength='50'></td>
</tr>
<tr>
<td width='40%' class='tablerow'><strong>文字字體</strong></td>
<td class='tablerow'><input name='setting[water_font]' type='text' id='water_font' value='<?=$water_font?>' size='40' maxlength='50'></td>
</tr>
<tr>
<td width='40%' class='tablerow'><strong>文字大小</strong></td>
<td class='tablerow'><input name='setting[water_fontsize]' type='text' id='water_fontsize' value='<?=$water_fontsize?>' size='40' maxlength='50'></td>
</tr>
<tr>
<td width='40%' class='tablerow'><strong>文字顏色</strong></td>
<td class='tablerow'><input name='setting[water_fontcolor]' type='text' id='water_fontcolor' value='<?=$water_fontcolor?>' size='40' maxlength='50'><?=color_select("fontcolor","顏色",$water_fontcolor,0," onchange='myform.water_fontcolor.value=this.value'") ?></td>
</tr>
<tr>
<td width='40%' class='tablerow'><strong>水印圖片</strong></td>
<td class='tablerow'><input name='setting[water_image]' type='text' id='water_image' value='<?=$water_image?>' size='40' maxlength='50'>
<input type="button" value="上傳圖片" onclick="javascript:openwinx('?mod=phpcms&file=uppic&uploadtext=water_image','upload','350','350')">
</td>
</tr>
<tr>
<td width='40%' class='tablerow'><strong>水印位置</strong><br>
您可以設(shè)置自動(dòng)為用戶上傳的 JPG/PNG/GIF 圖片附件添加水印,請(qǐng)?jiān)诖诉x擇水印添加的位置(3x3 共 9 個(gè)位置可選)。本功能需要 GD 庫支持才能使用,暫不支持動(dòng)畫 GIF 格式。附加的水印圖片位于 ./images/watermark.gif,您可替換此文件以實(shí)現(xiàn)不同的水印效果
</td>
<td class='tablerow'>
<table cellspacing="1" cellpadding="4" width="150" bgcolor="#dddddd">
<tr align="center" bgcolor="#ffffff"><td><input type="radio" name="setting[water_pos]" value="1" <?php if($water_pos==1){ ?>checked <?php } ?>> #1</td><td><input type="radio" name="setting[water_pos]" value="2" <?php if($water_pos==2){ ?>checked <?php } ?>> #2</td><td><input type="radio" name="setting[water_pos]" value="3" <?php if($water_pos==3){ ?>checked <?php } ?>> #3</td></tr>
<tr align="center" bgcolor="#ffffff"><td><input type="radio" name="setting[water_pos]" value="4" <?php if($water_pos==4){ ?>checked <?php } ?>> #4</td><td><input type="radio" name="setting[water_pos]" value="5" <?php if($water_pos==5){ ?>checked <?php } ?>> #5</td><td><input type="radio" name="setting[water_pos]" value="6" <?php if($water_pos==6){ ?>checked <?php } ?>> #6</td></tr>
<tr align="center" bgcolor="#ffffff"><td><input type="radio" name="setting[water_pos]" value="7" <?php if($water_pos==7){ ?>checked <?php } ?>> #7</td><td><input type="radio" name="setting[water_pos]" value="8" <?php if($water_pos==8){ ?>checked <?php } ?>> #8</td><td><input type="radio" name="setting[water_pos]" value="9" <?php if($water_pos==9){ ?>checked <?php } ?>> #9</td></tr>
</table>
</tr>
</tbody>
<tbody id='Tabs' style='display:none'>
<th colspan=2>郵件設(shè)置</th>
<tr>
<td class="tablerow"><b>發(fā)送方式</b></td>
<td class="tablerow">
<input type="radio" name="setting[sendmailtype]" value="smtp" <?php if($sendmailtype=="smtp"){ ?>checked <?php } ?> />SMTP方式
<input type="radio" name="setting[sendmailtype]" value="mail" <?php if($sendmailtype=="mail"){ ?>checked <?php } ?>/>Mail函數(shù)(Windows服務(wù)器不支持)
</td>
</tr>
<tr>
<td class="tablerow" width="40%"><b>郵箱SMTP</b><br>SMTP服務(wù)器,只有正確設(shè)置才能使用發(fā)郵件功能</td>
<td class="tablerow"><input name="setting[smtphost]" type="text" size="40" value="<?=$smtphost?>"></td>
</tr>
<tr>
<td class="tablerow"><b>郵箱帳號(hào)</b><br>SMTP服務(wù)器的用戶帳號(hào),只有正確設(shè)置才能使用發(fā)郵件功能</td>
<td class="tablerow"><input name="setting[smtpuser]" type="text" size="40" value="<?=$smtpuser?>"></td>
</tr>
<tr>
<td class="tablerow"><b>郵箱密碼</b><br></td>
<td class="tablerow"><input name="setting[smtppass]" type="password" size="40" value="<?=$smtppass?>"></td>
</tr>
<tr>
<td class="tablerow"><b>SMTP端口</b><br>默認(rèn)為25,一般不需要改</td>
<td class="tablerow"><input name="setting[smtpport]" type="text" size="40" value="<?=$smtpport?>"></td>
</tr>
</tbody>
<tbody id='Tabs' style='display:none'>
<th colspan=2>ftp設(shè)置</th>
<tr>
<td width='45%' class='tablerow'><strong>是否啟用FTP功能</strong><br>開啟FTP功能后,phpcms將采用ftp方式建立目錄和修改權(quán)限<br/>
<?php if(!function_exists('ftp_connect')){ ?><font color="red">當(dāng)前PHP環(huán)境不支持FTP功能!</font><?php }?>
<?php if(strrpos(strtolower($PHP_OS),"win")===flase){ ?><font color="red">當(dāng)前服務(wù)器操作系統(tǒng)為非WINDOWS系統(tǒng),建議設(shè)置好ftp并啟用FTP功能。<br/></font>
<?php }else{ ?>
<font color="red">當(dāng)前服務(wù)器操作系統(tǒng)為WINDOWS系統(tǒng),您不需要啟用FTP功能。<br/></font>
<?php } ?>
<?php if($safe_mode){ ?><font color="red">php正以安全模式運(yùn)行,請(qǐng)開啟并配置好ftp,否則可能導(dǎo)致無法正常使用phpcms!</font><?php }?>
</td>
<td class='tablerow'>
<input type='radio' name='setting[enableftp]' value='1' <?php if($enableftp){ ?>checked <?php } ?>> 啟用
<input type='radio' name='setting[enableftp]' value='0' <?php if(!$enableftp){ ?>checked <?php } ?>> 禁用
</td>
</tr>
<tr>
<td class="tablerow" width="40%"><b>ftp主機(jī)</b></td>
<td class="tablerow"><input name="setting[ftphost]" id="ftphost" type="text" size="40" value="<?=$ftphost?>"></td>
</tr>
<tr>
<td class="tablerow"><b>ftp帳號(hào)</b></td>
<td class="tablerow"><input name="setting[ftpuser]" id="ftpuser" type="text" size="40" value="<?=$ftpuser?>"></td>
</tr>
<tr>
<td class="tablerow"><b>ftp密碼</b><br></td>
<td class="tablerow"><input name="setting[ftppass]" id="ftppass" type="password" size="40" value="<?=$ftppass?>"></td>
</tr>
<tr>
<td class="tablerow" width="40%"><b>PHPCMS根目錄相對(duì)FTP根目錄的路徑</b><br>有很多虛擬主機(jī)的ftp根目錄與web根目錄不一樣<br/>您需要正確設(shè)置才能使用ftp功能</td>
<td class="tablerow"><input name="setting[ftpwebpath]" id="ftpwebpath" type="text" size="40" value="<?=$ftpwebpath?>"><br>注意以“/”結(jié)尾,例如有的是 wwwroot/ 或者 www/<br/>留空則表示ftp根目錄與phpcms根目錄路徑相同</td>
</tr>
<tr>
<td class="tablerow"><b>測(cè)試ftp連接</b><br></td>
<td class="tablerow"><input name="testftp" type="button" size="40" value="點(diǎn)擊測(cè)試ftp連接是否正確" onclick="javascript:openwinx('?mod=phpcms&file=setting&action=testftp&ftphost='+myform.ftphost.value+'&ftpuser='+myform.ftpuser.value+'&ftppass='+myform.ftppass.value+'&ftpwebpath='+myform.ftpwebpath.value,'testftp','450','180')"></td>
</tr>
</tbody>
<tbody id='Tabs' style='display:none'>
<th colspan=2>論壇整合</th>
<tr>
<td class="tablerow" width="40%"><b>是否整合論壇</b><br>請(qǐng)先安裝好論壇,整合后phpcms將與論壇統(tǒng)一注冊(cè)和登錄</td>
<td class="tablerow"><input type="radio" name="setting[enablepassport]" value="1" <?php if($enablepassport){?>checked<?php }?>>是 <input type="radio" name="setting[enablepassport]" value="0" <?php if(!$enablepassport){?>checked<?php }?>>否</td>
</tr>
<tr>
<td class="tablerow"><b>論壇接口地址</b><br>請(qǐng)?zhí)顚懻搲涌谠L問的網(wǎng)址</td>
<td class="tablerow"><input name="setting[passport_url]" type="text" size="50" value="<?=$passport_url?>"></td>
</tr>
<tr>
<td class="tablerow"><b>論壇認(rèn)證密鑰</b><br>請(qǐng)?zhí)顚懻搲?yàn)證的密鑰</td>
<td class="tablerow"><input name="setting[passport_key]" type="text" size="30" value="<?=$passport_key?>"></td>
</tr>
</tbody>
</table>
<table width="100%" height="25" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center">
<input name='setting[version]' type='hidden' id='version' value='<?=PHPCMS_VERSION?>'>
<input type="submit" name="Submit" value="保存基本配置">
</td>
</tr>
</table>
</form>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -