@@ -104,7 +104,7 @@ else if($dopost=='save') | |||
$keywords = cn_substrR($keywords,60); | |||
$filename = trim(cn_substrR($filename,40)); | |||
$userip = GetIP(); | |||
$isremote = (empty($isremote)? 0 : $isremote); | |||
$isremote = 0; | |||
$serviterm=empty($serviterm)? "" : $serviterm; | |||
if(!TestPurview('a_Check,a_AccCheck,a_MyCheck')) | |||
{ | |||
@@ -113,10 +113,7 @@ else if($dopost=='save') | |||
$adminid = $cuserLogin->getUserID(); | |||
//处理上传的缩略图 | |||
if(empty($ddisremote)) | |||
{ | |||
$ddisremote = 0; | |||
} | |||
if(empty($ddisremote)) $ddisremote = 0; | |||
$litpic = GetDDImage('none',$picname,$ddisremote); | |||
// 处理新的缩略图上传 | |||
if ($litpic_b64 != "") { | |||
@@ -117,7 +117,7 @@ else if($dopost=='save') | |||
$description = cn_substrR($description,250); | |||
$keywords = trim(cn_substrR($keywords,60)); | |||
$filename = trim(cn_substrR($filename,40)); | |||
$isremote = (empty($isremote)? 0 : $isremote); | |||
$isremote = 0; | |||
$serviterm=empty($serviterm)? "" : $serviterm; | |||
if(!TestPurview('a_Check,a_AccCheck,a_MyCheck')) | |||
{ | |||
@@ -103,7 +103,7 @@ else if($dopost=='save') | |||
$keywords = cn_substrR($keywords,60); | |||
$filename = trim(cn_substrR($filename,40)); | |||
$userip = GetIP(); | |||
$isremote = (empty($isremote)? 0 : $isremote); | |||
$isremote = 0; | |||
$voteid = (empty($voteid)? 0 : $voteid); | |||
$serviterm=empty($serviterm)? "" : $serviterm; | |||
if(!TestPurview('a_Check,a_AccCheck,a_MyCheck')) | |||
@@ -107,7 +107,7 @@ else if($dopost=='save') | |||
$description = cn_substrR($description, $cfg_auot_description); | |||
$keywords = trim(cn_substrR($keywords, 60)); | |||
$filename = trim(cn_substrR($filename, 40)); | |||
$isremote = (empty($isremote)? 0 : $isremote); | |||
$isremote = 0; | |||
$serviterm=empty($serviterm)? "" : $serviterm; | |||
if(!TestPurview('a_Check,a_AccCheck,a_MyCheck')) $arcrank = -1; | |||
@@ -79,7 +79,7 @@ else if($dopost=='save') | |||
$senddate = time(); | |||
if(empty($litpic_b64)) $litpic_b64 = ''; | |||
$title = cn_substrR($title,$cfg_title_maxlen); | |||
$isremote = (empty($isremote)? 0 : $isremote); | |||
$isremote = 0; | |||
$serviterm=empty($serviterm)? "" : $serviterm; | |||
if(!TestPurview('a_Check,a_AccCheck,a_MyCheck')) $arcrank = -1; | |||
@@ -77,7 +77,7 @@ else if($dopost=='save') | |||
if(empty($flags)) $flag = ''; | |||
else $flag = join(',', $flags); | |||
$title = cn_substrR($title, $cfg_title_maxlen); | |||
$isremote = (empty($isremote)? 0 : $isremote); | |||
$isremote = 0; | |||
$serviterm=empty($serviterm)? "" : $serviterm; | |||
if(empty($litpic_b64)) $litpic_b64 = ''; | |||
if(!TestPurview('a_Check,a_AccCheck,a_MyCheck')) $arcrank = -1; | |||
@@ -108,7 +108,7 @@ else if($dopost=='save') | |||
$keywords = cn_substrR($keywords,60); | |||
$filename = trim(cn_substrR($filename,40)); | |||
$userip = GetIP(); | |||
$isremote = (empty($isremote)? 0 : $isremote); | |||
$isremote = 0; | |||
$serviterm=empty($serviterm)? "" : $serviterm; | |||
if(!TestPurview('a_Check,a_AccCheck,a_MyCheck')) | |||
@@ -114,7 +114,7 @@ else if($dopost=='save') | |||
$description = cn_substrR($description,250); | |||
$keywords = trim(cn_substrR($keywords,60)); | |||
$filename = trim(cn_substrR($filename,40)); | |||
$isremote = (empty($isremote)? 0 : $isremote); | |||
$isremote = 0; | |||
$serviterm=empty($serviterm)? "" : $serviterm; | |||
if(!TestPurview('a_Check,a_AccCheck,a_MyCheck')) | |||
{ | |||
@@ -222,31 +222,6 @@ function ClearOptCache() | |||
return FALSE; | |||
} | |||
/** | |||
* 更新会员模型缓存 | |||
* | |||
* @access public | |||
* @return void | |||
*/ | |||
function UpDateMemberModCache() | |||
{ | |||
global $dsql; | |||
$cachefile = DEDEDATA.'/cache/member_model.inc'; | |||
$dsql->SetQuery("SELECT * FROM `#@__member_model` WHERE state='1'"); | |||
$dsql->Execute(); | |||
$fp1 = fopen($cachefile,'w'); | |||
$phph = '?'; | |||
$fp1Header = "<{$phph}php\r\nglobal \$_MemberMod;\r\n\$_MemberMod=array();\r\n"; | |||
fwrite($fp1,$fp1Header); | |||
while($row=$dsql->GetObject()) | |||
{ | |||
fwrite($fp1,"\$_MemberMod[{$row->id}]=array('{$row->name}','{$row->table}');\r\n"); | |||
} | |||
fwrite($fp1,"{$phph}>"); | |||
fclose($fp1); | |||
} | |||
/** | |||
* 引入模板文件 | |||
* | |||
@@ -260,45 +235,6 @@ function DedeInclude($filename, $isabs=FALSE) | |||
return $isabs ? $filename : DEDEADMIN.'/'.$filename; | |||
} | |||
/** | |||
* 获取当前用户的ftp站点 | |||
* | |||
* @access public | |||
* @param string $current 当前站点 | |||
* @param string $formname 表单名称 | |||
* @return string | |||
*/ | |||
function GetFtp($current='', $formname='') | |||
{ | |||
global $dsql; | |||
$formname = empty($formname)? 'serviterm' : $formname; | |||
$cuserLogin = new userLogin(); | |||
$row=$dsql->GetOne("SELECT servinfo FROM `#@__multiserv_config`"); | |||
$row['servinfo']=trim($row['servinfo']); | |||
if(!empty($row['servinfo'])){ | |||
$servinfos = explode("\n", $row['servinfo']); | |||
$select=""; | |||
echo '<select name="'.$formname.'" size="1" id="serviterm">'; | |||
$i=0; | |||
foreach($servinfos as $servinfo){ | |||
$servinfo = trim($servinfo); | |||
list($servname,$servurl,$servport,$servuser,$servpwd,$userlist) = explode('|',$servinfo); | |||
$servname = trim($servname); | |||
$servurl = trim($servurl); | |||
$servport = trim($servport); | |||
$servuser = trim($servuser); | |||
$servpwd = trim($servpwd); | |||
$userlist = trim($userlist); | |||
$checked = ($current == $i)? ' selected="selected"' : ''; | |||
if(strstr($userlist,$cuserLogin->getUserName())) | |||
{ | |||
$select.="<option value='".$servurl.",".$servuser.",".$servpwd."'{$checked}>".$servname."</option>"; | |||
} | |||
$i++; | |||
} | |||
echo $select."</select>"; | |||
} | |||
} | |||
helper('cache'); | |||
/** | |||
* 根据用户mid获取用户名称 | |||
@@ -644,3 +644,6 @@ height: auto !important; | |||
.maintable { | |||
width: 98%!important; | |||
} | |||
a.btn { | |||
color: white!important; | |||
} |
@@ -25,9 +25,6 @@ $etime = (empty($etime) ? '' : $etime); | |||
$sstime = (empty($sstime) ? 0 : $sstime); | |||
$mkvalue = (empty($mkvalue) ? 0 : $mkvalue); | |||
$isremote = (empty($isremote)? 0 : $isremote); | |||
$serviterm = empty($serviterm)? "" : $serviterm; | |||
//一键更新传递的参数 | |||
if(!empty($uptype)) | |||
{ | |||
@@ -90,25 +87,13 @@ if($totalnum > 500 && empty($typeid)) | |||
} else { | |||
$dsql->Execute('out',"SELECT id FROM `#@__arctiny` $idsql $limitSql"); | |||
} | |||
if($cfg_remote_site=='Y' && $isremote=="1") | |||
{ | |||
if($serviterm!="") | |||
{ | |||
list($servurl, $servuser, $servpwd) = explode(',', $serviterm); | |||
$config = array( 'hostname' => $servurl, 'username' => $servuser, | |||
'password' => $servpwd,'debug' => 'TRUE'); | |||
} else { | |||
$config=array(); | |||
} | |||
if(!$ftp->connect($config)) exit('Error:None FTP Connection!'); | |||
} | |||
while($row=$dsql->GetObject('out')) | |||
{ | |||
$tjnum++; | |||
$id = $row->id; | |||
$ac = new Archives($id); | |||
$rurl = $ac->MakeHtml($isremote); | |||
$rurl = $ac->MakeHtml(0); | |||
} | |||
$t2 = ExecTime(); | |||
@@ -120,7 +105,6 @@ $ttime = number_format(($ttime / 60),2); | |||
$tjlen = $totalnum>0 ? ceil( ($tjnum/$totalnum) * 100 ) : 100; | |||
$dvlen = $tjlen * 2; | |||
$tjsta = "<div style='width:200;height:15;border:1px solid #898989;text-align:left'><div style='width:$dvlen;height:15;background-color:#829D83'></div></div>"; | |||
if($cfg_remote_site=='Y' && $isremote=="1") $tjsta .= "<br/><font color='red'>您已开启远程发布功能,生成速度会比较慢,请您耐心等待..</font>"; | |||
$tjsta .= "<br/>本次用时:".number_format($t2,2).",总用时:$ttime 分钟,到达位置:".($startdd+$pagesize)."<br/>完成创建文件总数的:$tjlen %,继续执行任务..."; | |||
@@ -137,7 +121,7 @@ if($tjnum < $totalnum) | |||
{ | |||
$nurl = "makehtml_archives_action.php?endid=$endid&startid=$startid&typeid=$typeid"; | |||
$nurl .= "&totalnum=$totalnum&startdd=".($startdd+$pagesize)."&pagesize=$pagesize"; | |||
$nurl .= "&seltime=$seltime&sstime=$sstime&stime=".urlencode($stime)."&etime=".urlencode($etime)."&uptype=$uptype&mkvalue=$mkvalue&isremote={$isremote}&serviterm={$serviterm}"; | |||
$nurl .= "&seltime=$seltime&sstime=$sstime&stime=".urlencode($stime)."&etime=".urlencode($etime)."&uptype=$uptype&mkvalue=$mkvalue"; | |||
ShowMsg($tjsta,$nurl,0,100); | |||
exit(); | |||
} | |||
@@ -145,7 +129,7 @@ else | |||
{ | |||
if($typeid!='') | |||
{ | |||
ShowMsg("生成文件:$totalnum 总用时:{$ttime} 分钟,现转向当前栏目更新>>","makehtml_list_action.php?typeid=$typeid&uptype=all&maxpagesize=50&upnext=1&isremote={$isremote}&serviterm={$serviterm}"); | |||
ShowMsg("生成文件:$totalnum 总用时:{$ttime} 分钟,现转向当前栏目更新>>","makehtml_list_action.php?typeid=$typeid&uptype=all&maxpagesize=50&upnext=1"); | |||
} | |||
else | |||
{ | |||
@@ -24,7 +24,6 @@ if($dopost=="view") | |||
else if($dopost=="make") | |||
{ | |||
$remotepos = empty($remotepos)? '/index.html' : $remotepos; | |||
$isremote = empty($isremote)? 0 : $isremote; | |||
$serviterm = empty($serviterm)? "" : $serviterm; | |||
$homeFile = DEDEADMIN."/".$position; | |||
$homeFile = str_replace("\\","/",$homeFile); | |||
@@ -63,14 +62,6 @@ else if($dopost=="make") | |||
$config=array( 'hostname' => $servurl, 'username' => $servuser, | |||
'password' => $servpwd,'debug' => 'TRUE'); | |||
} | |||
//如果启用远程站点则上传 | |||
if($cfg_remote_site=='Y' && $showmod==1) | |||
{ | |||
if($ftp->connect($config) && $isremote == 1) | |||
{ | |||
if($ftp->upload($position, $remotepos, 'ascii')) echo "远程发布成功!"."<br />"; | |||
} | |||
} | |||
exit(); | |||
} | |||
$row = $dsql->GetOne("SELECT * FROM #@__homepageset"); |
@@ -13,23 +13,9 @@ CheckPurview('sys_MakeHtml'); | |||
require_once(DEDEINC."/arc.partview.class.php"); | |||
if(empty($typeid)) $typeid = 0; | |||
$isremote = empty($isremote)? 0 : $isremote; | |||
$serviterm=empty($serviterm)? "" : $serviterm; | |||
if(empty($templet)) $templet = "plus/js.htm"; | |||
if(empty($uptype)) $uptype = "all"; | |||
if($cfg_remote_site=='Y' && $isremote=="1") | |||
{ | |||
if($serviterm!="") | |||
{ | |||
list($servurl, $servuser, $servpwd) = explode(',',$serviterm); | |||
$config=array( 'hostname' => $servurl, 'username' => $servuser, | |||
'password' => $servpwd,'debug' => 'TRUE'); | |||
} else { | |||
$config=array(); | |||
} | |||
if(!$ftp->connect($config)) exit('Error:None FTP Connection!'); | |||
} | |||
if($uptype == "all") | |||
{ | |||
$row = $dsql->GetOne("SELECT id FROM #@__arctype WHERE id>'$typeid' AND ispart<>2 ORDER BY id ASC LIMIT 0,1;"); | |||
@@ -40,15 +26,15 @@ if($uptype == "all") | |||
} else { | |||
$pv = new PartView($row['id']); | |||
$pv->SetTemplet($cfg_basedir.$cfg_templets_dir."/".$templet); | |||
$pv->SaveToHtml($cfg_basedir.$cfg_cmspath."/data/js/".$row['id'].".js",$isremote); | |||
$pv->SaveToHtml($cfg_basedir.$cfg_cmspath."/data/js/".$row['id'].".js", 0); | |||
$typeid = $row['id'];; | |||
ShowMsg("成功更新".$cfg_cmspath."/data/js/".$row['id'].".js,继续进行操作!","makehtml_js_action.php?typeid=$typeid&isremote=$isremote&serviterm=$serviterm",0,100); | |||
ShowMsg("成功更新".$cfg_cmspath."/data/js/".$row['id'].".js,继续进行操作!","makehtml_js_action.php?typeid=$typeid",0,100); | |||
exit(); | |||
} | |||
} else { | |||
$pv = new PartView($typeid); | |||
$pv->SetTemplet($cfg_basedir.$cfg_templets_dir."/".$templet); | |||
$pv->SaveToHtml($cfg_basedir.$cfg_cmspath."/data/js/".$typeid.".js",$isremote); | |||
$pv->SaveToHtml($cfg_basedir.$cfg_cmspath."/data/js/".$typeid.".js", 0); | |||
echo "成功更新".$cfg_cmspath."/data/js/".$typeid.".js!"; | |||
echo "预览:"; | |||
echo "<hr>"; | |||
@@ -22,9 +22,6 @@ if(!isset($uppage)) $uppage = 0; | |||
if(empty($maxpagesize)) $maxpagesize = 50; | |||
$adminID = $cuserLogin->getUserID(); | |||
$isremote = (empty($isremote) ? 0 : $isremote); | |||
$serviterm = empty($serviterm)? "" : $serviterm; | |||
//检测获取所有栏目ID | |||
//普通生成或一键更新时更新所有栏目 | |||
if($gotype=='' || $gotype=='mkallct') | |||
@@ -102,27 +99,15 @@ if(!empty($tid)) | |||
$lv->CountRecord(); | |||
if($lv->TypeLink->TypeInfos['ispart']==0 && $lv->TypeLink->TypeInfos['isdefault']!=-1) $ntotalpage = $lv->TotalPage; | |||
else $ntotalpage = 1; | |||
if($cfg_remote_site=='Y' && $isremote=="1") | |||
{ | |||
if($serviterm!="") | |||
{ | |||
list($servurl, $servuser, $servpwd) = explode(',',$serviterm); | |||
$config = array( 'hostname' => $servurl, 'username' => $servuser, | |||
'password' => $servpwd,'debug' => 'TRUE'); | |||
} else { | |||
$config=array(); | |||
} | |||
if(!$ftp->connect($config)) exit('Error:None FTP Connection!'); | |||
} | |||
//如果栏目的文档太多,分多批次更新 | |||
if($ntotalpage <= $maxpagesize || $lv->TypeLink->TypeInfos['ispart']!=0 || $lv->TypeLink->TypeInfos['isdefault']==-1) | |||
{ | |||
$reurl = $lv->MakeHtml('', '', $isremote); | |||
$reurl = $lv->MakeHtml('', '', 0); | |||
$finishType = TRUE; | |||
} | |||
else | |||
{ | |||
$reurl = $lv->MakeHtml($mkpage, $maxpagesize, $isremote); | |||
$reurl = $lv->MakeHtml($mkpage, $maxpagesize, 0); | |||
$finishType = FALSE; | |||
$mkpage = $mkpage + $maxpagesize; | |||
if( $mkpage >= ($ntotalpage+1) ) $finishType = TRUE; | |||
@@ -146,11 +131,11 @@ if($nextpage >= $totalpage && $finishType) | |||
} else { | |||
if($finishType) | |||
{ | |||
$gourl = "makehtml_list_action.php?gotype={$gotype}&uppage=$uppage&maxpagesize=$maxpagesize&typeid=$typeid&pageno=$nextpage&isremote={$isremote}&serviterm={$serviterm}"; | |||
$gourl = "makehtml_list_action.php?gotype={$gotype}&uppage=$uppage&maxpagesize=$maxpagesize&typeid=$typeid&pageno=$nextpage"; | |||
ShowMsg("成功创建栏目:".$tid.",继续进行操作!",$gourl,0,100); | |||
exit(); | |||
} else { | |||
$gourl = "makehtml_list_action.php?gotype={$gotype}&uppage=$uppage&mkpage=$mkpage&maxpagesize=$maxpagesize&typeid=$typeid&pageno=$pageno&isremote={$isremote}&serviterm={$serviterm}"; | |||
$gourl = "makehtml_list_action.php?gotype={$gotype}&uppage=$uppage&mkpage=$mkpage&maxpagesize=$maxpagesize&typeid=$typeid&pageno=$pageno"; | |||
ShowMsg("栏目:".$tid.",继续进行操作...",$gourl,0,100); | |||
exit(); | |||
} |
@@ -17,7 +17,7 @@ if(empty($dopost)) | |||
ShowMsg("参数错误!","-1"); | |||
exit(); | |||
} | |||
$isremote = empty($isremote)? 0 : $isremote; | |||
$serviterm=empty($serviterm)? "" : $serviterm; | |||
$sm = new SiteMap(); | |||
$maplist = $sm->GetSiteMap($dopost); | |||
@@ -34,26 +34,6 @@ else | |||
$dtp = new DedeTagParse(); | |||
$dtp->LoadTemplet($tmpfile); | |||
$dtp->SaveTo($cfg_basedir.$murl); | |||
if($cfg_remote_site=='Y' && $isremote == 1) | |||
{ | |||
if($serviterm!="") | |||
{ | |||
list($servurl, $servuser, $servpwd) = explode(',', $serviterm); | |||
$config=array( 'hostname' => $servurl, 'username' => $servuser, | |||
'password' => $servpwd,'debug' => 'TRUE'); | |||
} else { | |||
$config=array(); | |||
} | |||
if( $ftp->connect($config) ) | |||
{ | |||
//分析远程文件路径 | |||
$remotefile = $murl; | |||
$localfile = '..'.$remotefile; | |||
$remotedir = preg_replace('#[^\/]*\.html#', '', $remotefile); | |||
$ftp->rmkdir($remotedir); | |||
if($ftp->upload($localfile, $remotefile, 'acii')) echo "远程发布成功!"."<br />"; | |||
} | |||
} | |||
$dtp->Clear(); | |||
echo "<a href='$murl' target='_blank'>成功更新文件: $murl 浏览...</a>"; | |||
exit(); |
@@ -11,31 +11,17 @@ | |||
require_once(dirname(__FILE__)."/config.php"); | |||
CheckPurview('sys_MakeHtml'); | |||
require_once(DEDEINC."/arc.rssview.class.php"); | |||
$isremote = empty($isremote)? 0 : $isremote; | |||
$serviterm = empty($serviterm)? "" : $serviterm; | |||
if(empty($tid)) $tid = 0; | |||
if(empty($maxrecord)) $maxrecord = 50; | |||
if($cfg_remote_site=='Y' && $isremote=="1") | |||
{ | |||
if($serviterm!="") | |||
{ | |||
list($servurl, $servuser, $servpwd) = explode(',', $serviterm); | |||
$config = array( 'hostname' => $servurl, 'username' => $servuser, | |||
'password' => $servpwd,'debug' => 'TRUE'); | |||
} else { | |||
$config=array(); | |||
} | |||
if(!$ftp->connect($config)) exit('Error:None FTP Connection!'); | |||
} | |||
$row = $dsql->GetOne("SELECT id FROM `#@__arctype` WHERE id>'$tid' AND ispart<>2 ORDER BY id ASC LIMIT 0,1;"); | |||
if(!is_array($row)) | |||
{ | |||
echo "完成所有文件更新!"; | |||
} else { | |||
$rv = new RssView($row['id'],$maxrecord); | |||
$rssurl = $rv->MakeRss($isremote); | |||
$rssurl = $rv->MakeRss(0); | |||
$tid = $row['id']; | |||
ShowMsg("成功更新".$rssurl.",继续进行操作!","makehtml_rss_action.php?tid=$tid&maxrecord=$maxrecord&isremote=$isremote&serviterm={$serviterm}",0,100); | |||
ShowMsg("成功更新".$rssurl.",继续进行操作!","makehtml_rss_action.php?tid=$tid&maxrecord=$maxrecord",0,100); | |||
} |
@@ -10,27 +10,13 @@ | |||
*/ | |||
require_once(dirname(__FILE__)."/config.php"); | |||
CheckPurview('sys_MakeHtml'); | |||
$isremote = empty($isremote)? 0 : $isremote; | |||
$serviterm = empty($serviterm)? "" : $serviterm; | |||
if(empty($dopost)) $dopost = ""; | |||
if($dopost=="ok") | |||
{ | |||
require_once(DEDEINC."/arc.specview.class.php"); | |||
if($cfg_remote_site=='Y' && $isremote=="1") | |||
{ | |||
if($serviterm!="") | |||
{ | |||
list($servurl,$servuser,$servpwd) = explode(',',$serviterm); | |||
$config=array( 'hostname' => $servurl, 'username' => $servuser, | |||
'password' => $servpwd,'debug' => 'TRUE'); | |||
} else { | |||
$config=array(); | |||
} | |||
if(!$ftp->connect($config)) exit('Error:None FTP Connection!'); | |||
} | |||
$sp = new SpecView(); | |||
$rurl = $sp->MakeHtml($isremote); | |||
$rurl = $sp->MakeHtml(0); | |||
echo "成功生成所有专题HTML列表!<a href='$rurl' target='_blank'>预览</a>"; | |||
exit(); | |||
} |
@@ -83,12 +83,7 @@ if($whereSql!='') | |||
{ | |||
$whereSql = ' WHERE '.$whereSql; | |||
} | |||
$dsql->SetQuery("SELECT name FROM `#@__member_model`"); | |||
$dsql->Execute(); | |||
while($row = $dsql->GetArray()) | |||
{ | |||
$MemberModels[] = $row; | |||
} | |||
$sql = "SELECT * FROM `#@__member` $whereSql ORDER BY $sortkey DESC "; | |||
$dlist = new DataListCP(); | |||
$dlist->SetParameter('sex',$sex); | |||
@@ -101,7 +101,7 @@ else if($dopost=='save') | |||
$keywords = cn_substrR($keywords, 60); | |||
$filename = trim(cn_substrR($filename, 40)); | |||
$userip = GetIP(); | |||
$isremote = (empty($isremote)? 0 : $isremote); | |||
$isremote = 0; | |||
$serviterm=empty($serviterm)? "" : $serviterm; | |||
if(!TestPurview('a_Check,a_AccCheck,a_MyCheck')) | |||
{ | |||
@@ -110,7 +110,10 @@ else if($dopost=='save') | |||
$adminid = $cuserLogin->getUserID(); | |||
//处理上传的缩略图 | |||
if(empty($ddisremote)) $ddisremote = 0; | |||
if(empty($ddisremote)) | |||
{ | |||
$ddisremote = 0; | |||
} | |||
$litpic = GetDDImage('none', $picname, $ddisremote); | |||
// 处理新的缩略图上传 | |||
if ($litpic_b64 != "") { | |||
@@ -286,20 +289,7 @@ else if($dopost=='save') | |||
//生成HTML | |||
InsertTags($tags, $arcID); | |||
if($cfg_remote_site=='Y' && $isremote=="1") | |||
{ | |||
if($serviterm!="") | |||
{ | |||
list($servurl, $servuser, $servpwd) = explode(',',$serviterm); | |||
$config = array( 'hostname' => $servurl, 'username' => $servuser, | |||
'password' => $servpwd,'debug' => 'TRUE'); | |||
} else { | |||
$config = array(); | |||
} | |||
if(!$ftp->connect($config)) exit('Error:None FTP Connection!'); | |||
} | |||
$arcUrl = MakeArt($arcID, TRUE, TRUE, $isremote); | |||
$arcUrl = MakeArt($arcID, TRUE, TRUE, 0); | |||
if($arcUrl=='') | |||
{ | |||
$arcUrl = $cfg_phpurl."/view.php?aid=$arcID"; | |||
@@ -146,7 +146,7 @@ else if($dopost=='save') | |||
$description = cn_substrR($description,$cfg_auot_description); | |||
$keywords = cn_substrR($keywords,60); | |||
$filename = trim(cn_substrR($filename,40)); | |||
$isremote = (empty($isremote)? 0 : $isremote); | |||
$isremote = 0; | |||
$serviterm=empty($serviterm)? "" : $serviterm; | |||
if(!TestPurview('a_Check,a_AccCheck,a_MyCheck')) | |||
{ | |||
@@ -312,18 +312,7 @@ else if($dopost=='save') | |||
//生成HTML | |||
UpIndexKey($id, $arcrank, $typeid, $sortrank, $tags); | |||
if($cfg_remote_site=='Y' && $isremote=="1") | |||
{ | |||
if($serviterm!="") | |||
{ | |||
list($servurl, $servuser, $servpwd) = explode(',', $serviterm); | |||
$config = array( 'hostname' => $servurl, 'username' => $servuser, | |||
'password' => $servpwd, 'debug' => 'TRUE'); | |||
} else { | |||
$config = array(); | |||
} | |||
if(!$ftp->connect($config)) exit('Error:None FTP Connection!'); | |||
} | |||
$arcUrl = MakeArt($id, TRUE, TRUE, $isremote); | |||
if($arcUrl=="") | |||
{ | |||
@@ -66,13 +66,16 @@ else if($dopost=='save') | |||
$description = cn_substrR($description, $cfg_auot_description); | |||
$keywords = cn_substrR($keywords, 60); | |||
$filename = trim(cn_substrR($filename, 40)); | |||
$isremote = (empty($isremote)? 0 : $isremote); | |||
$isremote = 0; | |||
$serviterm=empty($serviterm)? "" : $serviterm; | |||
if(!TestPurview('a_Check,a_AccCheck,a_MyCheck')) $arcrank = -1; | |||
$adminid = $cuserLogin->getUserID(); | |||
//处理上传的缩略图 | |||
if(empty($ddisremote)) $ddisremote = 0; | |||
if(empty($ddisremote)) | |||
{ | |||
$ddisremote = 0; | |||
} | |||
$litpic = GetDDImage('none', $picname, $ddisremote); | |||
// 处理新的缩略图上传 | |||
if ($litpic_b64 != "") { | |||
@@ -218,18 +221,6 @@ else if($dopost=='save') | |||
//生成HTML | |||
InsertTags($tags, $arcID); | |||
if($cfg_remote_site=='Y' && $isremote=="1") | |||
{ | |||
if($serviterm!="") | |||
{ | |||
list($servurl, $servuser, $servpwd) = explode(',', $serviterm); | |||
$config = array( 'hostname' => $servurl, 'username' => $servuser, | |||
'password' => $servpwd, 'debug' => 'TRUE'); | |||
} else { | |||
$config = array(); | |||
} | |||
if(!$ftp->connect($config)) exit('Error:None FTP Connection!'); | |||
} | |||
$artUrl = MakeArt($arcID, TRUE, TRUE, $isremote); | |||
if($artUrl=='') | |||
{ | |||
@@ -76,7 +76,7 @@ else if($dopost=='save') | |||
$description = cn_substrR($description, $cfg_auot_description); | |||
$keywords = trim(cn_substrR($keywords, 60)); | |||
$filename = trim(cn_substrR($filename, 40)); | |||
$isremote = (empty($isremote)? 0 : $isremote); | |||
$isremote = 0; | |||
$serviterm = empty($serviterm)? "" : $serviterm; | |||
if(!TestPurview('a_Check,a_AccCheck,a_MyCheck')) | |||
{ | |||
@@ -265,18 +265,6 @@ else if($dopost=='save') | |||
//生成HTML | |||
UpIndexKey($id, $arcrank, $typeid, $sortrank, $tags); | |||
if($cfg_remote_site=='Y' && $isremote=="1") | |||
{ | |||
if($serviterm!="") | |||
{ | |||
list($servurl, $servuser, $servpwd) = explode(',', $serviterm); | |||
$config = array( 'hostname' => $servurl, 'username' => $servuser, | |||
'password' => $servpwd, 'debug' => 'TRUE'); | |||
} else { | |||
$config=array(); | |||
} | |||
if(!$ftp->connect($config)) exit('Error:None FTP Connection!'); | |||
} | |||
$artUrl = MakeArt($id, TRUE, TRUE, $isremote); | |||
if($artUrl=='') | |||
{ | |||
@@ -1,73 +0,0 @@ | |||
<?php | |||
/** | |||
* 多站点设置 | |||
* | |||
* @version $Id: sys_multiserv.php 1 22:28 2010年7月20日Z tianya $ | |||
* @package DedeCMS.Administrator | |||
* @copyright Copyright (c) 2007 - 2020, DesDev, Inc. | |||
* @license http://help.dedecms.com/usersguide/license.html | |||
* @link http://www.dedecms.com | |||
*/ | |||
require_once(dirname(__FILE__)."/config.php"); | |||
CheckPurview('sys_SoftConfig'); | |||
if(empty($dopost)) $dopost = ''; | |||
//保存 | |||
if($dopost=="save") | |||
{ | |||
$configfile = DEDEDATA."/cache/inc_remote_config.php"; | |||
$rminfo = serialize(array('rmhost'=>$c_rmhost, 'rmport'=>$c_rmport, | |||
'rmname'=>$c_rmname, 'rmpwd'=>$c_rmpwd)); | |||
$query = "UPDATE `#@__multiserv_config` SET | |||
`remoteuploads` = '$c_remoteuploads' , | |||
`remoteupUrl` ='$c_remoteupUrl' , | |||
`rminfo` = '$rminfo', | |||
`servinfo` = '$c_servinfo'"; | |||
$dsql->ExecuteNoneQuery($query); | |||
//更新配置缓存文件 | |||
$configstr = "\$remoteuploads = '".$c_remoteuploads."';\r\n"; | |||
$configstr .= "\$remoteupUrl = '".$c_remoteupUrl."';\r\n"; | |||
$configstr .= "\$rmhost = '".$c_rmhost."';\r\n"; | |||
$configstr .= "\$rmport = '".$c_rmport."';\r\n"; | |||
$configstr .= "\$rmname = '".$c_rmname."';\r\n"; | |||
$configstr .= "\$rmpwd = '".$c_rmpwd."';\r\n"; | |||
$configstr = "<"."?php\r\n".$configstr."?".">\r\n"; | |||
$fp = fopen($configfile, "w") or die("写入文件 $safeconfigfile 失败,请检查权限!"); | |||
fwrite($fp, $configstr); | |||
fclose($fp); | |||
ShowMsg('成功保存参数!', 'sys_multiserv.php'); | |||
exit(); | |||
} | |||
//读取参数 | |||
$row = $dsql->GetOne("SELECT * FROM `#@__multiserv_config` "); | |||
if(!is_array($row)) | |||
{ | |||
$dsql->ExecuteNoneQuery("INSERT INTO `#@__multiserv_config` | |||
(`remoteuploads`, `remoteupUrl`, `rminfo`, `servinfo`) | |||
VALUES ('0','http://img.dedecms.com', '', '')" | |||
); | |||
$row['remoteuploads'] = 1; | |||
$row['remoteupUrl'] = 'http://img.dedecms.com'; | |||
$row['rminfo'] = ''; | |||
$row['servinfo'] = ''; | |||
} | |||
//对配置信息进行处理 | |||
if(!empty($row['rminfo'])) | |||
{ | |||
$row['rminfo'] = unserialize($row['rminfo']); | |||
} | |||
//获取会员列表 | |||
$query = "SELECT #@__admin.*,#@__admintype.typename FROM #@__admin LEFT JOIN #@__admintype ON #@__admin.usertype = #@__admintype.rank"; | |||
$dsql->SetQuery($query); | |||
$dsql->Execute(); | |||
while($row3 = $dsql->GetArray()) | |||
{ | |||
$adminLists[] = $row3; | |||
} | |||
include DedeInclude('templets/sys_multiserv.htm'); | |||
exit(); |
@@ -227,14 +227,7 @@ | |||
echo "<a href='javascript:AddTypeid2();'>【<u>选择副栏目</u>】</a>"; | |||
} | |||
?> | |||
<?php | |||
if($cfg_remote_site=='Y') | |||
{ | |||
?> | |||
<input name="isremote" type="checkbox" id="isremote" value="1" | |||
<?php if($cfg_title_site=='Y') echo "checked";?>>是否同步远程发布 <?php GetFtp();?> <?php | |||
} | |||
?> </td> | |||
</td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -195,16 +195,7 @@ body { | |||
echo '</select>'; | |||
?> | |||
<img src='images/menusearch.gif' style='cursor:pointer' onClick="ShowCatMap(event, this, <?php echo $channelid; ?>, 'typeid', '<?php echo $arcRow['typeid']; ?>')" alt='快捷选择' title='快捷选择' /> | |||
<?php | |||
if($cfg_remote_site=='Y') | |||
{ | |||
?> | |||
<input name="isremote" type="checkbox" id="isremote" value="1" <?php if($cfg_title_site=='Y') echo "checked";?>> | |||
是否同步远程发布 | |||
<?php GetFtp();?> | |||
<?php | |||
} | |||
?></td> | |||
</td> | |||
</tr> | |||
</table></td> | |||
</tr> | |||
@@ -224,14 +224,7 @@ | |||
echo "<a href='javascript:AddTypeid2();'>【<u>选择副栏目</u>】</a>"; | |||
} | |||
?> | |||
<?php | |||
if($cfg_remote_site=='Y') | |||
{ | |||
?> | |||
<input name="isremote" type="checkbox" id="isremote" value="1" | |||
<?php if($cfg_title_site=='Y') echo "checked";?>>是否同步远程发布 <?php GetFtp();?> <?php | |||
} | |||
?> </td> | |||
</td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -210,14 +210,7 @@ | |||
?> | |||
<img src='images/menusearch.gif' style='cursor:pointer' | |||
onClick="ShowCatMap(event, this, <?php echo $channelid; ?>, 'typeid')" alt='快捷选择' title='快捷选择' /> | |||
<?php | |||
if($cfg_remote_site=='Y') | |||
{ | |||
?> | |||
<input name="isremote" type="checkbox" id="isremote" value="1" | |||
<?php if($cfg_title_site=='Y') echo "checked";?>>是否同步远程发布 <?php GetFtp();?> <?php | |||
} | |||
?> </td> | |||
</td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -182,13 +182,6 @@ function checkSubmit() | |||
<img src='images/menusearch.gif' style='cursor:pointer;' onClick="ShowCatMap(event, this, <?php echo $channelid; ?>, 'typeid')" alt='快捷选择' title='快捷选择' /> | |||
<a href='catalog_main.php'>【<u>栏目管理</u>】</a> | |||
<a href='catalog_add.php?listtype=all'>【<u>增加大栏目</u>】</a> | |||
<?php | |||
if($cfg_remote_site=='Y') | |||
{ | |||
?> | |||
<input name="isremote" type="checkbox" id="isremote" value="1" <?php if($cfg_title_site=='Y') echo "checked";?>>是否同步远程发布 <?php GetFtp();?> <?php | |||
} | |||
?> | |||
</td> | |||
</tr> | |||
</table></td> | |||
@@ -172,13 +172,7 @@ function checkSubmit() | |||
echo "</select>"; | |||
?> | |||
<img src='images/menusearch.gif' style='cursor:pointer' onClick="ShowCatMap(event, this, <?php echo $channelid; ?>, 'typeid', '<?php echo $addRow['typeid']; ?>')" alt='快捷选择' title='快捷选择' /> | |||
<?php | |||
if($cfg_remote_site=='Y') | |||
{ | |||
?> | |||
<input name="isremote" type="checkbox" id="isremote" value="1" <?php if($cfg_title_site=='Y') echo "checked";?>>是否同步远程发布 <?php GetFtp();?> <?php | |||
} | |||
?> </td> | |||
</td> | |||
</tr> | |||
</table></td> | |||
</tr> | |||
@@ -253,14 +253,7 @@ | |||
echo "<a href='javascript:AddTypeid2();'>【<u>选择副栏目</u>】</a>"; | |||
} | |||
?> | |||
<?php | |||
if($cfg_remote_site=='Y') | |||
{ | |||
?> | |||
<input name="isremote" type="checkbox" id="isremote" value="1" | |||
<?php if($cfg_title_site=='Y') echo "checked";?>>是否同步远程发布 <?php GetFtp();?> <?php | |||
} | |||
?> </td> | |||
</td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -229,17 +229,7 @@ | |||
<img src='images/menusearch.gif' style='cursor:pointer' | |||
onClick="ShowCatMap(event, this, <?php echo $channelid; ?>, 'typeid', '<?php echo $arcRow['typeid']; ?>')" | |||
alt='快捷选择' title='快捷选择' /> | |||
<?php | |||
if($cfg_remote_site=='Y') | |||
{ | |||
?> | |||
<input name="isremote" type="checkbox" id="isremote" value="1" | |||
<?php if($cfg_title_site=='Y') echo "checked";?>> | |||
是否同步远程发布 | |||
<?php GetFtp();?> | |||
<?php | |||
} | |||
?></td> | |||
</td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -53,16 +53,7 @@ | |||
</tr> | |||
<tr> | |||
<td height="20" colspan="2" bgcolor="#ffffff" align="center"> | |||
<input name="b112" type="button" class='coolbg np' value="开始生成HTML" onClick="document.form1.submit();" style="width:100"> <?php | |||
if($cfg_remote_site=='Y') | |||
{ | |||
?> | |||
<input name="isremote" type="checkbox" id="isremote" value="1"> | |||
是否同步远程发布到 | |||
<?php GetFtp();?> | |||
<?php | |||
} | |||
?> | |||
<input name="b112" type="button" class='coolbg np' value="开始生成HTML" onClick="document.form1.submit();" style="width:100"> | |||
| |||
<input type="button" name="b113" value="查看所有文档" class='coolbg np' onClick="document.form2.submit();" style="width:100"></td> | |||
</tr> | |||
@@ -87,14 +87,6 @@ function SelectTemplets(fname) | |||
<input type="submit" class='coolbg np' name="Submit" value="更新主页HTML" /> | |||
| |||
<?php | |||
if($cfg_remote_site=='Y') | |||
{ | |||
?> | |||
<input name="isremote" type="checkbox" id="isremote" value="1"> | |||
是否同步远程发布 <?php GetFtp();?> <?php | |||
} | |||
?> | |||
</td> | |||
</tr> | |||
@@ -71,13 +71,6 @@ function SelectTemplets(fname) | |||
<tr> | |||
<td height="20" colspan="2" bgcolor="#ffffff" align="center"> | |||
<input name="b112" type="button" class="coolbg np" value="生成/更新JS文件" onClick="document.form1.submit();" style="width:120px"> | |||
<?php | |||
if($cfg_remote_site=='Y') | |||
{ | |||
?> | |||
<input name="isremote" type="checkbox" id="isremote" value="1">是否同步远程发发布 | |||
<?php GetFtp();?> | |||
<?php }?> | |||
</td> | |||
</tr> | |||
</form> | |||
@@ -52,16 +52,7 @@ | |||
<tr> | |||
<td height="20" colspan="2" bgcolor="#ffffff" align="center"> | |||
<input name="b112" type="button" class="coolbg np" value="开始生成HTML" onClick="document.form1.submit();" style="width:100px"> | |||
<?php | |||
if($cfg_remote_site=='Y') | |||
{ | |||
?> | |||
<input name="isremote" type="checkbox" id="isremote" value="1">是否同步远程发布 | |||
<?php GetFtp();?> | |||
<?php | |||
} | |||
?> | |||
</td> | |||
</td> | |||
</tr> | |||
</form> | |||
<tr bgcolor="#F9FCEF"> | |||
@@ -30,13 +30,6 @@ | |||
<tr> | |||
<td height="20" colspan="2" bgcolor="#ffffff" align="center"> | |||
<input name="b112" type="button" class="coolbg np" value="开始更新" onClick="document.form1.submit();" style="width:100px"> | |||
<?php | |||
if($cfg_remote_site=='Y') | |||
{ | |||
?> | |||
<input name="isremote" type="checkbox" id="isremote" value="1">是否同步远程发发布 | |||
<?php GetFtp();?> | |||
<?php }?> | |||
</td> | |||
</tr> | |||
</form> | |||
@@ -25,13 +25,6 @@ | |||
<tr> | |||
<td height="20" colspan="2" bgcolor="#ffffff" align="center"> | |||
<input name="b112" type="button" class="coolbg np" value="开始更新" onClick="document.form1.submit();" style="width:100px" /> | |||
<?php | |||
if($cfg_remote_site=='Y') | |||
{ | |||
?> | |||
<input name="isremote" type="checkbox" id="isremote" value="1">是否同步远程发发布 | |||
<?php GetFtp();?> | |||
<?php }?> | |||
</td> | |||
</tr> | |||
</form> | |||
@@ -26,13 +26,6 @@ | |||
</tr> | |||
<tr> | |||
<td height="20" bgcolor="#ffffff" align="center"> <input name="b112" type="button" class="coolbg np" value="开始生成HTML" onClick="document.form1.submit();" style="width:100"> | |||
<?php | |||
if($cfg_remote_site=='Y') | |||
{ | |||
?> | |||
<input name="isremote" type="checkbox" id="isremote" value="1">是否同步远程发发布 | |||
<?php GetFtp();?> | |||
<?php }?> | |||
</td> | |||
</tr> | |||
</form> | |||
@@ -61,9 +61,7 @@ function changeDopost(postval) | |||
<td width="185" align="left" valign="top" bgcolor="<?php echo $bgcolor;?>"><?php echo $value['filedir'] ;?><?php echo ($value['issystem']==1)? '<font color="red">[系统]</font>' : '' ;?></td> | |||
<td width="265" valign="top" bgcolor="<?php echo $bgcolor;?>"><?php echo $value['description'] ;?></td> | |||
<td width="195" align="center" valign="top" bgcolor="<?php echo $bgcolor;?>"><label> | |||
<?php | |||
GetFtp($value['dfserv'], "serviterm[$key]"); | |||
?> | |||
</label></td> | |||
<td width="196" align="center" valign="top" bgcolor="<?php echo $bgcolor;?>"><?php echo GetState($value['state']) ;?></td> | |||
</tr> | |||
@@ -1,139 +0,0 @@ | |||
<!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 $cfg_soft_lang; ?>"> | |||
<title>服务器分布/远程</title> | |||
<link href="css/base.css" rel="stylesheet" type="text/css"> | |||
<script language="JavaScript"> | |||
function AddServer() | |||
{ | |||
var op=""; | |||
var sel = document.getElementById("c_userlist"); | |||
for(var i=0;i<sel.length;i++){ | |||
if(sel.options[i].selected == true){ | |||
op +=sel.options[i].value+","; | |||
} | |||
} | |||
if(document.form1.c_servurl.value==""||document.form1.c_servurl.value=="http://"){ alert('服务器网址不能为空!'); return ;} | |||
if(document.form1.c_servname.value==""){ alert('服务器名称不能为空!'); return ;} | |||
if(document.form1.c_servuser.value==""){ alert('FTP用户名不能为空!'); return ;} | |||
if(document.form1.c_servpwd.value==""){ alert('FTP密码不能为空!'); return ;} | |||
document.form1.c_servinfo.value += document.form1.c_servname.value+" | "+document.form1.c_servurl.value+ | |||
" | "+document.form1.c_servport.value+" | "+document.form1.c_servuser.value+" | "+document.form1.c_servpwd.value+" | "+op+ | |||
"\r\n"; | |||
} | |||
</script> | |||
</head> | |||
<body background='images/allbg.gif' leftmargin='8' topmargin='8'> | |||
<table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" align="center"> | |||
<form name="form1" action="sys_multiserv.php" method="post"> | |||
<input type="hidden" name="dopost" value="save" /> | |||
<tr> | |||
<td height="28" colspan="2" background='images/tbg.gif'> <table width="98%" border="0" cellpadding="0" cellspacing="0"> | |||
<tr> | |||
<td width="30%" height="18" style="padding-left:10px;"><strong>服务器分布/远程设置:</strong></td> | |||
<td width="70%" align="right"> </td> | |||
</tr> | |||
</table></td> | |||
</tr> | |||
<tr> | |||
<td colspan="2" bgcolor="#FFFFFF">在开启分布/远程设置后需要在栏目中对相关的站点进行设置,例如子域名、后台栏目生成</td> | |||
</tr> | |||
<tr> | |||
<td height="26" colspan="2" bgcolor="#F9FCEF"> | |||
<strong>附件服务器设置: </strong></td> | |||
</tr> | |||
<tr> | |||
<td bgcolor="#FFFFFF" width="19%">是否启用附件服务器:</td> | |||
<td width="81%" bgcolor="#FFFFFF"> | |||
<input name="c_remoteuploads" type="radio" class="np" value="1" <?php echo ($row['remoteuploads']==1)? 'checked' : '';?>/> | |||
启用 | |||
<input name="c_remoteuploads" type="radio" class="np" value="0" <?php echo ($row['remoteuploads']==0)? 'checked' : '';?>/> | |||
不启用 | |||
<small style="color:#999">开启后附件将同步远程发布到附件服务器中</small></td> | |||
</tr> | |||
<tr> | |||
<td bgcolor="#FFFFFF">附件服务器域名:</td> | |||
<td bgcolor="#FFFFFF"> <label> | |||
<input name="c_remoteupUrl" type="text" id="c_remoteupUrl" value="<?php echo empty($row['remoteupUrl'])? '' :$row['remoteupUrl'];?>" size="35"> | |||
<small style="color:#999"> 例如:http://img.dedecms.com,开启后图片地址都变为远程地址</small></label></td> | |||
</tr> | |||
<tr> | |||
<td valign="top" bgcolor="#FFFFFF">远程服务器(FTP):</td> | |||
<td align="center" bgcolor="#FFFFFF"><table width="98%" border="0" cellspacing="5" cellpadding="0"> | |||
<tr> | |||
<td width="14%">主机IP:</td> | |||
<td width="86%" style="text-align:left;"><input name="c_rmhost" type="text" id="c_rmhost" value="<?php echo empty($row['rminfo']['rmhost'])? '' : $row['rminfo']['rmhost'];?>" size="35"></td> | |||
</tr> | |||
<tr> | |||
<td>FTP端口:</td> | |||
<td style="text-align:left;"><input name="c_rmport" type="text" id="c_rmport" value="<?php echo empty($row['rminfo']['rmport'])? '' :$row['rminfo']['rmport'];?>" size="35"></td> | |||
</tr> | |||
<tr> | |||
<td>FTP用户名</td> | |||
<td style="text-align:left;"><input name="c_rmname" type="text" id="c_rmname" value="<?php echo empty($row['rminfo']['rmname'])? '': $row['rminfo']['rmname'];?>" size="35"></td> | |||
</tr> | |||
<tr> | |||
<td>FTP密码</td> | |||
<td style="text-align:left;"><input name="c_rmpwd" type="text" id="c_rmpwd" value="<?php echo empty($row['rminfo']['rmpwd'])? '': $row['rminfo']['rmpwd'];?>" size="35"></td> | |||
</tr> | |||
</table></td> | |||
</tr> | |||
<tr> | |||
<td height="26" colspan="2" bgcolor="#F9FCEF"> | |||
<strong>远程服务器列表:</strong>(FTP镜像) <small style="color:#999">添加的服务器配置将在前台远程发布中可选</small></td> | |||
</tr> | |||
<tr> | |||
<td colspan="2" bgcolor="#FFFFFF"> | |||
<table width="98%" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="160" height="30" align="right" style="line-height:28px;">名称: | |||
</td> | |||
<td width="181" align="left" style="line-height:28px;"><input name="c_servname" type="text" id="c_servname" value="站点1" size="22" /></td> | |||
<td width="102" rowspan="6" align="center"><span style="line-height:28px;"> | |||
<input type="button" name="Submit2" value="增加一项" onClick="AddServer()" class="coolbg np" /> | |||
</span></td> | |||
<td width="832">自定义文本编辑框</td> | |||
</tr> | |||
<tr> | |||
<td width="160" height="30" align="right" style="line-height:28px;">服务器IP:</td> | |||
<td height="30" align="left" style="line-height:28px;"><input name="c_servurl" type="text" id="c_servurl" size="22" /></td> | |||
<td width="832" rowspan="5" valign="top"><textarea name="c_servinfo" id="c_servinfo" style="width:100%;height:150px"><?php echo $row['servinfo'] ;?></textarea><br/> | |||
(<strong>格式</strong>:名称|服务器IP|FTP端口|FTP用户名|FTP密码|管理员,每行一条,以","结束)</td> | |||
</tr> | |||
<tr> | |||
<td width="160" height="30" align="right" style="line-height:28px;"> FTP端口:</td> | |||
<td height="30" align="left" style="line-height:28px;"><input name="c_servport" type="text" id="c_servport" value="21" size="6" /></td> | |||
</tr> | |||
<tr> | |||
<td width="160" height="30" align="right" style="line-height:28px;">FTP用户名:</td> | |||
<td height="30" align="left" style="line-height:28px;"><input name="c_servuser" type="text" id="c_servuser" size="22"></td> | |||
</tr> | |||
<tr> | |||
<td width="160" height="15" align="right" style="line-height:28px;">FTP密码:</td> | |||
<td height="15" align="left" style="line-height:28px;"><input name="c_servpwd" type="text" id="c_servpwd" size="22"></td> | |||
</tr> | |||
<tr> | |||
<td height="7" align="right" style="line-height:28px;">管理员:</td> | |||
<td height="7" align="left" style="line-height:28px;"> <select name="c_userlist" size="3" multiple id="c_userlist"> | |||
<?php foreach ($adminLists as $adminList) { ?> | |||
<option value="<?php echo $adminList['userid'];?>"><?php echo $adminList['uname'];?> | <?php echo $adminList['typename'];?></option> | |||
<?php }?> | |||
</select> | |||
<br/>(多选)</td> | |||
</tr> | |||
</table> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="41" colspan="2" bgcolor="#FAFAF1" align="center"> | |||
<input type="submit" name="Submit" value="保存设置" class="coolbg np" /> | |||
<input type="reset" name="rset" id="rset" value="重置" class="coolbg np" /> | |||
</td> | |||
</tr> | |||
</form> | |||
</table> | |||
</body> | |||
</html> |
@@ -766,15 +766,6 @@ CREATE TABLE `#@__mtypes` ( | |||
PRIMARY KEY (`mtypeid`) | |||
) TYPE=MyISAM; | |||
DROP TABLE IF EXISTS `#@__multiserv_config`; | |||
CREATE TABLE `#@__multiserv_config` ( | |||
`remoteuploads` smallint(6) NOT NULL default '0', | |||
`remoteupUrl` text NOT NULL, | |||
`rminfo` text, | |||
`servinfo` mediumtext, | |||
PRIMARY KEY (`remoteuploads`) | |||
) TYPE=MyISAM; | |||
DROP TABLE IF EXISTS `#@__myad`; | |||
CREATE TABLE `#@__myad` ( | |||
`aid` mediumint(8) unsigned NOT NULL auto_increment, | |||