diff --git a/src/admin/album_add.php b/src/admin/album_add.php
index fa0e3a96..272a59f3 100644
--- a/src/admin/album_add.php
+++ b/src/admin/album_add.php
@@ -39,7 +39,7 @@ if ($dopost != 'save') {
require_once(DEDEINC.'/libraries/oxwindow.class.php');
$flag = isset($flags) ? join(',', $flags) : '';
$notpost = isset($notpost) && $notpost == 1 ? 1 : 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 (!isset($typeid2)) $typeid2 = 0;
if (!isset($autokey)) $autokey = 0;
if (!isset($remote)) $remote = 0;
@@ -48,7 +48,7 @@ if ($dopost != 'save') {
if (!isset($ddisfirst)) $ddisfirst = 0;
if (!isset($albums)) $albums = "";
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) == '') {
ShowMsg("文档标题不能为空", "-1");
exit();
@@ -121,7 +121,7 @@ if ($dopost != 'save') {
$ntime = time();
$savepath = $cfg_image_dir.'/'.MyDate($cfg_addon_savetype, $ntime);
CreateDir($savepath);
- $fullUrl = $savepath.'/'.dd2char(MyDate('mdHis', $ntime).$cuserLogin->getUserID().mt_rand(1000,9999));
+ $fullUrl = $savepath.'/'.dd2char(MyDate('mdHis', $ntime).$cuserLogin->getUserID().mt_rand(1000, 9999));
$fullUrl = $fullUrl.$ext;
file_put_contents($cfg_basedir.$fullUrl, base64_decode($data[1]));
$info = '';
diff --git a/src/admin/album_edit.php b/src/admin/album_edit.php
index 0ce4702b..c52af627 100644
--- a/src/admin/album_edit.php
+++ b/src/admin/album_edit.php
@@ -195,7 +195,7 @@ if ($dopost != 'save') {
$ntime = time();
$savepath = $cfg_image_dir.'/'.MyDate($cfg_addon_savetype, $ntime);
CreateDir($savepath);
- $fullUrl = $savepath.'/'.dd2char(MyDate('mdHis', $ntime).$cuserLogin->getUserID().mt_rand(1000,9999));
+ $fullUrl = $savepath.'/'.dd2char(MyDate('mdHis', $ntime).$cuserLogin->getUserID().mt_rand(1000, 9999));
$fullUrl = $fullUrl.$ext;
file_put_contents($cfg_basedir.$fullUrl, base64_decode($data[1]));
$info = '';
diff --git a/src/admin/archives_add.php b/src/admin/archives_add.php
index 38d5abaf..73c4b95f 100644
--- a/src/admin/archives_add.php
+++ b/src/admin/archives_add.php
@@ -42,13 +42,13 @@ if ($dopost != 'save') {
require_once(DEDEINC.'/libraries/oxwindow.class.php');
$flag = isset($flags) ? join(',', $flags) : '';
$notpost = isset($notpost) && $notpost == 1 ? 1 : 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 (empty($typeid2)) $typeid2 = 0;
if (!isset($autokey)) $autokey = 0;
if (!isset($remote)) $remote = 0;
if (!isset($dellink)) $dellink = 0;
if (!isset($autolitpic)) $autolitpic = 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) == '') {
ShowMsg("文档标题不能为空", "-1");
exit();
diff --git a/src/admin/archives_do.php b/src/admin/archives_do.php
index 2e2fec61..6dffe2e1 100644
--- a/src/admin/archives_do.php
+++ b/src/admin/archives_do.php
@@ -33,7 +33,7 @@ if ($dopost == 'editArchives') {
$ntime = time();
$savepath = $cfg_image_dir.'/'.MyDate($cfg_addon_savetype, $ntime);
CreateDir($savepath);
- $fullUrl = $savepath.'/'.dd2char(MyDate('mdHis', $ntime).$cuserLogin->getUserID().mt_rand(1000,9999));
+ $fullUrl = $savepath.'/'.dd2char(MyDate('mdHis', $ntime).$cuserLogin->getUserID().mt_rand(1000, 9999));
$fullUrl = $fullUrl.".png";
file_put_contents($cfg_basedir.$fullUrl, base64_decode($data[1]));
//加水印
@@ -608,7 +608,7 @@ else if ($dopost == "makekw") {
$keywords = '';
$title = $row['title'];
$description = $row['description'];
- $body = cn_substr($row['body'], 5000);
+ $body = cn_substr($row['body'], 3000);
$data = $client->Spliteword($title.Html2Text($body));
$keywords = $data->data;
$description = str_replace(' ', ' ', trim($description));
@@ -631,7 +631,7 @@ else if ($dopost == "makekw") {
$keywords = '';
$title = $row['title'];
$description = $row['description'];
- $body = cn_substr($row['body'], 5000);
+ $body = cn_substr($row['body'], 3000);
$sp->SetSource($title, $cfg_soft_lang, $cfg_soft_lang);
$sp->StartAnalysis();
$titleindexs = preg_replace("/#p#|#e#/", '', $sp->GetFinallyIndex());
diff --git a/src/admin/article_add.php b/src/admin/article_add.php
index 74cad200..0abc9cbd 100644
--- a/src/admin/article_add.php
+++ b/src/admin/article_add.php
@@ -50,7 +50,7 @@ if ($dopost != 'save') {
if (!isset($remote)) $remote = 0;
if (!isset($dellink)) $dellink = 0;
if (!isset($autolitpic)) $autolitpic = 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) == '') {
ShowMsg("文档标题不能为空", "-1");
exit();
diff --git a/src/admin/friendlink_add.php b/src/admin/friendlink_add.php
index fde93a9d..d3419c27 100644
--- a/src/admin/friendlink_add.php
+++ b/src/admin/friendlink_add.php
@@ -19,7 +19,7 @@ if ($dopost == "add") {
if (!preg_match("#(jpg|gif|png)$#", $shortname)) {
$shortname = '.gif';
}
- $filename = MyDate("ymdHis", time()).mt_rand(1000,9999).$shortname;
+ $filename = MyDate("ymdHis", time()).mt_rand(1000, 9999).$shortname;
$imgurl = $cfg_medias_dir."/flink";
if (!is_dir($cfg_basedir.$imgurl)) {
MkdirAll($cfg_basedir.$imgurl, $cfg_dir_purview);
diff --git a/src/admin/inc/inc_archives_functions.php b/src/admin/inc/inc_archives_functions.php
index c5543ae5..cce123fd 100644
--- a/src/admin/inc/inc_archives_functions.php
+++ b/src/admin/inc/inc_archives_functions.php
@@ -134,7 +134,7 @@ function GetCurContent($body)
} else {
continue;
}
- $milliSecondN = dd2char($milliSecond.mt_rand(1000,8000));
+ $milliSecondN = dd2char($milliSecond.mt_rand(1000, 9999));
$value = trim($value);
$rndFileName = $imgPath.'/'.$milliSecondN.'-'.$key.$itype;
$fileurl = $imgUrl.'/'.$milliSecondN.'-'.$key.$itype;
@@ -196,7 +196,7 @@ function GetRemoteImage($url, $uid = 0)
} else {
$itype = '.jpg';
}
- $rndname = dd2char($uid.'_'.MyDate('mdHis', time()).mt_rand(1000,9999));
+ $rndname = dd2char($uid.'_'.MyDate('mdHis', time()).mt_rand(1000, 9999));
$rndtrueName = $imgPath.'/'.$rndname.$itype;
$fileurl = $imgUrl.'/'.$rndname.$itype;
$ok = $htd->SaveToBin($rndtrueName);
@@ -355,7 +355,7 @@ function GetDDImage($litpic, $picname, $isremote)
}
$savepath = $cfg_image_dir.'/'.MyDate($cfg_addon_savetype, $ntime);
CreateDir($savepath);
- $fullUrl = $savepath.'/'.dd2char(MyDate('mdHis', $ntime).$cuserLogin->getUserID().mt_rand(1000,9999));
+ $fullUrl = $savepath.'/'.dd2char(MyDate('mdHis', $ntime).$cuserLogin->getUserID().mt_rand(1000, 9999));
if (strtolower($_FILES[$litpic]['type']) == "image/gif") {
$fullUrl = $fullUrl.".gif";
} else if (strtolower($_FILES[$litpic]['type']) == "image/png") {
@@ -677,7 +677,7 @@ function UploadOneImage($upname, $handurl = '', $isremote = 1, $ntitle = '')
} else {
$savepath = $cfg_image_dir.'/'.date("%Y-%m", $ntime);
CreateDir($savepath);
- $fullUrl = $savepath.'/'.date("%d", $ntime).dd2char(date("%H%M%S", $ntime).'0'.$cuserLogin->getUserID().'0'.mt_rand(1000,9999));
+ $fullUrl = $savepath.'/'.date("%d", $ntime).dd2char(date("%H%M%S", $ntime).'0'.$cuserLogin->getUserID().'0'.mt_rand(1000, 9999));
}
if (strtolower($_FILES[$upname]['type']) == "image/gif") {
$fullUrl = $fullUrl.".gif";
diff --git a/src/admin/soft_add.php b/src/admin/soft_add.php
index 029137b6..0bc1bfce 100644
--- a/src/admin/soft_add.php
+++ b/src/admin/soft_add.php
@@ -40,7 +40,7 @@ if ($dopost != 'save') {
require_once(DEDEINC.'/libraries/oxwindow.class.php');
$flag = isset($flags) ? join(',', $flags) : '';
$notpost = isset($notpost) && $notpost == 1 ? 1 : 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 (!isset($typeid2)) $typeid2 = 0;
if (!isset($autokey)) $autokey = 0;
if (!isset($remote)) $remote = 0;
@@ -73,7 +73,7 @@ if ($dopost != 'save') {
$sortrank = AddDay($pubdate, $sortup);
if ($ishtml == 0) $ismake = -1;
else $ismake = 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);
$title = preg_replace('#"#', '"', $title);
$title = cn_substrR($title, $cfg_title_maxlen);
$shorttitle = cn_substrR($shorttitle, 36);
diff --git a/src/admin/spec_add.php b/src/admin/spec_add.php
index 1968585d..fc8c7d00 100644
--- a/src/admin/spec_add.php
+++ b/src/admin/spec_add.php
@@ -28,7 +28,7 @@ if ($dopost != 'save') {
require_once(DEDEINC.'/libraries/oxwindow.class.php');
$flag = isset($flags) ? join(',', $flags) : '';
$notpost = isset($notpost) && $notpost == 1 ? 1 : 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);
$channelid = -1;
$money = 0;
if (!isset($tags)) $tags = '';
diff --git a/src/admin/sys_data_done.php b/src/admin/sys_data_done.php
index 84b2ad86..b71f979d 100644
--- a/src/admin/sys_data_done.php
+++ b/src/admin/sys_data_done.php
@@ -64,7 +64,7 @@ if ($dopost == 'bak') {
$dh->close();
$tmsg .= "完成备份目录旧数据清理";
if ($isstruct == 1) {
- $bkfile = $bkdir."/tables_struct_".substr(md5(time().mt_rand(1000, 5000).$cfg_cookie_encode), 0, 16).".txt";
+ $bkfile = $bkdir."/tables_struct_".substr(md5(time().mt_rand(1000, 6000).$cfg_cookie_encode), 0, 16).".txt";
$mysql_version = $dsql->GetVersion();
$fp = fopen($bkfile, "w");
foreach ($tables as $t) {
@@ -115,7 +115,7 @@ if ($dopost == 'bak') {
$dsql->SetQuery("SELECT * FROM `$nowtable`");
$dsql->Execute();
$m = 0;
- $bakfilename = "$bkdir/{$nowtable}_{$startpos}_".substr(md5(time().mt_rand(1000, 5000).$cfg_cookie_encode), 0, 16).".txt";
+ $bakfilename = "$bkdir/{$nowtable}_{$startpos}_".substr(md5(time().mt_rand(1000, 6000).$cfg_cookie_encode), 0, 16).".txt";
while ($row2 = $dsql->GetArray()) {
if ($m < $startpos) {
$m++;
diff --git a/src/admin/tags_main.php b/src/admin/tags_main.php
index d7274b1b..924e29fa 100644
--- a/src/admin/tags_main.php
+++ b/src/admin/tags_main.php
@@ -36,12 +36,12 @@ else if ($action == 'update') {
$tid = (empty($tid) ? 0 : intval($tid));
$count = (empty($count) ? 0 : intval($count));
if (empty($tid)) {
- ShowMsg('没有选择要删除的标签', '-1');
+ ShowMsg('请选择需要删除的标签', '-1');
exit();
}
$query = "UPDATE `#@__tagindex` SET `count`='$count' WHERE id='$tid' ";
$dsql->ExecuteNoneQuery($query);
- ShowMsg("成功保存标签的点击信息", 'tags_main.php');
+ ShowMsg("成功保存标签点击信息", 'tags_main.php');
exit();
}
//function delete()
@@ -51,16 +51,16 @@ else if ($action == 'delete') {
} else if (!empty($ids)) {
$stringids = $ids;
} else {
- ShowMsg('没有选择要删除的标签', '-1');
+ ShowMsg('请选择需要删除的标签', '-1');
exit();
}
$query = "DELETE FROM `#@__tagindex` WHERE id IN ($stringids)";
if ($dsql->ExecuteNoneQuery($query)) {
$query = "DELETE FROM `#@__taglist` WHERE tid IN ($stringids)";
$dsql->ExecuteNoneQuery($query);
- ShowMsg("删除tags [$stringids] 成功", 'tags_main.php');
+ ShowMsg("删除[$stringids]标签成功", 'tags_main.php');
} else {
- ShowMsg("删除tags [$stringids] 失败", 'tags_main.php');
+ ShowMsg("删除[$stringids]标签失败", 'tags_main.php');
}
exit();
} else if ($action == 'get_one') {
@@ -112,14 +112,13 @@ else if ($action == 'fetch') {
}
foreach ($keyarr as $keyword) {
$keyword = trim($keyword);
- if ($keyword != '' && strlen($keyword) < 13) {
+ if ($keyword != '' && strlen($keyword) < 24) {
$keyword = addslashes($keyword);
$row = $dsql->GetOne("SELECT id,total FROM `#@__tagindex` WHERE tag LIKE '$keyword'");
if (is_array($row)) {
$tid = $row['id'];
$trow = $dsql->GetOne("SELECT COUNT(*) as dd FROM `#@__taglist` WHERE tag LIKE '$keyword'");
if (intval($trow['dd']) != $row['total']) {
-
$query = "UPDATE `#@__tagindex` SET `total`=".$trow['dd'].",uptime=$now WHERE id='$tid' ";
$dsql->ExecuteNoneQuery($query);
}
@@ -135,12 +134,12 @@ else if ($action == 'fetch') {
$complete = FALSE;
}
if ($complete) {
- ShowMsg("tags获取完成", 'tags_main.php');
+ ShowMsg('完成标签获取', 'tags_main.php');
exit();
}
$start = $start + 100;
$goto = "tags_main.php?action=fetch&startaid=$startaid&endaid=$endaid&start=$start";
- ShowMsg('继续获取tags ', $goto);
+ ShowMsg('正在获取标签', $goto);
exit();
}
?>
\ No newline at end of file
diff --git a/src/admin/templets/album_add.htm b/src/admin/templets/album_add.htm
index 1e0500af..6d46c2a0 100644
--- a/src/admin/templets/album_add.htm
+++ b/src/admin/templets/album_add.htm
@@ -354,7 +354,7 @@
?>
浏览次数: |
- |
+ |
diff --git a/src/admin/templets/archives_add.htm b/src/admin/templets/archives_add.htm
index 2bc03910..21f86761 100644
--- a/src/admin/templets/archives_add.htm
+++ b/src/admin/templets/archives_add.htm
@@ -289,7 +289,7 @@
?>
浏览次数: |
- |
+ |
diff --git a/src/admin/templets/article_add.htm b/src/admin/templets/article_add.htm
index 4136baa2..96f39dfe 100644
--- a/src/admin/templets/article_add.htm
+++ b/src/admin/templets/article_add.htm
@@ -302,7 +302,7 @@
?>
浏览次数: |
- |
+ |
diff --git a/src/admin/templets/soft_add.htm b/src/admin/templets/soft_add.htm
index e3c81d40..d00cc602 100644
--- a/src/admin/templets/soft_add.htm
+++ b/src/admin/templets/soft_add.htm
@@ -471,7 +471,7 @@
?>
浏览次数: |
- |
+ |
diff --git a/src/admin/templets/spec_add.htm b/src/admin/templets/spec_add.htm
index fc035b7b..e44198e0 100644
--- a/src/admin/templets/spec_add.htm
+++ b/src/admin/templets/spec_add.htm
@@ -307,7 +307,7 @@
?>
浏览次数: |
- |
+ |
diff --git a/src/admin/templets/tpl_newfile.htm b/src/admin/templets/tpl_newfile.htm
index d625f572..9e305c2c 100644
--- a/src/admin/templets/tpl_newfile.htm
+++ b/src/admin/templets/tpl_newfile.htm
@@ -29,8 +29,8 @@
-
-
+
+
|
diff --git a/src/apps/ad_js.php b/src/apps/ad_js.php
index 3cea04fb..24547d18 100755
--- a/src/apps/ad_js.php
+++ b/src/apps/ad_js.php
@@ -29,7 +29,7 @@ if (isset($nocache) || !file_exists($cacheFile) || time() - filemtime($cacheFile
$adbody = str_replace('"', '\"', $adbody);
$adbody = str_replace("\r", "\\r", $adbody);
$adbody = str_replace("\n", "\\n", $adbody);
- $adbody = "\r\n";
+ $adbody = "";
$fp = fopen($cacheFile, 'w');
fwrite($fp, $adbody);
fclose($fp);
diff --git a/src/apps/mytag_js.php b/src/apps/mytag_js.php
index 637e605d..ce773631 100755
--- a/src/apps/mytag_js.php
+++ b/src/apps/mytag_js.php
@@ -18,7 +18,7 @@ if (isset($nocache) || !file_exists($cacheFile) || time() - filemtime($cacheFile
$pv = new PartView();
$row = $pv->dsql->GetOne("SELECT * FROM `#@__mytag` WHERE aid='$aid' ");
if (!is_array($row)) {
- $myvalues = "";
+ $myvalues = "";
} else {
$tagbody = '';
if ($row['timeset'] == 0) {
@@ -37,7 +37,7 @@ if (isset($nocache) || !file_exists($cacheFile) || time() - filemtime($cacheFile
$myvalues = str_replace("\r", "\\r", $myvalues);
$myvalues = str_replace("\n", "\\n", $myvalues);
$myvalues = str_replace("", "", $myvalues);
- $myvalues = "\r\n";
+ $myvalues = "";
file_put_contents($cacheFile, $myvalues);
}
}
diff --git a/src/install/index.php b/src/install/index.php
index 04e47105..1742ffad 100644
--- a/src/install/index.php
+++ b/src/install/index.php
@@ -103,9 +103,9 @@ else if ($step==2) {
$db = new SQLite3(DEDEDATA.'/'.$dbname.'.db');
} else {
$dbtype = 'mysql';
- $conn = mysql_connect($dbhost, $dbuser, $dbpwd) or die("");
+ $conn = mysql_connect($dbhost, $dbuser, $dbpwd) or die("");
mysql_query("CREATE DATABASE IF NOT EXISTS `".$dbname."`;", $conn);
- mysql_select_db($dbname, $conn) or die("");
+ mysql_select_db($dbname, $conn) or die("");
//获得数据库版本信息
$rs = mysql_query("SELECT VERSION();", $conn);
$row = mysql_fetch_array($rs);
@@ -128,7 +128,7 @@ else if ($step==2) {
$configStr1 = str_replace("~dbprefix~", $dbprefix, $configStr1);
$configStr1 = str_replace("~dblang~", $dblang, $configStr1);
@chmod(DEDEDATA,0777);
- $fp = fopen(DEDEDATA."/common.inc.php","w") or die("");
+ $fp = fopen(DEDEDATA."/common.inc.php","w") or die("");
fwrite($fp, $configStr1);
fclose($fp);
//config.cache.inc.php
diff --git a/src/install/install.html b/src/install/install.html
index e3e47fac..2f928149 100644
--- a/src/install/install.html
+++ b/src/install/install.html
@@ -114,9 +114,9 @@
console.log(rs);
let result = JSON.parse(rs);
if (result.code === 200) {
- ShowAlert("#alertConnect", result.data, "success", 5000);
+ ShowAlert("#alertConnect", result.data, "success", 3000);
} else {
- ShowAlert("#alertConnect", result.data, "danger", 5000);
+ ShowAlert("#alertConnect", result.data, "danger", 3000);
}
})
});
diff --git a/src/install/install.inc.php b/src/install/install.inc.php
index 780f63be..eb67807e 100755
--- a/src/install/install.inc.php
+++ b/src/install/install.inc.php
@@ -37,8 +37,8 @@ function GetBackAlert($msg, $isstop = 0)
{
global $s_lang;
$msg = str_replace('"', '`', $msg);
- if ($isstop == 1) $msg = "\r\n";
- else $msg = "\r\n";
+ if ($isstop == 1) $msg = "";
+ else $msg = "";
$msg = "\r\n".$msg;
return $msg;
}
diff --git a/src/system/common.func.php b/src/system/common.func.php
index 017fde13..fcf669b7 100755
--- a/src/system/common.func.php
+++ b/src/system/common.func.php
@@ -352,7 +352,7 @@ function ShowMsg($msg, $gourl, $onlymsg = 0, $limittime = 0)
$litime = ($limittime == 0 ? 1000 : $limittime);
$func = '';
if ($gourl == '-1') {
- if ($limittime == 0) $litime = 5000;
+ if ($limittime == 0) $litime = 3000;
$gourl = "javascript:history.go(-1);";
}
if ($gourl == '' || $onlymsg == 1) {
diff --git a/src/system/helpers/upload.helper.php b/src/system/helpers/upload.helper.php
index 4050eb1e..80d4ace5 100755
--- a/src/system/helpers/upload.helper.php
+++ b/src/system/helpers/upload.helper.php
@@ -141,7 +141,7 @@ if (!function_exists('MemberUploads')) {
exit();
}
if ($exname == '') {
- $filename = $cfg_user_dir."/$userid/".dd2char($nowtme.'-'.mt_rand(1000,9999)).'.'.$sname;
+ $filename = $cfg_user_dir."/$userid/".dd2char($nowtme.'-'.mt_rand(1000, 9999)).'.'.$sname;
} else {
$filename = $cfg_user_dir."/{$userid}/{$exname}.".$sname;
}
diff --git a/src/system/libraries/oxwindow.class.php b/src/system/libraries/oxwindow.class.php
index 44af6b01..c39fe7fb 100755
--- a/src/system/libraries/oxwindow.class.php
+++ b/src/system/libraries/oxwindow.class.php
@@ -169,7 +169,7 @@ class OxWindow
$this->myWin .= "
-
+
|
";
} else {
@@ -178,7 +178,7 @@ class OxWindow
$msg |
- |
+ |
";
} else {
$this->myWin .= '';
diff --git a/src/theme/dedebiz/article_article.htm b/src/theme/dedebiz/article_article.htm
index a43c13e5..902e60bb 100644
--- a/src/theme/dedebiz/article_article.htm
+++ b/src/theme/dedebiz/article_article.htm
@@ -180,7 +180,7 @@
$.get("{dede:global.cfg_memberurl/}/api.php?format=json", function(result) {
if (result.code !== 200) {
$(`._feedback_reply`).html("");
- ShowAlert(`._feedback_reply[for="${fid}"]`, '回复需要登录会员中心,您可以点击登录后再来回复', 'warning', 5000);
+ ShowAlert(`._feedback_reply[for="${fid}"]`, '回复需要登录会员中心,您可以点击登录后再来回复', 'warning', 3000);
} else {
$(`._feedback_reply`).html("");
$(`._feedback_reply[for="${fid}"]`).html(replyPannel);
diff --git a/src/theme/dedebiz/article_default.htm b/src/theme/dedebiz/article_default.htm
index 2eeeee63..f60df5e0 100644
--- a/src/theme/dedebiz/article_default.htm
+++ b/src/theme/dedebiz/article_default.htm
@@ -186,7 +186,7 @@
$.get("{dede:global.cfg_memberurl/}/api.php?format=json", function(result) {
if (result.code !== 200) {
$(`._feedback_reply`).html("");
- ShowAlert(`._feedback_reply[for="${fid}"]`, '回复需要登录会员中心,您可以点击登录后再来回复', 'warning', 5000);
+ ShowAlert(`._feedback_reply[for="${fid}"]`, '回复需要登录会员中心,您可以点击登录后再来回复', 'warning', 3000);
} else {
$(`._feedback_reply`).html("");
$(`._feedback_reply[for="${fid}"]`).html(replyPannel);
diff --git a/src/theme/dedebiz/article_default_sg.htm b/src/theme/dedebiz/article_default_sg.htm
index 5664de28..695eafbd 100644
--- a/src/theme/dedebiz/article_default_sg.htm
+++ b/src/theme/dedebiz/article_default_sg.htm
@@ -189,7 +189,7 @@
$.get("{dede:global.cfg_memberurl/}/api.php?format=json", function(result) {
if (result.code !== 200) {
$(`._feedback_reply`).html("");
- ShowAlert(`._feedback_reply[for="${fid}"]`, '回复需要登录会员中心,您可以点击登录后再来回复', 'warning', 5000);
+ ShowAlert(`._feedback_reply[for="${fid}"]`, '回复需要登录会员中心,您可以点击登录后再来回复', 'warning', 3000);
} else {
$(`._feedback_reply`).html("");
$(`._feedback_reply[for="${fid}"]`).html(replyPannel);
diff --git a/src/theme/dedebiz/article_image.htm b/src/theme/dedebiz/article_image.htm
index daab454a..6c608946 100644
--- a/src/theme/dedebiz/article_image.htm
+++ b/src/theme/dedebiz/article_image.htm
@@ -253,7 +253,7 @@
$.get("{dede:global.cfg_memberurl/}/api.php?format=json", function(result) {
if (result.code !== 200) {
$(`._feedback_reply`).html("");
- ShowAlert(`._feedback_reply[for="${fid}"]`, '回复需要登录会员中心,您可以点击登录后再来回复', 'warning', 5000);
+ ShowAlert(`._feedback_reply[for="${fid}"]`, '回复需要登录会员中心,您可以点击登录后再来回复', 'warning', 3000);
} else {
$(`._feedback_reply`).html("");
$(`._feedback_reply[for="${fid}"]`).html(replyPannel);
diff --git a/src/theme/dedebiz/article_infos.htm b/src/theme/dedebiz/article_infos.htm
index f8814555..c50cc5ca 100644
--- a/src/theme/dedebiz/article_infos.htm
+++ b/src/theme/dedebiz/article_infos.htm
@@ -187,7 +187,7 @@
$.get("{dede:global.cfg_memberurl/}/api.php?format=json", function(result) {
if (result.code !== 200) {
$(`._feedback_reply`).html("");
- ShowAlert(`._feedback_reply[for="${fid}"]`, '回复需要登录会员中心,您可以点击登录后再来回复', 'warning', 5000);
+ ShowAlert(`._feedback_reply[for="${fid}"]`, '回复需要登录会员中心,您可以点击登录后再来回复', 'warning', 3000);
} else {
$(`._feedback_reply`).html("");
$(`._feedback_reply[for="${fid}"]`).html(replyPannel);
diff --git a/src/theme/dedebiz/article_soft.htm b/src/theme/dedebiz/article_soft.htm
index 11913bad..032cf339 100644
--- a/src/theme/dedebiz/article_soft.htm
+++ b/src/theme/dedebiz/article_soft.htm
@@ -195,7 +195,7 @@
$.get("{dede:global.cfg_memberurl/}/api.php?format=json", function(result) {
if (result.code !== 200) {
$(`._feedback_reply`).html("");
- ShowAlert(`._feedback_reply[for="${fid}"]`, '回复需要登录会员中心,您可以点击登录后再来回复', 'warning', 5000);
+ ShowAlert(`._feedback_reply[for="${fid}"]`, '回复需要登录会员中心,您可以点击登录后再来回复', 'warning', 3000);
} else {
$(`._feedback_reply`).html("");
$(`._feedback_reply[for="${fid}"]`).html(replyPannel);
diff --git a/src/user/album_add.php b/src/user/album_add.php
index a915a45a..215b2211 100755
--- a/src/user/album_add.php
+++ b/src/user/album_add.php
@@ -27,7 +27,7 @@ $channelid = isset($channelid) && is_numeric($channelid) ? $channelid : 2;
$typeid = isset($typeid) && is_numeric($typeid) ? $typeid : 0;
$menutype = 'content';
if ($cfg_ml->IsSendLimited()) {
- ShowMsg("投稿失败,每日投稿次数{$cfg_ml->M_SendMax}次,剩余0次,需要增加次数,请联系网站管理员", "index.php", "0", 5000);
+ ShowMsg("投稿失败,每日投稿次数{$cfg_ml->M_SendMax}次,剩余0次,需要增加次数,请联系网站管理员", "index.php", "0", 3000);
exit();
}
if (empty($dopost)) {
@@ -40,11 +40,11 @@ if (empty($dopost)) {
//检查会员等级和类型限制
if ($cInfos['sendrank'] > $cfg_ml->M_Rank) {
$row = $dsql->GetOne("SELECT membername FROM `#@__arcrank` WHERE `rank`='".$cInfos['sendrank']."' ");
- ShowMsg("需要".$row['membername']."才能在这个栏目发布文档", "-1", "0", 5000);
+ ShowMsg("需要".$row['membername']."才能在这个栏目发布文档", "-1", "0", 3000);
exit();
}
if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) {
- ShowMsg("需要".$cInfos['usertype']."帐号才能在这个栏目发布文档", "-1", "0", 5000);
+ ShowMsg("需要".$cInfos['usertype']."帐号才能在这个栏目发布文档", "-1", "0", 3000);
exit();
}
include(DEDEMEMBER."/templets/album_add.htm");
diff --git a/src/user/album_edit.php b/src/user/album_edit.php
index 043484cf..26aeb0e7 100755
--- a/src/user/album_edit.php
+++ b/src/user/album_edit.php
@@ -26,7 +26,7 @@ $channelid = isset($channelid) && is_numeric($channelid) ? $channelid : 2;
$aid = isset($aid) && is_numeric($aid) ? $aid : 0;
$menutype = 'content';
if ($cfg_ml->IsSendLimited()) {
- ShowMsg("投稿失败,每日投稿次数{$cfg_ml->M_SendMax}次,剩余0次,需要增加次数,请联系网站管理员", "index.php", "0", 5000);
+ ShowMsg("投稿失败,每日投稿次数{$cfg_ml->M_SendMax}次,剩余0次,需要增加次数,请联系网站管理员", "index.php", "0", 3000);
exit();
}
if (empty($dopost)) {
diff --git a/src/user/api.php b/src/user/api.php
index 8073556f..6b0d5aad 100755
--- a/src/user/api.php
+++ b/src/user/api.php
@@ -187,7 +187,7 @@ if ($action === 'is_need_check_code') {
exit;
}
$nowtme = time();
- $rnd = $nowtme.'-'.mt_rand(1000,9999);
+ $rnd = $nowtme.'-'.mt_rand(1000, 9999);
$target_file = $cfg_basedir.$cfg_user_dir."/{$cfg_ml->M_ID}/".$rnd.".".$exts;
$target_url = $cfg_mediasurl.'/userup'."/{$cfg_ml->M_ID}/".$rnd.".".$exts;
$row = $dsql->GetOne("SELECT aid,title,url FROM `#@__uploads` WHERE url LIKE '$target_url' AND mid='".$cfg_ml->M_ID."'; ");
diff --git a/src/user/archives_add.php b/src/user/archives_add.php
index 218302e3..7f927364 100755
--- a/src/user/archives_add.php
+++ b/src/user/archives_add.php
@@ -20,7 +20,7 @@ $typeid = isset($typeid) && is_numeric($typeid) ? $typeid : 0;
$mtypesid = isset($mtypesid) && is_numeric($mtypesid) ? $mtypesid : 0;
$menutype = 'content';
if ($cfg_ml->IsSendLimited()) {
- ShowMsg("投稿失败,每日投稿次数{$cfg_ml->M_SendMax}次,剩余0次,需要增加次数,请联系网站管理员", "index.php", "0", 5000);
+ ShowMsg("投稿失败,每日投稿次数{$cfg_ml->M_SendMax}次,剩余0次,需要增加次数,请联系网站管理员", "index.php", "0", 3000);
exit();
}
if (empty($dopost)) {
@@ -32,11 +32,11 @@ if (empty($dopost)) {
//检查会员等级和类型限制
if ($cInfos['sendrank'] > $cfg_ml->M_Rank) {
$row = $dsql->GetOne("Select membername From `#@__arcrank` where `rank`='".$cInfos['sendrank']."' ");
- ShowMsg("需要".$row['membername']."才能在这个栏目发布文档", "-1", "0", 5000);
+ ShowMsg("需要".$row['membername']."才能在这个栏目发布文档", "-1", "0", 3000);
exit();
}
if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) {
- ShowMsg("需要".$cInfos['usertype']."帐号才能在这个栏目发布文档", "-1", "0", 5000);
+ ShowMsg("需要".$cInfos['usertype']."帐号才能在这个栏目发布文档", "-1", "0", 3000);
exit();
}
include(DEDEMEMBER."/templets/archives_add.htm");
diff --git a/src/user/archives_sg_add.php b/src/user/archives_sg_add.php
index 5f317a22..02116a89 100755
--- a/src/user/archives_sg_add.php
+++ b/src/user/archives_sg_add.php
@@ -20,7 +20,7 @@ $typeid = isset($typeid) && is_numeric($typeid) ? $typeid : 0;
$mtypesid = isset($mtypesid) && is_numeric($mtypesid) ? $mtypesid : 0;
$menutype = 'content';
if ($cfg_ml->IsSendLimited()) {
- ShowMsg("投稿失败,每日投稿次数{$cfg_ml->M_SendMax}次,剩余0次,需要增加次数,请联系网站管理员", "index.php", "0", 5000);
+ ShowMsg("投稿失败,每日投稿次数{$cfg_ml->M_SendMax}次,剩余0次,需要增加次数,请联系网站管理员", "index.php", "0", 3000);
exit();
}
if (empty($dopost)) {
@@ -32,11 +32,11 @@ if (empty($dopost)) {
//检查会员等级和类型限制
if ($cInfos['sendrank'] > $cfg_ml->M_Rank) {
$row = $dsql->GetOne("SELECT membername FROM `#@__arcrank` WHERE `rank`='".$cInfos['sendrank']."' ");
- ShowMsg("需要".$row['membername']."才能在这个栏目发布文档", "-1", "0", 5000);
+ ShowMsg("需要".$row['membername']."才能在这个栏目发布文档", "-1", "0", 3000);
exit();
}
if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) {
- ShowMsg("需要".$cInfos['usertype']."帐号才能在这个栏目发布文档", "-1", "0", 5000);
+ ShowMsg("需要".$cInfos['usertype']."帐号才能在这个栏目发布文档", "-1", "0", 3000);
exit();
}
include(DEDEMEMBER."/templets/archives_sg_add.htm");
@@ -72,11 +72,11 @@ if (empty($dopost)) {
//检查栏目设定的投稿许可权限
if ($cInfos['sendrank'] > $cfg_ml->M_Rank) {
$row = $dsql->GetOne("Select membername From #@__arcrank where `rank`='".$cInfos['sendrank']."' ");
- ShowMsg("需要".$row['membername']."才能在这个栏目发布文档", "-1", "0", 5000);
+ ShowMsg("需要".$row['membername']."才能在这个栏目发布文档", "-1", "0", 3000);
exit();
}
if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) {
- ShowMsg("需要".$cInfos['usertype']."才能在这个栏目发布文档", "-1", "0", 5000);
+ ShowMsg("需要".$cInfos['usertype']."才能在这个栏目发布文档", "-1", "0", 3000);
exit();
}
//文档的默认状态
diff --git a/src/user/article_add.php b/src/user/article_add.php
index 02af32dd..b54074be 100755
--- a/src/user/article_add.php
+++ b/src/user/article_add.php
@@ -20,7 +20,7 @@ $typeid = isset($typeid) && is_numeric($typeid) ? $typeid : 0;
$mtypesid = isset($mtypesid) && is_numeric($mtypesid) ? $mtypesid : 0;
$menutype = 'content';
if ($cfg_ml->IsSendLimited()) {
- ShowMsg("投稿失败,每日投稿次数{$cfg_ml->M_SendMax}次,剩余0次,需要增加次数,请联系网站管理员", "index.php", "0", 5000);
+ ShowMsg("投稿失败,每日投稿次数{$cfg_ml->M_SendMax}次,剩余0次,需要增加次数,请联系网站管理员", "index.php", "0", 3000);
exit();
}
if (empty($dopost)) {
@@ -28,11 +28,11 @@ if (empty($dopost)) {
//检查会员等级和类型限制
if ($cInfos['sendrank'] > $cfg_ml->M_Rank) {
$row = $dsql->GetOne("SELECT membername FROM `#@__arcrank` WHERE `rank`='".$cInfos['sendrank']."' ");
- ShowMsg("需要".$row['membername']."才能在这个栏目发布文档", "-1", "0", 5000);
+ ShowMsg("需要".$row['membername']."才能在这个栏目发布文档", "-1", "0", 3000);
exit();
}
if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) {
- ShowMsg("需要".$cInfos['usertype']."帐号才能在这个栏目发布文档", "-1", "0", 5000);
+ ShowMsg("需要".$cInfos['usertype']."帐号才能在这个栏目发布文档", "-1", "0", 3000);
exit();
}
include(DEDEMEMBER."/templets/article_add.htm");
diff --git a/src/user/config.php b/src/user/config.php
index 14731a80..f2bb5528 100755
--- a/src/user/config.php
+++ b/src/user/config.php
@@ -176,7 +176,7 @@ function CheckRank($rank = 0, $money = 0)
ShowMsg("邮箱地址为空,请设置一个邮箱地址", "edit_baseinfo.php");
exit;
}
- $msg = "您未进行邮件验证,发送验证邮件后请登录邮箱进行确认
发送返回";
+ $msg = "您未进行邮件验证,发送验证邮件后请登录邮箱进行确认
发送返回";
ShowMsg($msg, "javascript:;");
exit;
}
diff --git a/src/user/inc/archives_check.php b/src/user/inc/archives_check.php
index 643660b4..2fe5a757 100755
--- a/src/user/inc/archives_check.php
+++ b/src/user/inc/archives_check.php
@@ -34,11 +34,11 @@ if ($cInfos['issend'] != 1 || $cInfos['ispart'] != 0 || $cInfos['channeltype']
//检查栏目设定的投稿许可权限
if ($cInfos['sendrank'] > $cfg_ml->M_Rank) {
$row = $dsql->GetOne("SELECT membername FROM `#@__arcrank` WHERE `rank`='".$cInfos['sendrank']."' ");
- ShowMsg("需要".$row['membername']."才能在这个栏目发布文档", "-1", "0", 5000);
+ ShowMsg("需要".$row['membername']."才能在这个栏目发布文档", "-1", "0", 3000);
exit();
}
if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) {
- ShowMsg("需要".$cInfos['usertype']."才能在这个栏目发布文档", "-1", "0", 5000);
+ ShowMsg("需要".$cInfos['usertype']."才能在这个栏目发布文档", "-1", "0", 3000);
exit();
}
//文档的默认状态
@@ -67,7 +67,7 @@ $mid = $cfg_ml->M_ID;
if ($cfg_mb_cktitle == 'Y') {
$row = $dsql->GetOne("SELECT * FROM `#@__archives` WHERE title LIKE '$title' ");
if (is_array($row)) {
- ShowMsg("请不要发布重复文档", "-1", "0", 5000);
+ ShowMsg("请不要发布重复文档", "-1", "0", 3000);
exit();
}
}
diff --git a/src/user/inc/inc_archives_functions.php b/src/user/inc/inc_archives_functions.php
index 3934dacf..cc4c0638 100755
--- a/src/user/inc/inc_archives_functions.php
+++ b/src/user/inc/inc_archives_functions.php
@@ -326,7 +326,7 @@ function GetCurContent(&$body)
$itype = '.jpg';
}
}
- $milliSecondN = dd2char($milliSecond.'-'.mt_rand(1000,8000));
+ $milliSecondN = dd2char($milliSecond.'-'.mt_rand(1000, 9999));
$value = trim($value);
$rndFileName = $imgPath."/".$milliSecondN.'-'.$key.$itype;
$fileurl = $imgUrl."/".$milliSecondN.'-'.$key.$itype;
diff --git a/src/user/inc/inc_pwd_functions.php b/src/user/inc/inc_pwd_functions.php
index a6e41917..8ed85f99 100755
--- a/src/user/inc/inc_pwd_functions.php
+++ b/src/user/inc/inc_pwd_functions.php
@@ -84,7 +84,7 @@ function newmail($mid, $userid, $mailto, $type, $send)
if ($db->ExecuteNoneQuery($sql)) {
if ($send == 'Y') {
sendmail($mailto, $mailtitle, $mailbody, $headers);
- return ShowMsg('验证码已经发送到原来的邮箱,请注意查收', 'login.php', '', '5000');
+ return ShowMsg('验证码已经发送到原来的邮箱,请注意查收', 'login.php', '', '3000');
} else if ($send == 'N') {
return ShowMsg('正在前往密码修改', $cfg_basehost.$cfg_memberurl."/resetpassword.php?dopost=getpasswd&id=".$mid."&key=".$randval);
}
diff --git a/src/user/soft_add.php b/src/user/soft_add.php
index 842525da..88b8d146 100755
--- a/src/user/soft_add.php
+++ b/src/user/soft_add.php
@@ -23,7 +23,7 @@ $channelid = isset($channelid) && is_numeric($channelid) ? $channelid : 3;
$typeid = isset($typeid) && is_numeric($typeid) ? $typeid : 0;
$menutype = 'content';
if ($cfg_ml->IsSendLimited()) {
- ShowMsg("投稿失败,每日投稿次数{$cfg_ml->M_SendMax}次,剩余0次,需要增加次数,请联系网站管理员", "index.php", "0", 5000);
+ ShowMsg("投稿失败,每日投稿次数{$cfg_ml->M_SendMax}次,剩余0次,需要增加次数,请联系网站管理员", "index.php", "0", 3000);
exit();
}
if (empty($dopost)) {
@@ -35,11 +35,11 @@ if (empty($dopost)) {
//检查会员等级和类型限制
if ($cInfos['sendrank'] > $cfg_ml->M_Rank) {
$row = $dsql->GetOne("SELECT membername FROM `#@__arcrank` where `rank`='".$cInfos['sendrank']."' ");
- ShowMsg("需要".$row['membername']."才能在这个栏目发布文档", "-1", "0", 5000);
+ ShowMsg("需要".$row['membername']."才能在这个栏目发布文档", "-1", "0", 3000);
exit();
}
if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) {
- ShowMsg("需要".$cInfos['usertype']."帐号才能在这个栏目发布文档", "-1", "0", 5000);
+ ShowMsg("需要".$cInfos['usertype']."帐号才能在这个栏目发布文档", "-1", "0", 3000);
exit();
}
include(DEDEMEMBER."/templets/soft_add.htm");