//----修改模版ftp->ftp_details为以下内容-----//
//-----------------可爱的分割线---------------------//
<br />
<table width='100%' cellpadding='4' cellspacing='1' id='ttable'>
<tr>
<td colspan='7' class='thead'>{$ftpinfotitle}</td>
</tr>
<tr class='tcat'>
<th align='center' width='100%' nowrap='nowrap' colspan='2'><b>{$lang[ftpstateD]}</b></th>
</tr>
<tr><td class='row2' valign='top' width='20%' align='center'><b>{$lang[ftpnameD]}</b></td>
<td class='row1' valign='top'><b>{$ftpinfo[FTP_ItemName]}</b></td>
</tr>
<tr><td class='row2' valign='top' width='20%' align='center'><b>{$lang[ftpnoteD]}</b></td>
<td class='row1' valign='top'>{$ftpinfo[FTP_Memo]}</td>
</tr>
<tr><td class='row2' valign='top' width='20%' align='center'><b>{$lang[ftpaddressD]}</b></td>
<td class='row1' valign='top'><b>{$ftpinfo[FTP_Address]}</b></td>
</tr>
<tr><td class='row2' valign='top' width='20%' align='center'><b>{$lang[ftpportD]}</b></td>
<td class='row1' valign='top'><b>{$ftpinfo[FTP_Port]}</b></td>
</tr>
<tr class='pformstrip'>
<th align='center' width='100%' nowrap='nowrap' colspan='2'><b>{$lang[changepassD]}</b></th>
</tr>
<tr><td class='row2' valign='top' width='20%' align='center'><b>{$lang[myftpnameD]}</b></td>
<td class='row1' valign='top'><b>{$ftpuser}</b></td>
</tr>
<tr class='pformstrip'>
<th align='center' width='100%' nowrap='nowrap' colspan='2'><b>{$lang[ftptop]}</b></th>
</tr>
<tr><td class='row2' valign='middle' width='20%' align='center'><b>{$lang[uploadtop]}</b>
</td><td class='row1' valign='middle'>
<?
$ti=0;
$row=$DB_ftp->query("select * from tuser order by FUpLoad desc limit 0,5 ");
while ( $top = $DB->fetch_array( $row ) ) {
$ti+=1;
echo $ti.".".str_replace($ftpinfo[NameAddStr],"",$top['FUserName'])."(".$forums->lang['uploadD'].$forums->func->fetch_number_format($top['FUpLoad'],1).")<br/>";
}
?>
</td>
</tr>
<tr><td class='row2' valign='middle' width='20%' align='center'><b>{$lang[downloadtop]}</b>
</td><td class='row1' valign='middle'>
<?
$ti=0;
$row=$DB_ftp->query("select * from tuser order by FDownLoad desc limit 0,5 ");
while ( $top = $DB->fetch_array( $row ) ) {
$ti+=1;
echo $ti.".".str_replace($ftpinfo[NameAddStr],"",$top['FUserName'])."(".$forums->lang['useageD'].$forums->func->fetch_number_format($top['FDownLoad'],1).")<br/>";
}
?>
</td>
</tr>
<tr><td class='row2' valign='top' width='20%' align='center'><b>{$lang[myftppassD]}</b></td>
<td class='row1' valign='top'><form action='./../../ftp.php?{sessionurl}do=mypass' method='post'>
<input type='password' name='mypassword' value='' class='button' />
<input type='submit' value='{$lang[changepassD]}' class='button' />
<input type='hidden' name='ftpid' value='{$ftpinfo[FTP_ID]}' />
</form></td>
</tr>
<tr class='pformstrip'>
<th align='center' width='100%' nowrap='nowrap' colspan='2'><b>{$lang[buydownD]}</b></th>
</tr>
<tr><td class='row2' valign='top' width='20%' align='center'><b>{$lang[moneyhaveD]}{$banksettings[bankcurrency]}{$lang[moneyD]}</b></td>
<td class='row1' valign='top'><b>{$hascash}</b></td>
</tr>
<?
$uploadsize=$forums->func->fetch_number_format($ftpdb['FUpLoad'],1);
?>
<tr><td class='row2' valign='top' width='20%' align='center'><b>{$lang[uploadD]}</b></td>
<td class='row1' valign='top'><b>{$uploadsize} </b> </td>
</tr>
<tr><td class='row2' valign='top' width='20%' align='center'><b>{$lang[useageD]}</b></td>
<td class='row1' valign='top'><b>{$userate}</b></td>
</tr>
<tr><td class='row2' valign='top' width='20%' align='center'><b>{$lang[unusedD]}</b></td>
<td class='row1' valign='top'><b>{$hasrate} </b></td>
</tr>
<tr><td class='row2' valign='top' width='20%' align='center'><b>{$lang[priceD]}</b></td>
<td class='row1' valign='top'><b>{$buyGBcost}{$lang['pregb1D']}</b></td>
</tr>
<tr>
<td class='row2' valign='top' width='20%' align='center'><b>{$lang[buyamountD]}</b>{$buymaxD}</td>
<td class='row1' valign='middle'>
<form action='./../../ftp.php?{sessionurl}do=buy' method='post'>
<input type='text' size='7' name='donate' valign='top' value='1' /> {$lang[gb2D]}
<input type='submit' value='{$lang[buyokD]}' class='button' /> {$maxucanD}
<input type='hidden' name='ftpid' value='{$ftpinfo[FTP_ID]}' />
<input type='hidden' name='ftpip' value={$ipadd[0]}.{$ipadd[1]}.* />
</form></td>
</tr>
<tr class='pformstrip'>
<th align='center' width='100%' nowrap='nowrap' colspan='2'><b>{$lang[allowipD]}</b></th>
</tr>
<tr>
<td class='row2' valign='middle' width='20%' align='center'><b>{$lang[allowedD]}</b><br />{$allowedip}
</td><td class='row1' valign='middle'>
<form action='./../../ftp.php?{sessionurl}do=setip' method='post'>
<input type='hidden' name='ftpid' value={$ftpinfo[FTP_ID]} />
<textarea class='editortext' cols=60 rows={$ftpinfo[MaxAllowIP]} name='allowip'>{$ftpdb[FAllow_IP]}</textarea>
<input type=Submit value='{$lang[submitD]}' name=Submit class='button' />
</form></td></tr>
<tr><td class='row2' valign='middel' width='20%' align='center'><b>{$lang[noteD]}</b></td>
<td class='row2' valign='top'>{$listip}</td></tr>
</table>
{$lang[copyright]}
//-----------------可爱的分割线---------------------//
//-----------------可爱的分割线---------------------//
或是查找
<tr><td class='row2' valign='top' width='20%' align='center'><b>{$lang[useageD]}</b></td>
替换为
<?
$uploadsize=$forums->func->fetch_number_format($ftpdb['FUpLoad'],1);
?>
<tr><td class='row2' valign='top' width='20%' align='center'><b>{$lang[uploadD]}</b></td>
<td class='row1' valign='top'><b>{$uploadsize} </b></td>
</tr>
<tr><td class='row2' valign='top' width='20%' align='center'><b>{$lang[useageD]}</b></td>
//-----------------可爱的分割线---------------------//
修改语言文件
增加
'uploadD' => '已上传量:',
'uploadtop' => '上传TOP',
'downloadtop' => '下载TOP',
'ftptop' => '排行榜',
//--------------修改文件:includes/functions_showthread.php ---------------//
//----查找:----//
}else{
$temp['attach'] .= "<table width='100%' border='0' cellspacing='1' cellpadding='3' id='ttable'>
//-----修改为:-----//
}else if($row['extension']=='wav' || $row['extension']=='mp3' || $row['extension']=='wma'){
$temp['music'] .= "<div align='center'><OBJECT CLASSID='clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA' WIDTH='375' HEIGHT='100'><PARAM NAME='src' VALUE='attachment.php?{$forums->sessionurl}id={$row['attachmentid']}&u={$row['userid']}&extension={$row['extension']}&attach={$row['location']}&filename={$row['filename']}&attachpath={$row['attachpath']}'><PARAM NAME='loop' value='true'><PARAM NAME='controls' VALUE='All'><PARAM NAME='console' VALUE='one'><EMBED SRC='./../../attachment.php?{$forums->sessionurl}id={$row['attachmentid']}&u={$row['userid']}&extension={$row['extension']}&attach={$row['location']}&filename={$row['filename']}&attachpath={$row['attachpath']}' WIDTH='375' HEIGHT='30' NOJAVA='true' CONTROLS='ControlPanel' CONSOLE='one'></EMBED></OBJECT><br><a href='./../../attachment.php?{$forums->sessionurl}id={$row['attachmentid']}&u={$row['userid']}&extension={$row['extension']}&attach={$row['location']}&filename={$row['filename']}&attachpath={$row['attachpath']}' target='_blank'>{$row['filename']}</a><br></div>";
}else if($row['extension']=='wmv' || $row['extension']=='mpg' || $row['extension']=='mpeg' || $row['extension']=='asf'){
temp['movie'].="<div align='center'><OBJECT CLASSID='CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95' CODEBASE='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,02,902' WIDTH='500' HEIGHT='400'><PARAM NAME='ShowStatusBar' value='true'><PARAM NAME='FileName' VALUE='attachment.php?{$forums->sessionurl}id={$row['attachmentid']}&u={$row['userid']}&extension={$row['extension']}&attach={$row['location']}&filename={$row['filename']}&attachpath={$row['attachpath']}'><PARAM NAME='ShowControls' VALUE='true'><PARAM NAME='AutoStart' VALUE='false'><EMBED SRC='./../../attachment.php?{$forums->sessionurl}id={$row['attachmentid']}&u={$row['userid']}&extension={$row['extension']}&attach={$row['location']}&filename={$row['filename']}&attachpath={$row['attachpath']}' TYPE='application/x-mplayer2' PLUGINSPAGE='http://www.microsoft.com/Windows/MediaPlayer/' WIDTH='500' HEIGHT='400' AUTOSTART='false'></EMBED></OBJECT><br><a href='./../../attachment.php?{$forums->sessionurl}id={$row['attachmentid']}&u={$row['userid']}&extension={$row['extension']}&attach={$row['location']}&filename={$row['filename']}&attachpath={$row['attachpath']}' target='_blank'>{$row['filename']}</a></div>";
}else if($row['extension']=='rm' || $row['extension']=='ra' || $row['extension']=='rmvb' || $row['extension']=='ram'){
temp['realmov'].="<div align='center'><OBJECT CLASSID='clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA' WIDTH='500' HEIGHT='400'><PARAM NAME='src' VALUE='attachment.php?{$forums->sessionurl}id={$row['attachmentid']}&u={$row['userid']}&extension={$row['extension']}&attach={$row['location']}&filename={$row['filename']}&attachpath={$row['attachpath']}'><PARAM NAME='controls' VALUE='ImageWindow'><PARAM NAME='console' VALUE='one'><PARAM NAME='autostart' VALUE='false'><EMBED SRC='./../../attachment.php?{$forums->sessionurl}id={$row['attachmentid']}&u={$row['userid']}&extension={$row['extension']}&attach={$row['location']}&filename={$row['filename']}&attachpath={$row['attachpath']}' WIDTH='500' HEIGHT='400' NOJAVA='true' CONTROLS='All' CONSOLE='one'></EMBED></OBJECT><br><a href='./../../attachment.php?{$forums->sessionurl}id={$row['attachmentid']}&u={$row['userid']}&extension={$row['extension']}&attach={$row['location']}&filename={$row['filename']}&attachpath={$row['attachpath']}' target='_blank'>{$row['filename']}</a><br></div>";
}else{
$temp['attach'] .= "<table width='100%' border='0' cellspacing='1' cellpadding='3' id='ttable'>
//--------第2步----------//
//-----查找:----//
if ( $temp['attach'] ) {
$attachment[$pid] .= "<br /><br /><strong><span class='edit'>".$forums->lang['_uploadattachs'].":</span></strong><br />".$temp['attach'];
}
//- 在后面添加-//
if ( $temp['music'] ) {
$attachment[$pid] .= "<br /><br /><strong><span class='edit'>".$forums->lang['_uploadmusic'].":</span></strong><br />".$temp['music'];
}
if ( $temp['movie'] ) {
$attachment[$pid] .= "<br /><br /><strong><span class='edit'>".$forums->lang['_uploadmovie'].":</span></strong><br />".$temp['movie'];
}
if ( $temp['realmov'] ) {
$attachment[$pid] .= "<br /><br /><strong><span class='edit'>".$forums->lang['_uploadrealmov'].":</span></strong><br />".$temp['realmov'];
}
//-------第3步-------//
//-----------修改语言文件lang/global.php---------//
查找
);
?>
在之前添加
'_uploadmusic' => '上传的音乐文件',
'_uploadmovie' => '上传的视频文件',
'_uploadrealmov' => '上传的Real文件',
第1个CODE 的内容:
name == elmMatch) { elementAttribs = mxEditor.cleanup_validElements[i]; validElement = true; element_name = elementAttribs[0][0]; break; } } } if (!validElement) return null; } if (!mxEditor.isMSIE) { if (element_name == "strong" && !mxEditor.cleanup_on_save) element_name = "b"; else if (element_name == "em" && !mxEditor.cleanup_on_save) element_name = "i"; } if (mxEditor.isMSIE) { if (element_name == "table") { var attribValue = element.style.pixelWidth == 0 ? element.getAttribute("width") : element.style.pixelWidth; element.setAttribute("width", attribValue); attribValue = element.style.pixelHeight == 0 ? element.getAttribute("height") : element.style.pixelHeight; element.setAttribute("height", attribValue); } } var elmData = new Object(); elmData.element_name = element_name; elmData.valid_attribs = elementAttribs; return elmData;}function mxEditor__fixInlineStyles(elm) { if (elm.nodeName.toLowerCase() != "table") { var value; value = mxEditor.isMSIE ? elm.width : elm.getAttribute("width"); if (value && value != "") { if (typeof (value) != "string" || !value.indexOf("%")) value += "px"; elm.style.width = value; } value = mxEditor.isMSIE ? elm.height : elm.getAttribute("height"); if (value && value != "") { if (typeof (value) != "string" || !value.indexOf("%")) value += "px"; elm.style.height = value; } value = mxEditor.isMSIE ? elm.border : elm.getAttribute("border"); if (value && value != "") elm.style.borderWidth = value + "px"; } value = elm.getAttribute("align"); if (value && value != "") { if (elm.nodeName.toLowerCase() == "img") { if (mxEditor.isMSIE) elm.style.styleFloat = value; else elm.style.cssFloat = value; } else elm.style.textAlign = value; } value = elm.getAttribute("vspace"); if (value && value != "") elm.style.marginTop = value + "px"; value = elm.getAttribute("hspace"); if (value && value != "") elm.style.marginBottom = value + "px";}function mxEditor__cleanupAttribute(valid_attributes, element_name, attribute_node, element_node) { var attribName = attribute_node.nodeName.toLowerCase(); var attribValue = attribute_node.nodeValue; var attribMustBeValue = null; if (mxEditor.cleanup_inline_styles && element_name != "table" && element_name != "td") { if (attribName == "width" || attribName == "height" || attribName == "border" || attribName == "align" || attribName == "valign" || attribName == "hspace" || attribName == "vspace") return null; } if (attribName.indexOf('moz_') != -1) return null; if (!mxEditor.isMSIE && (attribName == "mce_real_href" || attribName == "mce_real_src")) { if (!mxEditor.cleanup_on_save) { var attrib = new Object(); attrib.name = attribName; attrib.value = attribValue; return attrib; } else return null; } if (mxEditor.cleanup_verify_html) { var verified = false; for (var i=1; i<valid_attributes.length; i++) { var attribMatch = valid_attributes[i][0]; var re = null; if (attribMatch.match(new RegExp('\\*|\\?|\\+', 'g')) != null) { attribMatch = attribMatch.replace(new RegExp('\\?', 'g'), '(\\S?)'); attribMatch = attribMatch.replace(new RegExp('\\+', 'g'), '(\\S+)'); attribMatch = attribMatch.replace(new RegExp('\\*', 'g'), '(\\S*)'); attribMatch = "^" + attribMatch + "$"; re = new RegExp(attribMatch, 'g'); } if ((re && attribName.match(re) != null) || attribName == attribMatch) {
第2个CODE的内容:
//--------------修改文件:includes/functions_showthread.php ---------------//
//----查找:----//
}else{
$temp['attach'] .= "<table width='100%' border='0' cellspacing='1' cellpadding='3' id='ttable'>
//-----修改为:-----//
}else if($row['extension']=='wav' || $row['extension']=='mp3' || $row['extension']=='wma'){
$temp['music'] .= "<div align='center'><OBJECT CLASSID='clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA' WIDTH='375' HEIGHT='100'><PARAM NAME='src' VALUE='attachment.php?{$forums->sessionurl}id={$row['attachmentid']}&u={$row['userid']}&extension={$row['extension']}&attach={$row['location']}&filename={$row['filename']}&attachpath={$row['attachpath']}'><PARAM NAME='loop' value='true'><PARAM NAME='controls' VALUE='All'><PARAM NAME='console' VALUE='one'><EMBED SRC='./../../attachment.php?{$forums->sessionurl}id={$row['attachmentid']}&u={$row['userid']}&extension={$row['extension']}&attach={$row['location']}&filename={$row['filename']}&attachpath={$row['attachpath']}' WIDTH='375' HEIGHT='30' NOJAVA='true' CONTROLS='ControlPanel' CONSOLE='one'></EMBED></OBJECT><br><a href='./../../attachment.php?{$forums->sessionurl}id={$row['attachmentid']}&u={$row['userid']}&extension={$row['extension']}&attach={$row['location']}&filename={$row['filename']}&attachpath={$row['attachpath']}' target='_blank'>{$row['filename']}</a><br></div>";
}else if($row['extension']=='wmv' || $row['extension']=='mpg' || $row['extension']=='mpeg' || $row['extension']=='asf'){
temp['movie'].="<div align='center'><OBJECT CLASSID='CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95' CODEBASE='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,02,902' WIDTH='500' HEIGHT='400'><PARAM NAME='ShowStatusBar' value='true'><PARAM NAME='FileName' VALUE='attachment.php?{$forums->sessionurl}id={$row['attachmentid']}&u={$row['userid']}&extension={$row['extension']}&attach={$row['location']}&filename={$row['filename']}&attachpath={$row['attachpath']}'><PARAM NAME='ShowControls' VALUE='true'><PARAM NAME='AutoStart' VALUE='false'><EMBED SRC='./../../attachment.php?{$forums->sessionurl}id={$row['attachmentid']}&u={$row['userid']}&extension={$row['extension']}&attach={$row['location']}&filename={$row['filename']}&attachpath={$row['attachpath']}' TYPE='application/x-mplayer2' PLUGINSPAGE='http://www.microsoft.com/Windows/MediaPlayer/' WIDTH='500' HEIGHT='400' AUTOSTART='false'></EMBED></OBJECT><br><a href='./../../attachment.php?{$forums->sessionurl}id={$row['attachmentid']}&u={$row['userid']}&extension={$row['extension']}&attach={$row['location']}&filename={$row['filename']}&attachpath={$row['attachpath']}' target='_blank'>{$row['filename']}</a></div>";
}else if($row['extension']=='rm' || $row['extension']=='ra' || $row['extension']=='rmvb' || $row['extension']=='ram'){
temp['realmov'].="<div align='center'><OBJECT CLASSID='clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA' WIDTH='500' HEIGHT='400'><PARAM NAME='src' VALUE='attachment.php?{$forums->sessionurl}id={$row['attachmentid']}&u={$row['userid']}&extension={$row['extension']}&attach={$row['location']}&filename={$row['filename']}&attachpath={$row['attachpath']}'><PARAM NAME='controls' VALUE='ImageWindow'><PARAM NAME='console' VALUE='one'><PARAM NAME='autostart' VALUE='false'><EMBED SRC='./../../attachment.php?{$forums->sessionurl}id={$row['attachmentid']}&u={$row['userid']}&extension={$row['extension']}&attach={$row['location']}&filename={$row['filename']}&attachpath={$row['attachpath']}' WIDTH='500' HEIGHT='400' NOJAVA='true' CONTROLS='All' CONSOLE='one'></EMBED></OBJECT><br><a href='./../../attachment.php?{$forums->sessionurl}id={$row['attachmentid']}&u={$row['userid']}&extension={$row['extension']}&attach={$row['location']}&filename={$row['filename']}&attachpath={$row['attachpath']}' target='_blank'>{$row['filename']}</a><br></div>";
}else{
$temp['attach'] .= "<table width='100%' border='0' cellspacing='1' cellpadding='3' id='ttable'>
//--------第2步----------//
//-----查找:----//
if ( $temp['attach'] ) {
$attachment[$pid] .= "<br /><br /><strong><span class='edit'>".$forums->lang['_uploadattachs'].":</span></strong><br />".$temp['attach'];
}
//- 在后面添加-//
if ( $temp['music'] ) {
$attachment[$pid] .= "<br /><br /><strong><span class='edit'>".$forums->lang['_uploadmusic'].":</span></strong><br />".$temp['music'];
}
if ( $temp['movie'] ) {
$attachment[$pid] .= "<br /><br /><strong><span class='edit'>".$forums->lang['_uploadmovie'].":</span></strong><br />".$temp['movie'];
}
if ( $temp['realmov'] ) {
$attachment[$pid] .= "<br /><br /><strong><span class='edit'>".$forums->lang['_uploadrealmov'].":</span></strong><br />".$temp['realmov'];
}
//-------第3步-------//
//-----------修改语言文件lang/global.php---------//
查找
);
?>
在之前添加
'_uploadmusic' => '上传的音乐文件',
'_uploadmovie' => '上传的视频文件',
'_uploadrealmov' => '上传的Real文件',