@@ -10,6 +10,10 @@ | |||||
- 优化后台和前台资源整理一起方便维护; | - 优化后台和前台资源整理一起方便维护; | ||||
- 优化会员中心资料修改繁琐问题; | - 优化会员中心资料修改繁琐问题; | ||||
- 优化默认模板和插件模板; | - 优化默认模板和插件模板; | ||||
- 优化自定义表单搜索; | |||||
- 优化标签管理搜索; | |||||
- 优化列表分页省略号功能; | |||||
- 优化静态栏目时不生成目录文件夹; | |||||
- 修正谷歌浏览器错误提示; | - 修正谷歌浏览器错误提示; | ||||
- 修正伪静态栏目开启绝对链接问题; | - 修正伪静态栏目开启绝对链接问题; | ||||
- 修正富文本的错误问题; | - 修正富文本的错误问题; | ||||
@@ -11,7 +11,7 @@ | |||||
require_once(dirname(__FILE__)."/config.php"); | require_once(dirname(__FILE__)."/config.php"); | ||||
require_once(dirname(__FILE__)."/actionsearch_class.php"); | require_once(dirname(__FILE__)."/actionsearch_class.php"); | ||||
//添加权限检查 | //添加权限检查 | ||||
if (empty($dopost)) $dopost = ""; | |||||
if (empty($dopost)) $dopost = ''; | |||||
$keyword = empty($keyword) ? "" : RemoveXss($keyword); | $keyword = empty($keyword) ? "" : RemoveXss($keyword); | ||||
$actsearch = new ActionSearch($keyword); | $actsearch = new ActionSearch($keyword); | ||||
$asresult = $actsearch->Search(); | $asresult = $actsearch->Search(); | ||||
@@ -11,7 +11,7 @@ | |||||
require(dirname(__FILE__)."/config.php"); | require(dirname(__FILE__)."/config.php"); | ||||
CheckPurview('plus_广告管理'); | CheckPurview('plus_广告管理'); | ||||
require_once DEDEINC."/typelink/typelink.class.php"; | require_once DEDEINC."/typelink/typelink.class.php"; | ||||
if (empty($dopost)) $dopost = ""; | |||||
if (empty($dopost)) $dopost = ''; | |||||
if ($dopost == "save") { | if ($dopost == "save") { | ||||
CheckCSRF(); | CheckCSRF(); | ||||
//timeset tagname typeid normbody expbody | //timeset tagname typeid normbody expbody | ||||
@@ -30,24 +30,24 @@ if ($dopost == "save") { | |||||
$normbody = "<a href=\"{$link}\" font-size=\"{$normbody['size']}\" color=\"{$normbody['color']}\">{$normbody['title']}</a>"; | $normbody = "<a href=\"{$link}\" font-size=\"{$normbody['size']}\" color=\"{$normbody['color']}\">{$normbody['title']}</a>"; | ||||
} else if ($normbody['style'] == 'img') { | } else if ($normbody['style'] == 'img') { | ||||
if (empty($normbody['width'])) { | if (empty($normbody['width'])) { | ||||
$width = ""; | |||||
$width = ''; | |||||
} else { | } else { | ||||
$width = " width=\"{$normbody['width']}\""; | $width = " width=\"{$normbody['width']}\""; | ||||
} | } | ||||
if (empty($normbody['height'])) { | if (empty($normbody['height'])) { | ||||
$height = ""; | |||||
$height = ''; | |||||
} else { | } else { | ||||
$height = "height=\"{$normbody['height']}\""; | $height = "height=\"{$normbody['height']}\""; | ||||
} | } | ||||
$normbody = "<a href=\"{$link}\"><img src=\"{$normbody['url']}\"$width $height></a>"; | $normbody = "<a href=\"{$link}\"><img src=\"{$normbody['url']}\"$width $height></a>"; | ||||
} else { | } else { | ||||
if (empty($normbody['width'])) { | if (empty($normbody['width'])) { | ||||
$width = ""; | |||||
$width = ''; | |||||
} else { | } else { | ||||
$width = " width=\"{$normbody['width']}\""; | $width = " width=\"{$normbody['width']}\""; | ||||
} | } | ||||
if (empty($normbody['height'])) { | if (empty($normbody['height'])) { | ||||
$height = ""; | |||||
$height = ''; | |||||
} else { | } else { | ||||
$height = "height=\"{$normbody['height']}\""; | $height = "height=\"{$normbody['height']}\""; | ||||
} | } | ||||
@@ -46,7 +46,7 @@ if ($dopost != 'save') { | |||||
if (!isset($dellink)) $dellink = 0; | if (!isset($dellink)) $dellink = 0; | ||||
if (!isset($autolitpic)) $autolitpic = 0; | if (!isset($autolitpic)) $autolitpic = 0; | ||||
if (!isset($ddisfirst)) $ddisfirst = 0; | if (!isset($ddisfirst)) $ddisfirst = 0; | ||||
if (!isset($albums)) $albums = ""; | |||||
if (!isset($albums)) $albums = ''; | |||||
if (!isset($delzip)) $delzip = 0; | if (!isset($delzip)) $delzip = 0; | ||||
if (empty($click)) $click = ($cfg_arc_click == '-1' ? mt_rand(1000, 6000) : $cfg_arc_click); | if (empty($click)) $click = ($cfg_arc_click == '-1' ? mt_rand(1000, 6000) : $cfg_arc_click); | ||||
if (trim($title) == '') { | if (trim($title) == '') { | ||||
@@ -58,7 +58,7 @@ if ($dopost != 'save') { | |||||
if (!isset($remote)) $remote = 0; | if (!isset($remote)) $remote = 0; | ||||
if (!isset($dellink)) $dellink = 0; | if (!isset($dellink)) $dellink = 0; | ||||
if (!isset($autolitpic)) $autolitpic = 0; | if (!isset($autolitpic)) $autolitpic = 0; | ||||
if (!isset($albums)) $albums = ""; | |||||
if (!isset($albums)) $albums = ''; | |||||
if (!isset($formzip)) $formzip = 0; | if (!isset($formzip)) $formzip = 0; | ||||
if (!isset($ddisfirst)) $ddisfirst = 0; | if (!isset($ddisfirst)) $ddisfirst = 0; | ||||
if (!isset($delzip)) $delzip = 0; | if (!isset($delzip)) $delzip = 0; | ||||
@@ -31,7 +31,7 @@ if ($dojob == '') { | |||||
//获取自动摘要 | //获取自动摘要 | ||||
if ($dojob == 'des') { | if ($dojob == 'des') { | ||||
if (empty($totalnum)) { | if (empty($totalnum)) { | ||||
$addquery = ""; | |||||
$addquery = ''; | |||||
if ($sid != 0) { | if ($sid != 0) { | ||||
$addquery .= " AND id>='$sid' "; | $addquery .= " AND id>='$sid' "; | ||||
} | } | ||||
@@ -43,7 +43,7 @@ if ($dojob == '') { | |||||
$totalnum = $row['dd']; | $totalnum = $row['dd']; | ||||
} | } | ||||
if ($totalnum > 0) { | if ($totalnum > 0) { | ||||
$addquery = ""; | |||||
$addquery = ''; | |||||
if ($sid != 0) { | if ($sid != 0) { | ||||
$addquery .= " AND `#@__archives`.id>='$sid' "; | $addquery .= " AND `#@__archives`.id>='$sid' "; | ||||
} | } | ||||
@@ -92,7 +92,7 @@ if ($dojob == '') { | |||||
//更新自动分页 | //更新自动分页 | ||||
if ($dojob == 'page') { | if ($dojob == 'page') { | ||||
require_once(DEDEADMIN."/inc/inc_archives_functions.php"); | require_once(DEDEADMIN."/inc/inc_archives_functions.php"); | ||||
$addquery = ""; | |||||
$addquery = ''; | |||||
if ($sid != 0) { | if ($sid != 0) { | ||||
$addquery .= " and aid>='$sid' "; | $addquery .= " and aid>='$sid' "; | ||||
} | } | ||||
@@ -111,7 +111,7 @@ if ($dojob == '') { | |||||
} else if (($totalnum - $startdd) > 0) { | } else if (($totalnum - $startdd) > 0) { | ||||
$limitSql = " LIMIT $startdd,".($totalnum - $startdd); | $limitSql = " LIMIT $startdd,".($totalnum - $startdd); | ||||
} else { | } else { | ||||
$limitSql = ""; | |||||
$limitSql = ''; | |||||
} | } | ||||
$tjnum = $startdd; | $tjnum = $startdd; | ||||
if ($limitSql != "") { | if ($limitSql != "") { | ||||
@@ -12,7 +12,7 @@ require_once(dirname(__FILE__)."/config.php"); | |||||
require_once(DEDEINC."/datalistcp.class.php"); | require_once(DEDEINC."/datalistcp.class.php"); | ||||
setcookie("ENV_GOBACK_URL", $dedeNowurl, time() + 3600, "/"); | setcookie("ENV_GOBACK_URL", $dedeNowurl, time() + 3600, "/"); | ||||
$f = RemoveXSS($f); | $f = RemoveXSS($f); | ||||
if (empty($keywords)) $keywords = ""; | |||||
if (empty($keywords)) $keywords = ''; | |||||
$sql = "SELECT * FROM `#@__keywords` ORDER BY `rank` DESC"; | $sql = "SELECT * FROM `#@__keywords` ORDER BY `rank` DESC"; | ||||
$dlist = new DataListCP(); | $dlist = new DataListCP(); | ||||
$dlist->SetTemplate(DEDEADMIN."/templets/article_keywords_select.htm"); | $dlist->SetTemplate(DEDEADMIN."/templets/article_keywords_select.htm"); | ||||
@@ -13,7 +13,7 @@ require_once(DEDEINC.'/datalistcp.class.php'); | |||||
$dopost = empty($dopost) ? "" : $dopost; | $dopost = empty($dopost) ? "" : $dopost; | ||||
if ($dopost == "delete") { | if ($dopost == "delete") { | ||||
$ids = explode('`', $aids); | $ids = explode('`', $aids); | ||||
$dquery = ""; | |||||
$dquery = ''; | |||||
foreach ($ids as $id) { | foreach ($ids as $id) { | ||||
if ($dquery == "") $dquery .= "aid='$id' "; | if ($dquery == "") $dquery .= "aid='$id' "; | ||||
else $dquery .= " OR aid='$id' "; | else $dquery .= " OR aid='$id' "; | ||||
@@ -10,7 +10,7 @@ | |||||
*/ | */ | ||||
require_once(dirname(__FILE__).'/config.php'); | require_once(dirname(__FILE__).'/config.php'); | ||||
CheckPurview('member_Type'); | CheckPurview('member_Type'); | ||||
if (empty($dopost)) $dopost = ""; | |||||
if (empty($dopost)) $dopost = ''; | |||||
//保存修改 | //保存修改 | ||||
if ($dopost == "save") { | if ($dopost == "save") { | ||||
$startID = 1; | $startID = 1; | ||||
@@ -137,7 +137,7 @@ if ($dopost == 'quick') { | |||||
ShowMsg("跨站调用秘钥不能为空", "-1"); | ShowMsg("跨站调用秘钥不能为空", "-1"); | ||||
exit(); | exit(); | ||||
} | } | ||||
if ($ispart != 2) { | |||||
if ($ispart != 2 && $isdefault != -1) { | |||||
//栏目的参照目录 | //栏目的参照目录 | ||||
if ($referpath == 'cmspath') $nextdir = '{cmspath}'; | if ($referpath == 'cmspath') $nextdir = '{cmspath}'; | ||||
if ($referpath == 'basepath') $nextdir = ''; | if ($referpath == 'basepath') $nextdir = ''; | ||||
@@ -63,7 +63,7 @@ else if ($dopost == "listArchives") { | |||||
$row = $dsql->GetOne("SELECT typename,id,mancon FROM `#@__channeltype` WHERE id='$channelid'"); | $row = $dsql->GetOne("SELECT typename,id,mancon FROM `#@__channeltype` WHERE id='$channelid'"); | ||||
$gurl = $row["mancon"]; | $gurl = $row["mancon"]; | ||||
$channelid = $row["id"]; | $channelid = $row["id"]; | ||||
$typename = ""; | |||||
$typename = ''; | |||||
$channelname = $row["typename"]; | $channelname = $row["typename"]; | ||||
} | } | ||||
if (empty($gurl)) $gurl = 'content_list.php'; | if (empty($gurl)) $gurl = 'content_list.php'; | ||||
@@ -168,7 +168,7 @@ $dlist->SetParameter('orderby', $orderby); | |||||
$dlist->SetParameter('arcrank', $arcrank); | $dlist->SetParameter('arcrank', $arcrank); | ||||
$dlist->SetParameter('channelid', $channelid); | $dlist->SetParameter('channelid', $channelid); | ||||
$dlist->SetParameter('f', $f); | $dlist->SetParameter('f', $f); | ||||
$strTimerange = ""; | |||||
$strTimerange = ''; | |||||
if ($stime > 0 && $etime > 0) { | if ($stime > 0 && $etime > 0) { | ||||
$strTimerange = implode(" - ",array(MyDate("Y-m-d H:i:s",$stime),MyDate("Y-m-d H:i:s",$etime))); | $strTimerange = implode(" - ",array(MyDate("Y-m-d H:i:s",$stime),MyDate("Y-m-d H:i:s",$etime))); | ||||
$dlist->SetParameter('timerange', $strTimerange); | $dlist->SetParameter('timerange', $strTimerange); | ||||
@@ -80,7 +80,7 @@ $dlist->SetParameter("dopost", "listArchives"); | |||||
$dlist->SetParameter("keyword", $keyword); | $dlist->SetParameter("keyword", $keyword); | ||||
$dlist->SetParameter("cid", $cid); | $dlist->SetParameter("cid", $cid); | ||||
$dlist->SetParameter("channelid", $channelid); | $dlist->SetParameter("channelid", $channelid); | ||||
$strTimerange = ""; | |||||
$strTimerange = ''; | |||||
if ($stime > 0 && $etime > 0) { | if ($stime > 0 && $etime > 0) { | ||||
$strTimerange = implode(" - ",array(MyDate("Y-m-d H:i:s",$stime),MyDate("Y-m-d H:i:s",$etime))); | $strTimerange = implode(" - ",array(MyDate("Y-m-d H:i:s",$stime),MyDate("Y-m-d H:i:s",$etime))); | ||||
$dlist->SetParameter('timerange', $strTimerange); | $dlist->SetParameter('timerange', $strTimerange); | ||||
@@ -94,8 +94,8 @@ if (!empty($iseditor)) { | |||||
</tr> | </tr> | ||||
<?php | <?php | ||||
$dh = scandir($inpath); | $dh = scandir($inpath); | ||||
$ty1 = ""; | |||||
$ty2 = ""; | |||||
$ty1 = ''; | |||||
$ty2 = ''; | |||||
foreach ($dh as $file) { | foreach ($dh as $file) { | ||||
//计算文件大小和创建时间 | //计算文件大小和创建时间 | ||||
if ($file != "." && $file != ".." && !is_dir("$inpath/$file")) { | if ($file != "." && $file != ".." && !is_dir("$inpath/$file")) { | ||||
@@ -133,7 +133,7 @@ if (!empty($iseditor)) { | |||||
$reurl = preg_replace("#^\.\.#", "", $reurl); | $reurl = preg_replace("#^\.\.#", "", $reurl); | ||||
$reurl = $reurl; | $reurl = $reurl; | ||||
if ($file == $comeback) $lstyle = "text-danger"; | if ($file == $comeback) $lstyle = "text-danger"; | ||||
else $lstyle = ""; | |||||
else $lstyle = ''; | |||||
$line = "<tr> | $line = "<tr> | ||||
<td> | <td> | ||||
<a href='$reurl' onclick=\"ReturnImg('$reurl');\" class=\"tipsimg $lstyle\"><img src='$reurl' title='$file'> $file</a> | <a href='$reurl' onclick=\"ReturnImg('$reurl');\" class=\"tipsimg $lstyle\"><img src='$reurl' title='$file'> $file</a> | ||||
@@ -147,7 +147,7 @@ if (!empty($iseditor)) { | |||||
$reurl = preg_replace("#^\.\.#", "", $reurl); | $reurl = preg_replace("#^\.\.#", "", $reurl); | ||||
$reurl = $reurl; | $reurl = $reurl; | ||||
if ($file == $comeback) $lstyle = "text-danger"; | if ($file == $comeback) $lstyle = "text-danger"; | ||||
else $lstyle = ""; | |||||
else $lstyle = ''; | |||||
$line = "<tr> | $line = "<tr> | ||||
<td><a href='$reurl' onclick=\"ReturnImg('$reurl');\" class=\"tipsimg $lstyle\"><img src='$reurl' title='$file'> $file</a></td> | <td><a href='$reurl' onclick=\"ReturnImg('$reurl');\" class=\"tipsimg $lstyle\"><img src='$reurl' title='$file'> $file</a></td> | ||||
<td>$filesize KB</td> | <td>$filesize KB</td> | ||||
@@ -73,8 +73,8 @@ if (!empty($noeditor)) { | |||||
</tr> | </tr> | ||||
<?php | <?php | ||||
$dh = scandir($inpath); | $dh = scandir($inpath); | ||||
$ty1 = ""; | |||||
$ty2 = ""; | |||||
$ty1 = ''; | |||||
$ty2 = ''; | |||||
foreach ($dh as $file) { | foreach ($dh as $file) { | ||||
//计算文件大小和创建时间 | //计算文件大小和创建时间 | ||||
if ($file != "." && $file != ".." && !is_dir("$inpath/$file")) { | if ($file != "." && $file != ".." && !is_dir("$inpath/$file")) { | ||||
@@ -113,7 +113,7 @@ if (!empty($noeditor)) { | |||||
$reurl = preg_replace("#^\.\.#", "", $reurl); | $reurl = preg_replace("#^\.\.#", "", $reurl); | ||||
$reurl = $reurl; | $reurl = $reurl; | ||||
if ($file == $comeback) $lstyle = "class='text-danger'"; | if ($file == $comeback) $lstyle = "class='text-danger'"; | ||||
else $lstyle = ""; | |||||
else $lstyle = ''; | |||||
$line = "<tr> | $line = "<tr> | ||||
<td><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='/static/web/img/icon_flash.png'> $file</a></td> | <td><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='/static/web/img/icon_flash.png'> $file</a></td> | ||||
<td>$filesize KB</td> | <td>$filesize KB</td> | ||||
@@ -125,7 +125,7 @@ if (!empty($noeditor)) { | |||||
$reurl = preg_replace("#^\.\.#", "", $reurl); | $reurl = preg_replace("#^\.\.#", "", $reurl); | ||||
$reurl = $reurl; | $reurl = $reurl; | ||||
if ($file == $comeback) $lstyle = "class='text-danger'"; | if ($file == $comeback) $lstyle = "class='text-danger'"; | ||||
else $lstyle = ""; | |||||
else $lstyle = ''; | |||||
$line = "<tr> | $line = "<tr> | ||||
<td><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='/static/web/img/icon_video.png'> $file</a></td> | <td><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='/static/web/img/icon_video.png'> $file</a></td> | ||||
<td>$filesize KB</td> | <td>$filesize KB</td> | ||||
@@ -137,7 +137,7 @@ if (!empty($noeditor)) { | |||||
$reurl = preg_replace("#^\.\.#", "", $reurl); | $reurl = preg_replace("#^\.\.#", "", $reurl); | ||||
$reurl = $reurl; | $reurl = $reurl; | ||||
if ($file == $comeback) $lstyle = "class='text-danger'"; | if ($file == $comeback) $lstyle = "class='text-danger'"; | ||||
else $lstyle = ""; | |||||
else $lstyle = ''; | |||||
$line = "<tr> | $line = "<tr> | ||||
<td><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='/static/web/img/icon_rm.png'> $file</a></td> | <td><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='/static/web/img/icon_rm.png'> $file</a></td> | ||||
<td>$filesize KB</td> | <td>$filesize KB</td> | ||||
@@ -149,7 +149,7 @@ if (!empty($noeditor)) { | |||||
$reurl = preg_replace("#^\.\.#", "", $reurl); | $reurl = preg_replace("#^\.\.#", "", $reurl); | ||||
$reurl = $reurl; | $reurl = $reurl; | ||||
if ($file == $comeback) $lstyle = "class='text-danger'"; | if ($file == $comeback) $lstyle = "class='text-danger'"; | ||||
else $lstyle = ""; | |||||
else $lstyle = ''; | |||||
$line = "<tr> | $line = "<tr> | ||||
<td><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='/static/web/img/icon_music.png'> $file</a></td> | <td><a href=\"javascript:ReturnValue('$reurl');\" $lstyle><img src='/static/web/img/icon_music.png'> $file</a></td> | ||||
<td>$filesize KB</td> | <td>$filesize KB</td> | ||||
@@ -76,7 +76,7 @@ if (!empty($noeditor)) { | |||||
</tr> | </tr> | ||||
<?php | <?php | ||||
$dh = scandir($inpath); | $dh = scandir($inpath); | ||||
$ty1 = $ty2 = ""; | |||||
$ty1 = $ty2 = ''; | |||||
foreach ($dh as $file) { | foreach ($dh as $file) { | ||||
//计算文件大小和创建时间 | //计算文件大小和创建时间 | ||||
if ($file != "." && $file != ".." && !is_dir("$inpath/$file")) { | if ($file != "." && $file != ".." && !is_dir("$inpath/$file")) { | ||||
@@ -112,7 +112,7 @@ if (!empty($noeditor)) { | |||||
echo "$line"; | echo "$line"; | ||||
} else if (preg_match("#\.(zip|rar|tgr.gz)#i", $file)) { | } else if (preg_match("#\.(zip|rar|tgr.gz)#i", $file)) { | ||||
if ($file == $comeback) $lstyle = "class='text-danger'"; | if ($file == $comeback) $lstyle = "class='text-danger'"; | ||||
else $lstyle = ""; | |||||
else $lstyle = ''; | |||||
$reurl = "$activeurl/$file"; | $reurl = "$activeurl/$file"; | ||||
$reurl = preg_replace("#^\.\.#", "", $reurl); | $reurl = preg_replace("#^\.\.#", "", $reurl); | ||||
$reurl = $reurl; | $reurl = $reurl; | ||||
@@ -63,8 +63,8 @@ if (empty($comeback)) { | |||||
</tr> | </tr> | ||||
<?php | <?php | ||||
$dh = scandir($inpath); | $dh = scandir($inpath); | ||||
$ty1 = ""; | |||||
$ty2 = ""; | |||||
$ty1 = ''; | |||||
$ty2 = ''; | |||||
foreach ($dh as $file) { | foreach ($dh as $file) { | ||||
//计算文件大小和创建时间 | //计算文件大小和创建时间 | ||||
if ($file != "." && $file != ".." && !is_dir("$inpath/$file")) { | if ($file != "." && $file != ".." && !is_dir("$inpath/$file")) { | ||||
@@ -100,7 +100,7 @@ if (empty($comeback)) { | |||||
echo "$line"; | echo "$line"; | ||||
} else if (preg_match("#\.(htm|html)#i", $file)) { | } else if (preg_match("#\.(htm|html)#i", $file)) { | ||||
if ($file == $comeback) $lstyle = "class='text-danger'"; | if ($file == $comeback) $lstyle = "class='text-danger'"; | ||||
else $lstyle = ""; | |||||
else $lstyle = ''; | |||||
$reurl = "$activeurl/$file"; | $reurl = "$activeurl/$file"; | ||||
$reurl = preg_replace("#\.\.#", "", $reurl); | $reurl = preg_replace("#\.\.#", "", $reurl); | ||||
$reurl = preg_replace("#".$templetdir."\/#", "", $reurl); | $reurl = preg_replace("#".$templetdir."\/#", "", $reurl); | ||||
@@ -112,7 +112,7 @@ if (empty($comeback)) { | |||||
echo "$line"; | echo "$line"; | ||||
} else if (preg_match("#\.(css)#i", $file)) { | } else if (preg_match("#\.(css)#i", $file)) { | ||||
if ($file == $comeback) $lstyle = "class='text-danger'"; | if ($file == $comeback) $lstyle = "class='text-danger'"; | ||||
else $lstyle = ""; | |||||
else $lstyle = ''; | |||||
$reurl = "$activeurl/$file"; | $reurl = "$activeurl/$file"; | ||||
$reurl = preg_replace("#\.\.#", "", $reurl); | $reurl = preg_replace("#\.\.#", "", $reurl); | ||||
$reurl = preg_replace("#".$templetdir."/#", "", $reurl); | $reurl = preg_replace("#".$templetdir."/#", "", $reurl); | ||||
@@ -124,7 +124,7 @@ if (empty($comeback)) { | |||||
echo "$line"; | echo "$line"; | ||||
} else if (preg_match("#\.(js)#i", $file)) { | } else if (preg_match("#\.(js)#i", $file)) { | ||||
if ($file == $comeback) $lstyle = "class='text-danger'"; | if ($file == $comeback) $lstyle = "class='text-danger'"; | ||||
else $lstyle = ""; | |||||
else $lstyle = ''; | |||||
$reurl = "$activeurl/$file"; | $reurl = "$activeurl/$file"; | ||||
$reurl = preg_replace("#\.\.#", "", $reurl); | $reurl = preg_replace("#\.\.#", "", $reurl); | ||||
$reurl = preg_replace("#".$templetdir."\/#", "", $reurl); | $reurl = preg_replace("#".$templetdir."\/#", "", $reurl); | ||||
@@ -136,7 +136,7 @@ if (empty($comeback)) { | |||||
echo "$line"; | echo "$line"; | ||||
} else if (preg_match("#\.(jpg)#i", $file)) { | } else if (preg_match("#\.(jpg)#i", $file)) { | ||||
if ($file == $comeback) $lstyle = "class='text-danger'"; | if ($file == $comeback) $lstyle = "class='text-danger'"; | ||||
else $lstyle = ""; | |||||
else $lstyle = ''; | |||||
$reurl = "$activeurl/$file"; | $reurl = "$activeurl/$file"; | ||||
$reurl = preg_replace("#\.\.#", "", $reurl); | $reurl = preg_replace("#\.\.#", "", $reurl); | ||||
$reurl = preg_replace("#".$templetdir."\/#", "", $reurl); | $reurl = preg_replace("#".$templetdir."\/#", "", $reurl); | ||||
@@ -148,7 +148,7 @@ if (empty($comeback)) { | |||||
echo "$line"; | echo "$line"; | ||||
} else if (preg_match("#\.(gif|png)#i", $file)) { | } else if (preg_match("#\.(gif|png)#i", $file)) { | ||||
if ($file == $comeback) $lstyle = "class='text-danger'"; | if ($file == $comeback) $lstyle = "class='text-danger'"; | ||||
else $lstyle = ""; | |||||
else $lstyle = ''; | |||||
$reurl = "$activeurl/$file"; | $reurl = "$activeurl/$file"; | ||||
$reurl = preg_replace("#\.\.#", "", $reurl); | $reurl = preg_replace("#\.\.#", "", $reurl); | ||||
$reurl = preg_replace("#".$templetdir."\/#", "", $reurl); | $reurl = preg_replace("#".$templetdir."\/#", "", $reurl); | ||||
@@ -160,7 +160,7 @@ if (empty($comeback)) { | |||||
echo "$line"; | echo "$line"; | ||||
} else if (preg_match("#\.(txt)#i", $file)) { | } else if (preg_match("#\.(txt)#i", $file)) { | ||||
if ($file == $comeback) $lstyle = "class='text-danger'"; | if ($file == $comeback) $lstyle = "class='text-danger'"; | ||||
else $lstyle = ""; | |||||
else $lstyle = ''; | |||||
$reurl = "$activeurl/$file"; | $reurl = "$activeurl/$file"; | ||||
$reurl = preg_replace("#\.\.#", "", $reurl); | $reurl = preg_replace("#\.\.#", "", $reurl); | ||||
$reurl = preg_replace("#".$templetdir."\/#", "", $reurl); | $reurl = preg_replace("#".$templetdir."\/#", "", $reurl); | ||||
@@ -11,7 +11,7 @@ | |||||
require_once(dirname(__FILE__)."/config.php"); | require_once(dirname(__FILE__)."/config.php"); | ||||
$cfg_txttype = "htm|html|tpl|txt"; | $cfg_txttype = "htm|html|tpl|txt"; | ||||
if (empty($uploadfile)) { | if (empty($uploadfile)) { | ||||
$uploadfile = ""; | |||||
$uploadfile = ''; | |||||
} | } | ||||
if (!is_uploaded_file($uploadfile)) { | if (!is_uploaded_file($uploadfile)) { | ||||
ShowMsg("您没有选择上传文件", "-1"); | ShowMsg("您没有选择上传文件", "-1"); | ||||
@@ -12,7 +12,7 @@ require_once(dirname(__FILE__)."/config.php"); | |||||
CheckPurview('c_Edit'); | CheckPurview('c_Edit'); | ||||
require_once(DEDEINC."/dedetag.class.php"); | require_once(DEDEINC."/dedetag.class.php"); | ||||
require_once(DEDEINC."/libraries/oxwindow.class.php"); | require_once(DEDEINC."/libraries/oxwindow.class.php"); | ||||
if (empty($dopost)) $dopost = ""; | |||||
if (empty($dopost)) $dopost = ''; | |||||
$diyid = (empty($diyid) ? 0 : intval($diyid)); | $diyid = (empty($diyid) ? 0 : intval($diyid)); | ||||
if ($dopost == "save") { | if ($dopost == "save") { | ||||
$public = isset($public) && is_numeric($public) ? $public : 0; | $public = isset($public) && is_numeric($public) ? $public : 0; | ||||
@@ -25,7 +25,7 @@ if ($dopost == "save") { | |||||
@set_time_limit(0); | @set_time_limit(0); | ||||
CheckPurview('c_Del'); | CheckPurview('c_Del'); | ||||
$row = $dsql->GetOne("SELECT * FROM `#@__diyforms` WHERE diyid='$diyid'"); | $row = $dsql->GetOne("SELECT * FROM `#@__diyforms` WHERE diyid='$diyid'"); | ||||
if (empty($job)) $job = ""; | |||||
if (empty($job)) $job = ''; | |||||
//确认提示 | //确认提示 | ||||
if ($job == "") { | if ($job == "") { | ||||
$wintitle = "删除所有自定义表"; | $wintitle = "删除所有自定义表"; | ||||
@@ -12,7 +12,7 @@ require_once(dirname(__FILE__)."/config.php"); | |||||
CheckPurview('sys_Feedback'); | CheckPurview('sys_Feedback'); | ||||
$id = isset($id) && is_numeric($id) ? $id : 0; | $id = isset($id) && is_numeric($id) ? $id : 0; | ||||
$ENV_GOBACK_URL = empty($_COOKIE['ENV_GOBACK_URL']) ? "feedback_main.php" : $_COOKIE['ENV_GOBACK_URL']; | $ENV_GOBACK_URL = empty($_COOKIE['ENV_GOBACK_URL']) ? "feedback_main.php" : $_COOKIE['ENV_GOBACK_URL']; | ||||
if (empty($dopost)) $dopost = ""; | |||||
if (empty($dopost)) $dopost = ''; | |||||
if ($dopost == 'edit') { | if ($dopost == 'edit') { | ||||
$msg = cn_substrR($msg, 3500); | $msg = cn_substrR($msg, 3500); | ||||
$adminmsg = trim($adminmsg); | $adminmsg = trim($adminmsg); | ||||
@@ -11,8 +11,8 @@ if (!defined('DEDEINC')) exit ('dedebiz'); | |||||
*/ | */ | ||||
class FileManagement | class FileManagement | ||||
{ | { | ||||
var $baseDir = ""; | |||||
var $activeDir = ""; | |||||
var $baseDir = ''; | |||||
var $activeDir = ''; | |||||
//是否允许文件管理器删除目录,默认为不允许0,如果希望管理整个目录,请把值设为1 | //是否允许文件管理器删除目录,默认为不允许0,如果希望管理整个目录,请把值设为1 | ||||
var $allowDeleteDir = 0; | var $allowDeleteDir = 0; | ||||
//初始化系统 | //初始化系统 | ||||
@@ -14,7 +14,7 @@ require(DEDEINC."/libraries/oxwindow.class.php"); | |||||
require_once(DEDEADMIN.'/file_class.php'); | require_once(DEDEADMIN.'/file_class.php'); | ||||
$activepath = str_replace("..", "", $activepath); | $activepath = str_replace("..", "", $activepath); | ||||
$activepath = preg_replace("#^\/{1,}#", "/", $activepath); | $activepath = preg_replace("#^\/{1,}#", "/", $activepath); | ||||
if ($activepath == "/") $activepath = ""; | |||||
if ($activepath == "/") $activepath = ''; | |||||
if ($activepath == "") $inpath = $cfg_basedir; | if ($activepath == "") $inpath = $cfg_basedir; | ||||
else $inpath = $cfg_basedir.$activepath; | else $inpath = $cfg_basedir.$activepath; | ||||
$files = json_decode(file_get_contents(DEDEDATA.'/admin/files.txt')); | $files = json_decode(file_get_contents(DEDEDATA.'/admin/files.txt')); | ||||
@@ -11,14 +11,14 @@ | |||||
require(dirname(__FILE__)."/config.php"); | require(dirname(__FILE__)."/config.php"); | ||||
CheckPurview('plus_文件管理器'); | CheckPurview('plus_文件管理器'); | ||||
if (!isset($activepath)) $activepath = DEDEBIZ_SAFE_MODE? $cfg_medias_dir : '/'; | if (!isset($activepath)) $activepath = DEDEBIZ_SAFE_MODE? $cfg_medias_dir : '/'; | ||||
$inpath = ""; | |||||
$inpath = ''; | |||||
$activepath = str_replace("..", "", $activepath); | $activepath = str_replace("..", "", $activepath); | ||||
$activepath = preg_replace("#^\/{1,}#", "/", $activepath); | $activepath = preg_replace("#^\/{1,}#", "/", $activepath); | ||||
if (DEDEBIZ_SAFE_MODE && !preg_match("#^/static#",$activepath)) { | if (DEDEBIZ_SAFE_MODE && !preg_match("#^/static#",$activepath)) { | ||||
ShowMsg("安全模式下仅允许查看修改static目录文档", -1); | ShowMsg("安全模式下仅允许查看修改static目录文档", -1); | ||||
exit; | exit; | ||||
} | } | ||||
if ($activepath == "/") $activepath = ""; | |||||
if ($activepath == "/") $activepath = ''; | |||||
if ($activepath == "") $inpath = $cfg_basedir; | if ($activepath == "") $inpath = $cfg_basedir; | ||||
else $inpath = $cfg_basedir.$activepath; | else $inpath = $cfg_basedir.$activepath; | ||||
$activeurl = $activepath; | $activeurl = $activepath; | ||||
@@ -13,7 +13,7 @@ CheckPurview('plus_文件管理器'); | |||||
require_once(DEDEINC."/libraries/oxwindow.class.php"); | require_once(DEDEINC."/libraries/oxwindow.class.php"); | ||||
$activepath = str_replace("..", "", $activepath); | $activepath = str_replace("..", "", $activepath); | ||||
$activepath = preg_replace("#^\/{1,}#", "/", $activepath); | $activepath = preg_replace("#^\/{1,}#", "/", $activepath); | ||||
if ($activepath == "/") $activepath = ""; | |||||
if ($activepath == "/") $activepath = ''; | |||||
if ($activepath == "") $inpath = $cfg_basedir; | if ($activepath == "") $inpath = $cfg_basedir; | ||||
else $inpath = $cfg_basedir.$activepath; | else $inpath = $cfg_basedir.$activepath; | ||||
//修改文件名 | //修改文件名 | ||||
@@ -87,12 +87,12 @@ else if ($fmdo == "del") { | |||||
//修改文件 | //修改文件 | ||||
else if ($fmdo == "edit") { | else if ($fmdo == "edit") { | ||||
if (!isset($backurl)) { | if (!isset($backurl)) { | ||||
$backurl = ""; | |||||
$backurl = ''; | |||||
} | } | ||||
$activepath = str_replace("..", "", $activepath); | $activepath = str_replace("..", "", $activepath); | ||||
$filename = str_replace("..", "", $filename); | $filename = str_replace("..", "", $filename); | ||||
$file = "$cfg_basedir$activepath/$filename"; | $file = "$cfg_basedir$activepath/$filename"; | ||||
$content = ""; | |||||
$content = ''; | |||||
if (is_file($file)) { | if (is_file($file)) { | ||||
$fp = fopen($file, "r"); | $fp = fopen($file, "r"); | ||||
$content = fread($fp, filesize($file)); | $content = fread($fp, filesize($file)); | ||||
@@ -117,7 +117,7 @@ else if ($fmdo == "edit") { | |||||
} | } | ||||
//新建文件 | //新建文件 | ||||
else if ($fmdo == "newfile") { | else if ($fmdo == "newfile") { | ||||
$content = ""; | |||||
$content = ''; | |||||
$GLOBALS['filename'] = "newfile.txt"; | $GLOBALS['filename'] = "newfile.txt"; | ||||
$GLOBALS['extension'] = 'text/html'; | $GLOBALS['extension'] = 'text/html'; | ||||
$contentView = "<textarea id='str' name='str' class='admin-textarea-xl'></textarea>\r\n"; | $contentView = "<textarea id='str' name='str' class='admin-textarea-xl'></textarea>\r\n"; | ||||
@@ -10,7 +10,7 @@ | |||||
*/ | */ | ||||
require(dirname(__FILE__)."/config.php"); | require(dirname(__FILE__)."/config.php"); | ||||
CheckPurview('plus_友情链接'); | CheckPurview('plus_友情链接'); | ||||
if (empty($dopost)) $dopost = ""; | |||||
if (empty($dopost)) $dopost = ''; | |||||
if ($dopost == "add") { | if ($dopost == "add") { | ||||
$dtime = time(); | $dtime = time(); | ||||
if (is_uploaded_file($logoimg)) { | if (is_uploaded_file($logoimg)) { | ||||
@@ -11,7 +11,7 @@ | |||||
require_once(dirname(__FILE__)."/config.php"); | require_once(dirname(__FILE__)."/config.php"); | ||||
CheckPurview('plus_友情链接'); | CheckPurview('plus_友情链接'); | ||||
$ENV_GOBACK_URL = empty($_COOKIE['ENV_GOBACK_URL']) ? 'friendlink_main.php' : $_COOKIE['ENV_GOBACK_URL']; | $ENV_GOBACK_URL = empty($_COOKIE['ENV_GOBACK_URL']) ? 'friendlink_main.php' : $_COOKIE['ENV_GOBACK_URL']; | ||||
if (empty($dopost)) $dopost = ""; | |||||
if (empty($dopost)) $dopost = ''; | |||||
$id = isset($id)? intval($id) : 0; | $id = isset($id)? intval($id) : 0; | ||||
if (isset($allid)) { | if (isset($allid)) { | ||||
$aids = explode(',', $allid); | $aids = explode(',', $allid); | ||||
@@ -65,7 +65,7 @@ function GetFormItem($ctag) | |||||
} | } | ||||
} | } | ||||
if ($ctag->GetAtt("type") == "htmltext" || $ctag->GetAtt("type") == "textdata") { | if ($ctag->GetAtt("type") == "htmltext" || $ctag->GetAtt("type") == "textdata") { | ||||
$formitem = ""; | |||||
$formitem = ''; | |||||
$formitem .= "<table width=\"800\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td width=\"80\">".$ctag->GetAtt('itemname')."</td><td>"; | $formitem .= "<table width=\"800\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td width=\"80\">".$ctag->GetAtt('itemname')."</td><td>"; | ||||
$formitem .= GetEditor($fieldname, '', 350, 'Basic', 'string'); | $formitem .= GetEditor($fieldname, '', 350, 'Basic', 'string'); | ||||
$formitem .= "</td></tr></table>\r\n"; | $formitem .= "</td></tr></table>\r\n"; | ||||
@@ -109,7 +109,7 @@ function GetFormItem($ctag) | |||||
return $formitem; | return $formitem; | ||||
} else { | } else { | ||||
if ($ctag->GetAtt('default') != "") $dfvalue = $ctag->GetAtt('default'); | if ($ctag->GetAtt('default') != "") $dfvalue = $ctag->GetAtt('default'); | ||||
else $dfvalue = ""; | |||||
else $dfvalue = ''; | |||||
$innertext = "<input type='text' name='$fieldname' id='$fieldname' class='admin-input-lg' value='$dfvalue'>\r\n"; | $innertext = "<input type='text' name='$fieldname' id='$fieldname' class='admin-input-lg' value='$dfvalue'>\r\n"; | ||||
$formitem = str_replace("~name~", $ctag->GetAtt('itemname'), $formitem); | $formitem = str_replace("~name~", $ctag->GetAtt('itemname'), $formitem); | ||||
$formitem = str_replace("~form~", $innertext, $formitem); | $formitem = str_replace("~form~", $innertext, $formitem); | ||||
@@ -178,7 +178,7 @@ function GetFieldValue($dvalue, $dtype, $aid = 0, $job = 'add', $addvar = '') | |||||
$imgurl = "{dede:img text='' width='' height=''} ".$iurl." {/dede:img}"; | $imgurl = "{dede:img text='' width='' height=''} ".$iurl." {/dede:img}"; | ||||
if (preg_match("#^(http|https):\/\/#i", $iurl) && $GLOBALS['isUrlOpen']) { | if (preg_match("#^(http|https):\/\/#i", $iurl) && $GLOBALS['isUrlOpen']) { | ||||
//远程图片 | //远程图片 | ||||
$reimgs = ""; | |||||
$reimgs = ''; | |||||
if ($isUrlOpen) { | if ($isUrlOpen) { | ||||
$reimgs = GetRemoteImage($iurl, $GLOBALS['adminid']); | $reimgs = GetRemoteImage($iurl, $GLOBALS['adminid']); | ||||
if (is_array($reimgs)) { | if (is_array($reimgs)) { | ||||
@@ -265,13 +265,13 @@ function GetFormItemValue($ctag, $fvalue) | |||||
if ($ctag->GetAtt("type") == "textdata") { | if ($ctag->GetAtt("type") == "textdata") { | ||||
if (is_file($GLOBALS['cfg_basedir'].$fvalue)) { | if (is_file($GLOBALS['cfg_basedir'].$fvalue)) { | ||||
$fp = fopen($GLOBALS['cfg_basedir'].$fvalue, 'r'); | $fp = fopen($GLOBALS['cfg_basedir'].$fvalue, 'r'); | ||||
$okfvalue = ""; | |||||
$okfvalue = ''; | |||||
while (!feof($fp)) { | while (!feof($fp)) { | ||||
$okfvalue .= fgets($fp, 1024); | $okfvalue .= fgets($fp, 1024); | ||||
} | } | ||||
fclose($fp); | fclose($fp); | ||||
} else { | } else { | ||||
$okfvalue = ""; | |||||
$okfvalue = ''; | |||||
} | } | ||||
$formitem = "<table width=\"800\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td width=\"80\">".$ctag->GetAtt('itemname')."</td>\r\n"; | $formitem = "<table width=\"800\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td width=\"80\">".$ctag->GetAtt('itemname')."</td>\r\n"; | ||||
$formitem .= "<td>\r\n".GetEditor($fieldname, $okfvalue, 350, 'Basic', 'string')."</td>\r\n"; | $formitem .= "<td>\r\n".GetEditor($fieldname, $okfvalue, 350, 'Basic', 'string')."</td>\r\n"; | ||||
@@ -482,7 +482,7 @@ function PrintAutoFieldsEdit(&$fieldset, &$fieldValues, $loadtype = 'all') | |||||
$dtp = new DedeTagParse(); | $dtp = new DedeTagParse(); | ||||
$dtp->SetNameSpace("field", "<", ">"); | $dtp->SetNameSpace("field", "<", ">"); | ||||
$dtp->LoadSource($fieldset); | $dtp->LoadSource($fieldset); | ||||
$dede_addonfields = ""; | |||||
$dede_addonfields = ''; | |||||
if (is_array($dtp->CTags)) { | if (is_array($dtp->CTags)) { | ||||
foreach ($dtp->CTags as $tid => $ctag) { | foreach ($dtp->CTags as $tid => $ctag) { | ||||
if ( | if ( | ||||
@@ -710,7 +710,7 @@ function UploadOneImage($upname, $handurl = '', $isremote = 1, $ntitle = '') | |||||
if ($isremote == 1 && preg_match("#^http[s]?:\/\/#i", $handurl)) { | if ($isremote == 1 && preg_match("#^http[s]?:\/\/#i", $handurl)) { | ||||
$ddinfos = GetRemoteImage($handurl, $cuserLogin->getUserID()); | $ddinfos = GetRemoteImage($handurl, $cuserLogin->getUserID()); | ||||
if (!is_array($ddinfos)) { | if (!is_array($ddinfos)) { | ||||
$litpic = ""; | |||||
$litpic = ''; | |||||
} else { | } else { | ||||
$filename = $ddinfos[0]; | $filename = $ddinfos[0]; | ||||
} | } | ||||
@@ -722,7 +722,7 @@ function UploadOneImage($upname, $handurl = '', $isremote = 1, $ntitle = '') | |||||
} | } | ||||
$imgfile = $cfg_basedir.$filename; | $imgfile = $cfg_basedir.$filename; | ||||
if (is_file($imgfile) && $isrm_up && $filename != '') { | if (is_file($imgfile) && $isrm_up && $filename != '') { | ||||
$info = ""; | |||||
$info = ''; | |||||
$imginfos = GetImageSize($imgfile, $info); | $imginfos = GetImageSize($imgfile, $info); | ||||
//把新上传的图片信息保存到媒体文档管理文档中 | //把新上传的图片信息保存到媒体文档管理文档中 | ||||
$inquery = "INSERT INTO `#@__uploads` (title,url,mediatype,width,height,playtime,filesize,uptime,mid) VALUES ('$title','$filename','1','".$imginfos[0]."','".$imginfos[1]."','0','".filesize($imgfile)."','".time()."','".$cuserLogin->getUserID()."');"; | $inquery = "INSERT INTO `#@__uploads` (title,url,mediatype,width,height,playtime,filesize,uptime,mid) VALUES ('$title','$filename','1','".$imginfos[0]."','".$imginfos[1]."','0','".filesize($imgfile)."','".time()."','".$cuserLogin->getUserID()."');"; | ||||
@@ -25,7 +25,7 @@ function DelArc($aid, $type = 'ON', $onlyfile = FALSE, $recycle = 0) | |||||
$aid = preg_replace("#[^0-9]#i", '', $aid); | $aid = preg_replace("#[^0-9]#i", '', $aid); | ||||
$arctitle = $arcurl = ''; | $arctitle = $arcurl = ''; | ||||
if ($recycle == 1) $whererecycle = "AND arcrank = '-2'"; | if ($recycle == 1) $whererecycle = "AND arcrank = '-2'"; | ||||
else $whererecycle = ""; | |||||
else $whererecycle = ''; | |||||
//查询表信息 | //查询表信息 | ||||
$query = "SELECT ch.maintable,ch.addtable,ch.nid,ch.issystem FROM `#@__arctiny` arc LEFT JOIN `#@__arctype` tp ON tp.id=arc.typeid LEFT JOIN `#@__channeltype` ch ON ch.id=arc.channel WHERE arc.id='$aid' "; | $query = "SELECT ch.maintable,ch.addtable,ch.nid,ch.issystem FROM `#@__arctiny` arc LEFT JOIN `#@__arctype` tp ON tp.id=arc.typeid LEFT JOIN `#@__channeltype` ch ON ch.id=arc.channel WHERE arc.id='$aid' "; | ||||
$row = $dsql->GetOne($query); | $row = $dsql->GetOne($query); | ||||
@@ -51,7 +51,7 @@ function GetMenus($userrank, $topos = 'main') | |||||
} | } | ||||
$link = "$link<a href='".$ctag2->GetAtt('linkadd')."' class='submenu-right' target='".$ctag2->GetAtt('target')."'><span class='$addico'></span></a>"; | $link = "$link<a href='".$ctag2->GetAtt('linkadd')."' class='submenu-right' target='".$ctag2->GetAtt('target')."'><span class='$addico'></span></a>"; | ||||
} else { | } else { | ||||
$link .= ""; | |||||
$link .= ''; | |||||
} | } | ||||
$itemtmp = str_replace('~link~', $link, $itemTemplet); | $itemtmp = str_replace('~link~', $link, $itemTemplet); | ||||
echo $itemtmp; | echo $itemtmp; | ||||
@@ -66,7 +66,7 @@ if (empty($dopost)) { | |||||
exit; | exit; | ||||
} elseif ($dopost == "system_info") { | } elseif ($dopost == "system_info") { | ||||
if (empty(trim($cfg_auth_code))) { | if (empty(trim($cfg_auth_code))) { | ||||
$indexHTML = ""; | |||||
$indexHTML = ''; | |||||
if (file_exists(DEDEROOT."/index.html")) { | if (file_exists(DEDEROOT."/index.html")) { | ||||
$indexHTML = file_get_contents(DEDEROOT."/index.html"); | $indexHTML = file_get_contents(DEDEROOT."/index.html"); | ||||
} else { | } else { | ||||
@@ -22,7 +22,7 @@ if ($dopost == "clear") { | |||||
} else if ($dopost == "del") { | } else if ($dopost == "del") { | ||||
$bkurl = isset($_COOKIE['ENV_GOBACK_URL']) ? $_COOKIE['ENV_GOBACK_URL'] : "log_list.php"; | $bkurl = isset($_COOKIE['ENV_GOBACK_URL']) ? $_COOKIE['ENV_GOBACK_URL'] : "log_list.php"; | ||||
$ids = explode('`', $ids); | $ids = explode('`', $ids); | ||||
$dquery = ""; | |||||
$dquery = ''; | |||||
foreach ($ids as $id) { | foreach ($ids as $id) { | ||||
if ($dquery == "") { | if ($dquery == "") { | ||||
$dquery .= " lid='$id' "; | $dquery .= " lid='$id' "; | ||||
@@ -13,9 +13,9 @@ CheckPurview('sys_Log'); | |||||
require_once(DEDEINC."/datalistcp.class.php"); | require_once(DEDEINC."/datalistcp.class.php"); | ||||
require_once(DEDEINC."/common.func.php"); | require_once(DEDEINC."/common.func.php"); | ||||
setcookie("ENV_GOBACK_URL", $dedeNowurl, time() + 3600, "/"); | setcookie("ENV_GOBACK_URL", $dedeNowurl, time() + 3600, "/"); | ||||
$sql = $where = ""; | |||||
$sql = $where = ''; | |||||
if (empty($adminid)) $adminid = 0; | if (empty($adminid)) $adminid = 0; | ||||
if (empty($cip)) $cip = ""; | |||||
if (empty($cip)) $cip = ''; | |||||
if (empty($dtime)) $dtime = 0; | if (empty($dtime)) $dtime = 0; | ||||
if ($adminid > 0) $where .= " AND #@__log.adminid='$adminid' "; | if ($adminid > 0) $where .= " AND #@__log.adminid='$adminid' "; | ||||
if ($cip != "") $where .= " AND #@__log.cip LIKE '%$cip%' "; | if ($cip != "") $where .= " AND #@__log.cip LIKE '%$cip%' "; | ||||
@@ -25,7 +25,7 @@ if ($dtime > 0) { | |||||
$where .= " AND #@__log.dtime>'$starttime' "; | $where .= " AND #@__log.dtime>'$starttime' "; | ||||
} | } | ||||
$sql = "SELECT `#@__log`.*,`#@__admin`.userid FROM `#@__log` LEFT JOIN `#@__admin` ON `#@__admin`.id=`#@__log`.adminid WHERE 1=1 $where ORDER BY `#@__log`.lid DESC"; | $sql = "SELECT `#@__log`.*,`#@__admin`.userid FROM `#@__log` LEFT JOIN `#@__admin` ON `#@__admin`.id=`#@__log`.adminid WHERE 1=1 $where ORDER BY `#@__log`.lid DESC"; | ||||
$adminlist = ""; | |||||
$adminlist = ''; | |||||
$dsql->SetQuery("SELECT id,uname FROM `#@__admin`"); | $dsql->SetQuery("SELECT id,uname FROM `#@__admin`"); | ||||
$dsql->Execute('admin'); | $dsql->Execute('admin'); | ||||
while ($myrow = $dsql->GetObject('admin')) { | while ($myrow = $dsql->GetObject('admin')) { | ||||
@@ -10,7 +10,7 @@ | |||||
*/ | */ | ||||
require_once(dirname(__FILE__)."/config.php"); | require_once(dirname(__FILE__)."/config.php"); | ||||
CheckPurview('sys_MakeHtml'); | CheckPurview('sys_MakeHtml'); | ||||
if (empty($dopost)) $dopost = ""; | |||||
if (empty($dopost)) $dopost = ''; | |||||
if ($dopost == "ok") { | if ($dopost == "ok") { | ||||
require_once(DEDEINC."/archive/specview.class.php"); | require_once(DEDEINC."/archive/specview.class.php"); | ||||
$sp = new SpecView(); | $sp = new SpecView(); | ||||
@@ -10,7 +10,7 @@ | |||||
*/ | */ | ||||
require_once(dirname(__FILE__)."/config.php"); | require_once(dirname(__FILE__)."/config.php"); | ||||
//添加权限检查 | //添加权限检查 | ||||
if (empty($dopost)) $dopost = ""; | |||||
if (empty($dopost)) $dopost = ''; | |||||
//上传 | //上传 | ||||
if ($dopost == "upload") { | if ($dopost == "upload") { | ||||
CheckCSRF(); | CheckCSRF(); | ||||
@@ -11,13 +11,13 @@ | |||||
require_once(dirname(__FILE__)."/config.php"); | require_once(dirname(__FILE__)."/config.php"); | ||||
//权限检查 | //权限检查 | ||||
CheckPurview('sys_Upload,sys_MyUpload'); | CheckPurview('sys_Upload,sys_MyUpload'); | ||||
if (empty($dopost)) $dopost = ""; | |||||
if (empty($dopost)) $dopost = ''; | |||||
$backurl = isset($_COOKIE['ENV_GOBACK_URL']) ? $_COOKIE['ENV_GOBACK_URL'] : "javascript:history.go(-1);"; | $backurl = isset($_COOKIE['ENV_GOBACK_URL']) ? $_COOKIE['ENV_GOBACK_URL'] : "javascript:history.go(-1);"; | ||||
//删除附件 | //删除附件 | ||||
if ($dopost == 'del') { | if ($dopost == 'del') { | ||||
CheckPurview('sys_DelUpload'); | CheckPurview('sys_DelUpload'); | ||||
if (empty($ids)) { | if (empty($ids)) { | ||||
$ids = ""; | |||||
$ids = ''; | |||||
} | } | ||||
if ($ids == "") { | if ($ids == "") { | ||||
$myrow = $dsql->GetOne("SELECT url FROM `#@__uploads` WHERE aid='".$aid."'"); | $myrow = $dsql->GetOne("SELECT url FROM `#@__uploads` WHERE aid='".$aid."'"); | ||||
@@ -36,7 +36,7 @@ if ($dopost == 'del') { | |||||
exit(); | exit(); | ||||
} else { | } else { | ||||
$ids = explode(',', $ids); | $ids = explode(',', $ids); | ||||
$idquery = ""; | |||||
$idquery = ''; | |||||
foreach ($ids as $aid) { | foreach ($ids as $aid) { | ||||
if ($idquery == "") { | if ($idquery == "") { | ||||
$idquery .= " WHERE aid='$aid' "; | $idquery .= " WHERE aid='$aid' "; | ||||
@@ -72,7 +72,7 @@ else if ($dopost == 'save') { | |||||
CheckPurview('sys_Upload'); | CheckPurview('sys_Upload'); | ||||
} | } | ||||
//检测文件类型 | //检测文件类型 | ||||
$addquery = ""; | |||||
$addquery = ''; | |||||
if (is_uploaded_file($upfile)) { | if (is_uploaded_file($upfile)) { | ||||
if ($mediatype == 1) { | if ($mediatype == 1) { | ||||
$sparr = array("image/pjpeg", "image/jpeg", "image/gif", "image/png", "image/xpng", "image/wbmp"); | $sparr = array("image/pjpeg", "image/jpeg", "image/gif", "image/png", "image/xpng", "image/wbmp"); | ||||
@@ -130,7 +130,7 @@ else if ($dopost == 'save') { | |||||
$imgw = 0; | $imgw = 0; | ||||
$imgh = 0; | $imgh = 0; | ||||
if ($mediatype == 1) { | if ($mediatype == 1) { | ||||
$info = ""; | |||||
$info = ''; | |||||
$sizes[0] = 0; | $sizes[0] = 0; | ||||
$sizes[1] = 0; | $sizes[1] = 0; | ||||
$sizes = @getimagesize($fullfilename, $info); | $sizes = @getimagesize($fullfilename, $info); | ||||
@@ -23,7 +23,7 @@ if ($dopost == 'filemanager') { | |||||
exit(); | exit(); | ||||
} | } | ||||
//数据库管理 | //数据库管理 | ||||
if (empty($keyword)) $keyword = ""; | |||||
if (empty($keyword)) $keyword = ''; | |||||
$addsql = " WHERE (u.title LIKE '%$keyword%' OR u.url LIKE '%$keyword%') "; | $addsql = " WHERE (u.title LIKE '%$keyword%' OR u.url LIKE '%$keyword%') "; | ||||
if (empty($membertype)) { | if (empty($membertype)) { | ||||
$membertype = 0; | $membertype = 0; | ||||
@@ -10,7 +10,7 @@ | |||||
*/ | */ | ||||
require_once(dirname(__FILE__)."/config.php"); | require_once(dirname(__FILE__)."/config.php"); | ||||
CheckPurview('member_Type'); | CheckPurview('member_Type'); | ||||
if (empty($dopost)) $dopost = ""; | |||||
if (empty($dopost)) $dopost = ''; | |||||
//保存修改 | //保存修改 | ||||
if ($dopost == "save") { | if ($dopost == "save") { | ||||
$startID = 1; | $startID = 1; | ||||
@@ -17,7 +17,7 @@ require_once(DEDEINC."/dedemodule.class.php"); | |||||
require_once(DEDEINC."/libraries/oxwindow.class.php"); | require_once(DEDEINC."/libraries/oxwindow.class.php"); | ||||
if (empty($action)) $action = ''; | if (empty($action)) $action = ''; | ||||
$mdir = DEDEDATA.'/module'; | $mdir = DEDEDATA.'/module'; | ||||
$mdurl = ""; | |||||
$mdurl = ''; | |||||
function TestWriteAble($d) | function TestWriteAble($d) | ||||
{ | { | ||||
$tfile = '_dedet.txt'; | $tfile = '_dedet.txt'; | ||||
@@ -80,7 +80,7 @@ if ($action == '') { | |||||
$dhd->OpenUrl($devURL); | $dhd->OpenUrl($devURL); | ||||
$devContent = $dhd->GetHtml(); | $devContent = $dhd->GetHtml(); | ||||
$devInfo = (array)json_decode($devContent); | $devInfo = (array)json_decode($devContent); | ||||
$offUrl = ""; | |||||
$offUrl = ''; | |||||
if ($devInfo['dev_type'] == 1) { | if ($devInfo['dev_type'] == 1) { | ||||
$offUrl = "官方网址:<code>{$devInfo['offurl']}</code><br>"; | $offUrl = "官方网址:<code>{$devInfo['offurl']}</code><br>"; | ||||
} | } | ||||
@@ -15,7 +15,7 @@ if (DEDEBIZ_SAFE_MODE) { | |||||
CheckPurview('c_Edit'); | CheckPurview('c_Edit'); | ||||
require_once(DEDEINC."/dedetag.class.php"); | require_once(DEDEINC."/dedetag.class.php"); | ||||
require_once(DEDEINC."/libraries/oxwindow.class.php"); | require_once(DEDEINC."/libraries/oxwindow.class.php"); | ||||
if (empty($dopost)) $dopost = ""; | |||||
if (empty($dopost)) $dopost = ''; | |||||
$id = isset($id) && is_numeric($id) ? $id : 0; | $id = isset($id) && is_numeric($id) ? $id : 0; | ||||
if ($dopost == "show") { | if ($dopost == "show") { | ||||
$dsql->ExecuteNoneQuery("UPDATE `#@__channeltype` SET isshow=1 WHERE id='$id' "); | $dsql->ExecuteNoneQuery("UPDATE `#@__channeltype` SET isshow=1 WHERE id='$id' "); | ||||
@@ -321,7 +321,7 @@ if ($dopost == "show") { | |||||
ShowMsg("系统文档模型不允许删除", "mychannel_main.php"); | ShowMsg("系统文档模型不允许删除", "mychannel_main.php"); | ||||
exit(); | exit(); | ||||
} | } | ||||
if (empty($job)) $job = ""; | |||||
if (empty($job)) $job = ''; | |||||
//确认提示 | //确认提示 | ||||
if ($job == "") { | if ($job == "") { | ||||
require_once(DEDEINC."/libraries/oxwindow.class.php"); | require_once(DEDEINC."/libraries/oxwindow.class.php"); | ||||
@@ -14,7 +14,7 @@ if (DEDEBIZ_SAFE_MODE) { | |||||
} | } | ||||
CheckPurview('temp_Other'); | CheckPurview('temp_Other'); | ||||
require_once(DEDEINC."/typelink/typelink.class.php"); | require_once(DEDEINC."/typelink/typelink.class.php"); | ||||
if (empty($dopost)) $dopost = ""; | |||||
if (empty($dopost)) $dopost = ''; | |||||
if ($dopost == "save") { | if ($dopost == "save") { | ||||
CheckCSRF(); | CheckCSRF(); | ||||
$tagname = trim($tagname); | $tagname = trim($tagname); | ||||
@@ -14,7 +14,7 @@ if (DEDEBIZ_SAFE_MODE) { | |||||
} | } | ||||
CheckPurview('temp_Other'); | CheckPurview('temp_Other'); | ||||
//根据生成条件标记 | //根据生成条件标记 | ||||
$attlist = ""; | |||||
$attlist = ''; | |||||
$attlist .= " row='".$row."'"; | $attlist .= " row='".$row."'"; | ||||
$attlist .= " titlelen='".$titlelen."'"; | $attlist .= " titlelen='".$titlelen."'"; | ||||
if ($orderby != 'senddate') $attlist .= " orderby='".$orderby."'"; | if ($orderby != 'senddate') $attlist .= " orderby='".$orderby."'"; | ||||
@@ -20,7 +20,7 @@ if ($dopost == "show") { | |||||
ShowMsg("隐藏一个插件", "plus_main.php"); | ShowMsg("隐藏一个插件", "plus_main.php"); | ||||
exit(); | exit(); | ||||
} else if ($dopost == "delete") { | } else if ($dopost == "delete") { | ||||
if (empty($job)) $job = ""; | |||||
if (empty($job)) $job = ''; | |||||
if ($job == "") { | if ($job == "") { | ||||
//确认 | //确认 | ||||
require_once(DEDEINC."/libraries/oxwindow.class.php"); | require_once(DEDEINC."/libraries/oxwindow.class.php"); | ||||
@@ -99,7 +99,7 @@ if ($dopost != 'save') { | |||||
else $rownum = 0; | else $rownum = 0; | ||||
$arcid = preg_replace("#[^0-9,]#", "", $arcid); | $arcid = preg_replace("#[^0-9,]#", "", $arcid); | ||||
$ids = explode(",", $arcid); | $ids = explode(",", $arcid); | ||||
$okids = ""; | |||||
$okids = ''; | |||||
if (is_array($ids)) { | if (is_array($ids)) { | ||||
foreach ($ids as $mid) { | foreach ($ids as $mid) { | ||||
$mid = trim($mid); | $mid = trim($mid); | ||||
@@ -132,7 +132,7 @@ if ($dopost != 'save') { | |||||
if (isset(${'keywords'.$i})) { | if (isset(${'keywords'.$i})) { | ||||
$keywords = str_replace("'", "", trim(${'keywords'.$i})); | $keywords = str_replace("'", "", trim(${'keywords'.$i})); | ||||
} else { | } else { | ||||
$keywords = ""; | |||||
$keywords = ''; | |||||
} | } | ||||
if (!empty(${'typeid'.$i})) { | if (!empty(${'typeid'.$i})) { | ||||
$ttypeid = trim(${'typeid'.$i}); | $ttypeid = trim(${'typeid'.$i}); | ||||
@@ -146,7 +146,7 @@ if ($dopost != 'save') { | |||||
} | } | ||||
$arcid = preg_replace("#[^0-9,]#", "", $arcid); | $arcid = preg_replace("#[^0-9,]#", "", $arcid); | ||||
$ids = explode(",", $arcid); | $ids = explode(",", $arcid); | ||||
$okids = ""; | |||||
$okids = ''; | |||||
if (is_array($ids)) { | if (is_array($ids)) { | ||||
foreach ($ids as $mid) { | foreach ($ids as $mid) { | ||||
$mid = trim($mid); | $mid = trim($mid); | ||||
@@ -47,7 +47,7 @@ if ($dopost == 'saveedit') { | |||||
} | } | ||||
$olduserid = preg_replace("/[^0-9a-zA-Z_@!\.-]/", '', $olduserid); | $olduserid = preg_replace("/[^0-9a-zA-Z_@!\.-]/", '', $olduserid); | ||||
$userid = preg_replace("/[^0-9a-zA-Z_@!\.-]/", '', $userid); | $userid = preg_replace("/[^0-9a-zA-Z_@!\.-]/", '', $userid); | ||||
$usql = ""; | |||||
$usql = ''; | |||||
if ($olduserid !== $userid) { | if ($olduserid !== $userid) { | ||||
$row = $dsql->GetOne("SELECT mid FROM `#@__member` WHERE userid LIKE '$userid' "); | $row = $dsql->GetOne("SELECT mid FROM `#@__member` WHERE userid LIKE '$userid' "); | ||||
if (is_array($row)) { | if (is_array($row)) { | ||||
@@ -72,7 +72,7 @@ if ($dopost == 'saveedit') { | |||||
ShowMsg("成功修改一个账户", "sys_admin_user.php"); | ShowMsg("成功修改一个账户", "sys_admin_user.php"); | ||||
exit(); | exit(); | ||||
} else if ($dopost == 'delete') { | } else if ($dopost == 'delete') { | ||||
if (empty($userok)) $userok = ""; | |||||
if (empty($userok)) $userok = ''; | |||||
if ($userok != "yes") { | if ($userok != "yes") { | ||||
$randcode = mt_rand(10000, 99999); | $randcode = mt_rand(10000, 99999); | ||||
$safecode = substr(md5($cfg_cookie_encode.$randcode), 0, 24); | $safecode = substr(md5($cfg_cookie_encode.$randcode), 0, 24); | ||||
@@ -189,7 +189,7 @@ else if ($dopost == 'redat') { | |||||
$bakfilesTmp = $bakfiles; | $bakfilesTmp = $bakfiles; | ||||
$bakfiles = explode(',', $bakfiles); | $bakfiles = explode(',', $bakfiles); | ||||
if (empty($structfile)) { | if (empty($structfile)) { | ||||
$structfile = ""; | |||||
$structfile = ''; | |||||
} | } | ||||
if (empty($delfile)) { | if (empty($delfile)) { | ||||
$delfile = 0; | $delfile = 0; | ||||
@@ -10,6 +10,6 @@ | |||||
*/ | */ | ||||
require_once(dirname(__FILE__)."/config.php"); | require_once(dirname(__FILE__)."/config.php"); | ||||
CheckPurview('sys_Group'); | CheckPurview('sys_Group'); | ||||
if (empty($dopost)) $dopost = ""; | |||||
if (empty($dopost)) $dopost = ''; | |||||
include DedeInclude('templets/sys_group.htm'); | include DedeInclude('templets/sys_group.htm'); | ||||
?> | ?> |
@@ -10,13 +10,13 @@ | |||||
*/ | */ | ||||
require_once(dirname(__FILE__)."/config.php"); | require_once(dirname(__FILE__)."/config.php"); | ||||
CheckPurview('sys_Group'); | CheckPurview('sys_Group'); | ||||
if (empty($dopost)) $dopost = ""; | |||||
if (empty($dopost)) $dopost = ''; | |||||
if ($dopost == 'save') { | if ($dopost == 'save') { | ||||
if ($rank == 10) { | if ($rank == 10) { | ||||
ShowMsg('超级管理员的权限不允许修改!', 'sys_group.php'); | ShowMsg('超级管理员的权限不允许修改!', 'sys_group.php'); | ||||
exit(); | exit(); | ||||
} | } | ||||
$purview = ""; | |||||
$purview = ''; | |||||
if (is_array($purviews)) { | if (is_array($purviews)) { | ||||
foreach ($purviews as $p) { | foreach ($purviews as $p) { | ||||
$purview .= "$p "; | $purview .= "$p "; | ||||
@@ -10,7 +10,7 @@ | |||||
*/ | */ | ||||
require_once(dirname(__FILE__)."/config.php"); | require_once(dirname(__FILE__)."/config.php"); | ||||
CheckPurview('sys_Edit'); | CheckPurview('sys_Edit'); | ||||
if (empty($dopost)) $dopost = ""; | |||||
if (empty($dopost)) $dopost = ''; | |||||
$configfile = DEDEDATA.'/config.cache.inc.php'; | $configfile = DEDEDATA.'/config.cache.inc.php'; | ||||
//更新配置函数 | //更新配置函数 | ||||
function ReWriteConfig() | function ReWriteConfig() | ||||
@@ -16,7 +16,7 @@ if ($cfg_photo_support == '') { | |||||
exit(); | exit(); | ||||
} | } | ||||
$ImageWaterConfigFile = DEDEDATA."/mark/inc_photowatermark_config.php"; | $ImageWaterConfigFile = DEDEDATA."/mark/inc_photowatermark_config.php"; | ||||
if (empty($action)) $action = ""; | |||||
if (empty($action)) $action = ''; | |||||
$allow_mark_types = array( | $allow_mark_types = array( | ||||
'image/gif', | 'image/gif', | ||||
'image/xpng', | 'image/xpng', | ||||
@@ -24,7 +24,7 @@ $allow_mark_types = array( | |||||
); | ); | ||||
if ($action == "save") { | if ($action == "save") { | ||||
$vars = array('photo_markup', 'photo_markdown', 'photo_marktype', 'photo_wwidth', 'photo_wheight', 'photo_waterpos', 'photo_watertext', 'photo_fontsize', 'photo_fontcolor', 'photo_marktrans', 'photo_diaphaneity'); | $vars = array('photo_markup', 'photo_markdown', 'photo_marktype', 'photo_wwidth', 'photo_wheight', 'photo_waterpos', 'photo_watertext', 'photo_fontsize', 'photo_fontcolor', 'photo_marktrans', 'photo_diaphaneity'); | ||||
$configstr = $shortname = ""; | |||||
$configstr = $shortname = ''; | |||||
foreach ($vars as $v) { | foreach ($vars as $v) { | ||||
$tmp = stripslashes(${'get_'.$v}); | $tmp = stripslashes(${'get_'.$v}); | ||||
${$v} = addslashes(str_replace("'", "", $tmp)); | ${$v} = addslashes(str_replace("'", "", $tmp)); | ||||
@@ -22,7 +22,7 @@ $offFiles = array(); | |||||
foreach ($filelist as $key => $ff) { | foreach ($filelist as $key => $ff) { | ||||
$offFiles[$ff->filename] = $ff->hash; | $offFiles[$ff->filename] = $ff->hash; | ||||
} | } | ||||
$alter = ""; | |||||
$alter = ''; | |||||
if (count($offFiles) == 0) { | if (count($offFiles) == 0) { | ||||
$alter = DedeAlert('官方文件服务器通信失败,无法保证本地文件和同官方文件服务器是否一致', ALERT_DANGER); | $alter = DedeAlert('官方文件服务器通信失败,无法保证本地文件和同官方文件服务器是否一致', ALERT_DANGER); | ||||
} | } | ||||
@@ -83,7 +83,7 @@ if ($action == 'test') { | |||||
$del->OpenUrl($baseFile); | $del->OpenUrl($baseFile); | ||||
$base = $del->GetHTML(); | $base = $del->GetHTML(); | ||||
$file = "$cfg_basedir/$filename"; | $file = "$cfg_basedir/$filename"; | ||||
$new = ""; | |||||
$new = ''; | |||||
if (is_file($file)) { | if (is_file($file)) { | ||||
$fp = fopen($file, "r"); | $fp = fopen($file, "r"); | ||||
$new = fread($fp, filesize($file)); | $new = fread($fp, filesize($file)); | ||||
@@ -13,7 +13,7 @@ if (DEDEBIZ_SAFE_MODE) { | |||||
die(DedeAlert("系统已启用安全模式,无法使用当前功能",ALERT_DANGER)); | die(DedeAlert("系统已启用安全模式,无法使用当前功能",ALERT_DANGER)); | ||||
} | } | ||||
CheckPurview('sys_Data'); | CheckPurview('sys_Data'); | ||||
if (empty($dopost)) $dopost = ""; | |||||
if (empty($dopost)) $dopost = ''; | |||||
//查看表结构 | //查看表结构 | ||||
if ($dopost == "viewinfo") { | if ($dopost == "viewinfo") { | ||||
CheckCSRF(); | CheckCSRF(); | ||||
@@ -119,7 +119,7 @@ else if ($dopost == "query") { | |||||
//普通的SQL语句 | //普通的SQL语句 | ||||
$sqlquery = str_replace("\r", "", $sqlquery); | $sqlquery = str_replace("\r", "", $sqlquery); | ||||
$sqls = preg_split("#;[ \t]{0,}\n#", $sqlquery); | $sqls = preg_split("#;[ \t]{0,}\n#", $sqlquery); | ||||
$nerrCode = ""; | |||||
$nerrCode = ''; | |||||
$i = 0; | $i = 0; | ||||
foreach ($sqls as $q) { | foreach ($sqls as $q) { | ||||
$q = trim($q); | $q = trim($q); | ||||
@@ -21,7 +21,7 @@ if (empty($partcode)) { | |||||
} | } | ||||
$partcode = stripslashes($partcode); | $partcode = stripslashes($partcode); | ||||
if (empty($typeid)) $typeid = 0; | if (empty($typeid)) $typeid = 0; | ||||
if (empty($showsource)) $showsource = ""; | |||||
if (empty($showsource)) $showsource = ''; | |||||
if ($typeid > 0) $pv = new PartView($typeid); | if ($typeid > 0) $pv = new PartView($typeid); | ||||
else $pv = new PartView(); | else $pv = new PartView(); | ||||
$pv->SetTemplet($partcode, "string"); | $pv->SetTemplet($partcode, "string"); | ||||
@@ -96,7 +96,7 @@ | |||||
<input type="text" name="picname" id="picname" class="admin-input-lg"> | <input type="text" name="picname" id="picname" class="admin-input-lg"> | ||||
<label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程图片</label> | <label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程图片</label> | ||||
<span class="btn btn-success btn-sm fileinput-button">上传图片<input type="file" name="files[]" id="iptAddImages"></span> | <span class="btn btn-success btn-sm fileinput-button">上传图片<input type="file" name="files[]" id="iptAddImages"></span> | ||||
<button type="button" name="submit2" onclick="SelectImage('form1.picname','small');" class="btn btn-success btn-sm">选择图片</button> | |||||
<button type="button" name="submit" onclick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择图片</button> | |||||
<button type="button" id="btnClearAll" class="btn btn-sm btn-success delete">清空</button> | <button type="button" id="btnClearAll" class="btn btn-sm btn-success delete">清空</button> | ||||
</td> | </td> | ||||
<td><img src="/static/web/img/thumbnail.jpg" id="litPic" class="thumbnail-md"></td> | <td><img src="/static/web/img/thumbnail.jpg" id="litPic" class="thumbnail-md"></td> | ||||
@@ -92,7 +92,7 @@ | |||||
<input type="text" name="picname" id="picname" class="admin-input-lg"> | <input type="text" name="picname" id="picname" class="admin-input-lg"> | ||||
<label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程图片</label> | <label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程图片</label> | ||||
<span class="btn btn-success btn-sm fileinput-button">上传图片<input type="file" name="files[]" id="iptAddImages"></span> | <span class="btn btn-success btn-sm fileinput-button">上传图片<input type="file" name="files[]" id="iptAddImages"></span> | ||||
<button type="button" name="submit2" onclick="SelectImage('form1.picname','small');" class='btn btn-success btn-sm'>选择图片</button> | |||||
<button type="button" name="submit" onclick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择图片</button> | |||||
<button type="button" id="btnClearAll" class="btn btn-success delete">清空</button> | <button type="button" id="btnClearAll" class="btn btn-success delete">清空</button> | ||||
</td> | </td> | ||||
<td><img src="/static/web/img/thumbnail.jpg" id="litPic" class="thumbnail-md"></td> | <td><img src="/static/web/img/thumbnail.jpg" id="litPic" class="thumbnail-md"></td> | ||||
@@ -65,7 +65,7 @@ | |||||
<input type="text" name="picname" id="picname" class="admin-input-lg"> | <input type="text" name="picname" id="picname" class="admin-input-lg"> | ||||
<label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程图片</label> | <label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程图片</label> | ||||
<span class="btn btn-success btn-sm fileinput-button">上传图片<input type="file" name="files[]" id="iptAddImages"></span> | <span class="btn btn-success btn-sm fileinput-button">上传图片<input type="file" name="files[]" id="iptAddImages"></span> | ||||
<button type="button" name="submit2" onclick="SelectImage('form1.picname','small');" class="btn btn-success btn-sm">选择图片</button> | |||||
<button type="button" name="submit" onclick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择图片</button> | |||||
<button type="button" id="btnClearAll" class="btn btn-success btn-sm">清空</button> | <button type="button" id="btnClearAll" class="btn btn-success btn-sm">清空</button> | ||||
</td> | </td> | ||||
<td><img src="/static/web/img/thumbnail.jpg" id="litPic" class="thumbnail-md"></td> | <td><img src="/static/web/img/thumbnail.jpg" id="litPic" class="thumbnail-md"></td> | ||||
@@ -91,7 +91,7 @@ | |||||
<input type="text" name="picname" id="picname" class="admin-input-lg"> | <input type="text" name="picname" id="picname" class="admin-input-lg"> | ||||
<label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程图片</label> | <label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程图片</label> | ||||
<span class="btn btn-success btn-sm fileinput-button">上传图片<input type="file" name="files[]" id="iptAddImages"></span> | <span class="btn btn-success btn-sm fileinput-button">上传图片<input type="file" name="files[]" id="iptAddImages"></span> | ||||
<button type="button" name="submit2" onclick="SelectImage('form1.picname','small');" class="btn btn-success btn-sm">选择图片</button> | |||||
<button type="button" name="submit" onclick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择图片</button> | |||||
<button type="button" id="btnClearAll" class="btn btn-success btn-sm">清空</button> | <button type="button" id="btnClearAll" class="btn btn-success btn-sm">清空</button> | ||||
</td> | </td> | ||||
<td><img src="/static/web/img/thumbnail.jpg" id="litPic" class="thumbnail-md"></td> | <td><img src="/static/web/img/thumbnail.jpg" id="litPic" class="thumbnail-md"></td> | ||||
@@ -53,7 +53,7 @@ | |||||
<script> | <script> | ||||
//获得选中文件的文件名 | //获得选中文件的文件名 | ||||
function getCheckboxItem() { | function getCheckboxItem() { | ||||
var allSel = ""; | |||||
var allSel = ''; | |||||
if (document.form2.arcTitle.value) return document.form2.arcTitle.value; | if (document.form2.arcTitle.value) return document.form2.arcTitle.value; | ||||
for (i = 0; i < document.form2.arcTitle.length; i++) { | for (i = 0; i < document.form2.arcTitle.length; i++) { | ||||
if (document.form2.arcTitle[i].checked) { | if (document.form2.arcTitle[i].checked) { | ||||
@@ -60,7 +60,7 @@ | |||||
<script> | <script> | ||||
//获得选中项 | //获得选中项 | ||||
function getCheckboxItem() { | function getCheckboxItem() { | ||||
var allSel = ""; | |||||
var allSel = ''; | |||||
if (document.form1.aids.value) return document.form1.aids.value; | if (document.form1.aids.value) return document.form1.aids.value; | ||||
for (i = 0; i < document.form1.aids.length; i++) { | for (i = 0; i < document.form1.aids.length; i++) { | ||||
if (document.form1.aids[i].checked) { | if (document.form1.aids[i].checked) { | ||||
@@ -68,7 +68,7 @@ | |||||
<script> | <script> | ||||
//获得选中文件的文件名 | //获得选中文件的文件名 | ||||
function getCheckboxItem() { | function getCheckboxItem() { | ||||
var allSel = ""; | |||||
var allSel = ''; | |||||
if (document.form2.arcID.value) return document.form2.arcID.value; | if (document.form2.arcID.value) return document.form2.arcID.value; | ||||
for (i = 0; i < document.form2.arcID.length; i++) { | for (i = 0; i < document.form2.arcID.length; i++) { | ||||
if (document.form2.arcID[i].checked) { | if (document.form2.arcID[i].checked) { | ||||
@@ -130,7 +130,7 @@ | |||||
ShowMsg("您选择的select或radio、checkbox类型,必须默认值设置选择的项目(用英文逗号)"); | ShowMsg("您选择的select或radio、checkbox类型,必须默认值设置选择的项目(用英文逗号)"); | ||||
return false; | return false; | ||||
} | } | ||||
if (spage=="no") spage = ""; | |||||
if (spage=="no") spage = ''; | |||||
revalue = "<field:"+fieldname+" itemname=\""+itemname+"\" autofield=\"1\" type=\""+dtype+"\" isnull=\""+sisnull+"\" default=\""+vdefault+"\" "; | revalue = "<field:"+fieldname+" itemname=\""+itemname+"\" autofield=\"1\" type=\""+dtype+"\" isnull=\""+sisnull+"\" default=\""+vdefault+"\" "; | ||||
revalue += " maxlength=\""+maxlength+"\" page=\""+spage+"\">"+vinnertext+"</field:"+fieldname+">"; | revalue += " maxlength=\""+maxlength+"\" page=\""+spage+"\">"+vinnertext+"</field:"+fieldname+">"; | ||||
document.form1.fieldstring.value = revalue; | document.form1.fieldstring.value = revalue; | ||||
@@ -121,7 +121,7 @@ | |||||
ShowMsg("您选择的select或radio、checkbox类型,必须默认值设置选择的项目(用英文逗号)"); | ShowMsg("您选择的select或radio、checkbox类型,必须默认值设置选择的项目(用英文逗号)"); | ||||
return false; | return false; | ||||
} | } | ||||
if (spage=="no") spage = ""; | |||||
if (spage=="no") spage = ''; | |||||
revalue = "<field:"+fieldname+" itemname=\""+itemname+"\" autofield=\"1\" type=\""+dtype+"\""; | revalue = "<field:"+fieldname+" itemname=\""+itemname+"\" autofield=\"1\" type=\""+dtype+"\""; | ||||
revalue += " isnull=\""+sisnull+"\" default=\""+vdefault+"\" "; | revalue += " isnull=\""+sisnull+"\" default=\""+vdefault+"\" "; | ||||
revalue += " maxlength=\""+maxlength+"\" page=\""+spage+"\">"+vinnertext+"</field:"+fieldname+">"; | revalue += " maxlength=\""+maxlength+"\" page=\""+spage+"\">"+vinnertext+"</field:"+fieldname+">"; | ||||
@@ -51,7 +51,7 @@ | |||||
</form> | </form> | ||||
<script> | <script> | ||||
function getOneItem() { | function getOneItem() { | ||||
var allSel = ""; | |||||
var allSel = ''; | |||||
if (document.form2.id.value) return document.form2.id.value; | if (document.form2.id.value) return document.form2.id.value; | ||||
for (i = 0; i < document.form2.id.length; i++) { | for (i = 0; i < document.form2.id.length; i++) { | ||||
if (document.form2.id[i].checked) { | if (document.form2.id[i].checked) { | ||||
@@ -62,7 +62,7 @@ | |||||
return allSel; | return allSel; | ||||
} | } | ||||
function getCheckboxItem() { | function getCheckboxItem() { | ||||
var allSel = ""; | |||||
var allSel = ''; | |||||
if (document.form2.id.value) return document.form2.id.value; | if (document.form2.id.value) return document.form2.id.value; | ||||
for (i = 0; i < document.form2.id.length; i++) { | for (i = 0; i < document.form2.id.length; i++) { | ||||
if (document.form2.id[i].checked) { | if (document.form2.id[i].checked) { | ||||
@@ -78,7 +78,7 @@ | |||||
<script> | <script> | ||||
//获得选中文件的文件名 | //获得选中文件的文件名 | ||||
function getCheckboxItem() { | function getCheckboxItem() { | ||||
var allSel = ""; | |||||
var allSel = ''; | |||||
if (typeof document.feedback.fid === "undefined") { | if (typeof document.feedback.fid === "undefined") { | ||||
return ""; | return ""; | ||||
} | } | ||||
@@ -21,8 +21,8 @@ | |||||
</tr> | </tr> | ||||
<?php | <?php | ||||
$dh = scandir($inpath); | $dh = scandir($inpath); | ||||
$ty1 = ""; | |||||
$ty2 = ""; | |||||
$ty1 = ''; | |||||
$ty2 = ''; | |||||
$files = $dirs = array(); | $files = $dirs = array(); | ||||
foreach ($dh as $file) { | foreach ($dh as $file) { | ||||
if ($file!="." && $file!=".." && !is_dir("$inpath/$file")) { | if ($file!="." && $file!=".." && !is_dir("$inpath/$file")) { | ||||
@@ -70,7 +70,7 @@ | |||||
<script> | <script> | ||||
//获得选中文件的文件名 | //获得选中文件的文件名 | ||||
function getCheckboxItem() { | function getCheckboxItem() { | ||||
var allSel = ""; | |||||
var allSel = ''; | |||||
if (document.form1.logs.value) return document.form1.logs.value; | if (document.form1.logs.value) return document.form1.logs.value; | ||||
for (i = 0; i < document.form1.logs.length; i++) { | for (i = 0; i < document.form1.logs.length; i++) { | ||||
if (document.form1.logs[i].checked) { | if (document.form1.logs[i].checked) { | ||||
@@ -54,11 +54,11 @@ | |||||
var ob2 = document.getElementById("uptype2"); | var ob2 = document.getElementById("uptype2"); | ||||
var ob3 = document.getElementById("uptype3"); | var ob3 = document.getElementById("uptype3"); | ||||
if (ob1.checked) { | if (ob1.checked) { | ||||
document.getElementById("seltime").style.display = ""; | |||||
document.getElementById("seltime").style.display = ''; | |||||
document.getElementById("selid").style.display = "none"; | document.getElementById("selid").style.display = "none"; | ||||
} else if (ob2.checked) { | } else if (ob2.checked) { | ||||
document.getElementById("seltime").style.display = "none"; | document.getElementById("seltime").style.display = "none"; | ||||
document.getElementById("selid").style.display = ""; | |||||
document.getElementById("selid").style.display = ''; | |||||
} else { | } else { | ||||
document.getElementById("seltime").style.display = "none"; | document.getElementById("seltime").style.display = "none"; | ||||
document.getElementById("selid").style.display = "none"; | document.getElementById("selid").style.display = "none"; | ||||
@@ -84,7 +84,7 @@ | |||||
} | } | ||||
function ResetUpload() { | function ResetUpload() { | ||||
var upfield = document.getElementById("uploadfield"); | var upfield = document.getElementById("uploadfield"); | ||||
upfield.innerHTML = ""; | |||||
upfield.innerHTML = ''; | |||||
startNum = 2; | startNum = 2; | ||||
} | } | ||||
</script> | </script> | ||||
@@ -52,7 +52,7 @@ | |||||
if ($myrow['mediatype'] == 1) { | if ($myrow['mediatype'] == 1) { | ||||
$fullfilename = $cfg_basedir.$myrow['url']; | $fullfilename = $cfg_basedir.$myrow['url']; | ||||
if (file_exists($fullfilename)) { | if (file_exists($fullfilename)) { | ||||
$info = ""; | |||||
$info = ''; | |||||
$sizes = getimagesize($fullfilename,$info); | $sizes = getimagesize($fullfilename,$info); | ||||
if (is_array($sizes)) { | if (is_array($sizes)) { | ||||
if ($sizes[0]>200) $w=200; | if ($sizes[0]>200) $w=200; | ||||
@@ -76,7 +76,7 @@ | |||||
<script> | <script> | ||||
//获得选中文件的文件名 | //获得选中文件的文件名 | ||||
function getCheckboxItem() { | function getCheckboxItem() { | ||||
var allSel = ""; | |||||
var allSel = ''; | |||||
if (document.form1.aids.value) return document.form1.aids.value; | if (document.form1.aids.value) return document.form1.aids.value; | ||||
for (i = 0; i < document.form1.aids.length; i++) { | for (i = 0; i < document.form1.aids.length; i++) { | ||||
if (document.form1.aids[i].checked) { | if (document.form1.aids[i].checked) { | ||||
@@ -66,7 +66,7 @@ | |||||
<script> | <script> | ||||
//获得选中项 | //获得选中项 | ||||
function getCheckboxItem() { | function getCheckboxItem() { | ||||
var allSel = ""; | |||||
var allSel = ''; | |||||
if (document.form1.aids.value) return document.form1.aids.value; | if (document.form1.aids.value) return document.form1.aids.value; | ||||
for (i = 0; i < document.form1.aids.length; i++) { | for (i = 0; i < document.form1.aids.length; i++) { | ||||
if (document.form1.aids[i].checked) { | if (document.form1.aids[i].checked) { | ||||
@@ -176,8 +176,8 @@ | |||||
ShowMsg("自定义字段数据类型为select、radio、checkbox时,下面填写数据,英文逗号分开,如:DedeBIZ,得德"); | ShowMsg("自定义字段数据类型为select、radio、checkbox时,下面填写数据,英文逗号分开,如:DedeBIZ,得德"); | ||||
return false; | return false; | ||||
} | } | ||||
if (spage=="no") spage = ""; | |||||
relstr = ""; | |||||
if (spage=="no") spage = ''; | |||||
relstr = ''; | |||||
if (dtype==="relation") { | if (dtype==="relation") { | ||||
relstr = " automake=\""+automake+"\" channel=\""+$("#channeltype").val()+"\""; | relstr = " automake=\""+automake+"\" channel=\""+$("#channeltype").val()+"\""; | ||||
} | } | ||||
@@ -169,8 +169,8 @@ | |||||
ShowMsg("自定义字段数据类型为select、radio、checkbox时,下面填写数据,英文逗号分开,如:DedeBIZ,得德"); | ShowMsg("自定义字段数据类型为select、radio、checkbox时,下面填写数据,英文逗号分开,如:DedeBIZ,得德"); | ||||
return false; | return false; | ||||
} | } | ||||
if (spage == "no") spage = ""; | |||||
relstr = ""; | |||||
if (spage == "no") spage = ''; | |||||
relstr = ''; | |||||
if (dtype==="relation") { | if (dtype==="relation") { | ||||
relstr = " automake=\""+automake+"\" channel=\""+$("#channeltype").val()+"\""; | relstr = " automake=\""+automake+"\" channel=\""+$("#channeltype").val()+"\""; | ||||
} | } | ||||
@@ -63,7 +63,7 @@ | |||||
} | } | ||||
//获得选中文件的文件名 | //获得选中文件的文件名 | ||||
function getCheckboxItem() { | function getCheckboxItem() { | ||||
var allSel = ""; | |||||
var allSel = ''; | |||||
if (document.form2.arcID.value) return document.form2.arcID.value; | if (document.form2.arcID.value) return document.form2.arcID.value; | ||||
for (i = 0; i < document.form2.arcID.length; i++) { | for (i = 0; i < document.form2.arcID.length; i++) { | ||||
if (document.form2.arcID[i].checked) { | if (document.form2.arcID[i].checked) { | ||||
@@ -77,7 +77,7 @@ | |||||
} | } | ||||
//获得选中其中一个的id | //获得选中其中一个的id | ||||
function getOneItem() { | function getOneItem() { | ||||
var allSel = ""; | |||||
var allSel = ''; | |||||
if (document.form2.arcID.value) return document.form2.arcID.value; | if (document.form2.arcID.value) return document.form2.arcID.value; | ||||
for (i = 0; i < document.form2.arcID.length; i++) { | for (i = 0; i < document.form2.arcID.length; i++) { | ||||
if (document.form2.arcID[i].checked) { | if (document.form2.arcID[i].checked) { | ||||
@@ -108,7 +108,7 @@ | |||||
<input type="text" name="picname" id="picname" class="admin-input-lg"> | <input type="text" name="picname" id="picname" class="admin-input-lg"> | ||||
<label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程图片</label> | <label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程图片</label> | ||||
<span class="btn btn-success btn-sm fileinput-button">上传图片<input type="file" name="files[]" id="iptAddImages"></span> | <span class="btn btn-success btn-sm fileinput-button">上传图片<input type="file" name="files[]" id="iptAddImages"></span> | ||||
<button type="button" name="submit2" onclick="SelectImage('form1.picname','small');" class='btn btn-success btn-sm'>选择图片</button> | |||||
<button type="button" name="submit" onclick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择图片</button> | |||||
<button type="button" id="btnClearAll" class="btn btn-success btn-sm">清空</button> | <button type="button" id="btnClearAll" class="btn btn-success btn-sm">清空</button> | ||||
</td> | </td> | ||||
<td><img src="/static/web/img/thumbnail.jpg" id="litPic" class="thumbnail-md"></td> | <td><img src="/static/web/img/thumbnail.jpg" id="litPic" class="thumbnail-md"></td> | ||||
@@ -112,7 +112,7 @@ | |||||
<input type="text" name="picname" id="picname" class="admin-input-lg"> | <input type="text" name="picname" id="picname" class="admin-input-lg"> | ||||
<label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程图片</label> | <label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程图片</label> | ||||
<span class="btn btn-success btn-sm fileinput-button">上传图片<input type="file" name="files[]" id="iptAddImages"></span> | <span class="btn btn-success btn-sm fileinput-button">上传图片<input type="file" name="files[]" id="iptAddImages"></span> | ||||
<button type="button" name="submit2" onclick="SelectImage('form1.picname','small');" class="btn btn-success btn-sm">选择图片</button> | |||||
<button type="button" name="submit" onclick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择图片</button> | |||||
<button type="button" id="btnClearAll" class="btn btn-success btn-sm">清空</button> | <button type="button" id="btnClearAll" class="btn btn-success btn-sm">清空</button> | ||||
</td> | </td> | ||||
<td><img id="litPic" src="/static/web/img/thumbnail.jpg" id="litPic" class="thumbnail-md"></td> | <td><img id="litPic" src="/static/web/img/thumbnail.jpg" id="litPic" class="thumbnail-md"></td> | ||||
@@ -149,7 +149,7 @@ | |||||
$selgroup = ''; | $selgroup = ''; | ||||
foreach($etypes as $arr) | foreach($etypes as $arr) | ||||
{ | { | ||||
$stylecolor = ""; | |||||
$stylecolor = ''; | |||||
if ($arr['issystem']==1) $stylecolor = " style='color:#999' "; | if ($arr['issystem']==1) $stylecolor = " style='color:#999' "; | ||||
if ($egroup==$arr['egroup']) { | if ($egroup==$arr['egroup']) { | ||||
$selgroup = $arr['itemname']; | $selgroup = $arr['itemname']; | ||||
@@ -161,7 +161,7 @@ | |||||
//获得选中文件的数据表 | //获得选中文件的数据表 | ||||
function getCheckboxItem() { | function getCheckboxItem() { | ||||
var myform = document.form1; | var myform = document.form1; | ||||
var allSel = ""; | |||||
var allSel = ''; | |||||
if (myform.tables.value) return myform.tables.value; | if (myform.tables.value) return myform.tables.value; | ||||
for (i = 0; i < myform.tables.length; i++) { | for (i = 0; i < myform.tables.length; i++) { | ||||
if (myform.tables[i].checked) { | if (myform.tables[i].checked) { | ||||
@@ -64,7 +64,7 @@ | |||||
//获得选中文件的数据表 | //获得选中文件的数据表 | ||||
function getCheckboxItem() { | function getCheckboxItem() { | ||||
var myform = document.form1; | var myform = document.form1; | ||||
var allSel = ""; | |||||
var allSel = ''; | |||||
if (myform.bakfile.value) return myform.bakfile.value; | if (myform.bakfile.value) return myform.bakfile.value; | ||||
for (i = 0; i < myform.bakfile.length; i++) { | for (i = 0; i < myform.bakfile.length; i++) { | ||||
if (myform.bakfile[i].checked) { | if (myform.bakfile[i].checked) { | ||||
@@ -199,7 +199,7 @@ | |||||
}).catch((error) => { | }).catch((error) => { | ||||
$Obj("_search").innerHTML = errMsg; | $Obj("_search").innerHTML = errMsg; | ||||
}); | }); | ||||
$Obj("_mainsearch").innerHTML = ""; | |||||
$Obj("_mainsearch").innerHTML = ''; | |||||
searchconfig = true; | searchconfig = true; | ||||
} | } | ||||
function resetCookieEncode() { | function resetCookieEncode() { | ||||
@@ -10,7 +10,7 @@ | |||||
*/ | */ | ||||
require(dirname(__FILE__)."/config.php"); | require(dirname(__FILE__)."/config.php"); | ||||
CheckPurview('temp_One'); | CheckPurview('temp_One'); | ||||
if (empty($dopost)) $dopost = ""; | |||||
if (empty($dopost)) $dopost = ''; | |||||
if ($dopost == "save") { | if ($dopost == "save") { | ||||
require_once(DEDEINC."/archive/partview.class.php"); | require_once(DEDEINC."/archive/partview.class.php"); | ||||
$uptime = time(); | $uptime = time(); | ||||
@@ -10,7 +10,7 @@ | |||||
*/ | */ | ||||
require(dirname(__FILE__)."/config.php"); | require(dirname(__FILE__)."/config.php"); | ||||
CheckPurview('temp_One'); | CheckPurview('temp_One'); | ||||
if (empty($dopost)) $dopost = ""; | |||||
if (empty($dopost)) $dopost = ''; | |||||
$aid = isset($aid) && is_numeric($aid) ? $aid : 0; | $aid = isset($aid) && is_numeric($aid) ? $aid : 0; | ||||
if ($dopost == "saveedit") { | if ($dopost == "saveedit") { | ||||
include_once(DEDEINC."/archive/sgpage.class.php"); | include_once(DEDEINC."/archive/sgpage.class.php"); | ||||
@@ -12,13 +12,13 @@ require(dirname(__FILE__)."/config.php"); | |||||
require_once(DEDEINC."/dedevote.class.php"); | require_once(DEDEINC."/dedevote.class.php"); | ||||
require_once(DEDEINC."/helpers/filter.helper.php"); | require_once(DEDEINC."/helpers/filter.helper.php"); | ||||
CheckPurview('plus_投票管理'); | CheckPurview('plus_投票管理'); | ||||
if (empty($dopost)) $dopost = ""; | |||||
if (empty($dopost)) $dopost = ''; | |||||
if (empty($isarc)) $isarc = 0; | if (empty($isarc)) $isarc = 0; | ||||
if ($dopost == "save" && $isarc == 0) { | if ($dopost == "save" && $isarc == 0) { | ||||
CheckCSRF(); | CheckCSRF(); | ||||
$starttime = GetMkTime($starttime); | $starttime = GetMkTime($starttime); | ||||
$endtime = GetMkTime($endtime); | $endtime = GetMkTime($endtime); | ||||
$voteitems = ""; | |||||
$voteitems = ''; | |||||
$j = 0; | $j = 0; | ||||
for ($i = 1; $i <= 15; $i++) { | for ($i = 1; $i <= 15; $i++) { | ||||
if (!empty(${"voteitem".$i})) { | if (!empty(${"voteitem".$i})) { | ||||
@@ -43,7 +43,7 @@ if ($dopost == "save" && $isarc == 0) { | |||||
} else if ($dopost == "save" && $isarc == 1) { | } else if ($dopost == "save" && $isarc == 1) { | ||||
$starttime = GetMkTime($starttime); | $starttime = GetMkTime($starttime); | ||||
$endtime = GetMkTime($endtime); | $endtime = GetMkTime($endtime); | ||||
$voteitems = ""; | |||||
$voteitems = ''; | |||||
$j = 0; | $j = 0; | ||||
for ($i = 1; $i <= 15; $i++) { | for ($i = 1; $i <= 15; $i++) { | ||||
if (!empty(${"voteitem".$i})) { | if (!empty(${"voteitem".$i})) { | ||||
@@ -11,7 +11,7 @@ | |||||
require(dirname(__FILE__)."/config.php"); | require(dirname(__FILE__)."/config.php"); | ||||
CheckPurview('plus_投票管理'); | CheckPurview('plus_投票管理'); | ||||
require_once(DEDEINC."/dedetag.class.php"); | require_once(DEDEINC."/dedetag.class.php"); | ||||
if (empty($dopost)) $dopost = ""; | |||||
if (empty($dopost)) $dopost = ''; | |||||
$aid = isset($aid) && is_numeric($aid) ? $aid : 0; | $aid = isset($aid) && is_numeric($aid) ? $aid : 0; | ||||
$ENV_GOBACK_URL = empty($_COOKIE['ENV_GOBACK_URL']) ? "vote_main.php" : $_COOKIE['ENV_GOBACK_URL']; | $ENV_GOBACK_URL = empty($_COOKIE['ENV_GOBACK_URL']) ? "vote_main.php" : $_COOKIE['ENV_GOBACK_URL']; | ||||
if ($dopost == "delete") { | if ($dopost == "delete") { | ||||
@@ -41,7 +41,7 @@ if (is_array($arcRow)) { | |||||
exit(); | exit(); | ||||
} | } | ||||
if (empty($mx)) $mx = $cfg_album_width; | if (empty($mx)) $mx = $cfg_album_width; | ||||
$pageGuide = ""; | |||||
$pageGuide = ''; | |||||
//获取上下幅图片链接 | //获取上下幅图片链接 | ||||
$row = $dsql->GetOne("SELECT imgurls FROM `#@__addonimages` WHERE aid='{$aid}'"); | $row = $dsql->GetOne("SELECT imgurls FROM `#@__addonimages` WHERE aid='{$aid}'"); | ||||
$i = 0; | $i = 0; | ||||
@@ -259,7 +259,7 @@ else if ($step==10) { | |||||
header("Cache-Control:no-cache\r\n"); | header("Cache-Control:no-cache\r\n"); | ||||
header("Expires:0\r\n"); | header("Expires:0\r\n"); | ||||
$conn = @mysql_connect($dbhost, $dbuser, $dbpwd); | $conn = @mysql_connect($dbhost, $dbuser, $dbpwd); | ||||
$info = ""; | |||||
$info = ''; | |||||
if ($conn) { | if ($conn) { | ||||
if (empty($dbname)) { | if (empty($dbname)) { | ||||
$info = "数据库连接正确"; | $info = "数据库连接正确"; | ||||
@@ -59,7 +59,7 @@ function QuickEdit(aid, e, obj) { | |||||
ChangeFullDiv('show'); | ChangeFullDiv('show'); | ||||
} | } | ||||
function getCheckboxItem() { | function getCheckboxItem() { | ||||
var allSel = ""; | |||||
var allSel = ''; | |||||
if (document.form2.arcID.value) return document.form2.arcID.value; | if (document.form2.arcID.value) return document.form2.arcID.value; | ||||
for (i = 0;i<document.form2.arcID.length;i++) { | for (i = 0;i<document.form2.arcID.length;i++) { | ||||
if (document.form2.arcID[i].checked) { | if (document.form2.arcID[i].checked) { | ||||
@@ -171,7 +171,7 @@ function ShowUrlTrEdit() { | |||||
ShowUrlTr(); | ShowUrlTr(); | ||||
var jumpTest = $Obj("isjump"); | var jumpTest = $Obj("isjump"); | ||||
var rurl = $Obj("redirecturl"); | var rurl = $Obj("redirecturl"); | ||||
if (!jumpTest.checked) rurl.value = ""; | |||||
if (!jumpTest.checked) rurl.value = ''; | |||||
} | } | ||||
function LoadQuickDiv(e, surl, oname, w, h) { | function LoadQuickDiv(e, surl, oname, w, h) { | ||||
var newobj = $Obj(oname); | var newobj = $Obj(oname); | ||||
@@ -273,8 +273,8 @@ function DedeConfirm(content = "", title = "确认提示") { | |||||
//函数会返回一个modalID,通过这个id可自已定义一些方法,这里用到了一个展开语法:https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Operators/Spread_syntax | //函数会返回一个modalID,通过这个id可自已定义一些方法,这里用到了一个展开语法:https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Operators/Spread_syntax | ||||
function ShowMsg(content, ...args) { | function ShowMsg(content, ...args) { | ||||
title = "系统提示"; | title = "系统提示"; | ||||
size = ""; | |||||
if (typeof content == "undefined") content = ""; | |||||
size = ''; | |||||
if (typeof content == "undefined") content = ''; | |||||
modalID = guid(); | modalID = guid(); | ||||
var footer = `<button type="button" class="btn btn-primary btn-sm" onclick="CloseModal(\'GKModal${modalID}\')">确定</button>`; | var footer = `<button type="button" class="btn btn-primary btn-sm" onclick="CloseModal(\'GKModal${modalID}\')">确定</button>`; | ||||
var noClose = false; | var noClose = false; | ||||
@@ -320,9 +320,9 @@ function CloseModal(modalID) { | |||||
}) | }) | ||||
} | } | ||||
//获取缩略图 | //获取缩略图 | ||||
var litpicImgSrc = ""; | |||||
var litpicImg = ""; | |||||
var mdlCropperID = ""; | |||||
var litpicImgSrc = ''; | |||||
var litpicImg = ''; | |||||
var mdlCropperID = ''; | |||||
var optCropper = { | var optCropper = { | ||||
preview: ".pv", | preview: ".pv", | ||||
crop: function(e) { | crop: function(e) { | ||||
@@ -74,9 +74,9 @@ function ChangeSon() { | |||||
} | } | ||||
if (j > 0) { | if (j > 0) { | ||||
document.getElementById('span_' + emname + '_sec').appendChild(oj); | document.getElementById('span_' + emname + '_sec').appendChild(oj); | ||||
document.getElementById('span_' + emname + '_sec').style.display = "initial" | |||||
document.getElementById('span_' + emname + '_sec').style.display = "initial"; | |||||
} else { | } else { | ||||
document.getElementById('span_' + emname + '_sec').innerHTML = ""; | |||||
document.getElementById('span_' + emname + '_sec').innerHTML = ''; | |||||
} | } | ||||
} | } | ||||
//改变第三级的事件 | //改变第三级的事件 | ||||
@@ -135,10 +135,10 @@ function selNextSon() { | |||||
count = count + 1; | count = count + 1; | ||||
} | } | ||||
if (count > 0) { | if (count > 0) { | ||||
document.getElementById('span_' + emname + '_son').style.display = "initial" | |||||
document.getElementById('span_' + emname + '_son').style.display = "initial"; | |||||
document.getElementById('span_' + emname + '_son').appendChild(oj); | document.getElementById('span_' + emname + '_son').appendChild(oj); | ||||
} else { | } else { | ||||
document.getElementById('span_' + emname + '_son').style.display = "none" | |||||
document.getElementById('span_' + emname + '_son').style.display = "none"; | |||||
} | } | ||||
} | } | ||||
@@ -60,7 +60,7 @@ function DedeConfirm(content = "", title = "确认提示") { | |||||
//函数会返回一个modalID,通过这个id可自已定义一些方法,这里用到了一个展开语法:https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Operators/Spread_syntax | //函数会返回一个modalID,通过这个id可自已定义一些方法,这里用到了一个展开语法:https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Operators/Spread_syntax | ||||
function ShowMsg(content, ...args) { | function ShowMsg(content, ...args) { | ||||
title = "系统提示"; | title = "系统提示"; | ||||
if (typeof content == "undefined") content = ""; | |||||
if (typeof content == "undefined") content = ''; | |||||
modalID = guid(); | modalID = guid(); | ||||
var footer = `<button type="button" class="btn btn-success btn-sm" onClick="CloseModal(\'DedeModal${modalID}\')">确定</button>`; | var footer = `<button type="button" class="btn btn-success btn-sm" onClick="CloseModal(\'DedeModal${modalID}\')">确定</button>`; | ||||
var noClose = false; | var noClose = false; | ||||
@@ -703,7 +703,7 @@ class Archives | |||||
$this->PreNext['preimg'] = "<a href='$mlink'><img src=\"{$preRow['litpic']}\" alt=\"{$preRow['title']}\" title=\"{$preRow['title']}\"></a> "; | $this->PreNext['preimg'] = "<a href='$mlink'><img src=\"{$preRow['litpic']}\" alt=\"{$preRow['title']}\" title=\"{$preRow['title']}\"></a> "; | ||||
} else { | } else { | ||||
$this->PreNext['pre'] = "上一篇:暂无"; | $this->PreNext['pre'] = "上一篇:暂无"; | ||||
$this->PreNext['preimg'] = ""; | |||||
$this->PreNext['preimg'] = ''; | |||||
} | } | ||||
if (is_array($nextRow)) { | if (is_array($nextRow)) { | ||||
$mlink = GetFileUrl( | $mlink = GetFileUrl( | ||||
@@ -731,7 +731,7 @@ class Archives | |||||
$this->PreNext['nextimg'] = "<a href='$mlink'><img src=\"{$nextRow['litpic']}\" alt=\"{$nextRow['title']}\" title=\"{$nextRow['title']}\"></a> "; | $this->PreNext['nextimg'] = "<a href='$mlink'><img src=\"{$nextRow['litpic']}\" alt=\"{$nextRow['title']}\" title=\"{$nextRow['title']}\"></a> "; | ||||
} else { | } else { | ||||
$this->PreNext['next'] = "下一篇:暂无"; | $this->PreNext['next'] = "下一篇:暂无"; | ||||
$this->PreNext['nextimg'] = ""; | |||||
$this->PreNext['nextimg'] = ''; | |||||
} | } | ||||
} | } | ||||
if ($gtype=='diy') { | if ($gtype=='diy') { | ||||
@@ -767,7 +767,7 @@ class Archives | |||||
} | } | ||||
$i = 1; | $i = 1; | ||||
if ($styleName == 'link') { | if ($styleName == 'link') { | ||||
$revalue = ""; | |||||
$revalue = ''; | |||||
foreach ($this->SplitTitles as $k => $v) { | foreach ($this->SplitTitles as $k => $v) { | ||||
if ($i == 1) { | if ($i == 1) { | ||||
$revalue .= "<a href='".$this->NameFirst.".".$this->ShortName."'>$v</a>\r\n"; | $revalue .= "<a href='".$this->NameFirst.".".$this->ShortName."'>$v</a>\r\n"; | ||||
@@ -867,7 +867,7 @@ class Archives | |||||
$i = 1; | $i = 1; | ||||
$aid = $this->ArcID; | $aid = $this->ArcID; | ||||
if ($styleName == 'link') { | if ($styleName == 'link') { | ||||
$revalue = ""; | |||||
$revalue = ''; | |||||
foreach ($this->SplitTitles as $k => $v) { | foreach ($this->SplitTitles as $k => $v) { | ||||
if ($i == 1) { | if ($i == 1) { | ||||
if ($cfg_rewrite == 'Y') { | if ($cfg_rewrite == 'Y') { | ||||
@@ -193,7 +193,7 @@ class FreeList | |||||
function MakeHtml($startpage = 1, $makepagesize = 0) | function MakeHtml($startpage = 1, $makepagesize = 0) | ||||
{ | { | ||||
$this->LoadTemplet(); | $this->LoadTemplet(); | ||||
$murl = ""; | |||||
$murl = ''; | |||||
if (empty($startpage)) { | if (empty($startpage)) { | ||||
$startpage = 1; | $startpage = 1; | ||||
} | } | ||||
@@ -444,7 +444,7 @@ class FreeList | |||||
$orderby = $this->ListObj->GetAtt('orderby'); | $orderby = $this->ListObj->GetAtt('orderby'); | ||||
$orderWay = $this->ListObj->GetAtt('orderway'); | $orderWay = $this->ListObj->GetAtt('orderway'); | ||||
//排序方式 | //排序方式 | ||||
$ordersql = ""; | |||||
$ordersql = ''; | |||||
if ($orderby == "senddate") { | if ($orderby == "senddate") { | ||||
$ordersql = " ORDER BY arc.senddate $orderWay"; | $ordersql = " ORDER BY arc.senddate $orderWay"; | ||||
} else if ($orderby == "pubdate") { | } else if ($orderby == "pubdate") { | ||||
@@ -463,13 +463,13 @@ class FreeList | |||||
$ordersql = " ORDER BY arc.sortrank $orderWay"; | $ordersql = " ORDER BY arc.sortrank $orderWay"; | ||||
} | } | ||||
//获得附加表的相关信息 | //获得附加表的相关信息 | ||||
$addField = ""; | |||||
$addJoin = ""; | |||||
$addField = ''; | |||||
$addJoin = ''; | |||||
if (is_object($this->ChannelUnit)) { | if (is_object($this->ChannelUnit)) { | ||||
$addtable = $this->ChannelUnit->ChannelInfos['addtable']; | $addtable = $this->ChannelUnit->ChannelInfos['addtable']; | ||||
if ($addtable != "") { | if ($addtable != "") { | ||||
$addJoin = " LEFT JOIN $addtable ON arc.id = ".$addtable.".aid "; | $addJoin = " LEFT JOIN $addtable ON arc.id = ".$addtable.".aid "; | ||||
$addField = ""; | |||||
$addField = ''; | |||||
$fields = explode(",", $this->ChannelUnit->ChannelInfos['listfields']); | $fields = explode(",", $this->ChannelUnit->ChannelInfos['listfields']); | ||||
foreach ($fields as $k => $v) { | foreach ($fields as $k => $v) { | ||||
$nfields[$v] = $k; | $nfields[$v] = $k; | ||||
@@ -488,7 +488,7 @@ class FreeList | |||||
$query = "SELECT arc.*,tp.typedir,tp.typename,tp.isdefault,tp.defaultname,tp.namerule,tp.namerule2,tp.ispart,tp.moresite,tp.siteurl,tp.sitepath,mb.uname,mb.face,mb.userid $addField FROM {$this->maintable} arc LEFT JOIN `#@__arctype` tp ON arc.typeid=tp.id LEFT JOIN `#@__member` mb on arc.mid = mb.mid $addJoin WHERE $orwhere $ordersql LIMIT $limitstart,".$this->pagesize; | $query = "SELECT arc.*,tp.typedir,tp.typename,tp.isdefault,tp.defaultname,tp.namerule,tp.namerule2,tp.ispart,tp.moresite,tp.siteurl,tp.sitepath,mb.uname,mb.face,mb.userid $addField FROM {$this->maintable} arc LEFT JOIN `#@__arctype` tp ON arc.typeid=tp.id LEFT JOIN `#@__member` mb on arc.mid = mb.mid $addJoin WHERE $orwhere $ordersql LIMIT $limitstart,".$this->pagesize; | ||||
$this->dsql->SetQuery($query); | $this->dsql->SetQuery($query); | ||||
$this->dsql->Execute("al"); | $this->dsql->Execute("al"); | ||||
$artlist = ""; | |||||
$artlist = ''; | |||||
if ($col > 1) { | if ($col > 1) { | ||||
$artlist = "<table width='$tablewidth'>\r\n"; | $artlist = "<table width='$tablewidth'>\r\n"; | ||||
} | } | ||||
@@ -597,7 +597,7 @@ class FreeList | |||||
$artlist .= $indtp->GetResult(); | $artlist .= $indtp->GetResult(); | ||||
} //if hasRow | } //if hasRow | ||||
else { | else { | ||||
$artlist .= ""; | |||||
$artlist .= ''; | |||||
} | } | ||||
if ($col > 1) { | if ($col > 1) { | ||||
$artlist .= "</td>\r\n"; | $artlist .= "</td>\r\n"; | ||||
@@ -626,8 +626,8 @@ class FreeList | |||||
*/ | */ | ||||
function GetPageListST($list_len, $listitem = "info,index,end,pre,next,pageno") | function GetPageListST($list_len, $listitem = "info,index,end,pre,next,pageno") | ||||
{ | { | ||||
$prepage = ""; | |||||
$nextpage = ""; | |||||
$prepage = ''; | |||||
$nextpage = ''; | |||||
$prepagenum = $this->PageNo - 1; | $prepagenum = $this->PageNo - 1; | ||||
$nextpagenum = $this->PageNo + 1; | $nextpagenum = $this->PageNo + 1; | ||||
if ($list_len == "" || preg_match("#[^0-9]#", $list_len)) { | if ($list_len == "" || preg_match("#[^0-9]#", $list_len)) { | ||||
@@ -673,7 +673,7 @@ class FreeList | |||||
} | } | ||||
$optionlist .= "</select>"; | $optionlist .= "</select>"; | ||||
//获得数字链接 | //获得数字链接 | ||||
$listdd = ""; | |||||
$listdd = ''; | |||||
$total_list = $list_len * 2 + 1; | $total_list = $list_len * 2 + 1; | ||||
if ($this->PageNo >= $total_list) { | if ($this->PageNo >= $total_list) { | ||||
$j = $this->PageNo - $list_len; | $j = $this->PageNo - $list_len; | ||||
@@ -694,7 +694,7 @@ class FreeList | |||||
$listdd .= "<li class='page-item'><a class='page-link' href='".str_replace("{page}", $j, $tnamerule)."'>".$j."</a></li>\r\n"; | $listdd .= "<li class='page-item'><a class='page-link' href='".str_replace("{page}", $j, $tnamerule)."'>".$j."</a></li>\r\n"; | ||||
} | } | ||||
} | } | ||||
$plist = ""; | |||||
$plist = ''; | |||||
if (preg_match('#info#i', $listitem)) { | if (preg_match('#info#i', $listitem)) { | ||||
$plist .= $maininfo.' '; | $plist .= $maininfo.' '; | ||||
} | } | ||||
@@ -728,8 +728,8 @@ class FreeList | |||||
*/ | */ | ||||
function GetPageListDM($list_len, $listitem = "index,end,pre,next,pageno") | function GetPageListDM($list_len, $listitem = "index,end,pre,next,pageno") | ||||
{ | { | ||||
$prepage = ""; | |||||
$nextpage = ""; | |||||
$prepage = ''; | |||||
$nextpage = ''; | |||||
$prepagenum = $this->PageNo - 1; | $prepagenum = $this->PageNo - 1; | ||||
$nextpagenum = $this->PageNo + 1; | $nextpagenum = $this->PageNo + 1; | ||||
if ($list_len == "" || preg_match("/[^0-9]/", $list_len)) { | if ($list_len == "" || preg_match("/[^0-9]/", $list_len)) { | ||||
@@ -762,7 +762,7 @@ class FreeList | |||||
$endpage = "<li class='page-item'><span class='page-link'>末页</span></li>\r\n"; | $endpage = "<li class='page-item'><span class='page-link'>末页</span></li>\r\n"; | ||||
} | } | ||||
//获得数字链接 | //获得数字链接 | ||||
$listdd = ""; | |||||
$listdd = ''; | |||||
$total_list = $list_len * 2 + 1; | $total_list = $list_len * 2 + 1; | ||||
if ($this->PageNo >= $total_list) { | if ($this->PageNo >= $total_list) { | ||||
$j = $this->PageNo - $list_len; | $j = $this->PageNo - $list_len; | ||||
@@ -303,7 +303,9 @@ class ListView | |||||
if ($totalpage == 0) { | if ($totalpage == 0) { | ||||
$totalpage = 1; | $totalpage = 1; | ||||
} | } | ||||
CreateDir(MfTypedir($this->Fields['typedir'])); | |||||
if ($this->TypeLink->TypeInfos['isdefault'] != -1) { | |||||
CreateDir(MfTypedir($this->Fields['typedir'])); | |||||
} | |||||
$murl = ''; | $murl = ''; | ||||
if ($makepagesize > 0) { | if ($makepagesize > 0) { | ||||
$endpage = $startpage + $makepagesize; | $endpage = $startpage + $makepagesize; | ||||
@@ -427,7 +429,7 @@ class ListView | |||||
} | } | ||||
//获得附加表的相关信息 | //获得附加表的相关信息 | ||||
$addtable = $this->ChannelUnit->ChannelInfos['addtable']; | $addtable = $this->ChannelUnit->ChannelInfos['addtable']; | ||||
$filtersql = ""; | |||||
$filtersql = ''; | |||||
if ($addtable!="") | if ($addtable!="") | ||||
{ | { | ||||
$addJoin = " LEFT JOIN `$addtable` ON arc.id = ".$addtable.'.aid '; | $addJoin = " LEFT JOIN `$addtable` ON arc.id = ".$addtable.'.aid '; | ||||
@@ -587,7 +589,9 @@ class ListView | |||||
//跳转网址 | //跳转网址 | ||||
return $this->Fields['typedir']; | return $this->Fields['typedir']; | ||||
} | } | ||||
CreateDir(MfTypedir($this->Fields['typedir'])); | |||||
if ($this->TypeLink->TypeInfos['isdefault'] != -1) { | |||||
CreateDir(MfTypedir($this->Fields['typedir'])); | |||||
} | |||||
$makeUrl = $this->GetMakeFileRule($this->Fields['id'], "index", MfTypedir($this->Fields['typedir']), $this->Fields['defaultname'], $this->Fields['namerule2']); | $makeUrl = $this->GetMakeFileRule($this->Fields['id'], "index", MfTypedir($this->Fields['typedir']), $this->Fields['defaultname'], $this->Fields['namerule2']); | ||||
$makeUrl = preg_replace("/\/{1,}/", "/", $makeUrl); | $makeUrl = preg_replace("/\/{1,}/", "/", $makeUrl); | ||||
$makeFile = $this->GetTruePath().$makeUrl; | $makeFile = $this->GetTruePath().$makeUrl; | ||||
@@ -628,7 +632,9 @@ class ListView | |||||
header("Location:$gotourl"); | header("Location:$gotourl"); | ||||
exit(); | exit(); | ||||
} | } | ||||
CreateDir(MfTypedir($this->Fields['typedir'])); | |||||
if ($this->TypeLink->TypeInfos['isdefault'] != -1) { | |||||
CreateDir(MfTypedir($this->Fields['typedir'])); | |||||
} | |||||
$makeUrl = $this->GetMakeFileRule($this->Fields['id'], "index", MfTypedir($this->Fields['typedir']), $this->Fields['defaultname'], $this->Fields['namerule2']); | $makeUrl = $this->GetMakeFileRule($this->Fields['id'], "index", MfTypedir($this->Fields['typedir']), $this->Fields['defaultname'], $this->Fields['namerule2']); | ||||
$makeFile = $this->GetTruePath().$makeUrl; | $makeFile = $this->GetTruePath().$makeUrl; | ||||
if ($nmfa == 0) { | if ($nmfa == 0) { | ||||
@@ -837,7 +843,7 @@ class ListView | |||||
} | } | ||||
//获得附加表的相关信息 | //获得附加表的相关信息 | ||||
$addtable = $this->ChannelUnit->ChannelInfos['addtable']; | $addtable = $this->ChannelUnit->ChannelInfos['addtable']; | ||||
$filtersql = ""; | |||||
$filtersql = ''; | |||||
if ($addtable!="") | if ($addtable!="") | ||||
{ | { | ||||
$addJoin = " LEFT JOIN `$addtable` ON arc.id = ".$addtable.'.aid '; | $addJoin = " LEFT JOIN `$addtable` ON arc.id = ".$addtable.'.aid '; | ||||
@@ -1056,8 +1062,23 @@ class ListView | |||||
} | } | ||||
$optionlist .= "</select></li>\r\n"; | $optionlist .= "</select></li>\r\n"; | ||||
//获得数字链接 | //获得数字链接 | ||||
$listdd = ""; | |||||
$listdd = ''; | |||||
$total_list = $list_len * 2 + 1; | $total_list = $list_len * 2 + 1; | ||||
//获得省略号 | |||||
if ($totalpage > $total_list) { | |||||
$half = floor(($total_list-4) / 2); | |||||
$half_start = $this->PageNo-$half + 1; | |||||
if ($total_list % 2 !== 0) --$half_start; | |||||
$half_end = $this->PageNo + $half; | |||||
} | |||||
if (($totalpage-$this->PageNo) < ($total_list-3)) { | |||||
$half_start = $totalpage-$total_list + 3; | |||||
unset($half_end); | |||||
} | |||||
if ($this->PageNo <= ($total_list-3)) { | |||||
$half_end = $total_list-2; | |||||
unset($half_start); | |||||
} | |||||
if ($this->PageNo >= $total_list) { | if ($this->PageNo >= $total_list) { | ||||
$j = $this->PageNo - $list_len; | $j = $this->PageNo - $list_len; | ||||
$total_list = $this->PageNo + $list_len; | $total_list = $this->PageNo + $list_len; | ||||
@@ -1070,7 +1091,15 @@ class ListView | |||||
$total_list = $totalpage; | $total_list = $totalpage; | ||||
} | } | ||||
} | } | ||||
for ($j; $j <= $total_list; $j++) { | |||||
for ($j = 1; $j <= $totalpage; $j++) { | |||||
if (isset($half_start) && $j < $half_start && $j > 1) { | |||||
if ($j == 2) $listdd .= "<li class='page-item'><span class='page-link'>...</span></li>"; | |||||
continue; | |||||
} | |||||
if (isset($half_end) && $j > $half_end && $j < $totalpage) { | |||||
if ($j == ($half_end + 1)) $listdd .= "<li class='page-item'><span class='page-link'>...</span></li>"; | |||||
continue; | |||||
} | |||||
if ($j == $this->PageNo) { | if ($j == $this->PageNo) { | ||||
$listdd .= "<li class='page-item active'><span class='page-link'>$j</span></li>\r\n"; | $listdd .= "<li class='page-item active'><span class='page-link'>$j</span></li>\r\n"; | ||||
} else { | } else { | ||||
@@ -1124,7 +1153,7 @@ class ListView | |||||
$purl .= '?'.$geturl; | $purl .= '?'.$geturl; | ||||
$optionlist = ''; | $optionlist = ''; | ||||
//添加联动单筛选 | //添加联动单筛选 | ||||
$pageaddurl = ""; | |||||
$pageaddurl = ''; | |||||
foreach($_GET as $key => $value) { | foreach($_GET as $key => $value) { | ||||
$pageaddurl .= ($key!="tid" && $key!="TotalResult" && $key!="PageNo" && $key!="PageSize" && $key!="mod") ? "&".string_filter($key)."=".string_filter($value) : ''; | $pageaddurl .= ($key!="tid" && $key!="TotalResult" && $key!="PageNo" && $key!="PageSize" && $key!="mod") ? "&".string_filter($key)."=".string_filter($value) : ''; | ||||
} | } | ||||
@@ -1142,8 +1171,23 @@ class ListView | |||||
$endpage = "<li class='page-item'><span class='page-link'>末页</span></li>\r\n"; | $endpage = "<li class='page-item'><span class='page-link'>末页</span></li>\r\n"; | ||||
} | } | ||||
//获得数字链接 | //获得数字链接 | ||||
$listdd = ""; | |||||
$listdd = ''; | |||||
$total_list = $list_len * 2 + 1; | $total_list = $list_len * 2 + 1; | ||||
//获得省略号 | |||||
if ($totalpage > $total_list) { | |||||
$half = floor(($total_list-4) / 2); | |||||
$half_start = $this->PageNo-$half + 1; | |||||
if ($total_list % 2 !== 0) --$half_start; | |||||
$half_end = $this->PageNo + $half; | |||||
} | |||||
if (($totalpage-$this->PageNo) < ($total_list-3)) { | |||||
$half_start = $totalpage-$total_list + 3; | |||||
unset($half_end); | |||||
} | |||||
if ($this->PageNo <= ($total_list-3)) { | |||||
$half_end = $total_list-2; | |||||
unset($half_start); | |||||
} | |||||
if ($this->PageNo >= $total_list) { | if ($this->PageNo >= $total_list) { | ||||
$j = $this->PageNo - $list_len; | $j = $this->PageNo - $list_len; | ||||
$total_list = $this->PageNo + $list_len; | $total_list = $this->PageNo + $list_len; | ||||
@@ -1156,14 +1200,22 @@ class ListView | |||||
$total_list = $totalpage; | $total_list = $totalpage; | ||||
} | } | ||||
} | } | ||||
for ($j; $j <= $total_list; $j++) { | |||||
for ($j = 1; $j <= $totalpage; $j++) { | |||||
if (isset($half_start) && $j < $half_start && $j > 1) { | |||||
if ($j == 2) $listdd .= "<li class='page-item'><span class='page-link'>...</span></li>"; | |||||
continue; | |||||
} | |||||
if (isset($half_end) && $j > $half_end && $j < $totalpage) { | |||||
if ($j == ($half_end + 1)) $listdd .= "<li class='page-item'><span class='page-link'>...</span></li>"; | |||||
continue; | |||||
} | |||||
if ($j == $this->PageNo) { | if ($j == $this->PageNo) { | ||||
$listdd .= "<li class='page-item active'><span class='page-link'>$j</span></li>\r\n"; | $listdd .= "<li class='page-item active'><span class='page-link'>$j</span></li>\r\n"; | ||||
} else { | } else { | ||||
$listdd .= "<li class='page-item'><a href='".$purl."PageNo=$j".$pageaddurl."' class='page-link'>".$j."</a></li>\r\n"; | $listdd .= "<li class='page-item'><a href='".$purl."PageNo=$j".$pageaddurl."' class='page-link'>".$j."</a></li>\r\n"; | ||||
} | } | ||||
} | } | ||||
$plist = ""; | |||||
$plist = ''; | |||||
if (preg_match('/index/i', $listitem)) $plist .= $indexpage; | if (preg_match('/index/i', $listitem)) $plist .= $indexpage; | ||||
if (preg_match('/pre/i', $listitem)) $plist .= $prepage; | if (preg_match('/pre/i', $listitem)) $plist .= $prepage; | ||||
if (preg_match('/pageno/i', $listitem)) $plist .= $listdd; | if (preg_match('/pageno/i', $listitem)) $plist .= $listdd; | ||||
@@ -277,7 +277,7 @@ class SearchView | |||||
} else if ($row['count'] > 300) { | } else if ($row['count'] > 300) { | ||||
$fstyle = " style='color:green'"; | $fstyle = " style='color:green'"; | ||||
} else { | } else { | ||||
$style = ""; | |||||
$style = ''; | |||||
} | } | ||||
$likeword .= " <a href='search.php?keyword=".urlencode($row['keyword'])."&searchtype=titlekeyword'".$style.">".$row['keyword']."</a> "; | $likeword .= " <a href='search.php?keyword=".urlencode($row['keyword'])."&searchtype=titlekeyword'".$style.">".$row['keyword']."</a> "; | ||||
} | } | ||||
@@ -526,7 +526,7 @@ class SearchView | |||||
$query = "SELECT arc.*,act.typedir,act.typename,act.isdefault,act.defaultname,act.namerule,act.namerule2,act.ispart,act.moresite,act.siteurl,act.sitepath,mb.uname,mb.face,mb.userid FROM `{$this->AddTable}` arc LEFT JOIN `#@__arctype` act ON arc.typeid=act.id LEFT JOIN `#@__member` mb on arc.mid = mb.mid WHERE {$this->AddSql} $ordersql LIMIT $limitstart,$row"; | $query = "SELECT arc.*,act.typedir,act.typename,act.isdefault,act.defaultname,act.namerule,act.namerule2,act.ispart,act.moresite,act.siteurl,act.sitepath,mb.uname,mb.face,mb.userid FROM `{$this->AddTable}` arc LEFT JOIN `#@__arctype` act ON arc.typeid=act.id LEFT JOIN `#@__member` mb on arc.mid = mb.mid WHERE {$this->AddSql} $ordersql LIMIT $limitstart,$row"; | ||||
$this->dsql->SetQuery($query); | $this->dsql->SetQuery($query); | ||||
$this->dsql->Execute("al"); | $this->dsql->Execute("al"); | ||||
$artlist = ""; | |||||
$artlist = ''; | |||||
if ($col > 1) { | if ($col > 1) { | ||||
$artlist = "<table width='$tablewidth'>\r\n"; | $artlist = "<table width='$tablewidth'>\r\n"; | ||||
} | } | ||||
@@ -604,7 +604,7 @@ class SearchView | |||||
$artlist .= $this->dtp2->GetResult(); | $artlist .= $this->dtp2->GetResult(); | ||||
} //if hasRow | } //if hasRow | ||||
else { | else { | ||||
$artlist .= ""; | |||||
$artlist .= ''; | |||||
} | } | ||||
if ($col > 1) $artlist .= "</td>\r\n"; | if ($col > 1) $artlist .= "</td>\r\n"; | ||||
} //Loop Col | } //Loop Col | ||||
@@ -629,8 +629,8 @@ class SearchView | |||||
function GetPageListDM($list_len, $listitem = "index,end,pre,next,pageno") | function GetPageListDM($list_len, $listitem = "index,end,pre,next,pageno") | ||||
{ | { | ||||
global $oldkeyword; | global $oldkeyword; | ||||
$prepage = ""; | |||||
$nextpage = ""; | |||||
$prepage = ''; | |||||
$nextpage = ''; | |||||
$prepagenum = $this->PageNo - 1; | $prepagenum = $this->PageNo - 1; | ||||
$nextpagenum = $this->PageNo + 1; | $nextpagenum = $this->PageNo + 1; | ||||
if ($list_len == "" || preg_match("/[^0-9]/", $list_len)) { | if ($list_len == "" || preg_match("/[^0-9]/", $list_len)) { | ||||
@@ -676,7 +676,7 @@ class SearchView | |||||
$endpage = "<li class='page-item'><a class='page-link'>末页</a></li>\r\n"; | $endpage = "<li class='page-item'><a class='page-link'>末页</a></li>\r\n"; | ||||
} | } | ||||
//获得数字链接 | //获得数字链接 | ||||
$listdd = ""; | |||||
$listdd = ''; | |||||
$total_list = $list_len * 2 + 1; | $total_list = $list_len * 2 + 1; | ||||
if ($this->PageNo >= $total_list) { | if ($this->PageNo >= $total_list) { | ||||
$j = $this->PageNo - $list_len; | $j = $this->PageNo - $list_len; | ||||
@@ -697,7 +697,7 @@ class SearchView | |||||
$listdd .= "<li class='page-item'><a class='page-link' href='".$purl."PageNo=$j'>".$j."</a></li>\r\n"; | $listdd .= "<li class='page-item'><a class='page-link' href='".$purl."PageNo=$j'>".$j."</a></li>\r\n"; | ||||
} | } | ||||
} | } | ||||
$plist = ""; | |||||
$plist = ''; | |||||
$plist .= "<form name='pagelist' action='".$this->GetCurUrl()."' class='d-flex'>$hidenform"; | $plist .= "<form name='pagelist' action='".$this->GetCurUrl()."' class='d-flex'>$hidenform"; | ||||
$plist .= preg_match('/info/i', $listitem)? $infos : ""; | $plist .= preg_match('/info/i', $listitem)? $infos : ""; | ||||
$plist .= preg_match('/index/i', $listitem)? $indexpage : ""; | $plist .= preg_match('/index/i', $listitem)? $indexpage : ""; | ||||
@@ -843,8 +843,8 @@ class SgListView | |||||
*/ | */ | ||||
function GetPageListST($list_len, $listitem = "index,end,pre,next,pageno") | function GetPageListST($list_len, $listitem = "index,end,pre,next,pageno") | ||||
{ | { | ||||
$prepage = ""; | |||||
$nextpage = ""; | |||||
$prepage = ''; | |||||
$nextpage = ''; | |||||
$prepagenum = $this->PageNo - 1; | $prepagenum = $this->PageNo - 1; | ||||
$nextpagenum = $this->PageNo + 1; | $nextpagenum = $this->PageNo + 1; | ||||
if ($list_len == "" || preg_match("/[^0-9]/", $list_len)) { | if ($list_len == "" || preg_match("/[^0-9]/", $list_len)) { | ||||
@@ -876,9 +876,9 @@ class SgListView | |||||
$endpage = "<li class='page-item'><a class='page-link'>末页</a></li>"; | $endpage = "<li class='page-item'><a class='page-link'>末页</a></li>"; | ||||
} | } | ||||
//option链接 | //option链接 | ||||
$optionlist = ""; | |||||
$optionlist = ''; | |||||
//获得数字链接 | //获得数字链接 | ||||
$listdd = ""; | |||||
$listdd = ''; | |||||
$total_list = $list_len * 2 + 1; | $total_list = $list_len * 2 + 1; | ||||
if ($this->PageNo >= $total_list) { | if ($this->PageNo >= $total_list) { | ||||
$j = $this->PageNo - $list_len; | $j = $this->PageNo - $list_len; | ||||
@@ -899,7 +899,7 @@ class SgListView | |||||
$listdd .= "<li class='page-item'><a class='page-link' href='".str_replace("{page}", $j, $tnamerule)."'>".$j."</a></li>\r\n"; | $listdd .= "<li class='page-item'><a class='page-link' href='".str_replace("{page}", $j, $tnamerule)."'>".$j."</a></li>\r\n"; | ||||
} | } | ||||
} | } | ||||
$plist = ""; | |||||
$plist = ''; | |||||
if (preg_match('/info/i', $listitem)) { | if (preg_match('/info/i', $listitem)) { | ||||
$plist .= $maininfo.' '; | $plist .= $maininfo.' '; | ||||
} | } | ||||
@@ -979,7 +979,7 @@ class SgListView | |||||
$endpage = "<li class='page-item disabled'><a class='page-link'>末页</a></li>"; | $endpage = "<li class='page-item disabled'><a class='page-link'>末页</a></li>"; | ||||
} | } | ||||
//获得数字链接 | //获得数字链接 | ||||
$listdd = ""; | |||||
$listdd = ''; | |||||
$total_list = $list_len * 2 + 1; | $total_list = $list_len * 2 + 1; | ||||
if ($this->PageNo >= $total_list) { | if ($this->PageNo >= $total_list) { | ||||
$j = $this->PageNo - $list_len; | $j = $this->PageNo - $list_len; | ||||
@@ -108,7 +108,7 @@ class SpecView | |||||
if ($this->StartTime > 0) { | if ($this->StartTime > 0) { | ||||
$timesql = " AND #@__archives.senddate>'".$this->StartTime."'"; | $timesql = " AND #@__archives.senddate>'".$this->StartTime."'"; | ||||
} else { | } else { | ||||
$timesql = ""; | |||||
$timesql = ''; | |||||
} | } | ||||
$row = $this->dsql->GetOne("SELECT count(*) AS dd FROM `#@__archives` WHERE `#@__archives`.arcrank > -1 AND channel=-1 $timesql"); | $row = $this->dsql->GetOne("SELECT count(*) AS dd FROM `#@__archives` WHERE `#@__archives`.arcrank > -1 AND channel=-1 $timesql"); | ||||
if (is_array($row)) { | if (is_array($row)) { | ||||
@@ -185,7 +185,7 @@ class SpecView | |||||
$totalpage = 1; | $totalpage = 1; | ||||
} | } | ||||
CreateDir($GLOBALS['cfg_special']); | CreateDir($GLOBALS['cfg_special']); | ||||
$murl = ""; | |||||
$murl = ''; | |||||
for ($this->PageNo = 1; $this->PageNo <= $totalpage; $this->PageNo++) { | for ($this->PageNo = 1; $this->PageNo <= $totalpage; $this->PageNo++) { | ||||
foreach ($this->dtp->CTags as $tagid => $ctag) { | foreach ($this->dtp->CTags as $tagid => $ctag) { | ||||
if ($ctag->GetName() == "list") { | if ($ctag->GetName() == "list") { | ||||
@@ -405,7 +405,7 @@ class SpecView | |||||
$artlist .= $this->dtp2->GetResult(); | $artlist .= $this->dtp2->GetResult(); | ||||
}//if hasRow | }//if hasRow | ||||
else { | else { | ||||
$artlist .= ""; | |||||
$artlist .= ''; | |||||
} | } | ||||
if ($col > 1) { | if ($col > 1) { | ||||
$artlist .= "</td>\r\n"; | $artlist .= "</td>\r\n"; | ||||
@@ -430,8 +430,8 @@ class SpecView | |||||
*/ | */ | ||||
function GetPageListST($list_len) | function GetPageListST($list_len) | ||||
{ | { | ||||
$prepage = ""; | |||||
$nextpage = ""; | |||||
$prepage = ''; | |||||
$nextpage = ''; | |||||
$prepagenum = $this->PageNo - 1; | $prepagenum = $this->PageNo - 1; | ||||
$nextpagenum = $this->PageNo + 1; | $nextpagenum = $this->PageNo + 1; | ||||
if ($list_len == "" || preg_match("/[^0-9]/", $list_len)) { | if ($list_len == "" || preg_match("/[^0-9]/", $list_len)) { | ||||
@@ -460,7 +460,7 @@ class SpecView | |||||
$endpage = "<li><a>末页</a></li>\r\n"; | $endpage = "<li><a>末页</a></li>\r\n"; | ||||
} | } | ||||
//获得数字链接 | //获得数字链接 | ||||
$listdd = ""; | |||||
$listdd = ''; | |||||
$total_list = $list_len * 2 + 1; | $total_list = $list_len * 2 + 1; | ||||
if ($this->PageNo >= $total_list) { | if ($this->PageNo >= $total_list) { | ||||
$j = $this->PageNo - $list_len; | $j = $this->PageNo - $list_len; | ||||
@@ -494,8 +494,8 @@ class SpecView | |||||
function GetPageListDM($list_len) | function GetPageListDM($list_len) | ||||
{ | { | ||||
$prepage = ""; | |||||
$nextpage = ""; | |||||
$prepage = ''; | |||||
$nextpage = ''; | |||||
$prepagenum = $this->PageNo - 1; | $prepagenum = $this->PageNo - 1; | ||||
$nextpagenum = $this->PageNo + 1; | $nextpagenum = $this->PageNo + 1; | ||||
if ($list_len == "" || preg_match("/[^0-9]/", $list_len)) { | if ($list_len == "" || preg_match("/[^0-9]/", $list_len)) { | ||||
@@ -527,7 +527,7 @@ class SpecView | |||||
$endpage = "<li><a>末页</a></li>"; | $endpage = "<li><a>末页</a></li>"; | ||||
} | } | ||||
//获得数字链接 | //获得数字链接 | ||||
$listdd = ""; | |||||
$listdd = ''; | |||||
$total_list = $list_len * 2 + 1; | $total_list = $list_len * 2 + 1; | ||||
if ($this->PageNo >= $total_list) { | if ($this->PageNo >= $total_list) { | ||||
$j = $this->PageNo - $list_len; | $j = $this->PageNo - $list_len; | ||||
@@ -399,8 +399,8 @@ class TagList | |||||
*/ | */ | ||||
function GetPageListDM($list_len, $listitem = "info,index,end,pre,next,pageno") | function GetPageListDM($list_len, $listitem = "info,index,end,pre,next,pageno") | ||||
{ | { | ||||
$prepage = ""; | |||||
$nextpage = ""; | |||||
$prepage = ''; | |||||
$nextpage = ''; | |||||
$prepagenum = $this->PageNo - 1; | $prepagenum = $this->PageNo - 1; | ||||
$nextpagenum = $this->PageNo + 1; | $nextpagenum = $this->PageNo + 1; | ||||
if ($list_len == "" || preg_match("/[^0-9]/", $list_len)) { | if ($list_len == "" || preg_match("/[^0-9]/", $list_len)) { | ||||
@@ -430,7 +430,7 @@ class TagList | |||||
$endpage = "<li class='page-item'><span class='page-link'>末页</span></li>\r\n"; | $endpage = "<li class='page-item'><span class='page-link'>末页</span></li>\r\n"; | ||||
} | } | ||||
//获得数字链接 | //获得数字链接 | ||||
$listdd = ""; | |||||
$listdd = ''; | |||||
$total_list = $list_len * 2 + 1; | $total_list = $list_len * 2 + 1; | ||||
if ($this->PageNo >= $total_list) { | if ($this->PageNo >= $total_list) { | ||||
$j = $this->PageNo - $list_len; | $j = $this->PageNo - $list_len; | ||||
@@ -474,8 +474,8 @@ class TagList | |||||
} | } | ||||
function GetPageListST($list_len, $listitem = "info,index,end,pre,next,pageno") | function GetPageListST($list_len, $listitem = "info,index,end,pre,next,pageno") | ||||
{ | { | ||||
$prepage = ""; | |||||
$nextpage = ""; | |||||
$prepage = ''; | |||||
$nextpage = ''; | |||||
$prepagenum = intval($this->PageNo) - 1; | $prepagenum = intval($this->PageNo) - 1; | ||||
$nextpagenum = intval($this->PageNo) + 1; | $nextpagenum = intval($this->PageNo) + 1; | ||||
if ($list_len == "" || preg_match("/[^0-9]/", $list_len)) { | if ($list_len == "" || preg_match("/[^0-9]/", $list_len)) { | ||||
@@ -504,7 +504,7 @@ class TagList | |||||
$endpage = "<li class='page-item'><span class='page-link'>末页</span></li>\r\n"; | $endpage = "<li class='page-item'><span class='page-link'>末页</span></li>\r\n"; | ||||
} | } | ||||
//获得数字链接 | //获得数字链接 | ||||
$listdd = ""; | |||||
$listdd = ''; | |||||
$total_list = $list_len * 2 + 1; | $total_list = $list_len * 2 + 1; | ||||
if ($this->PageNo >= $total_list) { | if ($this->PageNo >= $total_list) { | ||||
$j = $this->PageNo - $list_len; | $j = $this->PageNo - $list_len; | ||||
@@ -525,7 +525,7 @@ class TagList | |||||
$listdd .= "<li class='page-item'><a href='".$purl."/$j/' class='page-link'>".$j."</a></li>\r\n"; | $listdd .= "<li class='page-item'><a href='".$purl."/$j/' class='page-link'>".$j."</a></li>\r\n"; | ||||
} | } | ||||
} | } | ||||
$plist = ""; | |||||
$plist = ''; | |||||
if (preg_match('/info/i', $listitem)) { | if (preg_match('/info/i', $listitem)) { | ||||
$plist .= $maininfo.' '; | $plist .= $maininfo.' '; | ||||
} | } | ||||
@@ -138,7 +138,7 @@ class ChannelUnit | |||||
if (empty($GLOBALS["stNowPage"])) $NowPage = 1; | if (empty($GLOBALS["stNowPage"])) $NowPage = 1; | ||||
else $NowPage = intval($GLOBALS["stNowPage"]); | else $NowPage = intval($GLOBALS["stNowPage"]); | ||||
} | } | ||||
$revalue = ""; | |||||
$revalue = ''; | |||||
$dtp = new DedeTagParse(); | $dtp = new DedeTagParse(); | ||||
$dtp->LoadSource($fvalue); | $dtp->LoadSource($fvalue); | ||||
if (!is_array($dtp->CTags)) { | if (!is_array($dtp->CTags)) { | ||||
@@ -489,7 +489,7 @@ function GetUpdateSQL() | |||||
$sql4tmp = "ENGINE=MyISAM DEFAULT CHARSET=".$cfg_db_language; | $sql4tmp = "ENGINE=MyISAM DEFAULT CHARSET=".$cfg_db_language; | ||||
$fp = fopen(DEDEROOT.'/install/update.txt','r'); | $fp = fopen(DEDEROOT.'/install/update.txt','r'); | ||||
$sqls = array(); | $sqls = array(); | ||||
$current_ver = ""; | |||||
$current_ver = ''; | |||||
while(!feof($fp)) | while(!feof($fp)) | ||||
{ | { | ||||
$line = rtrim(fgets($fp,1024)); | $line = rtrim(fgets($fp,1024)); | ||||