@@ -39,7 +39,7 @@ if ($dopost != 'save') { | |||||
require_once(DEDEINC.'/libraries/oxwindow.class.php'); | require_once(DEDEINC.'/libraries/oxwindow.class.php'); | ||||
$flag = isset($flags) ? join(',', $flags) : ''; | $flag = isset($flags) ? join(',', $flags) : ''; | ||||
$notpost = isset($notpost) && $notpost == 1 ? 1 : 0; | $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($typeid2)) $typeid2 = 0; | ||||
if (!isset($autokey)) $autokey = 0; | if (!isset($autokey)) $autokey = 0; | ||||
if (!isset($remote)) $remote = 0; | if (!isset($remote)) $remote = 0; | ||||
@@ -48,7 +48,7 @@ if ($dopost != 'save') { | |||||
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) == '') { | ||||
ShowMsg("文档标题不能为空", "-1"); | ShowMsg("文档标题不能为空", "-1"); | ||||
exit(); | exit(); | ||||
@@ -121,7 +121,7 @@ if ($dopost != 'save') { | |||||
$ntime = time(); | $ntime = time(); | ||||
$savepath = $cfg_image_dir.'/'.MyDate($cfg_addon_savetype, $ntime); | $savepath = $cfg_image_dir.'/'.MyDate($cfg_addon_savetype, $ntime); | ||||
CreateDir($savepath); | 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; | $fullUrl = $fullUrl.$ext; | ||||
file_put_contents($cfg_basedir.$fullUrl, base64_decode($data[1])); | file_put_contents($cfg_basedir.$fullUrl, base64_decode($data[1])); | ||||
$info = ''; | $info = ''; | ||||
@@ -195,7 +195,7 @@ if ($dopost != 'save') { | |||||
$ntime = time(); | $ntime = time(); | ||||
$savepath = $cfg_image_dir.'/'.MyDate($cfg_addon_savetype, $ntime); | $savepath = $cfg_image_dir.'/'.MyDate($cfg_addon_savetype, $ntime); | ||||
CreateDir($savepath); | 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; | $fullUrl = $fullUrl.$ext; | ||||
file_put_contents($cfg_basedir.$fullUrl, base64_decode($data[1])); | file_put_contents($cfg_basedir.$fullUrl, base64_decode($data[1])); | ||||
$info = ''; | $info = ''; | ||||
@@ -42,13 +42,13 @@ if ($dopost != 'save') { | |||||
require_once(DEDEINC.'/libraries/oxwindow.class.php'); | require_once(DEDEINC.'/libraries/oxwindow.class.php'); | ||||
$flag = isset($flags) ? join(',', $flags) : ''; | $flag = isset($flags) ? join(',', $flags) : ''; | ||||
$notpost = isset($notpost) && $notpost == 1 ? 1 : 0; | $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 (empty($typeid2)) $typeid2 = 0; | ||||
if (!isset($autokey)) $autokey = 0; | if (!isset($autokey)) $autokey = 0; | ||||
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 (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) == '') { | ||||
ShowMsg("文档标题不能为空", "-1"); | ShowMsg("文档标题不能为空", "-1"); | ||||
exit(); | exit(); | ||||
@@ -33,7 +33,7 @@ if ($dopost == 'editArchives') { | |||||
$ntime = time(); | $ntime = time(); | ||||
$savepath = $cfg_image_dir.'/'.MyDate($cfg_addon_savetype, $ntime); | $savepath = $cfg_image_dir.'/'.MyDate($cfg_addon_savetype, $ntime); | ||||
CreateDir($savepath); | 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"; | $fullUrl = $fullUrl.".png"; | ||||
file_put_contents($cfg_basedir.$fullUrl, base64_decode($data[1])); | file_put_contents($cfg_basedir.$fullUrl, base64_decode($data[1])); | ||||
//加水印 | //加水印 | ||||
@@ -608,7 +608,7 @@ else if ($dopost == "makekw") { | |||||
$keywords = ''; | $keywords = ''; | ||||
$title = $row['title']; | $title = $row['title']; | ||||
$description = $row['description']; | $description = $row['description']; | ||||
$body = cn_substr($row['body'], 5000); | |||||
$body = cn_substr($row['body'], 3000); | |||||
$data = $client->Spliteword($title.Html2Text($body)); | $data = $client->Spliteword($title.Html2Text($body)); | ||||
$keywords = $data->data; | $keywords = $data->data; | ||||
$description = str_replace(' ', ' ', trim($description)); | $description = str_replace(' ', ' ', trim($description)); | ||||
@@ -631,7 +631,7 @@ else if ($dopost == "makekw") { | |||||
$keywords = ''; | $keywords = ''; | ||||
$title = $row['title']; | $title = $row['title']; | ||||
$description = $row['description']; | $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->SetSource($title, $cfg_soft_lang, $cfg_soft_lang); | ||||
$sp->StartAnalysis(); | $sp->StartAnalysis(); | ||||
$titleindexs = preg_replace("/#p#|#e#/", '', $sp->GetFinallyIndex()); | $titleindexs = preg_replace("/#p#|#e#/", '', $sp->GetFinallyIndex()); | ||||
@@ -50,7 +50,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 (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) == '') { | ||||
ShowMsg("文档标题不能为空", "-1"); | ShowMsg("文档标题不能为空", "-1"); | ||||
exit(); | exit(); | ||||
@@ -19,7 +19,7 @@ if ($dopost == "add") { | |||||
if (!preg_match("#(jpg|gif|png)$#", $shortname)) { | if (!preg_match("#(jpg|gif|png)$#", $shortname)) { | ||||
$shortname = '.gif'; | $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"; | $imgurl = $cfg_medias_dir."/flink"; | ||||
if (!is_dir($cfg_basedir.$imgurl)) { | if (!is_dir($cfg_basedir.$imgurl)) { | ||||
MkdirAll($cfg_basedir.$imgurl, $cfg_dir_purview); | MkdirAll($cfg_basedir.$imgurl, $cfg_dir_purview); | ||||
@@ -134,7 +134,7 @@ function GetCurContent($body) | |||||
} else { | } else { | ||||
continue; | continue; | ||||
} | } | ||||
$milliSecondN = dd2char($milliSecond.mt_rand(1000,8000)); | |||||
$milliSecondN = dd2char($milliSecond.mt_rand(1000, 9999)); | |||||
$value = trim($value); | $value = trim($value); | ||||
$rndFileName = $imgPath.'/'.$milliSecondN.'-'.$key.$itype; | $rndFileName = $imgPath.'/'.$milliSecondN.'-'.$key.$itype; | ||||
$fileurl = $imgUrl.'/'.$milliSecondN.'-'.$key.$itype; | $fileurl = $imgUrl.'/'.$milliSecondN.'-'.$key.$itype; | ||||
@@ -196,7 +196,7 @@ function GetRemoteImage($url, $uid = 0) | |||||
} else { | } else { | ||||
$itype = '.jpg'; | $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; | $rndtrueName = $imgPath.'/'.$rndname.$itype; | ||||
$fileurl = $imgUrl.'/'.$rndname.$itype; | $fileurl = $imgUrl.'/'.$rndname.$itype; | ||||
$ok = $htd->SaveToBin($rndtrueName); | $ok = $htd->SaveToBin($rndtrueName); | ||||
@@ -355,7 +355,7 @@ function GetDDImage($litpic, $picname, $isremote) | |||||
} | } | ||||
$savepath = $cfg_image_dir.'/'.MyDate($cfg_addon_savetype, $ntime); | $savepath = $cfg_image_dir.'/'.MyDate($cfg_addon_savetype, $ntime); | ||||
CreateDir($savepath); | 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") { | if (strtolower($_FILES[$litpic]['type']) == "image/gif") { | ||||
$fullUrl = $fullUrl.".gif"; | $fullUrl = $fullUrl.".gif"; | ||||
} else if (strtolower($_FILES[$litpic]['type']) == "image/png") { | } else if (strtolower($_FILES[$litpic]['type']) == "image/png") { | ||||
@@ -677,7 +677,7 @@ function UploadOneImage($upname, $handurl = '', $isremote = 1, $ntitle = '') | |||||
} else { | } else { | ||||
$savepath = $cfg_image_dir.'/'.date("%Y-%m", $ntime); | $savepath = $cfg_image_dir.'/'.date("%Y-%m", $ntime); | ||||
CreateDir($savepath); | 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") { | if (strtolower($_FILES[$upname]['type']) == "image/gif") { | ||||
$fullUrl = $fullUrl.".gif"; | $fullUrl = $fullUrl.".gif"; | ||||
@@ -40,7 +40,7 @@ if ($dopost != 'save') { | |||||
require_once(DEDEINC.'/libraries/oxwindow.class.php'); | require_once(DEDEINC.'/libraries/oxwindow.class.php'); | ||||
$flag = isset($flags) ? join(',', $flags) : ''; | $flag = isset($flags) ? join(',', $flags) : ''; | ||||
$notpost = isset($notpost) && $notpost == 1 ? 1 : 0; | $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($typeid2)) $typeid2 = 0; | ||||
if (!isset($autokey)) $autokey = 0; | if (!isset($autokey)) $autokey = 0; | ||||
if (!isset($remote)) $remote = 0; | if (!isset($remote)) $remote = 0; | ||||
@@ -73,7 +73,7 @@ if ($dopost != 'save') { | |||||
$sortrank = AddDay($pubdate, $sortup); | $sortrank = AddDay($pubdate, $sortup); | ||||
if ($ishtml == 0) $ismake = -1; | if ($ishtml == 0) $ismake = -1; | ||||
else $ismake = 0; | 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 = preg_replace('#"#', '"', $title); | ||||
$title = cn_substrR($title, $cfg_title_maxlen); | $title = cn_substrR($title, $cfg_title_maxlen); | ||||
$shorttitle = cn_substrR($shorttitle, 36); | $shorttitle = cn_substrR($shorttitle, 36); | ||||
@@ -28,7 +28,7 @@ if ($dopost != 'save') { | |||||
require_once(DEDEINC.'/libraries/oxwindow.class.php'); | require_once(DEDEINC.'/libraries/oxwindow.class.php'); | ||||
$flag = isset($flags) ? join(',', $flags) : ''; | $flag = isset($flags) ? join(',', $flags) : ''; | ||||
$notpost = isset($notpost) && $notpost == 1 ? 1 : 0; | $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; | $channelid = -1; | ||||
$money = 0; | $money = 0; | ||||
if (!isset($tags)) $tags = ''; | if (!isset($tags)) $tags = ''; | ||||
@@ -64,7 +64,7 @@ if ($dopost == 'bak') { | |||||
$dh->close(); | $dh->close(); | ||||
$tmsg .= "完成备份目录旧数据清理"; | $tmsg .= "完成备份目录旧数据清理"; | ||||
if ($isstruct == 1) { | 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(); | $mysql_version = $dsql->GetVersion(); | ||||
$fp = fopen($bkfile, "w"); | $fp = fopen($bkfile, "w"); | ||||
foreach ($tables as $t) { | foreach ($tables as $t) { | ||||
@@ -115,7 +115,7 @@ if ($dopost == 'bak') { | |||||
$dsql->SetQuery("SELECT * FROM `$nowtable`"); | $dsql->SetQuery("SELECT * FROM `$nowtable`"); | ||||
$dsql->Execute(); | $dsql->Execute(); | ||||
$m = 0; | $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()) { | while ($row2 = $dsql->GetArray()) { | ||||
if ($m < $startpos) { | if ($m < $startpos) { | ||||
$m++; | $m++; | ||||
@@ -36,12 +36,12 @@ else if ($action == 'update') { | |||||
$tid = (empty($tid) ? 0 : intval($tid)); | $tid = (empty($tid) ? 0 : intval($tid)); | ||||
$count = (empty($count) ? 0 : intval($count)); | $count = (empty($count) ? 0 : intval($count)); | ||||
if (empty($tid)) { | if (empty($tid)) { | ||||
ShowMsg('没有选择要删除的标签', '-1'); | |||||
ShowMsg('请选择需要删除的标签', '-1'); | |||||
exit(); | exit(); | ||||
} | } | ||||
$query = "UPDATE `#@__tagindex` SET `count`='$count' WHERE id='$tid' "; | $query = "UPDATE `#@__tagindex` SET `count`='$count' WHERE id='$tid' "; | ||||
$dsql->ExecuteNoneQuery($query); | $dsql->ExecuteNoneQuery($query); | ||||
ShowMsg("成功保存标签的点击信息", 'tags_main.php'); | |||||
ShowMsg("成功保存标签点击信息", 'tags_main.php'); | |||||
exit(); | exit(); | ||||
} | } | ||||
//function delete() | //function delete() | ||||
@@ -51,16 +51,16 @@ else if ($action == 'delete') { | |||||
} else if (!empty($ids)) { | } else if (!empty($ids)) { | ||||
$stringids = $ids; | $stringids = $ids; | ||||
} else { | } else { | ||||
ShowMsg('没有选择要删除的标签', '-1'); | |||||
ShowMsg('请选择需要删除的标签', '-1'); | |||||
exit(); | exit(); | ||||
} | } | ||||
$query = "DELETE FROM `#@__tagindex` WHERE id IN ($stringids)"; | $query = "DELETE FROM `#@__tagindex` WHERE id IN ($stringids)"; | ||||
if ($dsql->ExecuteNoneQuery($query)) { | if ($dsql->ExecuteNoneQuery($query)) { | ||||
$query = "DELETE FROM `#@__taglist` WHERE tid IN ($stringids)"; | $query = "DELETE FROM `#@__taglist` WHERE tid IN ($stringids)"; | ||||
$dsql->ExecuteNoneQuery($query); | $dsql->ExecuteNoneQuery($query); | ||||
ShowMsg("删除tags [$stringids] 成功", 'tags_main.php'); | |||||
ShowMsg("删除[$stringids]标签成功", 'tags_main.php'); | |||||
} else { | } else { | ||||
ShowMsg("删除tags [$stringids] 失败", 'tags_main.php'); | |||||
ShowMsg("删除[$stringids]标签失败", 'tags_main.php'); | |||||
} | } | ||||
exit(); | exit(); | ||||
} else if ($action == 'get_one') { | } else if ($action == 'get_one') { | ||||
@@ -112,14 +112,13 @@ else if ($action == 'fetch') { | |||||
} | } | ||||
foreach ($keyarr as $keyword) { | foreach ($keyarr as $keyword) { | ||||
$keyword = trim($keyword); | $keyword = trim($keyword); | ||||
if ($keyword != '' && strlen($keyword) < 13) { | |||||
if ($keyword != '' && strlen($keyword) < 24) { | |||||
$keyword = addslashes($keyword); | $keyword = addslashes($keyword); | ||||
$row = $dsql->GetOne("SELECT id,total FROM `#@__tagindex` WHERE tag LIKE '$keyword'"); | $row = $dsql->GetOne("SELECT id,total FROM `#@__tagindex` WHERE tag LIKE '$keyword'"); | ||||
if (is_array($row)) { | if (is_array($row)) { | ||||
$tid = $row['id']; | $tid = $row['id']; | ||||
$trow = $dsql->GetOne("SELECT COUNT(*) as dd FROM `#@__taglist` WHERE tag LIKE '$keyword'"); | $trow = $dsql->GetOne("SELECT COUNT(*) as dd FROM `#@__taglist` WHERE tag LIKE '$keyword'"); | ||||
if (intval($trow['dd']) != $row['total']) { | if (intval($trow['dd']) != $row['total']) { | ||||
$query = "UPDATE `#@__tagindex` SET `total`=".$trow['dd'].",uptime=$now WHERE id='$tid' "; | $query = "UPDATE `#@__tagindex` SET `total`=".$trow['dd'].",uptime=$now WHERE id='$tid' "; | ||||
$dsql->ExecuteNoneQuery($query); | $dsql->ExecuteNoneQuery($query); | ||||
} | } | ||||
@@ -135,12 +134,12 @@ else if ($action == 'fetch') { | |||||
$complete = FALSE; | $complete = FALSE; | ||||
} | } | ||||
if ($complete) { | if ($complete) { | ||||
ShowMsg("tags获取完成", 'tags_main.php'); | |||||
ShowMsg('完成标签获取', 'tags_main.php'); | |||||
exit(); | exit(); | ||||
} | } | ||||
$start = $start + 100; | $start = $start + 100; | ||||
$goto = "tags_main.php?action=fetch&startaid=$startaid&endaid=$endaid&start=$start"; | $goto = "tags_main.php?action=fetch&startaid=$startaid&endaid=$endaid&start=$start"; | ||||
ShowMsg('继续获取tags ', $goto); | |||||
ShowMsg('正在获取标签', $goto); | |||||
exit(); | exit(); | ||||
} | } | ||||
?> | ?> |
@@ -354,7 +354,7 @@ | |||||
?> | ?> | ||||
</td> | </td> | ||||
<td width="120">浏览次数:</td> | <td width="120">浏览次数:</td> | ||||
<td><input type="text" name="click" value="<?php echo ($cfg_arc_click=='-1' ? mt_rand(1000,6000):$cfg_arc_click);?>" class="admin-input-sm"></td> | |||||
<td><input type="text" name="click" value="<?php echo ($cfg_arc_click=='-1' ? mt_rand(1000, 6000):$cfg_arc_click);?>" class="admin-input-sm"></td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
@@ -289,7 +289,7 @@ | |||||
?> | ?> | ||||
</td> | </td> | ||||
<td width="120">浏览次数:</td> | <td width="120">浏览次数:</td> | ||||
<td><input type="text" name="click" value="<?php echo ($cfg_arc_click=='-1' ? mt_rand(1000,6000):$cfg_arc_click);?>" class="admin-input-sm"></td> | |||||
<td><input type="text" name="click" value="<?php echo ($cfg_arc_click=='-1' ? mt_rand(1000, 6000):$cfg_arc_click);?>" class="admin-input-sm"></td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
@@ -302,7 +302,7 @@ | |||||
?> | ?> | ||||
</td> | </td> | ||||
<td width="120">浏览次数:</td> | <td width="120">浏览次数:</td> | ||||
<td><input type="text" name="click" value="<?php echo ($cfg_arc_click=='-1' ? mt_rand(1000,6000) : $cfg_arc_click);?>" class="admin-input-sm"></td> | |||||
<td><input type="text" name="click" value="<?php echo ($cfg_arc_click=='-1' ? mt_rand(1000, 6000) : $cfg_arc_click);?>" class="admin-input-sm"></td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
@@ -471,7 +471,7 @@ | |||||
?> | ?> | ||||
</td> | </td> | ||||
<td width="120">浏览次数:</td> | <td width="120">浏览次数:</td> | ||||
<td><input type="text" name="click" value="<?php echo ($cfg_arc_click=='-1' ? mt_rand(1000,6000):$cfg_arc_click);?>" class="admin-input-sm"></td> | |||||
<td><input type="text" name="click" value="<?php echo ($cfg_arc_click=='-1' ? mt_rand(1000, 6000):$cfg_arc_click);?>" class="admin-input-sm"></td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
@@ -307,7 +307,7 @@ | |||||
?> | ?> | ||||
</td> | </td> | ||||
<td width="120">浏览次数:</td> | <td width="120">浏览次数:</td> | ||||
<td><input type="text" name="click" value="<?php echo ($cfg_arc_click=='-1' ? mt_rand(1000,6000):$cfg_arc_click);?>" class="admin-input-sm"></td> | |||||
<td><input type="text" name="click" value="<?php echo ($cfg_arc_click=='-1' ? mt_rand(1000, 6000):$cfg_arc_click);?>" class="admin-input-sm"></td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
@@ -29,8 +29,8 @@ | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td colspan="2"> | <td colspan="2"> | ||||
<input type="submit" name="B1" class="btn btn-success btn-sm" value="保存"> | |||||
<input type="button" name="B4" class="btn btn-outline-success btn-sm" value="返回" onclick="javascript:history.go(-1)"> | |||||
<button type="submit" name="B1" class="btn btn-success btn-sm">保存</button> | |||||
<button type="button" name="B4" class="btn btn-outline-success btn-sm" onclick="javascript:history.go(-1);">返回</button> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -29,7 +29,7 @@ if (isset($nocache) || !file_exists($cacheFile) || time() - filemtime($cacheFile | |||||
$adbody = str_replace('"', '\"', $adbody); | $adbody = str_replace('"', '\"', $adbody); | ||||
$adbody = str_replace("\r", "\\r", $adbody); | $adbody = str_replace("\r", "\\r", $adbody); | ||||
$adbody = str_replace("\n", "\\n", $adbody); | $adbody = str_replace("\n", "\\n", $adbody); | ||||
$adbody = "<!--\r\ndocument.write(\"{$adbody}\");\r\n-->\r\n"; | |||||
$adbody = "<!--document.write(\"{$adbody}\");-->"; | |||||
$fp = fopen($cacheFile, 'w'); | $fp = fopen($cacheFile, 'w'); | ||||
fwrite($fp, $adbody); | fwrite($fp, $adbody); | ||||
fclose($fp); | fclose($fp); | ||||
@@ -18,7 +18,7 @@ if (isset($nocache) || !file_exists($cacheFile) || time() - filemtime($cacheFile | |||||
$pv = new PartView(); | $pv = new PartView(); | ||||
$row = $pv->dsql->GetOne("SELECT * FROM `#@__mytag` WHERE aid='$aid' "); | $row = $pv->dsql->GetOne("SELECT * FROM `#@__mytag` WHERE aid='$aid' "); | ||||
if (!is_array($row)) { | if (!is_array($row)) { | ||||
$myvalues = "<!--\r\ndocument.write('Not found input!');\r\n-->"; | |||||
$myvalues = "<!--document.write('Not found input!');-->"; | |||||
} else { | } else { | ||||
$tagbody = ''; | $tagbody = ''; | ||||
if ($row['timeset'] == 0) { | 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("\r", "\\r", $myvalues); | ||||
$myvalues = str_replace("\n", "\\n", $myvalues); | $myvalues = str_replace("\n", "\\n", $myvalues); | ||||
$myvalues = str_replace("<?", "", $myvalues); | $myvalues = str_replace("<?", "", $myvalues); | ||||
$myvalues = "<!--\r\ndocument.write(\"{$myvalues}\");\r\n-->\r\n"; | |||||
$myvalues = "<!--document.write(\"{$myvalues}\");-->"; | |||||
file_put_contents($cacheFile, $myvalues); | file_put_contents($cacheFile, $myvalues); | ||||
} | } | ||||
} | } | ||||
@@ -103,9 +103,9 @@ else if ($step==2) { | |||||
$db = new SQLite3(DEDEDATA.'/'.$dbname.'.db'); | $db = new SQLite3(DEDEDATA.'/'.$dbname.'.db'); | ||||
} else { | } else { | ||||
$dbtype = 'mysql'; | $dbtype = 'mysql'; | ||||
$conn = mysql_connect($dbhost, $dbuser, $dbpwd) or die("<script>alert('数据库服务器或登录密码无效,\\n\\n无法连接数据库,请重新设定');history.go(-1);</script>"); | |||||
$conn = mysql_connect($dbhost, $dbuser, $dbpwd) or die("<script>alert('数据库服务器或登录密码无效,无法连接数据库,请重新设定');javascript:history.go(-1);</script>"); | |||||
mysql_query("CREATE DATABASE IF NOT EXISTS `".$dbname."`;", $conn); | mysql_query("CREATE DATABASE IF NOT EXISTS `".$dbname."`;", $conn); | ||||
mysql_select_db($dbname, $conn) or die("<script>alert('选择数据库失败,可能是您没权限,请预先创建一个数据库');history.go(-1);</script>"); | |||||
mysql_select_db($dbname, $conn) or die("<script>alert('选择数据库失败,可能是您没权限,请预先创建一个数据库');javascript:history.go(-1);</script>"); | |||||
//获得数据库版本信息 | //获得数据库版本信息 | ||||
$rs = mysql_query("SELECT VERSION();", $conn); | $rs = mysql_query("SELECT VERSION();", $conn); | ||||
$row = mysql_fetch_array($rs); | $row = mysql_fetch_array($rs); | ||||
@@ -128,7 +128,7 @@ else if ($step==2) { | |||||
$configStr1 = str_replace("~dbprefix~", $dbprefix, $configStr1); | $configStr1 = str_replace("~dbprefix~", $dbprefix, $configStr1); | ||||
$configStr1 = str_replace("~dblang~", $dblang, $configStr1); | $configStr1 = str_replace("~dblang~", $dblang, $configStr1); | ||||
@chmod(DEDEDATA,0777); | @chmod(DEDEDATA,0777); | ||||
$fp = fopen(DEDEDATA."/common.inc.php","w") or die("<script>alert('写入配置失败,请检查/data目录是否可写入');history.go(-1);</script>"); | |||||
$fp = fopen(DEDEDATA."/common.inc.php","w") or die("<script>alert('写入配置失败,请检查/data目录是否可写入');javascript:history.go(-1);</script>"); | |||||
fwrite($fp, $configStr1); | fwrite($fp, $configStr1); | ||||
fclose($fp); | fclose($fp); | ||||
//config.cache.inc.php | //config.cache.inc.php | ||||
@@ -114,9 +114,9 @@ | |||||
console.log(rs); | console.log(rs); | ||||
let result = JSON.parse(rs); | let result = JSON.parse(rs); | ||||
if (result.code === 200) { | if (result.code === 200) { | ||||
ShowAlert("#alertConnect", result.data, "success", 5000); | |||||
ShowAlert("#alertConnect", result.data, "success", 3000); | |||||
} else { | } else { | ||||
ShowAlert("#alertConnect", result.data, "danger", 5000); | |||||
ShowAlert("#alertConnect", result.data, "danger", 3000); | |||||
} | } | ||||
}) | }) | ||||
}); | }); | ||||
@@ -37,8 +37,8 @@ function GetBackAlert($msg, $isstop = 0) | |||||
{ | { | ||||
global $s_lang; | global $s_lang; | ||||
$msg = str_replace('"', '`', $msg); | $msg = str_replace('"', '`', $msg); | ||||
if ($isstop == 1) $msg = "<script>\r\n<!--\r\n alert(\"{$msg}\");\r\n-->\r\n</script>\r\n"; | |||||
else $msg = "<script>\r\n<!--\r\n alert(\"{$msg}\");history.go(-1);\r\n-->\r\n</script>\r\n"; | |||||
if ($isstop == 1) $msg = "<script><!--alert(\"{$msg}\");--></script>"; | |||||
else $msg = "<script><!--alert(\"{$msg}\");javascript:history.go(-1);--></script>"; | |||||
$msg = "<meta http-equiv=content-type content='text/html; charset={$s_lang}'>\r\n".$msg; | $msg = "<meta http-equiv=content-type content='text/html; charset={$s_lang}'>\r\n".$msg; | ||||
return $msg; | return $msg; | ||||
} | } | ||||
@@ -352,7 +352,7 @@ function ShowMsg($msg, $gourl, $onlymsg = 0, $limittime = 0) | |||||
$litime = ($limittime == 0 ? 1000 : $limittime); | $litime = ($limittime == 0 ? 1000 : $limittime); | ||||
$func = ''; | $func = ''; | ||||
if ($gourl == '-1') { | if ($gourl == '-1') { | ||||
if ($limittime == 0) $litime = 5000; | |||||
if ($limittime == 0) $litime = 3000; | |||||
$gourl = "javascript:history.go(-1);"; | $gourl = "javascript:history.go(-1);"; | ||||
} | } | ||||
if ($gourl == '' || $onlymsg == 1) { | if ($gourl == '' || $onlymsg == 1) { | ||||
@@ -141,7 +141,7 @@ if (!function_exists('MemberUploads')) { | |||||
exit(); | exit(); | ||||
} | } | ||||
if ($exname == '') { | 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 { | } else { | ||||
$filename = $cfg_user_dir."/{$userid}/{$exname}.".$sname; | $filename = $cfg_user_dir."/{$userid}/{$exname}.".$sname; | ||||
} | } | ||||
@@ -169,7 +169,7 @@ class OxWindow | |||||
$this->myWin .= "<tr> | $this->myWin .= "<tr> | ||||
<td bgcolor='#f8fafb' colspan='2' align='center'> | <td bgcolor='#f8fafb' colspan='2' align='center'> | ||||
<button type='submit' class='btn btn-success btn-sm'>$tt</button> | <button type='submit' class='btn btn-success btn-sm'>$tt</button> | ||||
<button type='button' class='btn btn-outline-success btn-sm' onclick='history.go(-1);'>返回</button> | |||||
<button type='button' class='btn btn-outline-success btn-sm' onclick='javascript:history.go(-1);'>返回</button> | |||||
</td> | </td> | ||||
</tr>"; | </tr>"; | ||||
} else { | } else { | ||||
@@ -178,7 +178,7 @@ class OxWindow | |||||
<td>$msg</td> | <td>$msg</td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td bgcolor='#f8fafb' colspan='2' align='center'><button type='button' class='btn btn-success btn-sm' onclick='history.go(-1);'>返回</button></td> | |||||
<td bgcolor='#f8fafb' colspan='2' align='center'><button type='button' class='btn btn-success btn-sm' onclick='javascript:history.go(-1);'>返回</button></td> | |||||
</tr>"; | </tr>"; | ||||
} else { | } else { | ||||
$this->myWin .= ''; | $this->myWin .= ''; | ||||
@@ -180,7 +180,7 @@ | |||||
$.get("{dede:global.cfg_memberurl/}/api.php?format=json", function(result) { | $.get("{dede:global.cfg_memberurl/}/api.php?format=json", function(result) { | ||||
if (result.code !== 200) { | if (result.code !== 200) { | ||||
$(`._feedback_reply`).html(""); | $(`._feedback_reply`).html(""); | ||||
ShowAlert(`._feedback_reply[for="${fid}"]`, '回复需要登录会员中心,您可以<a href="{dede:global.cfg_memberurl/}/login.php">点击登录</a>后再来回复', 'warning', 5000); | |||||
ShowAlert(`._feedback_reply[for="${fid}"]`, '回复需要登录会员中心,您可以<a href="{dede:global.cfg_memberurl/}/login.php">点击登录</a>后再来回复', 'warning', 3000); | |||||
} else { | } else { | ||||
$(`._feedback_reply`).html(""); | $(`._feedback_reply`).html(""); | ||||
$(`._feedback_reply[for="${fid}"]`).html(replyPannel); | $(`._feedback_reply[for="${fid}"]`).html(replyPannel); | ||||
@@ -186,7 +186,7 @@ | |||||
$.get("{dede:global.cfg_memberurl/}/api.php?format=json", function(result) { | $.get("{dede:global.cfg_memberurl/}/api.php?format=json", function(result) { | ||||
if (result.code !== 200) { | if (result.code !== 200) { | ||||
$(`._feedback_reply`).html(""); | $(`._feedback_reply`).html(""); | ||||
ShowAlert(`._feedback_reply[for="${fid}"]`, '回复需要登录会员中心,您可以<a href="{dede:global.cfg_memberurl/}/login.php">点击登录</a>后再来回复', 'warning', 5000); | |||||
ShowAlert(`._feedback_reply[for="${fid}"]`, '回复需要登录会员中心,您可以<a href="{dede:global.cfg_memberurl/}/login.php">点击登录</a>后再来回复', 'warning', 3000); | |||||
} else { | } else { | ||||
$(`._feedback_reply`).html(""); | $(`._feedback_reply`).html(""); | ||||
$(`._feedback_reply[for="${fid}"]`).html(replyPannel); | $(`._feedback_reply[for="${fid}"]`).html(replyPannel); | ||||
@@ -189,7 +189,7 @@ | |||||
$.get("{dede:global.cfg_memberurl/}/api.php?format=json", function(result) { | $.get("{dede:global.cfg_memberurl/}/api.php?format=json", function(result) { | ||||
if (result.code !== 200) { | if (result.code !== 200) { | ||||
$(`._feedback_reply`).html(""); | $(`._feedback_reply`).html(""); | ||||
ShowAlert(`._feedback_reply[for="${fid}"]`, '回复需要登录会员中心,您可以<a href="{dede:global.cfg_memberurl/}/login.php">点击登录</a>后再来回复', 'warning', 5000); | |||||
ShowAlert(`._feedback_reply[for="${fid}"]`, '回复需要登录会员中心,您可以<a href="{dede:global.cfg_memberurl/}/login.php">点击登录</a>后再来回复', 'warning', 3000); | |||||
} else { | } else { | ||||
$(`._feedback_reply`).html(""); | $(`._feedback_reply`).html(""); | ||||
$(`._feedback_reply[for="${fid}"]`).html(replyPannel); | $(`._feedback_reply[for="${fid}"]`).html(replyPannel); | ||||
@@ -253,7 +253,7 @@ | |||||
$.get("{dede:global.cfg_memberurl/}/api.php?format=json", function(result) { | $.get("{dede:global.cfg_memberurl/}/api.php?format=json", function(result) { | ||||
if (result.code !== 200) { | if (result.code !== 200) { | ||||
$(`._feedback_reply`).html(""); | $(`._feedback_reply`).html(""); | ||||
ShowAlert(`._feedback_reply[for="${fid}"]`, '回复需要登录会员中心,您可以<a href="{dede:global.cfg_memberurl/}/login.php">点击登录</a>后再来回复', 'warning', 5000); | |||||
ShowAlert(`._feedback_reply[for="${fid}"]`, '回复需要登录会员中心,您可以<a href="{dede:global.cfg_memberurl/}/login.php">点击登录</a>后再来回复', 'warning', 3000); | |||||
} else { | } else { | ||||
$(`._feedback_reply`).html(""); | $(`._feedback_reply`).html(""); | ||||
$(`._feedback_reply[for="${fid}"]`).html(replyPannel); | $(`._feedback_reply[for="${fid}"]`).html(replyPannel); | ||||
@@ -187,7 +187,7 @@ | |||||
$.get("{dede:global.cfg_memberurl/}/api.php?format=json", function(result) { | $.get("{dede:global.cfg_memberurl/}/api.php?format=json", function(result) { | ||||
if (result.code !== 200) { | if (result.code !== 200) { | ||||
$(`._feedback_reply`).html(""); | $(`._feedback_reply`).html(""); | ||||
ShowAlert(`._feedback_reply[for="${fid}"]`, '回复需要登录会员中心,您可以<a href="{dede:global.cfg_memberurl/}/login.php">点击登录</a>后再来回复', 'warning', 5000); | |||||
ShowAlert(`._feedback_reply[for="${fid}"]`, '回复需要登录会员中心,您可以<a href="{dede:global.cfg_memberurl/}/login.php">点击登录</a>后再来回复', 'warning', 3000); | |||||
} else { | } else { | ||||
$(`._feedback_reply`).html(""); | $(`._feedback_reply`).html(""); | ||||
$(`._feedback_reply[for="${fid}"]`).html(replyPannel); | $(`._feedback_reply[for="${fid}"]`).html(replyPannel); | ||||
@@ -195,7 +195,7 @@ | |||||
$.get("{dede:global.cfg_memberurl/}/api.php?format=json", function(result) { | $.get("{dede:global.cfg_memberurl/}/api.php?format=json", function(result) { | ||||
if (result.code !== 200) { | if (result.code !== 200) { | ||||
$(`._feedback_reply`).html(""); | $(`._feedback_reply`).html(""); | ||||
ShowAlert(`._feedback_reply[for="${fid}"]`, '回复需要登录会员中心,您可以<a href="{dede:global.cfg_memberurl/}/login.php">点击登录</a>后再来回复', 'warning', 5000); | |||||
ShowAlert(`._feedback_reply[for="${fid}"]`, '回复需要登录会员中心,您可以<a href="{dede:global.cfg_memberurl/}/login.php">点击登录</a>后再来回复', 'warning', 3000); | |||||
} else { | } else { | ||||
$(`._feedback_reply`).html(""); | $(`._feedback_reply`).html(""); | ||||
$(`._feedback_reply[for="${fid}"]`).html(replyPannel); | $(`._feedback_reply[for="${fid}"]`).html(replyPannel); | ||||
@@ -27,7 +27,7 @@ $channelid = isset($channelid) && is_numeric($channelid) ? $channelid : 2; | |||||
$typeid = isset($typeid) && is_numeric($typeid) ? $typeid : 0; | $typeid = isset($typeid) && is_numeric($typeid) ? $typeid : 0; | ||||
$menutype = 'content'; | $menutype = 'content'; | ||||
if ($cfg_ml->IsSendLimited()) { | 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(); | exit(); | ||||
} | } | ||||
if (empty($dopost)) { | if (empty($dopost)) { | ||||
@@ -40,11 +40,11 @@ if (empty($dopost)) { | |||||
//检查会员等级和类型限制 | //检查会员等级和类型限制 | ||||
if ($cInfos['sendrank'] > $cfg_ml->M_Rank) { | if ($cInfos['sendrank'] > $cfg_ml->M_Rank) { | ||||
$row = $dsql->GetOne("SELECT membername FROM `#@__arcrank` WHERE `rank`='".$cInfos['sendrank']."' "); | $row = $dsql->GetOne("SELECT membername FROM `#@__arcrank` WHERE `rank`='".$cInfos['sendrank']."' "); | ||||
ShowMsg("需要".$row['membername']."才能在这个栏目发布文档", "-1", "0", 5000); | |||||
ShowMsg("需要".$row['membername']."才能在这个栏目发布文档", "-1", "0", 3000); | |||||
exit(); | exit(); | ||||
} | } | ||||
if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) { | if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) { | ||||
ShowMsg("需要".$cInfos['usertype']."帐号才能在这个栏目发布文档", "-1", "0", 5000); | |||||
ShowMsg("需要".$cInfos['usertype']."帐号才能在这个栏目发布文档", "-1", "0", 3000); | |||||
exit(); | exit(); | ||||
} | } | ||||
include(DEDEMEMBER."/templets/album_add.htm"); | include(DEDEMEMBER."/templets/album_add.htm"); | ||||
@@ -26,7 +26,7 @@ $channelid = isset($channelid) && is_numeric($channelid) ? $channelid : 2; | |||||
$aid = isset($aid) && is_numeric($aid) ? $aid : 0; | $aid = isset($aid) && is_numeric($aid) ? $aid : 0; | ||||
$menutype = 'content'; | $menutype = 'content'; | ||||
if ($cfg_ml->IsSendLimited()) { | 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(); | exit(); | ||||
} | } | ||||
if (empty($dopost)) { | if (empty($dopost)) { | ||||
@@ -187,7 +187,7 @@ if ($action === 'is_need_check_code') { | |||||
exit; | exit; | ||||
} | } | ||||
$nowtme = time(); | $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_file = $cfg_basedir.$cfg_user_dir."/{$cfg_ml->M_ID}/".$rnd.".".$exts; | ||||
$target_url = $cfg_mediasurl.'/userup'."/{$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."'; "); | $row = $dsql->GetOne("SELECT aid,title,url FROM `#@__uploads` WHERE url LIKE '$target_url' AND mid='".$cfg_ml->M_ID."'; "); | ||||
@@ -20,7 +20,7 @@ $typeid = isset($typeid) && is_numeric($typeid) ? $typeid : 0; | |||||
$mtypesid = isset($mtypesid) && is_numeric($mtypesid) ? $mtypesid : 0; | $mtypesid = isset($mtypesid) && is_numeric($mtypesid) ? $mtypesid : 0; | ||||
$menutype = 'content'; | $menutype = 'content'; | ||||
if ($cfg_ml->IsSendLimited()) { | 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(); | exit(); | ||||
} | } | ||||
if (empty($dopost)) { | if (empty($dopost)) { | ||||
@@ -32,11 +32,11 @@ if (empty($dopost)) { | |||||
//检查会员等级和类型限制 | //检查会员等级和类型限制 | ||||
if ($cInfos['sendrank'] > $cfg_ml->M_Rank) { | if ($cInfos['sendrank'] > $cfg_ml->M_Rank) { | ||||
$row = $dsql->GetOne("Select membername From `#@__arcrank` where `rank`='".$cInfos['sendrank']."' "); | $row = $dsql->GetOne("Select membername From `#@__arcrank` where `rank`='".$cInfos['sendrank']."' "); | ||||
ShowMsg("需要".$row['membername']."才能在这个栏目发布文档", "-1", "0", 5000); | |||||
ShowMsg("需要".$row['membername']."才能在这个栏目发布文档", "-1", "0", 3000); | |||||
exit(); | exit(); | ||||
} | } | ||||
if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) { | if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) { | ||||
ShowMsg("需要".$cInfos['usertype']."帐号才能在这个栏目发布文档", "-1", "0", 5000); | |||||
ShowMsg("需要".$cInfos['usertype']."帐号才能在这个栏目发布文档", "-1", "0", 3000); | |||||
exit(); | exit(); | ||||
} | } | ||||
include(DEDEMEMBER."/templets/archives_add.htm"); | include(DEDEMEMBER."/templets/archives_add.htm"); | ||||
@@ -20,7 +20,7 @@ $typeid = isset($typeid) && is_numeric($typeid) ? $typeid : 0; | |||||
$mtypesid = isset($mtypesid) && is_numeric($mtypesid) ? $mtypesid : 0; | $mtypesid = isset($mtypesid) && is_numeric($mtypesid) ? $mtypesid : 0; | ||||
$menutype = 'content'; | $menutype = 'content'; | ||||
if ($cfg_ml->IsSendLimited()) { | 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(); | exit(); | ||||
} | } | ||||
if (empty($dopost)) { | if (empty($dopost)) { | ||||
@@ -32,11 +32,11 @@ if (empty($dopost)) { | |||||
//检查会员等级和类型限制 | //检查会员等级和类型限制 | ||||
if ($cInfos['sendrank'] > $cfg_ml->M_Rank) { | if ($cInfos['sendrank'] > $cfg_ml->M_Rank) { | ||||
$row = $dsql->GetOne("SELECT membername FROM `#@__arcrank` WHERE `rank`='".$cInfos['sendrank']."' "); | $row = $dsql->GetOne("SELECT membername FROM `#@__arcrank` WHERE `rank`='".$cInfos['sendrank']."' "); | ||||
ShowMsg("需要".$row['membername']."才能在这个栏目发布文档", "-1", "0", 5000); | |||||
ShowMsg("需要".$row['membername']."才能在这个栏目发布文档", "-1", "0", 3000); | |||||
exit(); | exit(); | ||||
} | } | ||||
if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) { | if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) { | ||||
ShowMsg("需要".$cInfos['usertype']."帐号才能在这个栏目发布文档", "-1", "0", 5000); | |||||
ShowMsg("需要".$cInfos['usertype']."帐号才能在这个栏目发布文档", "-1", "0", 3000); | |||||
exit(); | exit(); | ||||
} | } | ||||
include(DEDEMEMBER."/templets/archives_sg_add.htm"); | include(DEDEMEMBER."/templets/archives_sg_add.htm"); | ||||
@@ -72,11 +72,11 @@ if (empty($dopost)) { | |||||
//检查栏目设定的投稿许可权限 | //检查栏目设定的投稿许可权限 | ||||
if ($cInfos['sendrank'] > $cfg_ml->M_Rank) { | if ($cInfos['sendrank'] > $cfg_ml->M_Rank) { | ||||
$row = $dsql->GetOne("Select membername From #@__arcrank where `rank`='".$cInfos['sendrank']."' "); | $row = $dsql->GetOne("Select membername From #@__arcrank where `rank`='".$cInfos['sendrank']."' "); | ||||
ShowMsg("需要".$row['membername']."才能在这个栏目发布文档", "-1", "0", 5000); | |||||
ShowMsg("需要".$row['membername']."才能在这个栏目发布文档", "-1", "0", 3000); | |||||
exit(); | exit(); | ||||
} | } | ||||
if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) { | if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) { | ||||
ShowMsg("需要".$cInfos['usertype']."才能在这个栏目发布文档", "-1", "0", 5000); | |||||
ShowMsg("需要".$cInfos['usertype']."才能在这个栏目发布文档", "-1", "0", 3000); | |||||
exit(); | exit(); | ||||
} | } | ||||
//文档的默认状态 | //文档的默认状态 | ||||
@@ -20,7 +20,7 @@ $typeid = isset($typeid) && is_numeric($typeid) ? $typeid : 0; | |||||
$mtypesid = isset($mtypesid) && is_numeric($mtypesid) ? $mtypesid : 0; | $mtypesid = isset($mtypesid) && is_numeric($mtypesid) ? $mtypesid : 0; | ||||
$menutype = 'content'; | $menutype = 'content'; | ||||
if ($cfg_ml->IsSendLimited()) { | 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(); | exit(); | ||||
} | } | ||||
if (empty($dopost)) { | if (empty($dopost)) { | ||||
@@ -28,11 +28,11 @@ if (empty($dopost)) { | |||||
//检查会员等级和类型限制 | //检查会员等级和类型限制 | ||||
if ($cInfos['sendrank'] > $cfg_ml->M_Rank) { | if ($cInfos['sendrank'] > $cfg_ml->M_Rank) { | ||||
$row = $dsql->GetOne("SELECT membername FROM `#@__arcrank` WHERE `rank`='".$cInfos['sendrank']."' "); | $row = $dsql->GetOne("SELECT membername FROM `#@__arcrank` WHERE `rank`='".$cInfos['sendrank']."' "); | ||||
ShowMsg("需要".$row['membername']."才能在这个栏目发布文档", "-1", "0", 5000); | |||||
ShowMsg("需要".$row['membername']."才能在这个栏目发布文档", "-1", "0", 3000); | |||||
exit(); | exit(); | ||||
} | } | ||||
if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) { | if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) { | ||||
ShowMsg("需要".$cInfos['usertype']."帐号才能在这个栏目发布文档", "-1", "0", 5000); | |||||
ShowMsg("需要".$cInfos['usertype']."帐号才能在这个栏目发布文档", "-1", "0", 3000); | |||||
exit(); | exit(); | ||||
} | } | ||||
include(DEDEMEMBER."/templets/article_add.htm"); | include(DEDEMEMBER."/templets/article_add.htm"); | ||||
@@ -176,7 +176,7 @@ function CheckRank($rank = 0, $money = 0) | |||||
ShowMsg("邮箱地址为空,请设置一个邮箱地址", "edit_baseinfo.php"); | ShowMsg("邮箱地址为空,请设置一个邮箱地址", "edit_baseinfo.php"); | ||||
exit; | exit; | ||||
} | } | ||||
$msg = "<p>您未进行邮件验证,发送验证邮件后请登录邮箱进行确认</p><a href='{$cfg_memberurl}/index_do.php?fmdo=sendMail' class='btn btn-success btn-sm'>发送</a><a href='javascript:history.go(-1)' class='btn btn-outline-success btn-sm'>返回</a>"; | |||||
$msg = "<p>您未进行邮件验证,发送验证邮件后请登录邮箱进行确认</p><a href='{$cfg_memberurl}/index_do.php?fmdo=sendMail' class='btn btn-success btn-sm'>发送</a><a href='javascript:history.go(-1);' class='btn btn-outline-success btn-sm'>返回</a>"; | |||||
ShowMsg($msg, "javascript:;"); | ShowMsg($msg, "javascript:;"); | ||||
exit; | exit; | ||||
} | } | ||||
@@ -34,11 +34,11 @@ if ($cInfos['issend'] != 1 || $cInfos['ispart'] != 0 || $cInfos['channeltype'] | |||||
//检查栏目设定的投稿许可权限 | //检查栏目设定的投稿许可权限 | ||||
if ($cInfos['sendrank'] > $cfg_ml->M_Rank) { | if ($cInfos['sendrank'] > $cfg_ml->M_Rank) { | ||||
$row = $dsql->GetOne("SELECT membername FROM `#@__arcrank` WHERE `rank`='".$cInfos['sendrank']."' "); | $row = $dsql->GetOne("SELECT membername FROM `#@__arcrank` WHERE `rank`='".$cInfos['sendrank']."' "); | ||||
ShowMsg("需要".$row['membername']."才能在这个栏目发布文档", "-1", "0", 5000); | |||||
ShowMsg("需要".$row['membername']."才能在这个栏目发布文档", "-1", "0", 3000); | |||||
exit(); | exit(); | ||||
} | } | ||||
if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) { | if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) { | ||||
ShowMsg("需要".$cInfos['usertype']."才能在这个栏目发布文档", "-1", "0", 5000); | |||||
ShowMsg("需要".$cInfos['usertype']."才能在这个栏目发布文档", "-1", "0", 3000); | |||||
exit(); | exit(); | ||||
} | } | ||||
//文档的默认状态 | //文档的默认状态 | ||||
@@ -67,7 +67,7 @@ $mid = $cfg_ml->M_ID; | |||||
if ($cfg_mb_cktitle == 'Y') { | if ($cfg_mb_cktitle == 'Y') { | ||||
$row = $dsql->GetOne("SELECT * FROM `#@__archives` WHERE title LIKE '$title' "); | $row = $dsql->GetOne("SELECT * FROM `#@__archives` WHERE title LIKE '$title' "); | ||||
if (is_array($row)) { | if (is_array($row)) { | ||||
ShowMsg("请不要发布重复文档", "-1", "0", 5000); | |||||
ShowMsg("请不要发布重复文档", "-1", "0", 3000); | |||||
exit(); | exit(); | ||||
} | } | ||||
} | } |
@@ -326,7 +326,7 @@ function GetCurContent(&$body) | |||||
$itype = '.jpg'; | $itype = '.jpg'; | ||||
} | } | ||||
} | } | ||||
$milliSecondN = dd2char($milliSecond.'-'.mt_rand(1000,8000)); | |||||
$milliSecondN = dd2char($milliSecond.'-'.mt_rand(1000, 9999)); | |||||
$value = trim($value); | $value = trim($value); | ||||
$rndFileName = $imgPath."/".$milliSecondN.'-'.$key.$itype; | $rndFileName = $imgPath."/".$milliSecondN.'-'.$key.$itype; | ||||
$fileurl = $imgUrl."/".$milliSecondN.'-'.$key.$itype; | $fileurl = $imgUrl."/".$milliSecondN.'-'.$key.$itype; | ||||
@@ -84,7 +84,7 @@ function newmail($mid, $userid, $mailto, $type, $send) | |||||
if ($db->ExecuteNoneQuery($sql)) { | if ($db->ExecuteNoneQuery($sql)) { | ||||
if ($send == 'Y') { | if ($send == 'Y') { | ||||
sendmail($mailto, $mailtitle, $mailbody, $headers); | sendmail($mailto, $mailtitle, $mailbody, $headers); | ||||
return ShowMsg('验证码已经发送到原来的邮箱,请注意查收', 'login.php', '', '5000'); | |||||
return ShowMsg('验证码已经发送到原来的邮箱,请注意查收', 'login.php', '', '3000'); | |||||
} else if ($send == 'N') { | } else if ($send == 'N') { | ||||
return ShowMsg('正在前往密码修改', $cfg_basehost.$cfg_memberurl."/resetpassword.php?dopost=getpasswd&id=".$mid."&key=".$randval); | return ShowMsg('正在前往密码修改', $cfg_basehost.$cfg_memberurl."/resetpassword.php?dopost=getpasswd&id=".$mid."&key=".$randval); | ||||
} | } | ||||
@@ -23,7 +23,7 @@ $channelid = isset($channelid) && is_numeric($channelid) ? $channelid : 3; | |||||
$typeid = isset($typeid) && is_numeric($typeid) ? $typeid : 0; | $typeid = isset($typeid) && is_numeric($typeid) ? $typeid : 0; | ||||
$menutype = 'content'; | $menutype = 'content'; | ||||
if ($cfg_ml->IsSendLimited()) { | 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(); | exit(); | ||||
} | } | ||||
if (empty($dopost)) { | if (empty($dopost)) { | ||||
@@ -35,11 +35,11 @@ if (empty($dopost)) { | |||||
//检查会员等级和类型限制 | //检查会员等级和类型限制 | ||||
if ($cInfos['sendrank'] > $cfg_ml->M_Rank) { | if ($cInfos['sendrank'] > $cfg_ml->M_Rank) { | ||||
$row = $dsql->GetOne("SELECT membername FROM `#@__arcrank` where `rank`='".$cInfos['sendrank']."' "); | $row = $dsql->GetOne("SELECT membername FROM `#@__arcrank` where `rank`='".$cInfos['sendrank']."' "); | ||||
ShowMsg("需要".$row['membername']."才能在这个栏目发布文档", "-1", "0", 5000); | |||||
ShowMsg("需要".$row['membername']."才能在这个栏目发布文档", "-1", "0", 3000); | |||||
exit(); | exit(); | ||||
} | } | ||||
if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) { | if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) { | ||||
ShowMsg("需要".$cInfos['usertype']."帐号才能在这个栏目发布文档", "-1", "0", 5000); | |||||
ShowMsg("需要".$cInfos['usertype']."帐号才能在这个栏目发布文档", "-1", "0", 3000); | |||||
exit(); | exit(); | ||||
} | } | ||||
include(DEDEMEMBER."/templets/soft_add.htm"); | include(DEDEMEMBER."/templets/soft_add.htm"); | ||||