diff --git a/src/admin/album_add.php b/src/admin/album_add.php index c18d8db4..98814064 100644 --- a/src/admin/album_add.php +++ b/src/admin/album_add.php @@ -181,7 +181,7 @@ else if ($dopost == 'save') { $album = $albumsArr[$i]; $data = explode(',', $album['img']); $ext = ".png"; - if(strpos($data[0], "data:image/jpeg") === 0){ + if (strpos($data[0], "data:image/jpeg") === 0){ $ext = ".jpg"; } elseif (strpos($data[0], "data:image/gif") === 0) { $ext = ".gif"; @@ -252,7 +252,7 @@ else if ($dopost == 'save') { if (!$dsql->ExecuteNoneQuery($query)) { $gerr = $dsql->GetError(); $dsql->ExecuteNoneQuery(" DELETE FROM `#@__arctiny` WHERE id='$arcID' "); - ShowMsg("把数据保存到数据库主表 `#@__archives` 时出错,请把相关信息提交给DedeBIZ官方".str_replace('"', '', $gerr), "javascript:;"); + ShowMsg("数据保存到数据库主表`#@__archives`时出错,请检查数据库字段".str_replace('"', '', $gerr), "javascript:;"); exit(); } //加入附加表 @@ -270,7 +270,7 @@ else if ($dopost == 'save') { $gerr = $dsql->GetError(); $dsql->ExecuteNoneQuery("DELETE FROM `#@__archives` WHERE id='$arcID'"); $dsql->ExecuteNoneQuery("DELETE FROM `#@__arctiny` WHERE id='$arcID'"); - ShowMsg("把数据保存到数据库附加表 `{$addtable}` 时出错,请把相关信息提交给DedeBIZ官方".str_replace('"', '', $gerr), "javascript:;"); + ShowMsg("数据保存到数据库附加表时出错,请检查数据库字段".str_replace('"', '', $gerr), "javascript:;"); exit(); } //生成网页 diff --git a/src/admin/album_edit.php b/src/admin/album_edit.php index 1aa68b39..8098b3eb 100644 --- a/src/admin/album_edit.php +++ b/src/admin/album_edit.php @@ -124,7 +124,7 @@ else if ($dopost == 'save') { $query = " UPDATE `#@__archives` SET typeid='$typeid',typeid2='$typeid2',sortrank='$sortrank',flag='$flag',click='$click',ismake='$ismake',arcrank='$arcrank',money='$money',title='$title',color='$color',source='$source',writer='$writer',litpic='$litpic',pubdate='$pubdate',notpost='$notpost',description='$description',keywords='$keywords',shorttitle='$shorttitle',filename='$filename',dutyadmin='$adminid' WHERE id='$id'; "; if (!$dsql->ExecuteNoneQuery($query)) { - ShowMsg("更新数据库 archives 表时出错,请检查".$dsql->GetError(), "javascript:;"); + ShowMsg("数据保存到数据库主表`#@__archives`时出错,请检查数据库字段".$dsql->GetError(), "javascript:;"); exit(); } $imgurls = "{dede:pagestyle maxwidth='$maxwidth' pagepicnum='$pagepicnum' ddmaxwidth='$ddmaxwidth' row='$row' col='$col' value='$pagestyle'/}\r\n"; @@ -251,7 +251,7 @@ else if ($dopost == 'save') { $album = $albumsArr[$i]; $data = explode(',', $album['img']); $ext = ".png"; - if(strpos($data[0], "data:image/jpeg") === 0){ + if (strpos($data[0], "data:image/jpeg") === 0){ $ext = ".jpg"; } elseif (strpos($data[0], "data:image/gif") === 0) { $ext = ".gif"; @@ -305,22 +305,9 @@ else if ($dopost == 'save') { $addtable = trim($cts['addtable']); if ($addtable != '') { $useip = GetIP(); - $query = "Update `$addtable` - set typeid='$typeid', - pagestyle='$pagestyle', - body='$body', - maxwidth = '$maxwidth', - ddmaxwidth = '$ddmaxwidth', - pagepicnum = '$pagepicnum', - imgurls='$imgurls', - `row`='$row', - col='$col', - isrm='$isrm'{$inadd_f}, - redirecturl='$redirecturl', - userip = '$useip' - WHERE aid='$id'; "; + $query = "UPDATE `$addtable` SET typeid='$typeid',pagestyle='$pagestyle',body='$body',maxwidth='$maxwidth',ddmaxwidth='$ddmaxwidth',pagepicnum='$pagepicnum',imgurls='$imgurls',`row`='$row',col='$col',isrm='$isrm'{$inadd_f},redirecturl='$redirecturl',userip='$useip' WHERE aid='$id'; "; if (!$dsql->ExecuteNoneQuery($query)) { - ShowMsg("更新附加表 `$addtable` 时出错,请检查原因".$dsql->GetError(), "javascript:;"); + ShowMsg("数据保存到数据库附加表时出错,请检查数据库字段".$dsql->GetError(), "javascript:;"); exit(); } } diff --git a/src/admin/archives_add.php b/src/admin/archives_add.php index ed321268..1e75d07c 100644 --- a/src/admin/archives_add.php +++ b/src/admin/archives_add.php @@ -136,7 +136,7 @@ else if ($dopost == 'save') { if (!$dsql->ExecuteNoneQuery($query)) { $gerr = $dsql->GetError(); $dsql->ExecuteNoneQuery("DELETE FROM `#@__arctiny` WHERE id='$arcID'"); - ShowMsg("把数据保存到数据库主表 `#@__archives` 时出错,请把相关信息提交给DedeBIZ官方".str_replace('"', '', $gerr), "javascript:;"); + ShowMsg("数据保存到数据库主表`#@__archives`时出错,请检查数据库字段".str_replace('"', '', $gerr), "javascript:;"); exit(); } //保存到附加表 @@ -149,7 +149,7 @@ else if ($dopost == 'save') { $gerr = $dsql->GetError(); $dsql->ExecuteNoneQuery("DELETE FROM `#@__archives` WHERE id='$arcID'"); $dsql->ExecuteNoneQuery("DELETE FROM `#@__arctiny` WHERE id='$arcID'"); - ShowMsg("把数据保存到数据库附加表 `{$addtable}` 时出错,请把相关信息提交给DedeBIZ官方".str_replace('"', '', $gerr), "javascript:;"); + ShowMsg("数据保存到数据库附加表时出错,请检查数据库字段".str_replace('"', '', $gerr), "javascript:;"); exit(); } } diff --git a/src/admin/archives_do.php b/src/admin/archives_do.php index 402a5538..a814314b 100644 --- a/src/admin/archives_do.php +++ b/src/admin/archives_do.php @@ -30,7 +30,7 @@ if ($dopost == 'editArchives') { if ($gurl == '') $gurl = 'article_edit.php'; header("location:{$gurl}?aid=$aid"); exit(); -} else if($dopost == 'upload_base64_image') { +} else if ($dopost == 'upload_base64_image') { if ($litpic_b64 != "") { $data = explode(',', $litpic_b64); $ntime = time(); @@ -155,7 +155,7 @@ else if ($dopost == "uploadLitpic") { $msg = ""; echo $msg; diff --git a/src/admin/file_manage_control.php b/src/admin/file_manage_control.php index c909a976..a59ff325 100644 --- a/src/admin/file_manage_control.php +++ b/src/admin/file_manage_control.php @@ -74,7 +74,7 @@ else if ($fmdo == "edit") { /* 文件编辑,可视化模式 function __saveEditView(); -else if($fmdo=="editview") +else if ($fmdo=="editview") { $filename = str_replace("..","",$filename); $file = "$cfg_basedir$activepath/$filename"; @@ -83,7 +83,7 @@ else if($fmdo=="editview") $fp = fopen($file,"w"); fputs($fp,$str); fclose($fp); - if(empty($backurl)) + if (empty($backurl)) { $backurl = "file_manage_main.php?activepath=$activepath"; } diff --git a/src/admin/freelist_edit.php b/src/admin/freelist_edit.php index 8929b339..09fd57b3 100644 --- a/src/admin/freelist_edit.php +++ b/src/admin/freelist_edit.php @@ -39,7 +39,7 @@ if (empty($dopost)) { if (!empty($innertext)) $innertext = stripslashes($innertext); $listTag = "{dede:list $atts}$innertext{/dede:list}"; $listTag = addslashes($listTag); - $inquery = "UPDATE `#@__freelist` set title='$title',namerule='$namerule',listdir='$listdir', defaultpage='$defaultpage',nodefault='$nodefault',templet='$templet',edtime='$edtime',`maxpage`='$maxpage',listtag='$listTag',keywords='$keywords',description='$description' WHERE aid='$aid';"; + $inquery = "UPDATE `#@__freelist` SET title='$title',namerule='$namerule',listdir='$listdir', defaultpage='$defaultpage',nodefault='$nodefault',templet='$templet',edtime='$edtime',`maxpage`='$maxpage',listtag='$listTag',keywords='$keywords',description='$description' WHERE aid='$aid';"; $dsql->ExecuteNoneQuery($inquery); ShowMsg("成功修改一个自由列表", "freelist_main.php"); exit(); diff --git a/src/admin/freelist_main.php b/src/admin/freelist_main.php index 66c04723..af161c2a 100644 --- a/src/admin/freelist_main.php +++ b/src/admin/freelist_main.php @@ -12,11 +12,11 @@ require_once(dirname(__FILE__)."/config.php"); CheckPurview('c_FreeList'); require_once DEDEINC.'/channelunit.func.php'; setcookie("ENV_GOBACK_URL",$dedeNowurl,time()+3600,"/"); -if(empty($pagesize)) $pagesize = 30; -if(empty($pageno)) $pageno = 1; -if(empty($dopost)) $dopost = ''; -if(empty($orderby)) $orderby = 'aid'; -if(empty($keyword)) +if (empty($pagesize)) $pagesize = 30; +if (empty($pageno)) $pageno = 1; +if (empty($dopost)) $dopost = ''; +if (empty($orderby)) $orderby = 'aid'; +if (empty($keyword)) { $keyword = ''; $addget = ''; @@ -26,14 +26,14 @@ if(empty($keyword)) $addsql = " where title like '%$keyword%' "; } //重载列表 -if($dopost=='getlist') +if ($dopost=='getlist') { AjaxHead(); GetTagList($dsql,$pageno,$pagesize,$orderby); exit(); } //删除字段 -else if($dopost=='del') +else if ($dopost=='del') { $aid = preg_replace("#[^0-9]#", "", $aid); $dsql->ExecuteNoneQuery("DELETE FROM `#@__freelist` WHERE aid='$aid'; "); @@ -42,7 +42,7 @@ else if($dopost=='del') exit(); } //第一次进入这个页面 -if($dopost=='') +if ($dopost=='') { $row = $dsql->GetOne("SELECT COUNT(*) AS dd FROM `#@__freelist` $addsql "); $totalRow = $row['dd']; diff --git a/src/admin/friendlink_add.php b/src/admin/friendlink_add.php index 0496bd0f..f78b0967 100644 --- a/src/admin/friendlink_add.php +++ b/src/admin/friendlink_add.php @@ -60,7 +60,7 @@ if ($dopost == "add") { ShowMsg("成功增加一个链接", $burl, 0, 500); exit(); } else { - ShowMsg("增加链接时出错,请向官方反馈,原因:".$dsql->GetError(), "javascript:;"); + ShowMsg("增加链接时出错,原因:".$dsql->GetError(), "javascript:;"); exit(); } } diff --git a/src/admin/inc/grouplist.txt b/src/admin/inc/grouplist.txt index 53311cb7..fa4a5b45 100644 --- a/src/admin/inc/grouplist.txt +++ b/src/admin/inc/grouplist.txt @@ -75,7 +75,7 @@ >sys_Writer>作者管理 >sys_SoftConfig>软件频道参数 >sys_Keyword>关键词管理 ->sys_MakeHtml>更新HTML +>sys_MakeHtml>更新网页 >sys_Feedback>评论管理 >sys_Upload>管理任意上传 >sys_MyUpload>管理我的上传 diff --git a/src/admin/inc/inc_action_info.php b/src/admin/inc/inc_action_info.php index 30a68fcc..98c2341f 100644 --- a/src/admin/inc/inc_action_info.php +++ b/src/admin/inc/inc_action_info.php @@ -136,7 +136,7 @@ $actionSearch[4] = array( ), 1 => array( 'title' => '文档批量维护 ', - 'description' => '批量的对某个栏目或者全部栏目的内容进行审核文档、更新HTML、移动文档、删除文档', + 'description' => '批量的对某个栏目或者全部栏目的内容进行审核文档、更新网页、移动文档、删除文档', 'purview' => 'sys_ArcBatch', 'linkurl' => 'content_batch_up.php' ), diff --git a/src/admin/inc/inc_admin_channel.php b/src/admin/inc/inc_admin_channel.php index 2d65ee23..7e9aab9b 100644 --- a/src/admin/inc/inc_admin_channel.php +++ b/src/admin/inc/inc_admin_channel.php @@ -12,87 +12,87 @@ function GetFieldMake($dtype, $fieldname, $dfvalue, $mxlen) { $fields = array(); - if($dtype == "int" || $dtype == "datetime") + if ($dtype == "int" || $dtype == "datetime") { - if($dfvalue == "" || preg_match("#[^0-9-]#", $dfvalue)) + if ($dfvalue == "" || preg_match("#[^0-9-]#", $dfvalue)) { $dfvalue = 0; } $fields[0] = " `$fieldname` int(11) NOT NULL default '$dfvalue';"; $fields[1] = "int(11)"; } - else if($dtype == "stepselect") + else if ($dtype == "stepselect") { - if($dfvalue == "" || preg_match("#[^0-9\.-]#", $dfvalue)) + if ($dfvalue == "" || preg_match("#[^0-9\.-]#", $dfvalue)) { $dfvalue = 0; } $fields[0] = " `$fieldname` char(20) NOT NULL default '$dfvalue';"; $fields[1] = "char(20)"; } - else if($dtype == "float") + else if ($dtype == "float") { - if($dfvalue == "" || preg_match("#[^0-9\.-]#", $dfvalue)) + if ($dfvalue == "" || preg_match("#[^0-9\.-]#", $dfvalue)) { $dfvalue = 0; } $fields[0] = " `$fieldname` float NOT NULL default '$dfvalue';"; $fields[1] = "float"; } - else if($dtype == "img" || $dtype == "media" || $dtype == "addon" || $dtype == "imgfile") + else if ($dtype == "img" || $dtype == "media" || $dtype == "addon" || $dtype == "imgfile") { - if(empty($dfvalue)) $dfvalue = ''; - if($mxlen=="") $mxlen = 200; - if($mxlen > 255) $mxlen = 100; + if (empty($dfvalue)) $dfvalue = ''; + if ($mxlen=="") $mxlen = 200; + if ($mxlen > 255) $mxlen = 100; $fields[0] = " `$fieldname` varchar($mxlen) NOT NULL default '$dfvalue';"; $fields[1] = "varchar($mxlen)"; } - else if($dtype == "multitext" || $dtype == "htmltext") + else if ($dtype == "multitext" || $dtype == "htmltext") { $fields[0] = " `$fieldname` mediumtext;"; $fields[1] = "mediumtext"; } - else if($dtype=="textdata") + else if ($dtype=="textdata") { - if(empty($dfvalue)) $dfvalue = ''; + if (empty($dfvalue)) $dfvalue = ''; $fields[0] = " `$fieldname` varchar(100) NOT NULL default '';"; $fields[1] = "varchar(100)"; } - else if($dtype=="relation") { - if(empty($dfvalue)) $dfvalue = ''; + else if ($dtype=="relation") { + if (empty($dfvalue)) $dfvalue = ''; $fields[0] = " `$fieldname` TEXT NOT NULL default '$dfvalue';"; $fields[1] = "TEXT"; } - else if($dtype=="textchar") + else if ($dtype=="textchar") { - if(empty($dfvalue)) $dfvalue = ''; + if (empty($dfvalue)) $dfvalue = ''; $fields[0] = " `$fieldname` char(100) NOT NULL default '$dfvalue';"; $fields[1] = "char(100)"; } - else if($dtype=="checkbox") + else if ($dtype=="checkbox") { $dfvalue = str_replace(',',"','",$dfvalue); $dfvalue = "'".$dfvalue."'"; $fields[0] = " `$fieldname` SET($dfvalue) NULL;"; $fields[1] = "SET($dfvalue)"; } - else if($dtype=="select" || $dtype=="radio") + else if ($dtype=="select" || $dtype=="radio") { $dfvalue = str_replace(',', "','", $dfvalue); $dfvalue = "'".$dfvalue."'"; $fields[0] = " `$fieldname` enum($dfvalue) NULL;"; $fields[1] = "enum($dfvalue)"; } else { - if(empty($dfvalue)) + if (empty($dfvalue)) { $dfvalue = ''; } - if(empty($mxlen)) + if (empty($mxlen)) { $mxlen = 100; } - if($mxlen > 255) + if ($mxlen > 255) { $mxlen = 250; } @@ -114,11 +114,11 @@ function GetAddFieldList(&$dtp,&$oksetting) $oklist = ''; $dtp->SetNameSpace("field","<",">"); $dtp->LoadSource($oksetting); - if(is_array($dtp->CTags)) + if (is_array($dtp->CTags)) { foreach($dtp->CTags as $tagid=>$ctag) { - if($ctag->GetAtt('islist')==1) + if ($ctag->GetAtt('islist')==1) { $oklist .= ($oklist=='' ? strtolower($ctag->GetName()) : ','.strtolower($ctag->GetName()) ); } diff --git a/src/admin/inc/inc_archives_functions.php b/src/admin/inc/inc_archives_functions.php index 109f2465..732a05dd 100644 --- a/src/admin/inc/inc_archives_functions.php +++ b/src/admin/inc/inc_archives_functions.php @@ -131,11 +131,11 @@ function GetCurContent($body) } else if ($itype == 'audio/mpeg'){ $itype = ".mp3"; $isImage = false; - } else if($itype == 'image/jpeg') { + } else if ($itype == 'image/jpeg') { $itype = '.jpg'; - } else if($itype == 'image/bmp') { + } else if ($itype == 'image/bmp') { $itype = '.bmp'; - } else if($itype == 'image/svg+xml') { + } else if ($itype == 'image/svg+xml') { $itype = '.svg'; $isImage = false; } else { diff --git a/src/admin/inc/inc_catalog_options.php b/src/admin/inc/inc_catalog_options.php index f60ed5f6..9622ba4e 100644 --- a/src/admin/inc/inc_catalog_options.php +++ b/src/admin/inc/inc_catalog_options.php @@ -61,7 +61,7 @@ function GetOptionList($selid = 0, $userCatalog = 0, $channeltype = 0) LogicGetOptionArray($row->id, '─', $channeltype, $dsql, $sonCats); if ($sonCats != '') { if ($row->ispart == 1) $OptionArrayList .= ""; - else if($row->ispart == 2) $OptionArrayList .= ""; + else if ($row->ispart == 2) $OptionArrayList .= ""; else if (empty($channeltype) && $row->ispart != 0) $OptionArrayList .= ""; else $OptionArrayList .= ""; $OptionArrayList .= $sonCats; diff --git a/src/admin/index_body.php b/src/admin/index_body.php index 7426e368..bdd27427 100644 --- a/src/admin/index_body.php +++ b/src/admin/index_body.php @@ -31,7 +31,7 @@ else if ($dopost == 'setskin') { } elseif ($dopost == 'get_seo') { //直接采用DedeBIZ重写方法 exit; -} elseif($dopost == 'get_articles'){ +} elseif ($dopost == 'get_articles'){ ?> 1) + if (count($arcArr) > 1) { foreach($arcArr as $row) { - if(trim($row['editcon'])==''){ + if (trim($row['editcon'])==''){ $row['editcon'] = 'archives_edit.php'; } $rowarcrank = $row['arcrank']==-1? " [未审核]":""; diff --git a/src/admin/makehtml_freelist_action.php b/src/admin/makehtml_freelist_action.php index 510d0f91..834afe7e 100644 --- a/src/admin/makehtml_freelist_action.php +++ b/src/admin/makehtml_freelist_action.php @@ -60,5 +60,5 @@ if ($nextpage == $totalpage) { ShowMsg("创建列表:".$tid.",继续执行任务", $gourl, 0, 100); } } -$dsql->ExecuteNoneQuery("Update `#@__freelist` set nodefault='1' where aid='$startid';"); +$dsql->ExecuteNoneQuery("UPDATE `#@__freelist` SET nodefault='1' where aid='$startid';"); ?> \ No newline at end of file diff --git a/src/admin/member_do.php b/src/admin/member_do.php index f8880e78..c2e248ac 100644 --- a/src/admin/member_do.php +++ b/src/admin/member_do.php @@ -155,33 +155,10 @@ else if ($dopost == 'edituser') { ShowMsg("对不起,为安全起见,不支持直接把前台会员转为管理的操作", "-1"); exit(); } - $query = "UPDATE `#@__member` SET - email = '$email', - uname = '$uname', - sex = '$sex', - matt = '$matt', - money = '$money', - scores = '$scores', - `rank` = '$rank', - spacesta='$spacesta', - uptime='$uptime', - exptime='$exptime' - $pwdsql - WHERE mid='$id' AND matt<>10 "; + $query = "UPDATE `#@__member` SET email='$email',uname='$uname',sex='$sex',matt='$matt',money='$money',scores='$scores',`rank`='$rank',spacesta='$spacesta',uptime='$uptime',exptime='$exptime'$pwdsql WHERE mid='$id' AND matt<>10 "; $rs = $dsql->ExecuteNoneQuery2($query); if ($rs == 0) { - $query = "UPDATE `#@__member` SET - email = '$email', - uname = '$uname', - sex = '$sex', - money = '$money', - scores = '$scores', - `rank` = '$rank', - spacesta='$spacesta', - uptime='$uptime', - exptime='$exptime' - $pwdsql - WHERE mid='$id' "; + $query = "UPDATE `#@__member` SET email='$email',uname='$uname',sex='$sex',money='$money',scores='$scores',`rank`='$rank',spacesta='$spacesta',uptime='$uptime',exptime='$exptime'$pwdsql WHERE mid='$id' "; $rs = $dsql->ExecuteNoneQuery2($query); } ShowMsg('成功修改会员资料', 'member_view.php?id='.$id); diff --git a/src/admin/module_main.php b/src/admin/module_main.php index ea26c8ba..7647bfe2 100644 --- a/src/admin/module_main.php +++ b/src/admin/module_main.php @@ -45,7 +45,7 @@ function ReWriteConfigAuto() $dsql->SetQuery("SELECT `varname`,`type`,`value`,`groupid` FROM `#@__sysconfig` ORDER BY aid ASC "); $dsql->Execute(); while ($row = $dsql->GetArray()) { - if(empty($row['value']) && $row['type'] == 'number') $row['value'] = 0; + if (empty($row['value']) && $row['type'] == 'number') $row['value'] = 0; if ($row['type'] == 'number') fwrite($fp, "\${$row['varname']} = ".$row['value'].";\r\n"); else fwrite($fp, "\${$row['varname']} = '".str_replace("'", '', $row['value'])."';\r\n"); } @@ -273,7 +273,7 @@ else if ($action == 'setupstart') { } ReWriteConfigAuto(); $rflwft = ""; echo $rflwft; @@ -439,7 +439,7 @@ else if ($action == 'uninstallok') { } ReWriteConfigAuto(); $rflwft = ""; echo $rflwft; diff --git a/src/admin/module_make.php b/src/admin/module_make.php index 993ad18c..c41c5d7d 100644 --- a/src/admin/module_make.php +++ b/src/admin/module_make.php @@ -104,7 +104,7 @@ else if ($action == 'make') { } if (trim($setupsql40) == '') $setupsql40 = ''; else $setupsql40 = base64_encode(trim($setupsql40)); - //if(trim($setupsql41)=='') $setupsql41 = ''; + //if (trim($setupsql41)=='') $setupsql41 = ''; //else $setupsql41 = base64_encode(trim($setupsql41)); if (trim($delsql) == '') $delsql = ''; else $delsql = base64_encode(trim($delsql)); @@ -244,7 +244,7 @@ else if ($action == 'edit') { } if (trim($setupsql40) == '') $setupsql40 = ''; else $setupsql40 = base64_encode(htmlspecialchars_decode(trim($setupsql40))); - //if(trim($setupsql41)=='') $setupsql41 = ''; + //if (trim($setupsql41)=='') $setupsql41 = ''; //else $setupsql41 = base64_encode(trim($setupsql41)); if (trim($delsql) == '') $delsql = ''; else $delsql = base64_encode(strip_tags(trim($delsql))); diff --git a/src/admin/mychannel_edit.php b/src/admin/mychannel_edit.php index 0a929a05..5ad9157c 100644 --- a/src/admin/mychannel_edit.php +++ b/src/admin/mychannel_edit.php @@ -255,7 +255,7 @@ else if ($dopost == "copysave") { $row = $dsql->GetArray('me', MYSQL_BOTH); $tableStruct = $row[1]; $tb = str_replace('#@__', $cfg_dbprefix, $addtable); - $tableStruct = preg_replace("/CREATE TABLE `$addtable`/iU", "CREATE TABLE `$newaddtable`", $tableStruct); + $tableStruct = preg_replace("/CREATE TABLE `$addtable` /iU", "CREATE TABLE `$newaddtable`", $tableStruct); $dsql->ExecuteNoneQuery($tableStruct); } if ($copytemplet == 1) { @@ -280,27 +280,7 @@ function __SaveEdit() else if ($dopost == "save") { $fieldset = preg_replace("#[\r\n]{1,}#", "\r\n", $fieldset); $usertype = empty($usertype) ? '' : $usertype; - $query = "Update `#@__channeltype` set - typename = '$typename', - addtable = '$addtable', - addcon = '$addcon', - mancon = '$mancon', - editcon = '$editcon', - useraddcon = '$useraddcon', - usermancon = '$usermancon', - usereditcon = '$usereditcon', - fieldset = '$fieldset', - listfields = '$listfields', - issend = '$issend', - arcsta = '$arcsta', - usertype = '$usertype', - sendrank = '$sendrank', - needdes = '$needdes', - needpic = '$needpic', - titlename = '$titlename', - onlyone = '$onlyone', - dfcid = '$dfcid' - WHERE id='$id' "; + $query = "UPDATE `#@__channeltype` SET typename='$typename',addtable='$addtable',addcon='$addcon',mancon='$mancon',editcon='$editcon',useraddcon='$useraddcon',usermancon='$usermancon',usereditcon='$usereditcon',fieldset='$fieldset',listfields='$listfields',issend='$issend',arcsta='$arcsta',usertype='$usertype',sendrank='$sendrank',needdes='$needdes',needpic='$needpic',titlename='$titlename',onlyone='$onlyone',dfcid='$dfcid' WHERE id='$id' "; if (trim($fieldset) != '') { $dtp = new DedeTagParse(); $dtp->SetNameSpace("field", "<", ">"); @@ -312,7 +292,7 @@ else if ($dopost == "save") { } $trueTable = str_replace("#@__", $cfg_dbprefix, $addtable); if (!$dsql->IsTable($trueTable)) { - ShowMsg("系统找不到您所指定的表 $trueTable ,请手工创建这个表", "-1"); + ShowMsg("系统找不到您所指定的表`$trueTable`,请手工创建这个表", "-1"); exit(); } $dsql->ExecuteNoneQuery($query); @@ -444,13 +424,6 @@ else if ($dopost == 'modifysearch') { $mainfields .= ' '; $mainfields .= ' '; $mainfields .= ' '; - /* - $mainfields .= ''; - $mainfields .= ''; - $mainfields .= ''; - $mainfields .= ''; - $mainfields .= ''; - */ $query = "SELECT * FROM `#@__channeltype` WHERE id='$mid'"; $channel = $dsql->GetOne($query); $searchtype = array('int', 'datetime', 'float', 'textdata', 'textchar', 'text', 'htmltext', 'multitext', 'select', 'radio', 'checkbox'); diff --git a/src/admin/soft_add.php b/src/admin/soft_add.php index 7c576933..1cb40a18 100644 --- a/src/admin/soft_add.php +++ b/src/admin/soft_add.php @@ -146,7 +146,7 @@ else if ($dopost == 'save') { if (!$dsql->ExecuteNoneQuery($inQuery)) { $gerr = $dsql->GetError(); $dsql->ExecuteNoneQuery("DELETE FROM `#@__arctiny` WHERE id='$arcID'"); - ShowMsg("把数据保存到数据库主表 `#@__archives` 时出错,请把相关信息提交给DedeBIZ官方".str_replace('"', '', $gerr), "javascript:;"); + ShowMsg("数据保存到数据库主表`#@__archives`时出错,请检查数据库字段".str_replace('"', '', $gerr), "javascript:;"); exit(); } //软件链接列表 @@ -208,7 +208,7 @@ else if ($dopost == 'save') { $gerr = $dsql->GetError(); $dsql->ExecuteNoneQuery("DELETE FROM `#@__archives` WHERE id='$arcID'"); $dsql->ExecuteNoneQuery("DELETE FROM `#@__arctiny` WHERE id='$arcID'"); - ShowMsg("把数据保存到数据库附加表 `{$addtable}` 时出错,请把相关信息提交给DedeBIZ官方".str_replace('"', '', $gerr), "javascript:;"); + ShowMsg("数据保存到数据库附加表时出错,请检查数据库字段".str_replace('"', '', $gerr), "javascript:;"); exit(); } //生成网页 diff --git a/src/admin/soft_edit.php b/src/admin/soft_edit.php index be687639..a8736b3b 100644 --- a/src/admin/soft_edit.php +++ b/src/admin/soft_edit.php @@ -162,9 +162,9 @@ else if ($dopost == 'save') { //跳转网址的文档强制为动态 if (preg_match('#j#', $flag)) $ismake = -1; //修改主档案表 - $inQuery = "UPDATE `#@__archives` SETtypeid='$typeid',typeid2='$typeid2',sortrank='$sortrank',flag='$flag',click='$click',ismake='$ismake',arcrank='$arcrank',`money`='$money',title='$title',color='$color',source='$source',writer='$writer',litpic='$litpic',pubdate='$pubdate',notpost='$notpost',description='$description',keywords='$keywords',shorttitle='$shorttitle',filename='$filename',dutyadmin='$adminid',weight='$weight' WHERE id='$id'; "; + $inQuery = "UPDATE `#@__archives` SET typeid='$typeid',typeid2='$typeid2',sortrank='$sortrank',flag='$flag',click='$click',ismake='$ismake',arcrank='$arcrank',`money`='$money',title='$title',color='$color',source='$source',writer='$writer',litpic='$litpic',pubdate='$pubdate',notpost='$notpost',description='$description',keywords='$keywords',shorttitle='$shorttitle',filename='$filename',dutyadmin='$adminid',weight='$weight' WHERE id='$id'; "; if (!$dsql->ExecuteNoneQuery($inQuery)) { - ShowMsg("更新数据库 archives 表时出错,请检查", "-1"); + ShowMsg("数据保存到数据库主表`#@__archives`时出错,请检查数据库字段", "-1"); exit(); } //软件链接列表 @@ -193,7 +193,7 @@ else if ($dopost == 'save') { $useip = GetIP(); $inQuery = "UPDATE `$addtable` SET typeid='$typeid',filetype='$filetype',language='$language',softtype='$softtype',accredit='$accredit',os='$os',softrank='$softrank',officialUrl ='$officialUrl',officialDemo ='$officialDemo',softsize='$softsize',softlinks='$urls',redirecturl='$redirecturl',userip='$useip',daccess='$daccess',needmoney='$needmoney',introduce='$body' {$inadd_f} WHERE aid='$id';"; if (!$dsql->ExecuteNoneQuery($inQuery)) { - ShowMsg("更新数据库附加表 addonsoft 时出错,请检查原因", "-1"); + ShowMsg("数据保存到数据库附加表时出错,请检查数据库字段", "-1"); exit(); } } diff --git a/src/admin/spec_add.php b/src/admin/spec_add.php index 409599f8..eb410e4b 100644 --- a/src/admin/spec_add.php +++ b/src/admin/spec_add.php @@ -79,7 +79,7 @@ else if ($dopost == 'save') { echo $inQuery; $gerr = $dsql->GetError(); $dsql->ExecuteNoneQuery("DELETE FROM `#@__arctiny` WHERE id='$arcID'"); - ShowMsg("把数据保存到数据库主表 `#@__archives` 时出错,请把相关信息提交给DedeBIZ官方".str_replace('"', '', $gerr), "javascript:;"); + ShowMsg("数据保存到数据库主表`#@__archives`时出错,请检查数据库字段".str_replace('"', '', $gerr), "javascript:;"); exit(); } //专题节点列表 @@ -163,7 +163,7 @@ else if ($dopost == 'save') { if (!$dsql->ExecuteNoneQuery($inQuery)) { $dsql->ExecuteNoneQuery("DELETE FROM `#@__arctiny` WHERE id='$arcID'"); $dsql->ExecuteNoneQuery("DELETE FROM `#@__archives` WHERE id='$arcID'"); - ShowMsg("把数据保存到数据库附加表 addonspec 时出错,请检查原因", "-1"); + ShowMsg("数据保存到数据库附加表时出错,请检查数据库字段", "-1"); exit(); } //生成网页 diff --git a/src/admin/spec_edit.php b/src/admin/spec_edit.php index 1e659d18..87bebe6d 100644 --- a/src/admin/spec_edit.php +++ b/src/admin/spec_edit.php @@ -107,7 +107,7 @@ else if ($dopost == 'save') { } $inQuery = "UPDATE `#@__archives` SET typeid='$typeid',sortrank='$sortrank',flag='$flag',ismake='$ismake',arcrank='$arcrank',click='$click',title='$title',color='$color',writer='$writer',source='$source',litpic='$litpic',pubdate='$pubdate',notpost='$notpost',description='$description',keywords='$keywords',shorttitle='$shorttitle',filename='$filename' WHERE id='$id'; "; if (!$dsql->ExecuteNoneQuery($inQuery)) { - ShowMsg("更新数据库 archives 表时出错,请检查", "-1"); + ShowMsg("数据保存到数据库主表`#@__archives`时出错,请检查数据库字段", "-1"); exit(); } //专题节点列表 @@ -176,7 +176,7 @@ else if ($dopost == 'save') { //更新附加表 $inQuery = "UPDATE `#@__addonspec` SET typeid ='$typeid',note='$notelist'{$inadd_f},templet='$templet' WHERE aid='$id';"; if (!$dsql->ExecuteNoneQuery($inQuery)) { - ShowMsg("更新数据库附加表 addonspec 时出错,请检查原因", "-1"); + ShowMsg("数据保存到数据库附加表时出错,请检查数据库字段", "-1"); exit(); } //生成网页 diff --git a/src/admin/sys_repair.php b/src/admin/sys_repair.php index 916e4d24..c5819d7c 100644 --- a/src/admin/sys_repair.php +++ b/src/admin/sys_repair.php @@ -53,7 +53,7 @@ else if ($dopost == 1) { 已完成数据结构完整性检测 如果您系统有下面几种问题之一,请检测微表正确性:
1、无法获得主键,因此无法进行后续操作
- 2、更新数据库 archives 表时出错
+ 2、更新数据库#@__archivess表时出错
3、列表显示数据目与实际文档数不一致

检测数据 diff --git a/src/admin/templets/ad_edit.htm b/src/admin/templets/ad_edit.htm index ef12470e..8595e52e 100644 --- a/src/admin/templets/ad_edit.htm +++ b/src/admin/templets/ad_edit.htm @@ -89,8 +89,8 @@ diff --git a/src/admin/templets/album_add.htm b/src/admin/templets/album_add.htm index 82390296..82a40c2e 100644 --- a/src/admin/templets/album_add.htm +++ b/src/admin/templets/album_add.htm @@ -99,7 +99,7 @@ $dsql->Execute(); while($trow = $dsql->GetObject()) { - if($trow->att=='j') + if ($trow->att=='j') echo ""; else echo ""; @@ -185,7 +185,7 @@ 选择副栏目"; } @@ -221,7 +221,7 @@
时间限制: - - + +
- +
@@ -243,9 +243,9 @@ 表现方式: - - - + + + @@ -365,8 +365,8 @@ 评论选项: - - + + 发布选项: diff --git a/src/admin/templets/album_edit.htm b/src/admin/templets/album_edit.htm index 24d5f514..bd87809f 100644 --- a/src/admin/templets/album_edit.htm +++ b/src/admin/templets/album_edit.htm @@ -98,9 +98,9 @@ $dsql->Execute(); while($trow = $dsql->GetObject()) { - if($trow->att=='j') $jumpclick = " onclick='ShowUrlTr()'"; + if ($trow->att=='j') $jumpclick = " onclick='ShowUrlTr()'"; else $jumpclick = ''; - if(preg_match("#".$trow->att."#", $arcRow['flag'])) + if (preg_match("#".$trow->att."#", $arcRow['flag'])) echo ""; else echo ""; @@ -144,7 +144,7 @@ - + @@ -176,7 +176,7 @@ getUserChannel(),$channelid); echo "'; ?> @@ -189,7 +189,7 @@ @@ -235,15 +235,15 @@ 表现方式: - - - + + + - + @@ -261,7 +261,7 @@
- + @@ -330,17 +330,17 @@
LoadSource($imgurls); - if(is_array($dtp->CTags)) + if (is_array($dtp->CTags)) { foreach($dtp->CTags as $ctag) { - if($ctag->GetName()=="img") + if ($ctag->GetName()=="img") { $bigimg = trim($ctag->GetInnerText()); - if($ctag->GetAtt('ddimg') != $bigimg && $ctag->GetAtt('ddimg')!='') + if ($ctag->GetAtt('ddimg') != $bigimg && $ctag->GetAtt('ddimg')!='') { $litimg = $ctag->GetAtt('ddimg'); } else { @@ -406,13 +406,13 @@
评论选项: - - + + 发布选项: - - + +
@@ -427,7 +427,7 @@ 正常排序"; - if($subday>0) echo ""; + if ($subday>0) echo ""; ?> diff --git a/src/admin/templets/archives_add.htm b/src/admin/templets/archives_add.htm index 911e31ba..24678071 100644 --- a/src/admin/templets/archives_add.htm +++ b/src/admin/templets/archives_add.htm @@ -78,7 +78,7 @@ $dsql->Execute(); while($trow = $dsql->GetObject()) { - if($trow->att=='j') + if ($trow->att=='j') echo ""; else echo ""; @@ -111,7 +111,7 @@ - '> + '> @@ -147,7 +147,7 @@ - 0) + 0) { echo ""; echo ""; @@ -170,7 +170,7 @@ 选择副栏目"; } @@ -206,7 +206,7 @@
- +
@@ -229,10 +229,10 @@ 附加选项: - - - - + + + + @@ -247,8 +247,8 @@ 评论选项: - - + + 发布选项: diff --git a/src/admin/templets/archives_edit.htm b/src/admin/templets/archives_edit.htm index 6dfb985d..c549fdb0 100644 --- a/src/admin/templets/archives_edit.htm +++ b/src/admin/templets/archives_edit.htm @@ -75,9 +75,9 @@ $dsql->Execute(); while($trow = $dsql->GetObject()) { - if($trow->att=='j') $jumpclick = " onclick='ShowUrlTr()'"; + if ($trow->att=='j') $jumpclick = " onclick='ShowUrlTr()'"; else $jumpclick = ''; - if(preg_match("#".$trow->att."#", $arcRow['flag'])) + if (preg_match("#".$trow->att."#", $arcRow['flag'])) echo " "; else echo " "; @@ -110,7 +110,7 @@ - '> + '> @@ -122,7 +122,7 @@ - +
@@ -146,7 +146,7 @@ - 0) + 0) { echo ""; echo ""; @@ -161,7 +161,7 @@ getUserChannel(),$channelid); echo ""; ?> @@ -173,7 +173,7 @@ - + @@ -221,9 +221,9 @@ @@ -236,13 +236,13 @@ - @@ -258,7 +258,7 @@ 正常排序"; - if($subday>0) echo ""; + if ($subday>0) echo ""; ?> diff --git a/src/admin/templets/archives_sg_add.htm b/src/admin/templets/archives_sg_add.htm index beffd67f..5b410252 100644 --- a/src/admin/templets/archives_sg_add.htm +++ b/src/admin/templets/archives_sg_add.htm @@ -22,11 +22,11 @@ diff --git a/src/admin/templets/login.htm b/src/admin/templets/login.htm index cb16b434..b818d049 100644 --- a/src/admin/templets/login.htm +++ b/src/admin/templets/login.htm @@ -35,7 +35,7 @@

后台登录

- +
diff --git a/src/admin/templets/makehtml_archives.htm b/src/admin/templets/makehtml_archives.htm index dd27aa4d..3728f84c 100644 --- a/src/admin/templets/makehtml_archives.htm +++ b/src/admin/templets/makehtml_archives.htm @@ -21,11 +21,11 @@
- + - + diff --git a/src/admin/templets/makehtml_homepage.htm b/src/admin/templets/makehtml_homepage.htm index 44e0f899..fc32cc63 100644 --- a/src/admin/templets/makehtml_homepage.htm +++ b/src/admin/templets/makehtml_homepage.htm @@ -64,7 +64,7 @@ $client->appid = $cfg_bizcore_appid; $client->key = $cfg_bizcore_key; $data = $client->AdminPWDExists(); - if($data->code == -1){ + if ($data->code == -1){ ?> @@ -73,7 +73,7 @@ } else { $data = json_decode($data->data); $rs = (array)($data->result); - if($rs["admin_pwd_exists"] == "false") { + if ($rs["admin_pwd_exists"] == "false") { ?> diff --git a/src/admin/templets/makehtml_list.htm b/src/admin/templets/makehtml_list.htm index 24786f36..776e3aef 100644 --- a/src/admin/templets/makehtml_list.htm +++ b/src/admin/templets/makehtml_list.htm @@ -18,11 +18,11 @@ 0) { + if ($tagid > 0) { $row = $dsql->GetOne("Select tag From `#@__tagindex` where id = '$tagid' "); ?> diff --git a/src/admin/templets/media_edit.htm b/src/admin/templets/media_edit.htm index 494f63db..54afa480 100644 --- a/src/admin/templets/media_edit.htm +++ b/src/admin/templets/media_edit.htm @@ -54,10 +54,10 @@ @@ -84,14 +84,14 @@ 200) $w=200; + if (is_array($sizes)){ + if ($sizes[0]>200) $w=200; else $w = $sizes[0]; ?> diff --git a/src/admin/templets/media_main.htm b/src/admin/templets/media_main.htm index d637eea7..c13fb440 100644 --- a/src/admin/templets/media_main.htm +++ b/src/admin/templets/media_main.htm @@ -62,17 +62,17 @@ - + diff --git a/src/admin/templets/member_scores.htm b/src/admin/templets/member_scores.htm index 167f429a..d635dc1e 100644 --- a/src/admin/templets/member_scores.htm +++ b/src/admin/templets/member_scores.htm @@ -45,8 +45,8 @@ diff --git a/src/admin/templets/member_toadmin.htm b/src/admin/templets/member_toadmin.htm index 8e860b53..f273c26a 100644 --- a/src/admin/templets/member_toadmin.htm +++ b/src/admin/templets/member_toadmin.htm @@ -33,7 +33,7 @@ @@ -371,7 +371,7 @@ foreach($sites as $site) { $site = trim($site); - if(empty($site)) continue; + if (empty($site)) continue; list($siteurl, $sitename) = explode('|', $site); $siteurl = trim($siteurl); $sitename = trim($sitename); @@ -414,10 +414,10 @@
附加选项: -
评论选项: - - + + 发布选项: -
选择栏目: GetOptionArray($cid,$admin_catalogs,0); echo ""; ?> diff --git a/src/admin/templets/makehtml_freelist.htm b/src/admin/templets/makehtml_freelist.htm index 16ff4502..d4654942 100644 --- a/src/admin/templets/makehtml_freelist.htm +++ b/src/admin/templets/makehtml_freelist.htm @@ -24,11 +24,11 @@
起始id:>(空或0表示从头开始)>(空或0表示从头开始)
结束ID:>(空或0表示直到结束ID)>(空或0表示直到结束ID)
每批生成:
尚未开启DedeBIZ商业组件 如何启动组件
设置操作密码:选择栏目: GetOptionArray($cid,$admin_catalogs,0,1); echo ""; ?> diff --git a/src/admin/templets/makehtml_taglist.htm b/src/admin/templets/makehtml_taglist.htm index a30e06c5..e73ec25b 100644 --- a/src/admin/templets/makehtml_taglist.htm +++ b/src/admin/templets/makehtml_taglist.htm @@ -24,7 +24,7 @@ 更新标签
媒体类型: - - - - + + + +
diff --git a/src/admin/templets/member_main.htm b/src/admin/templets/member_main.htm index cf97f8d6..0ae28b59 100644 --- a/src/admin/templets/member_main.htm +++ b/src/admin/templets/member_main.htm @@ -40,7 +40,7 @@ $v) { - if($spacesta==$k) echo ""; + if ($spacesta==$k) echo ""; else echo ""; } ?> @@ -78,10 +78,10 @@ {dede:field.mid/} ";}; + if (!empty($fields['face'])) {echo "";}; echo ''.$fields['userid'].''; - if($fields['spacesta']==-2) echo "[禁言]"; - if($fields['spacesta']==-1) echo "[未审核]"; + if ($fields['spacesta']==-2) echo "[禁言]"; + if ($fields['spacesta']==-1) echo "[未审核]"; ?> {dede:field.email/}
diff --git a/src/admin/templets/member_rank.htm b/src/admin/templets/member_rank.htm index 96474b2e..08e2d906 100644 --- a/src/admin/templets/member_rank.htm +++ b/src/admin/templets/member_rank.htm @@ -42,11 +42,11 @@
id<=5) { echo "系统"; } + if ($row->id<=5) { echo "系统"; } else { echo "用户"; } ?> id == 3) echo 'disabled="disabled"';?> value="1" checked="checked"> 正在使用id == 3) echo 'disabled="disabled"';?> value="1" checked="checked"> 正在使用
已经是管理员了,不要再提升了"; } else { @@ -48,7 +48,7 @@ "; } ?> @@ -71,7 +71,7 @@ $dsql->Execute("ut"); while($myrow = $dsql->GetObject("ut")) { - if($row['usertype']==$myrow->rank) echo ""; + if ($row['usertype']==$myrow->rank) echo ""; else echo ""; } ?> diff --git a/src/admin/templets/member_type.htm b/src/admin/templets/member_type.htm index d3a1cf75..e416e562 100644 --- a/src/admin/templets/member_type.htm +++ b/src/admin/templets/member_type.htm @@ -47,7 +47,7 @@ $vvv){ - if($row->exptime==$kkk) echo ""; + if ($row->exptime==$kkk) echo ""; else echo ""; } ?> diff --git a/src/admin/templets/member_view.htm b/src/admin/templets/member_view.htm index f0433f4f..a7e1a039 100644 --- a/src/admin/templets/member_view.htm +++ b/src/admin/templets/member_view.htm @@ -13,13 +13,13 @@ "; } diff --git a/src/admin/templets/mychannel_field_add.htm b/src/admin/templets/mychannel_field_add.htm index 1084d76c..29c214ad 100644 --- a/src/admin/templets/mychannel_field_add.htm +++ b/src/admin/templets/mychannel_field_add.htm @@ -22,7 +22,7 @@ var enums = document.getElementsByName('dtype'); for(i=0;i-1 ) + if (notAllow.indexOf(" "+fieldname+" ") >-1 ) { ShowMsg("字段名称不合法,如下字段名已经存在,建议在名称后加上数字以区分:\n"+notAllow); return false; } - if((dtype=="radio" || dtype=="select" || dtype=="checkbox") && vdefault=="") + if ((dtype=="radio" || dtype=="select" || dtype=="checkbox") && vdefault=="") { ShowMsg("您选择的select或radio、checkbox类型,必须默认值设置选择的项目(用逗号[,]分开)"); return false; } - if(spage=="no") spage = ""; + if (spage=="no") spage = ""; relstr = ""; if (dtype==="relation") { relstr = " automake=\""+automake+"\" channel=\""+$("#channeltype").val()+"\""; @@ -88,7 +88,7 @@ - + - + - + - + - - + @@ -114,7 +114,7 @@ - + - + @@ -193,7 +193,7 @@ - + = 0) { + if ($channel['issystem'] >= 0) { ?> diff --git a/src/admin/templets/soft_add.htm b/src/admin/templets/soft_add.htm index dd3050ae..fe3e2362 100644 --- a/src/admin/templets/soft_add.htm +++ b/src/admin/templets/soft_add.htm @@ -92,7 +92,7 @@ $dsql->Execute(); while($trow = $dsql->GetObject()) { - if($trow->att=='j') + if ($trow->att=='j') echo ""; else echo ""; @@ -176,7 +176,7 @@ 选择副栏目"; } @@ -212,7 +212,7 @@
频道管理 > 增加新字段内容模型管理 > 增加新字段 @@ -171,7 +171,7 @@ $channelid = 1; foreach($channelArray as $k=>$arr) { - if($k==$channelid) { + if ($k==$channelid) { $nid = $arr['nid']; echo ""; } else { @@ -186,7 +186,7 @@
默认值:
如果定义数据类型为select、radio、checkbox时,此处填写被选择的项目(用“,”分开,如“男,女,人妖”)
最大长度:
@@ -199,7 +199,7 @@
diff --git a/src/admin/templets/mychannel_field_edit.htm b/src/admin/templets/mychannel_field_edit.htm index b2e8529d..746d5ed0 100644 --- a/src/admin/templets/mychannel_field_edit.htm +++ b/src/admin/templets/mychannel_field_edit.htm @@ -69,7 +69,7 @@ - +
频道管理 > 查看修改字段内容模型管理 > 查看修改字段 @@ -78,7 +78,7 @@
您当前操作的字段属于系统模型字段:修改系统模型有风险,请不要随便改动系统模型的字段相关的属性 @@ -91,9 +91,9 @@ *(发布内容时显示的项名字)
字段名称:
+
字段名称:
只能用英文字母或数字,数据表的真实字段名
字段类型: - - + +
默认值:
如果定义数据类型为select、radio、checkbox时,此处填写被选择的项目(用“,”分开,如“男,女,人妖”)如果为联动选框,这里填写联动选框项目名称
最大长度:
文本数据必须填写,大于255为text类型
自定义表单HTML:

diff --git a/src/admin/templets/mychannel_modifysearch.htm b/src/admin/templets/mychannel_modifysearch.htm index aa057469..a6d7de2c 100644 --- a/src/admin/templets/mychannel_modifysearch.htm +++ b/src/admin/templets/mychannel_modifysearch.htm @@ -41,7 +41,7 @@
主表可供自定义搜索的字段
diff --git a/src/admin/templets/mytag_edit.htm b/src/admin/templets/mytag_edit.htm index 5fd86fc4..4c5a6ecb 100644 --- a/src/admin/templets/mytag_edit.htm +++ b/src/admin/templets/mytag_edit.htm @@ -39,8 +39,8 @@
时间限制: - > 永不过期 - > 在设内时间内有效 + > 永不过期 + > 在设内时间内有效
- +
@@ -329,8 +329,8 @@ $dsql->Execute(); while($row = $dsql->GetArray()) { - if($row['rank']==0) $row['membername'] = "不限会员"; - if($row['rank'] == $softconfig['dfrank']) echo ""; + if ($row['rank']==0) $row['membername'] = "不限会员"; + if ($row['rank'] == $softconfig['dfrank']) echo ""; else echo ""; } ?> @@ -360,7 +360,7 @@
附加选项: - - + + 设置 - +
@@ -432,8 +432,8 @@ 评论选项: - - + + 发布选项: diff --git a/src/admin/templets/soft_config.htm b/src/admin/templets/soft_config.htm index d97e59e5..017b4ed4 100644 --- a/src/admin/templets/soft_config.htm +++ b/src/admin/templets/soft_config.htm @@ -29,36 +29,36 @@ 链接显示方式: - - + + 附件下载方式: - - + + 是否启用镜像站点: - - + + 启用镜像站点后是否保留本地下载: - - + + 镜像处理方式: - - + + @@ -74,8 +74,8 @@ $dsql->Execute(); while($nrow = $dsql->GetArray()) { - if($nrow['rank']==0) $nrow['membername'] = "开放下载"; - if($nrow['rank']==$row['dfrank']) echo ""; + if ($nrow['rank']==0) $nrow['membername'] = "开放下载"; + if ($nrow['rank']==$row['dfrank']) echo ""; else echo ""; } ?> @@ -89,8 +89,8 @@ 参数限制方式: - - + + diff --git a/src/admin/templets/soft_edit.htm b/src/admin/templets/soft_edit.htm index b7f0c2a6..fcb35db5 100644 --- a/src/admin/templets/soft_edit.htm +++ b/src/admin/templets/soft_edit.htm @@ -88,9 +88,9 @@ $dsql->Execute(); while($trow = $dsql->GetObject()) { - if($trow->att=='j') $jumpclick = " onclick='ShowUrlTr()'"; + if ($trow->att=='j') $jumpclick = " onclick='ShowUrlTr()'"; else $jumpclick = ''; - if(preg_match("#".$trow->att."#",$arcRow['flag'])) + if (preg_match("#".$trow->att."#",$arcRow['flag'])) echo ""; else echo ""; @@ -135,7 +135,7 @@ - + @@ -167,7 +167,7 @@ getUserChannel(),$channelid); echo ""; ?> @@ -179,7 +179,7 @@ - + @@ -222,7 +222,7 @@
附加选项: - - + +
@@ -382,13 +382,13 @@ 评论选项: - - + + 发布选项: - - + + @@ -404,7 +404,7 @@ 正常排序"; - if($subday>0) echo ""; + if ($subday>0) echo ""; ?> diff --git a/src/admin/templets/spec_add.htm b/src/admin/templets/spec_add.htm index 1272462b..37ed6557 100644 --- a/src/admin/templets/spec_add.htm +++ b/src/admin/templets/spec_add.htm @@ -116,7 +116,7 @@ $dsql->Execute(); while($trow = $dsql->GetObject()) { - if($trow->att!='j') + if ($trow->att!='j') { echo ""; } @@ -205,7 +205,7 @@ - + @@ -226,8 +226,8 @@ 评论选项: - - + + 发布选项: @@ -289,7 +289,7 @@ $nodename = $nodeid = ''; for($i=1;$i<=$cfg_specnote;$i++) { - if($i==1) + if ($i==1) { $nodename = '默认节点'; $nodeid = 'default'; diff --git a/src/admin/templets/spec_edit.htm b/src/admin/templets/spec_edit.htm index 6568f46b..55537737 100644 --- a/src/admin/templets/spec_edit.htm +++ b/src/admin/templets/spec_edit.htm @@ -114,8 +114,8 @@ $dsql->Execute(); while($trow = $dsql->GetObject()) { - if($trow->att=='j') continue; - if(preg_match("#".$trow->att."#", $arcRow['flag'])) + if ($trow->att=='j') continue; + if (preg_match("#".$trow->att."#", $arcRow['flag'])) echo ""; else echo ""; @@ -138,7 +138,7 @@ - + @@ -163,7 +163,7 @@ 正常排序"; - if($subday>0) echo ""; + if ($subday>0) echo ""; ?> @@ -190,7 +190,7 @@ getUserChannel(),0); echo ""; ?> @@ -226,12 +226,12 @@ 评论选项: - - + + 发布选项: - - + + @@ -300,10 +300,10 @@ $i = 1; $dtp = new DedeTagParse(); $dtp->LoadSource($addRow["note"]); - if(is_array($dtp->CTags)){ + if (is_array($dtp->CTags)){ foreach($dtp->CTags as $tagid=>$ctag) { - if($ctag->GetName()!="specnote") continue; + if ($ctag->GetName()!="specnote") continue; $notename = $ctag->GetAtt('name'); $col = $ctag->GetAtt('col'); $idlist = $ctag->GetAtt('idlist'); @@ -313,14 +313,14 @@ $infolen = $ctag->GetAtt('infolen'); $temp = trim($ctag->GetInnerText()); $noteid = $ctag->GetAtt('noteid'); - if(empty($noteid)) $noteid = $i; + if (empty($noteid)) $noteid = $i; $isauto = $ctag->GetAtt('isauto'); - if(empty($isauto)) $isauto = 0; + if (empty($isauto)) $isauto = 0; $keywords = $ctag->GetAtt('keywords'); $typeid = $ctag->GetAtt('typeid'); - if(empty($typeid)) $typeid = 0; + if (empty($typeid)) $typeid = 0; $rownum = $ctag->GetAtt('rownum'); - if(empty($rownum)) $rownum = 40; + if (empty($rownum)) $rownum = 40; ?> 节点名称: @@ -342,8 +342,8 @@ 文档来源: - - + + diff --git a/src/admin/templets/stepselect_main.htm b/src/admin/templets/stepselect_main.htm index 86584bfc..12ed2445 100644 --- a/src/admin/templets/stepselect_main.htm +++ b/src/admin/templets/stepselect_main.htm @@ -153,8 +153,8 @@ foreach($etypes as $arr) { $stylecolor = ""; - if($arr['issystem']==1) $stylecolor = " style='color:#999999' "; - if($egroup==$arr['egroup']) { + if ($arr['issystem']==1) $stylecolor = " style='color:#999999' "; + if ($egroup==$arr['egroup']) { $selgroup = $arr['itemname']; echo ""; } else { @@ -175,22 +175,22 @@ GetOne("SELECT * FROM `#@__stepselect` WHERE egroup='{$egroup}' "); $dsql->Execute('out',"SELECT evalue,ename FROM `#@__sys_enum` WHERE egroup='{$arr['egroup']}' ORDER BY disorder ASC,evalue ASC"); $options = ''; while($row1 = $dsql->GetArray('out')) { - if(!preg_match("#\.#", $row1['evalue'])) + if (!preg_match("#\.#", $row1['evalue'])) { $row1['ename'] = ($row1['evalue'] % 500 == 0)? $row1['ename'] : '└─'.$row1['ename']; - if($topvalue != $row1['evalue']) $options .= ""; + if ($topvalue != $row1['evalue']) $options .= ""; else $options .= ""; } } //如果添加3级之类 - if($topvalue % 500 != 0) $arr['issign'] = 2; + if ($topvalue % 500 != 0) $arr['issign'] = 2; ?> @@ -201,7 +201,7 @@ > 子分类管理 把默认省市地区表导入"; } ?> @@ -256,9 +256,9 @@ @@ -165,7 +165,7 @@ @@ -187,7 +187,7 @@ - + "; $mtd = ""; echo $mtd; - if(isset($filelists[$i+1])) + if (isset($filelists[$i+1])) { $i++; $mtd = ""; diff --git a/src/admin/templets/sys_group.htm b/src/admin/templets/sys_group.htm index 43964232..820d1c3e 100644 --- a/src/admin/templets/sys_group.htm +++ b/src/admin/templets/sys_group.htm @@ -42,7 +42,7 @@ diff --git a/src/admin/templets/sys_group_add.htm b/src/admin/templets/sys_group_add.htm index a347b1a9..12dc6f41 100644 --- a/src/admin/templets/sys_group_add.htm +++ b/src/admin/templets/sys_group_add.htm @@ -34,10 +34,10 @@ foreach($gouplists as $line) { $line = trim($line); - if($line=="") continue; - if(preg_match("#^>>#", $line)) + if ($line=="") continue; + if (preg_match("#^>>#", $line)) { - if($start>0) echo ""; + if ($start>0) echo ""; $start++; $lhead = " @@ -46,12 +46,12 @@ "; echo $lhead; } - else if(preg_match("#^>#", $line)) + else if (preg_match("#^>#", $line)) { $ls = explode('>',$line); $tag = $ls[1]; $tagname = str_replace('[br]', '
', $ls[2]); - if(!preg_match("#
#", $tagname) ) $tagname .= "($tag)"; + if (!preg_match("#
#", $tagname) ) $tagname .= "($tag)"; else $tagname = str_replace('
', "($tag)
", $tagname); echo " "; $k++; @@ -72,7 +72,7 @@ echo " "; $k++; $l++; - if($l%6==0) echo "
"; + if ($l%6==0) echo "
"; } ?> diff --git a/src/admin/templets/sys_group_edit.htm b/src/admin/templets/sys_group_edit.htm index afcdcccf..3eeb558c 100644 --- a/src/admin/templets/sys_group_edit.htm +++ b/src/admin/templets/sys_group_edit.htm @@ -37,13 +37,13 @@ foreach($gouplists as $line) { $line = trim($line); - if($line=="") continue; - if(preg_match("#^>>#", $line)) + if ($line=="") continue; + if (preg_match("#^>>#", $line)) { - if($start>0) echo ""; + if ($start>0) echo ""; $line = str_replace('>>','',$line); $ls = explode('>',$line); - if(DEDEBIZ_SAFE_MODE && $ls[1]==="unsafe") { + if (DEDEBIZ_SAFE_MODE && $ls[1]==="unsafe") { continue; } $start++; @@ -54,15 +54,15 @@ "; echo $lhead; } - else if(preg_match("#^>#", $line)) + else if (preg_match("#^>#", $line)) { $ls = explode('>',$line); - if(DEDEBIZ_SAFE_MODE && $ls[3]==="unsafe") { + if (DEDEBIZ_SAFE_MODE && $ls[3]==="unsafe") { continue; } $tag = $ls[1]; $tagname = str_replace('[br]','
',$ls[2]); - if(!preg_match("#
#", $tagname) ) $tagname .= "($tag)"; + if (!preg_match("#
#", $tagname) ) $tagname .= "($tag)"; else $tagname = str_replace('
', "($tag)
", $tagname); echo " "; $k++; @@ -83,7 +83,7 @@ echo " "; $k++; $l++; - if($l % 6 == 0) echo "
"; + if ($l % 6 == 0) echo "
"; } ?> diff --git a/src/admin/templets/sys_info.htm b/src/admin/templets/sys_info.htm index 5fd49faa..c18115b0 100644 --- a/src/admin/templets/sys_info.htm +++ b/src/admin/templets/sys_info.htm @@ -73,7 +73,7 @@ foreach($ds as $dl) { $dl = trim($dl); - if(empty($dl)) continue; + if (empty($dl)) continue; $dls = explode(',',$dl); $i++; if ($i>1) echo "{$dls[1]}"; @@ -115,7 +115,7 @@ echo "
{dede:field.id/} 500 && $fields['evalue']%500 != 0) $fields['ename'] = " └─".$fields['ename']; + if ($fields['evalue']>500 && $fields['evalue']%500 != 0) $fields['ename'] = " └─".$fields['ename']; } else { $fields['ename'] = " └───".$fields['ename']; } @@ -268,9 +268,9 @@ {dede:field.egroup/} 500 && $fields['evalue']%500 != 0) echo '二级选择'; + if ($fields['evalue']>500 && $fields['evalue']%500 != 0) echo '二级选择'; else echo '一级选择'; } else { echo "三级选择"; @@ -281,7 +281,7 @@ 更新 diff --git a/src/admin/templets/stepselect_showajax.htm b/src/admin/templets/stepselect_showajax.htm index 0ff711b6..7e7bbe91 100644 --- a/src/admin/templets/stepselect_showajax.htm +++ b/src/admin/templets/stepselect_showajax.htm @@ -1,8 +1,8 @@ GetOne("Select * from `#@__stepselect` where id='$id' "); $sbjs = " onsubmit=\"alert('该分类是系统内置枚举,不允许修改'); return false;\" "; -if($arr['issystem']==0) $sbjs = ''; +if ($arr['issystem']==0) $sbjs = ''; ?> 修改类别 关闭 @@ -16,7 +16,7 @@ if($arr['issystem']==0) $sbjs = '';
新增类别 关闭 @@ -29,11 +29,11 @@ if($arr['issystem']==0) $sbjs = '';
GetOne("Select * from `#@__stepselect` where id='$id' "); $dsql->Execute('out',"Select evalue,ename from `#@__sys_enum` where egroup='{$arr['egroup']}' And (evalue mod 500)=0 order by disorder asc,evalue asc"); $options = ''; -if($arr['issign']==0) +if ($arr['issign']==0) { while($row1 = $dsql->GetArray('out')) $options .= ""; } @@ -57,13 +57,13 @@ if($arr['issign']==0)
GetOne("Select * from `#@__stepselect` where id='$id' "); $dsql->Execute('out',"Select * From `#@__sys_enum` where egroup like '{$arr['egroup']}' order by disorder asc, evalue asc"); $options = ''; while($row1 = $dsql->GetArray('out')) { - if($row1['evalue']%500==0 || $arr['issign']==1) + if ($row1['evalue']%500==0 || $arr['issign']==1) { $options .= ""; } else { diff --git a/src/admin/templets/sys_admin_user_edit.htm b/src/admin/templets/sys_admin_user_edit.htm index a61af6e0..b2afb143 100644 --- a/src/admin/templets/sys_admin_user_edit.htm +++ b/src/admin/templets/sys_admin_user_edit.htm @@ -48,7 +48,7 @@ $dsql->Execute("ut"); while($myrow = $dsql->GetObject("ut")) { - if($row['usertype']==$myrow->rank) echo ""; + if ($row['usertype']==$myrow->rank) echo ""; else echo ""; } ?> diff --git a/src/admin/templets/sys_data.htm b/src/admin/templets/sys_data.htm index bcdb2729..b3967ce3 100644 --- a/src/admin/templets/sys_data.htm +++ b/src/admin/templets/sys_data.htm @@ -118,7 +118,7 @@
分卷大小: K - + diff --git a/src/admin/templets/sys_data_replace.htm b/src/admin/templets/sys_data_replace.htm index 286b8a0e..c245b207 100644 --- a/src/admin/templets/sys_data_replace.htm +++ b/src/admin/templets/sys_data_replace.htm @@ -66,7 +66,7 @@ SetQuery("Show Tables"); $dsql->Execute('t'); - if($dsql->GetError()!=''){ + if ($dsql->GetError()!=''){ echo "找不到您所指定的数据库 $dbname
"; echo $qbutton; } diff --git a/src/admin/templets/sys_data_revert.htm b/src/admin/templets/sys_data_revert.htm index 987ddd74..3ffeb780 100644 --- a/src/admin/templets/sys_data_revert.htm +++ b/src/admin/templets/sys_data_revert.htm @@ -71,7 +71,7 @@
发现的备份文件:发现的备份文件:
{$filelists[$i]}{$filelists[$i]} 权限设定 组用户 - system==0){?>[删除组] + system==0){?>[删除组]
+
@@ -161,7 +161,7 @@ $dsql->Execute(); $i = 1; while($row = $dsql->GetArray()) { - if($i%2==0) { + if ($i%2==0) { $bgcolor = "#f8f8f8"; } else { $bgcolor = "#ffffff"; @@ -172,20 +172,20 @@ @@ -79,39 +79,39 @@
变量说明 变量值 是 "; echo " "; - } else if($row['type']=='bstring') { + } else if ($row['type']=='bstring') { $row['value'] = stripslashes($row['value']); echo ""; - } else if($row['type']=='number') { + } else if ($row['type']=='number') { echo ""; - } else if($row['type']=='img') { + } else if ($row['type']=='img') { echo " "; - if($row['value']){ + if ($row['value']){ echo " "; } else { echo " "; diff --git a/src/admin/templets/sys_info_mark.htm b/src/admin/templets/sys_info_mark.htm index 5618e2d1..0697fa06 100644 --- a/src/admin/templets/sys_info_mark.htm +++ b/src/admin/templets/sys_info_mark.htm @@ -19,23 +19,23 @@
上传的图片是否使用图片水印功能:
- - + +
采集的图片是否使用图片水印功能: - - + +
选择水印的文件类型: - - - + + +
水印位置: - +
- + - + - +
- + - + - +
- + - + - +
diff --git a/src/admin/templets/sys_payment.htm b/src/admin/templets/sys_payment.htm index 4f5f7e5c..329e4e91 100644 --- a/src/admin/templets/sys_payment.htm +++ b/src/admin/templets/sys_payment.htm @@ -35,12 +35,12 @@
{dede:field.rank/} 安装 修改 删除 diff --git a/src/admin/templets/tag_test.htm b/src/admin/templets/tag_test.htm index 05ac8d53..8cc7eff6 100644 --- a/src/admin/templets/tag_test.htm +++ b/src/admin/templets/tag_test.htm @@ -49,11 +49,11 @@ 环境变量: GetOptionArray($cid,$admin_catalogs,0); echo ""; ?> diff --git a/src/admin/templets/templets_default.htm b/src/admin/templets/templets_default.htm index b8fde688..7c30be1c 100644 --- a/src/admin/templets/templets_default.htm +++ b/src/admin/templets/templets_default.htm @@ -29,8 +29,8 @@ 当前位置: @@ -43,7 +43,7 @@ diff --git a/src/admin/templets/templets_one.htm b/src/admin/templets/templets_one.htm index 5780e6cb..ad49752e 100644 --- a/src/admin/templets/templets_one.htm +++ b/src/admin/templets/templets_one.htm @@ -13,7 +13,7 @@ - + diff --git a/src/admin/templets/templets_one_edit.htm b/src/admin/templets/templets_one_edit.htm index 2de78b4b..a55e6017 100644 --- a/src/admin/templets/templets_one_edit.htm +++ b/src/admin/templets/templets_one_edit.htm @@ -13,13 +13,13 @@ 增大 diff --git a/src/admin/templets/vote_edit.htm b/src/admin/templets/vote_edit.htm index 7907e317..066cb884 100644 --- a/src/admin/templets/vote_edit.htm +++ b/src/admin/templets/vote_edit.htm @@ -76,15 +76,15 @@ @@ -94,8 +94,8 @@ @@ -106,8 +106,8 @@ diff --git a/src/admin/templets/vote_main.htm b/src/admin/templets/vote_main.htm index ec7671b1..4026781a 100644 --- a/src/admin/templets/vote_main.htm +++ b/src/admin/templets/vote_main.htm @@ -30,7 +30,7 @@ - + \r\n"; + if ($col>1) $artlist .= "\r\n"; for($j=0; $j<$col; $j++) { - if($col>1) $artlist .= " \r\n"; + if ($col>1) $artlist .= " \r\n"; }//Loop Col - if($col>1) $i += $col - 1; - if($col>1) $artlist .= " \r\n"; + if ($col>1) $i += $col - 1; + if ($col>1) $artlist .= " \r\n"; }//loop line - if($col>1) $artlist .= "
不限"; while($arr = $dsql->GetArray('s')) { - if($likeid==$arr['likeid']) echo ""; + if ($likeid==$arr['likeid']) echo ""; else echo ""; } echo ""; diff --git a/src/admin/templets/templets_one_add.htm b/src/admin/templets/templets_one_add.htm index 740560ed..029875b7 100644 --- a/src/admin/templets/templets_one_add.htm +++ b/src/admin/templets/templets_one_add.htm @@ -77,7 +77,7 @@
是否编译内容: - +
是否允许游客投票: -   - +   +
是否允许查看投票: -   - +   +
是否多选: - - + +
是否启用: -   - +   +
{dede:field.starttime function="GetDateMk(@me)"/} {dede:field.endtime function="GetDateMk(@me)"/} {dede:field.totalcount/}未启用";} else {echo "启用";} ?>未启用";} else {echo "启用";} ?> 代码 修改 diff --git a/src/admin/tpl.php b/src/admin/tpl.php index 5691b3db..cf2d8e0d 100644 --- a/src/admin/tpl.php +++ b/src/admin/tpl.php @@ -175,7 +175,7 @@ function edittag() { } else if ($action == 'edittag' || $action == 'addnewtag') { if ($action == 'addnewtag') { $democode = '<'."?php -if(!defined('DEDEINC')) +if (!defined('DEDEINC')) { exit(\"Request Error!\"); } diff --git a/src/apps/arcmulti.php b/src/apps/arcmulti.php index 13aef6ea..755f724c 100755 --- a/src/apps/arcmulti.php +++ b/src/apps/arcmulti.php @@ -5,8 +5,8 @@ require_once(DEDEINC.'/taglib/arcpagelist.lib.php'); $mtype = empty($mtype)? 0 : intval(preg_replace("/[^\d]/",'', $mtype)); $pnum = empty($pnum)? 0 : intval(preg_replace("/[^\d]/",'', $pnum)); $tagid = empty($tagid)? '' : (preg_replace("/[^a-z0-9]/",'', $tagid)); -if($tagid=='' || $pnum==0) die("dedebiz"); -if($tagid !='') +if ($tagid=='' || $pnum==0) die("dedebiz"); +if ($tagid !='') { $row = $dsql->GetOne("SELECT * FROM `#@__arcmulti` WHERE tagid='$tagid'"); $ids = explode(',', $row['arcids']); @@ -18,7 +18,7 @@ if($tagid !='') //通过页面及总数解析当前页面数据范围 $strnum = ($pnum-1) * $row['pagesize']; $limitsql = " LIMIT $strnum,{$row['pagesize']} "; - if($mtype == 0) + if ($mtype == 0) { //处理列表内容项 $query = "SELECT arc.*,tp.typedir,tp.typename,tp.corank,tp.isdefault,tp.defaultname,tp.namerule,tp.namerule2,tp.ispart,tp.moresite,tp.siteurl,tp.sitepath {$row['addfieldsSql']} FROM `#@__archives` arc LEFT JOIN `#@__arctype` tp ON arc.typeid=tp.id {$row['addfieldsSqlJoin']} WHERE arc.id IN({$row['arcids']}) {$row['ordersql']} $limitsql"; @@ -31,17 +31,17 @@ if($tagid !='') $ids = array(); for($i=0; $i<$line; $i++) { - if($col>1) $artlist .= "
\r\n"; - if($row = $dsql->GetArray("al")) + if ($col>1) $artlist .= " \r\n"; + if ($row = $dsql->GetArray("al")) { $ids[] = $row['id']; //处理一些特殊字段 $row['info'] = $row['infos'] = cn_substr($row['description'],$infolen); $row['id'] = $row['id']; - if($row['corank'] > 0 && $row['arcrank']==0) + if ($row['corank'] > 0 && $row['arcrank']==0) { $row['arcrank'] = $row['corank']; } @@ -49,11 +49,11 @@ if($tagid !='') $row['arcrank'],$row['namerule'],$row['typedir'],$row['money'],$row['filename'],$row['moresite'],$row['siteurl'],$row['sitepath']); $row['typeurl'] = GetTypeUrl($row['typeid'],$row['typedir'],$row['isdefault'],$row['defaultname'],$row['ispart'], $row['namerule2'],$row['moresite'],$row['siteurl'],$row['sitepath']); - if($row['litpic'] == '-' || $row['litpic'] == '') + if ($row['litpic'] == '-' || $row['litpic'] == '') { $row['litpic'] = $GLOBALS['cfg_cmspath'].'/static/web/img/defaultpic.jpg'; } - if(!preg_match("#^http:\/\/#", $row['litpic']) && $GLOBALS['cfg_multi_site'] == 'Y') + if (!preg_match("#^http:\/\/#", $row['litpic']) && $GLOBALS['cfg_multi_site'] == 'Y') { $row['litpic'] = $GLOBALS['cfg_mainsite'].$row['litpic']; } @@ -64,23 +64,23 @@ if($tagid !='') $row['imglink'] = "".$row['image'].""; $row['fulltitle'] = $row['title']; $row['title'] = cn_substr($row['title'],$titlelen); - if($row['color']!='') $row['title'] = "".$row['title'].""; - if(preg_match('#b#', $row['flag'])) $row['title'] = "".$row['title'].""; + if ($row['color']!='') $row['title'] = "".$row['title'].""; + if (preg_match('#b#', $row['flag'])) $row['title'] = "".$row['title'].""; //$row['title'] = "".$row['title'].""; $row['textlink'] = "".$row['title'].""; $row['plusurl'] = $row['phpurl'] = $GLOBALS['cfg_phpurl']; $row['memberurl'] = $GLOBALS['cfg_memberurl']; $row['templeturl'] = $GLOBALS['cfg_templeturl']; - if(is_array($dtp2->CTags)) + if (is_array($dtp2->CTags)) { foreach($dtp2->CTags as $k=>$ctag) { - if($ctag->GetName()=='array') + if ($ctag->GetName()=='array') { //传递整个数组,在runphp模式中有特殊作用 $dtp2->Assign($k,$row); } else { - if(isset($row[$ctag->GetName()])) $dtp2->Assign($k,$row[$ctag->GetName()]); + if (isset($row[$ctag->GetName()])) $dtp2->Assign($k,$row[$ctag->GetName()]); else $dtp2->Assign($k,''); } } @@ -91,12 +91,12 @@ if($tagid !='') else { $artlist .= ''; } - if($col>1) $artlist .= "
\r\n"; + if ($col>1) $artlist .= "
\r\n"; $dsql->FreeResult("al"); } else { //处理分页字段 diff --git a/src/apps/diy.php b/src/apps/diy.php index 5ac382ae..f3d3928b 100755 --- a/src/apps/diy.php +++ b/src/apps/diy.php @@ -52,12 +52,12 @@ if ($action == 'post') { ${$fieldinfo[0]} = addslashes(${$fieldinfo[0]}); } //获取地址,表单添加text数据类型ip字段型后模板用 - if($fieldinfo[0] == 'ip') + if ($fieldinfo[0] == 'ip') { ${$fieldinfo[0]}=GetIP(); } //获取时间,表单添加text数据类型sj字段型后模板用 - if($fieldinfo[0] == 'sj') + if ($fieldinfo[0] == 'sj') { ${$fieldinfo[0]}=date("Y-m-d H:i"); } else { diff --git a/src/install/index.php b/src/install/index.php index a1daf238..37c402c2 100644 --- a/src/install/index.php +++ b/src/install/index.php @@ -27,11 +27,11 @@ foreach(Array('_GET','_POST','_COOKIE') as $_request) foreach($$_request as $_k => $_v) ${$_k} = RunMagicQuotes($_v); } require_once(DEDEINC.'/common.func.php'); -if(file_exists(INSLOCKFILE)) +if (file_exists(INSLOCKFILE)) { die(DedeAlert("程序已运行安装,如果您确定要重新安装,请先删除 /install/install_lock.txt",ALERT_DANGER)); } -if(empty($step)) +if (empty($step)) { $step = 1; } @@ -40,7 +40,7 @@ $proto = IsSSL()? "https://" : "http://"; 使用协议书 function _1_Agreement() ------------------------*/ -if($step==1) +if ($step==1) { $arrMsg = array(); if (version_compare(PHP_VERSION, '5.3.0', '<')) { @@ -64,13 +64,13 @@ if($step==1) if (!extension_loaded("gd")) { $arrMsg[] = "GD未开启,将无法使用验证码、二维码、图片水印等功能"; } - if(!empty($_SERVER['REQUEST_URI'])) + if (!empty($_SERVER['REQUEST_URI'])) $scriptName = $_SERVER['REQUEST_URI']; else $scriptName = $_SERVER['PHP_SELF']; $basepath = preg_replace("#\/install(.*)$#i", '', $scriptName); - if(!empty($_SERVER['HTTP_HOST'])) + if (!empty($_SERVER['HTTP_HOST'])) $baseurl = $proto.$_SERVER['HTTP_HOST']; else $baseurl = $proto.$_SERVER['SERVER_NAME']; @@ -89,14 +89,14 @@ if($step==1) 普通安装 function _2_Setup() ------------------------*/ -else if($step==2) +else if ($step==2) { $dbtype = empty($dbtype)? "mysql" : $dbtype; $dblang = "utf8"; if (!in_array($dbtype,array("mysql", "sqlite"))) { die("当前数据库类型不支持"); } - if(!empty($_SERVER['HTTP_HOST'])) + if (!empty($_SERVER['HTTP_HOST'])) $dfbaseurl = $proto.$_SERVER['HTTP_HOST']; else $dfbaseurl = $proto.$_SERVER['SERVER_NAME']; @@ -146,8 +146,8 @@ else if($step==2) fclose($fp); //config.cache.inc.php $cmspath = trim(preg_replace("#\/{1,}#", '/', $cmspath)); - if($cmspath!='' && !preg_match("#^\/#", $cmspath)) $cmspath = '/'.$cmspath; - if($cmspath=='') $indexUrl = '/'; + if ($cmspath!='' && !preg_match("#^\/#", $cmspath)) $cmspath = '/'.$cmspath; + if ($cmspath=='') $indexUrl = '/'; else $indexUrl = $cmspath; $configStr2 = str_replace("~baseurl~",$baseurl,$configStr2); $configStr2 = str_replace("~basepath~",$cmspath,$configStr2); @@ -161,7 +161,7 @@ else if($step==2) $fp = fopen(DEDEDATA.'/config.cache.bak.php','w'); fwrite($fp,$configStr2); fclose($fp); - if($mysqlVersion >= 4.1) + if ($mysqlVersion >= 4.1) { $sql4tmp = "ENGINE=MyISAM DEFAULT CHARSET=".$dblang; } @@ -171,7 +171,7 @@ else if($step==2) while(!feof($fp)) { $line = rtrim(fgets($fp,1024)); - if(preg_match("#;$#", $line)) + if (preg_match("#;$#", $line)) { $query .= $line."\n"; $query = str_replace('#@__',$dbprefix,$query); @@ -197,11 +197,11 @@ else if($step==2) } $db->exec($query); } else { - if($mysqlVersion < 4.1) + if ($mysqlVersion < 4.1) { $rs = mysql_query($query,$conn); } else { - if(preg_match('#CREATE#i', $query)) + if (preg_match('#CREATE#i', $query)) { $rs = mysql_query(preg_replace("#TYPE=MyISAM#i",$sql4tmp,$query),$conn); } else { @@ -210,7 +210,7 @@ else if($step==2) } } $query=''; - } else if(!preg_match("#^(\/\/|--)#", $line)) + } else if (!preg_match("#^(\/\/|--)#", $line)) { $query .= $line; } @@ -222,7 +222,7 @@ else if($step==2) while(!feof($fp)) { $line = rtrim(fgets($fp, 1024)); - if(preg_match("#;$#", $line)) + if (preg_match("#;$#", $line)) { if ( $dbtype == 'sqlite' ) { @@ -233,11 +233,11 @@ else if($step==2) } else { $query .= $line; $query = str_replace('#@__',$dbprefix,$query); - if($mysqlVersion < 4.1) $rs = mysql_query($query,$conn); + if ($mysqlVersion < 4.1) $rs = mysql_query($query,$conn); else $rs = mysql_query(str_replace('#~lang~#',$dblang,$query),$conn); } $query=''; - } else if(!preg_match("#^(\/\/|--)#", $line)) + } else if (!preg_match("#^(\/\/|--)#", $line)) { $query .= $line; } @@ -287,16 +287,16 @@ else if($step==2) 检测数据库是否有效 function _10_TestDbPwd() ------------------------*/ -else if($step==10) +else if ($step==10) { header("Pragma:no-cache\r\n"); header("Cache-Control:no-cache\r\n"); header("Expires:0\r\n"); $conn = @mysql_connect($dbhost,$dbuser,$dbpwd); $info = ""; - if($conn) + if ($conn) { - if(empty($dbname)){ + if (empty($dbname)){ $info = "信息正确"; } else { $info = mysql_select_db($dbname,$conn)? "数据库已经存在,系统将覆盖数据库": "数据库不存在,系统将自动创建"; diff --git a/src/install/install.html b/src/install/install.html index 26d6861c..0733121a 100644 --- a/src/install/install.html +++ b/src/install/install.html @@ -29,7 +29,7 @@
0){ + if (count($arrMsg) > 0){ foreach($arrMsg as $msg){ ?>
diff --git a/src/install/sql-dfdata.txt b/src/install/sql-dfdata.txt index cfb69b27..74bf8be8 100755 --- a/src/install/sql-dfdata.txt +++ b/src/install/sql-dfdata.txt @@ -502,12 +502,12 @@ INSERT INTO `#@__area` VALUES ('1','北京市','0','0'), ('33','澳门区','0','0'), ('35','台湾省','0','0'); -INSERT INTO `#@__channeltype` VALUES ('1','article','普通文档','#@__archives','#@__addonarticle','article_add.php','content_list.php','article_edit.php','article_add.php','content_list.php','article_edit.php','\t\n\t\n','','','1','1','1','-1','','10','0','1','1','标题','0','0'), -('2','image','图片集','#@__archives','#@__addonimages','album_add.php','content_i_list.php','album_edit.php','album_add.php','content_list.php','album_edit.php','\t\n\t\n','','','1','1','1','-1','','10','0','1','1','标题','0','0'), -('3','soft','软件','#@__archives','#@__addonsoft','soft_add.php','content_i_list.php','soft_edit.php','','','','\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n','filetype,language,softtype,os,accredit,softrank','','1','1','1','-1','','10','0','1','1','标题','0','0'), -('6','shop','商品','#@__archives','#@__addonshop','archives_add.php','content_list.php','archives_edit.php','archives_add.php','content_list.php','archives_edit.php','\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\n\t\n\n\t\n\t\n\n\t\n\t\n\n\t\n\t\n','price,trueprice,brand,units','','0','1','1','-1','','10','0','1','1','商品名称','0','0'), -('-1','spec','专题','#@__archives','#@__addonspec','spec_add.php','content_s_list.php','spec_edit.php','','','','','','','1','1','0','-1','','10','0','1','1','标题','0','0'), -('-8','infos','分类信息','#@__archives','#@__addoninfos','archives_sg_add.php','content_sg_list.php','archives_sg_edit.php','archives_sg_add.php','content_sg_list.php','archives_sg_edit.php','\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n','channel,arcrank,mid,click,title,senddate,flag,litpic,lastpost,scores,goodpost,badpost,nativeplace,infotype,endtime','','-1','1','1','-1','','0','0','0','1','信息标题','0','0'); +INSERT INTO `#@__channeltype` VALUES ('1','article','文档模型','#@__archives','#@__addonarticle','article_add.php','content_list.php','article_edit.php','article_add.php','content_list.php','article_edit.php','\t\n\t\n','','','1','1','1','-1','','10','0','1','1','标题','0','0'), +('2','image','图片模型','#@__archives','#@__addonimages','album_add.php','content_i_list.php','album_edit.php','album_add.php','content_list.php','album_edit.php','\t\n\t\n','','','1','1','1','-1','','10','0','1','1','标题','0','0'), +('3','soft','软件模型','#@__archives','#@__addonsoft','soft_add.php','content_i_list.php','soft_edit.php','','','','\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n','filetype,language,softtype,os,accredit,softrank','','1','1','1','-1','','10','0','1','1','标题','0','0'), +('6','shop','商品模型','#@__archives','#@__addonshop','archives_add.php','content_list.php','archives_edit.php','archives_add.php','content_list.php','archives_edit.php','\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\n\t\n\n\t\n\t\n\n\t\n\t\n\n\t\n\t\n','price,trueprice,brand,units','','0','1','1','-1','','10','0','1','1','商品名称','0','0'), +('-1','spec','专题模型','#@__archives','#@__addonspec','spec_add.php','content_s_list.php','spec_edit.php','','','','','','','1','1','0','-1','','10','0','1','1','标题','0','0'), +('-8','infos','分类模型','#@__archives','#@__addoninfos','archives_sg_add.php','content_sg_list.php','archives_sg_edit.php','archives_sg_add.php','content_sg_list.php','archives_sg_edit.php','\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n','channel,arcrank,mid,click,title,senddate,flag,litpic,lastpost,scores,goodpost,badpost,nativeplace,infotype,endtime','','-1','1','1','-1','','0','0','0','1','信息标题','0','0'); INSERT INTO `#@__co_onepage` VALUES ('5','www.dedebiz.com','DedeBIZ','1','gb2312','
{@body}
'), ('4','www.techweb.com.cn','Techweb','1','gb2312','
{@body}
\t\n'), diff --git a/src/static/web/css/admin.css b/src/static/web/css/admin.css index a46ff7b1..cca39110 100644 --- a/src/static/web/css/admin.css +++ b/src/static/web/css/admin.css @@ -398,14 +398,6 @@ span.page-link { margin-right:10px; width:360px } -.biz-win { - background:#f8f8f8; - border:1px solid #dee2e6 -} -.biz-win-iframe { - width:100%; - height:360px -} .biz-updates { display:inline-block; position:absolute; @@ -416,9 +408,21 @@ span.page-link { background:#dc3545; border-radius:50% } +.biz-win { + background:#f8f8f8; + border:1px solid #dee2e6 +} +.biz-win-iframe { + width:100%; + height:360px +} .biz-border { border:1px solid #dee2e6 } +.biz-textarea { + width:98%; + height:90px +} .biz-itemnote1 { background:#f8fcf2; border-radius:.2rem .2rem 0 0 diff --git a/src/system/archive/archives.class.php b/src/system/archive/archives.class.php index e2b510f4..a8868c90 100755 --- a/src/system/archive/archives.class.php +++ b/src/system/archive/archives.class.php @@ -589,10 +589,10 @@ class Archives $this->dtp->Assign($i, $this->GetPreNext($ctag->GetAtt('get'))); } //二次开发上一篇下一篇{dede:prenextdiy get='pre'}{/dede:prenextdiy}{dede:prenextdiy get='next'}{/dede:prenextdiy} - else if($ctag->GetName()=='prenextdiy') + else if ($ctag->GetName()=='prenextdiy') { $innertext = trim($ctag->GetInnerText()); - if($innertext) + if ($innertext) { $get = $ctag->GetAtt('get'); $diys['diy'] = $this->GetPreNext('diy'); @@ -604,14 +604,14 @@ class Archives { foreach($dtp2->CTags as $tid=>$ctag2) { - if(isset($row[$get][$ctag2->GetName()])) + if (isset($row[$get][$ctag2->GetName()])) { $dtp2->Assign($tid,$row[$get][$ctag2->GetName()]); } } $revalue .= $dtp2->GetResult(); } - if($row[$get]['id']) $this->dtp->Assign($i,$revalue); + if ($row[$get]['id']) $this->dtp->Assign($i,$revalue); } } else if ($ctag->GetName() == 'fieldlist') { @@ -742,11 +742,11 @@ class Archives } } //二次开发上一篇下一篇 - if($gtype=='diy') + if ($gtype=='diy') { return $this->PreNext['diy']; } - if($gtype=='pre') + if ($gtype=='pre') { $rs = $this->PreNext['pre']; } else if ($gtype == 'preimg') { diff --git a/src/system/archive/freelist.class.php b/src/system/archive/freelist.class.php index 2983c597..83896149 100755 --- a/src/system/archive/freelist.class.php +++ b/src/system/archive/freelist.class.php @@ -58,7 +58,7 @@ class FreeList } $channelid = $this->ListObj->GetAtt('channel'); /* - if(empty($channelid)) + if (empty($channelid)) { showmsg('必须指定频道','-1');exit(); } else { diff --git a/src/system/archive/listview.class.php b/src/system/archive/listview.class.php index 3ce93be7..6bdd1cb5 100755 --- a/src/system/archive/listview.class.php +++ b/src/system/archive/listview.class.php @@ -130,11 +130,11 @@ class ListView function CountRecord() { global $cfg_list_son,$cfg_need_typeid2,$cfg_cross_sectypeid; - if(empty($cfg_need_typeid2)) $cfg_need_typeid2 = 'N'; + if (empty($cfg_need_typeid2)) $cfg_need_typeid2 = 'N'; //获得附加表的相关信息 $addtable = $this->ChannelUnit->ChannelInfos['addtable']; $filtersql = ''; - if($addtable!="") + if ($addtable!="") { $addJoin = " LEFT JOIN `$addtable` ON arc.id = ".$addtable.'.aid '; $addField = ''; @@ -143,13 +143,13 @@ class ListView { $nfields[$v] = $k; } - if(is_array($this->ChannelUnit->ChannelFields) && !empty($this->ChannelUnit->ChannelFields)) + if (is_array($this->ChannelUnit->ChannelFields) && !empty($this->ChannelUnit->ChannelFields)) { foreach($this->ChannelUnit->ChannelFields as $k=>$arr) { - if(isset($nfields[$k])) + if (isset($nfields[$k])) { - if(!empty($arr['rename'])) { + if (!empty($arr['rename'])) { $addField .= ','.$addtable.'.'.$k.' as '.$arr['rename']; } else { @@ -218,7 +218,7 @@ class ListView } } } - if($this->TotalResult==-1) + if ($this->TotalResult==-1) { $cquery = "SELECT COUNT(*) AS dd FROM `#@__arctiny` arc $addJoin WHERE ".$this->addSql.$filtersql; $row = $this->dsql->GetOne($cquery); @@ -635,7 +635,7 @@ class ListView $filtersql = ''; //获得附加表的相关信息 $addtable = $this->ChannelUnit->ChannelInfos['addtable']; - if($addtable!="") + if ($addtable!="") { $addJoin = " LEFT JOIN `$addtable` ON arc.id = ".$addtable.'.aid '; $addField = ''; @@ -644,13 +644,13 @@ class ListView { $nfields[$v] = $k; } - if(is_array($this->ChannelUnit->ChannelFields) && !empty($this->ChannelUnit->ChannelFields)) + if (is_array($this->ChannelUnit->ChannelFields) && !empty($this->ChannelUnit->ChannelFields)) { foreach($this->ChannelUnit->ChannelFields as $k=>$arr) { - if(isset($nfields[$k])) + if (isset($nfields[$k])) { - if(!empty($arr['rename'])) { + if (!empty($arr['rename'])) { $addField .= ','.$addtable.'.'.$k.' as '.$arr['rename']; } else { diff --git a/src/system/archive/sglistview.class.php b/src/system/archive/sglistview.class.php index da5aa3cd..260ad723 100755 --- a/src/system/archive/sglistview.class.php +++ b/src/system/archive/sglistview.class.php @@ -717,7 +717,7 @@ class SgListView $optionlist = "
  • - +
  • diff --git a/src/theme/plus/carbuyaction.htm b/src/theme/plus/carbuyaction.htm index 1791e8ce..02d25dfb 100644 --- a/src/theme/plus/carbuyaction.htm +++ b/src/theme/plus/carbuyaction.htm @@ -16,7 +16,7 @@

    商品购买

    - IsLogin()){?> + IsLogin()){?> diff --git a/src/theme/plus/flink-list.htm b/src/theme/plus/flink-list.htm index 835ffe28..d0a1f305 100644 --- a/src/theme/plus/flink-list.htm +++ b/src/theme/plus/flink-list.htm @@ -34,15 +34,15 @@ $revalue = ""; for($i=1;$i<=$row;$i++) { - if($dbrow=$dsql->GetObject()) + if ($dbrow=$dsql->GetObject()) { $wtitle = cn_substr($dbrow->webname,$titlelen); - if($dbrow->logo=="") + if ($dbrow->logo=="") $revalue.= "
  • $wtitle
  • "; else $revalue.= "
  • $wtitle
  • "; } - if(!$dbrow) break; + if (!$dbrow) break; } echo $revalue; ?> diff --git a/src/theme/plus/list_diyform.htm b/src/theme/plus/list_diyform.htm index 551ba965..eced00ae 100644 --- a/src/theme/plus/list_diyform.htm +++ b/src/theme/plus/list_diyform.htm @@ -28,25 +28,25 @@ {dede:datalist}
    欢迎来到本网站,请 登录注册
    '; echo ''; echo ''; foreach($fieldlist as $field=>$fielddata) { - if($fields[$field]=='') continue; - if($fielddata[1]=='img') + if ($fields[$field]=='') continue; + if ($fielddata[1]=='img') { $fields[$field] = " 图片附件"; } - else if($fielddata[1]=='addon') + else if ($fielddata[1]=='addon') { $fields[$field] = " 其它附件"; } else { - if($fielddata[1]=='htmltext') $fields[$field] = html2text($fields[$field]); + if ($fielddata[1]=='htmltext') $fields[$field] = html2text($fields[$field]); else $fields[$field] = dede_htmlspecialchars($fields[$field]); - if( strlen($fields[$field]) > 250 ) + if ( strlen($fields[$field]) > 250 ) { $fields[$field] = cn_substr( $fields[$field], 250).''; } diff --git a/src/theme/plus/view_diyform.htm b/src/theme/plus/view_diyform.htm index 062cd599..2703eb43 100644 --- a/src/theme/plus/view_diyform.htm +++ b/src/theme/plus/view_diyform.htm @@ -25,16 +25,16 @@ $allowhtml = array('htmltext'); foreach($fieldlist as $field=>$fielddata) { - if($row[$field]=='') continue; - if($fielddata[1]=='img') + if ($row[$field]=='') continue; + if ($fielddata[1]=='img') { $row[$field] = ""; } - else if($fielddata[1]=='addon') + else if ($fielddata[1]=='addon') { $row[$field] = " 相关附件"; } else { - if(!in_array($fielddata[1], $allowhtml)) + if (!in_array($fielddata[1], $allowhtml)) { $row[$field] = htmlspecialchars($row[$field]); } diff --git a/src/theme/templets/article_image.htm b/src/theme/templets/article_image.htm index b15cee78..dc7f8934 100644 --- a/src/theme/templets/article_image.htm +++ b/src/theme/templets/article_image.htm @@ -90,10 +90,10 @@
    {dede:field name='pagestyle' alt='根据不同的页面风格输出不同的头信息' runphp='yes'} - if(@me==3) { + if (@me==3) { @me = '
      '; } - else if(@me==2) { + else if (@me==2) { @me = "
      原始图片 @@ -118,11 +118,11 @@ [field:pagestyle runphp='yes'] @me = (@me==3 ? '' : ''); [/field:pagestyle] {/dede:field} {dede:field name='pagestyle' alt='根据不同的风格输出不同的结尾信息' runphp='yes'} - if(@me==3) { + if (@me==3) { @me = '
    '; } - else if(@me==2) { + else if (@me==2) { @me = "
    id
    '.$fields['id'].'