| @@ -43,7 +43,7 @@ else 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(50, 200) : $cfg_arc_click); | |||||
| if (empty($click)) $click = ($cfg_arc_click == '-1' ? mt_rand(200, 1000) : $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; | ||||
| @@ -54,7 +54,7 @@ else 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(50, 200) : $cfg_arc_click); | |||||
| if (empty($click)) $click = ($cfg_arc_click == '-1' ? mt_rand(200, 1000) : $cfg_arc_click); | |||||
| if ($typeid == 0) { | if ($typeid == 0) { | ||||
| ShowMsg("请指定文档的栏目", "-1"); | ShowMsg("请指定文档的栏目", "-1"); | ||||
| exit(); | exit(); | ||||
| @@ -64,7 +64,7 @@ else if ($dopost == 'save') { | |||||
| exit(); | exit(); | ||||
| } | } | ||||
| if (!CheckChannel($typeid, $channelid)) { | if (!CheckChannel($typeid, $channelid)) { | ||||
| ShowMsg("您所选择的栏目与当前模型不相符,请选择白色的选项", "-1"); | |||||
| ShowMsg("您所选择的栏目与当前模型不相符,请重新选择", "-1"); | |||||
| exit(); | exit(); | ||||
| } | } | ||||
| if (!TestPurview('a_New')) { | if (!TestPurview('a_New')) { | ||||
| @@ -76,15 +76,11 @@ else if ($dopost == 'save') { | |||||
| exit(); | exit(); | ||||
| } | } | ||||
| if (!CheckChannel($typeid, $channelid)) { | if (!CheckChannel($typeid, $channelid)) { | ||||
| ShowMsg("您所选择的栏目与当前模型不相符,请选择白色的选项", "-1"); | |||||
| ShowMsg("您所选择的栏目与当前模型不相符,请重新选择", "-1"); | |||||
| exit(); | exit(); | ||||
| } | } | ||||
| if (!TestPurview('a_Edit')) { | if (!TestPurview('a_Edit')) { | ||||
| if (TestPurview('a_AccEdit')) { | |||||
| CheckCatalog($typeid, "对不起,您没有操作栏目<span class='text-primary'>{$typeid}</span>文档权限"); | |||||
| } else { | |||||
| CheckArcAdmin($id, $cuserLogin->getUserID()); | |||||
| } | |||||
| CheckCatalog($typeid, "对不起,您没有操作栏目<span class='text-primary'>{$typeid}</span>文档权限"); | |||||
| } | } | ||||
| //对保存的文档进行处理 | //对保存的文档进行处理 | ||||
| $pubdate = GetMkTime($pubdate); | $pubdate = GetMkTime($pubdate); | ||||
| @@ -46,13 +46,13 @@ else 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(50, 200) : $cfg_arc_click); | |||||
| if (empty($click)) $click = ($cfg_arc_click == '-1' ? mt_rand(200, 1000) : $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(50, 200) : $cfg_arc_click); | |||||
| if (empty($click)) $click = ($cfg_arc_click == '-1' ? mt_rand(200, 1000) : $cfg_arc_click); | |||||
| if ($typeid == 0) { | if ($typeid == 0) { | ||||
| ShowMsg('请指定文档的栏目', '-1'); | ShowMsg('请指定文档的栏目', '-1'); | ||||
| exit(); | exit(); | ||||
| @@ -62,7 +62,7 @@ else if ($dopost == 'save') { | |||||
| exit(); | exit(); | ||||
| } | } | ||||
| if (!CheckChannel($typeid, $channelid)) { | if (!CheckChannel($typeid, $channelid)) { | ||||
| ShowMsg('您所选择的栏目与当前模型不相符,请选择白色的选项', '-1'); | |||||
| ShowMsg('您所选择的栏目与当前模型不相符,请重新选择', '-1'); | |||||
| exit(); | exit(); | ||||
| } | } | ||||
| if (!TestPurview('a_New')) { | if (!TestPurview('a_New')) { | ||||
| @@ -598,11 +598,7 @@ else if ($dopost == 'quickEditSave') { | |||||
| require_once(DEDEADMIN.'/inc/inc_archives_functions.php'); | require_once(DEDEADMIN.'/inc/inc_archives_functions.php'); | ||||
| //权限检测 | //权限检测 | ||||
| if (!TestPurview('a_Edit')) { | if (!TestPurview('a_Edit')) { | ||||
| if (TestPurview('a_AccEdit')) { | |||||
| CheckCatalog($typeid, "对不起,您没有操作栏目<span class='text-primary'>{$typeid}</span>文档权限"); | |||||
| } else { | |||||
| CheckArcAdmin($aid, $cuserLogin->getUserID()); | |||||
| } | |||||
| CheckCatalog($typeid, "对不起,您没有操作栏目<span class='text-primary'>{$typeid}</span>文档权限"); | |||||
| } | } | ||||
| $title = dede_htmlspecialchars(cn_substrR($title, $cfg_title_maxlen)); | $title = dede_htmlspecialchars(cn_substrR($title, $cfg_title_maxlen)); | ||||
| $shorttitle = cn_substrR($shorttitle, 36); | $shorttitle = cn_substrR($shorttitle, 36); | ||||
| @@ -61,15 +61,11 @@ else if ($dopost == 'save') { | |||||
| exit(); | exit(); | ||||
| } | } | ||||
| if (!CheckChannel($typeid, $channelid)) { | if (!CheckChannel($typeid, $channelid)) { | ||||
| ShowMsg("您所选择的栏目与当前模型不相符,请选择白色的选项", "-1"); | |||||
| ShowMsg("您所选择的栏目与当前模型不相符,请重新选择", "-1"); | |||||
| exit(); | exit(); | ||||
| } | } | ||||
| if (!TestPurview('a_Edit')) { | if (!TestPurview('a_Edit')) { | ||||
| if (TestPurview('a_AccEdit')) { | |||||
| CheckCatalog($typeid, "对不起,您没有操作栏目<span class='text-primary'>{$typeid}</span>文档权限"); | |||||
| } else { | |||||
| CheckArcAdmin($id, $cuserLogin->getUserID()); | |||||
| } | |||||
| CheckCatalog($typeid, "对不起,您没有操作栏目<span class='text-primary'>{$typeid}</span>文档权限"); | |||||
| } | } | ||||
| //对保存的文档进行处理 | //对保存的文档进行处理 | ||||
| $pubdate = GetMkTime($pubdate); | $pubdate = GetMkTime($pubdate); | ||||
| @@ -50,7 +50,7 @@ else if ($dopost == 'save') { | |||||
| exit(); | exit(); | ||||
| } | } | ||||
| if (!CheckChannel($typeid, $channelid)) { | if (!CheckChannel($typeid, $channelid)) { | ||||
| ShowMsg("您所选择的栏目与当前模型不相符,请选择白色的选项", "-1"); | |||||
| ShowMsg("您所选择的栏目与当前模型不相符,请重新选择", "-1"); | |||||
| exit(); | exit(); | ||||
| } | } | ||||
| if (!TestPurview('a_New')) { | if (!TestPurview('a_New')) { | ||||
| @@ -47,15 +47,11 @@ else if ($dopost == 'save') { | |||||
| exit(); | exit(); | ||||
| } | } | ||||
| if (!CheckChannel($typeid, $channelid)) { | if (!CheckChannel($typeid, $channelid)) { | ||||
| ShowMsg("您所选择的栏目与当前模型不相符,请选择白色的选项", "-1"); | |||||
| ShowMsg("您所选择的栏目与当前模型不相符,请重新选择", "-1"); | |||||
| exit(); | exit(); | ||||
| } | } | ||||
| if (!TestPurview('a_Edit')) { | if (!TestPurview('a_Edit')) { | ||||
| if (TestPurview('a_AccEdit')) { | |||||
| CheckCatalog($typeid, "对不起,您没有操作栏目<span class='text-primary'>{$typeid}</span>文档权限"); | |||||
| } else { | |||||
| CheckArcAdmin($id, $cuserLogin->getUserID()); | |||||
| } | |||||
| CheckCatalog($typeid, "对不起,您没有操作栏目<span class='text-primary'>{$typeid}</span>文档权限"); | |||||
| } | } | ||||
| //对保存的文档进行处理 | //对保存的文档进行处理 | ||||
| if (empty($flags)) $flag = ''; | if (empty($flags)) $flag = ''; | ||||
| @@ -60,7 +60,7 @@ else 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(50, 200) : $cfg_arc_click); | |||||
| if (empty($click)) $click = ($cfg_arc_click == '-1' ? mt_rand(200, 1000) : $cfg_arc_click); | |||||
| if (empty($typeid)) { | if (empty($typeid)) { | ||||
| ShowMsg("请指定文档的栏目", "-1"); | ShowMsg("请指定文档的栏目", "-1"); | ||||
| exit(); | exit(); | ||||
| @@ -70,7 +70,7 @@ else if ($dopost == 'save') { | |||||
| exit(); | exit(); | ||||
| } | } | ||||
| if (!CheckChannel($typeid, $channelid)) { | if (!CheckChannel($typeid, $channelid)) { | ||||
| ShowMsg("您所选择的栏目与当前模型不相符,请选择白色的选项", "-1"); | |||||
| ShowMsg("您所选择的栏目与当前模型不相符,请重新选择", "-1"); | |||||
| exit(); | exit(); | ||||
| } | } | ||||
| if (!TestPurview('a_New')) { | if (!TestPurview('a_New')) { | ||||
| @@ -67,15 +67,11 @@ else if ($dopost == 'save') { | |||||
| exit(); | exit(); | ||||
| } | } | ||||
| if (!CheckChannel($typeid, $channelid)) { | if (!CheckChannel($typeid, $channelid)) { | ||||
| ShowMsg("您所选择的栏目与当前模型不相符,请选择白色的选项", "-1"); | |||||
| ShowMsg("您所选择的栏目与当前模型不相符,请重新选择", "-1"); | |||||
| exit(); | exit(); | ||||
| } | } | ||||
| if (!TestPurview('a_Edit')) { | if (!TestPurview('a_Edit')) { | ||||
| if (TestPurview('a_AccEdit')) { | |||||
| CheckCatalog($typeid, "对不起,您没有操作栏目<span class='text-primary'>{$typeid}</span>文档权限"); | |||||
| } else { | |||||
| CheckArcAdmin($id, $cuserLogin->getUserID()); | |||||
| } | |||||
| CheckCatalog($typeid, "对不起,您没有操作栏目<span class='text-primary'>{$typeid}</span>文档权限"); | |||||
| } | } | ||||
| //对保存的文档进行处理 | //对保存的文档进行处理 | ||||
| $pubdate = GetMkTime($pubdate); | $pubdate = GetMkTime($pubdate); | ||||
| @@ -44,7 +44,7 @@ else 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(50, 200) : $cfg_arc_click); | |||||
| if (empty($click)) $click = ($cfg_arc_click == '-1' ? mt_rand(200, 1000) : $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; | ||||
| @@ -59,7 +59,7 @@ else if ($dopost == 'save') { | |||||
| exit(); | exit(); | ||||
| } | } | ||||
| if (!CheckChannel($typeid, $channelid)) { | if (!CheckChannel($typeid, $channelid)) { | ||||
| ShowMsg("您所选择的栏目与当前模型不相符,请选择白色的选项", "-1"); | |||||
| ShowMsg("您所选择的栏目与当前模型不相符,请重新选择", "-1"); | |||||
| exit(); | exit(); | ||||
| } | } | ||||
| if (!TestPurview('a_New')) { | if (!TestPurview('a_New')) { | ||||
| @@ -73,7 +73,7 @@ else 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(50, 200) : $cfg_arc_click); | |||||
| if (empty($click)) $click = ($cfg_arc_click == '-1' ? mt_rand(200, 1000) : $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); | ||||
| @@ -88,15 +88,11 @@ else if ($dopost == 'save') { | |||||
| exit(); | exit(); | ||||
| } | } | ||||
| if (!CheckChannel($typeid, $channelid)) { | if (!CheckChannel($typeid, $channelid)) { | ||||
| ShowMsg("您所选择的栏目与当前模型不相符,请选择白色的选项", "-1"); | |||||
| ShowMsg("您所选择的栏目与当前模型不相符,请重新选择", "-1"); | |||||
| exit(); | exit(); | ||||
| } | } | ||||
| if (!TestPurview('a_Edit')) { | if (!TestPurview('a_Edit')) { | ||||
| if (TestPurview('a_AccEdit')) { | |||||
| CheckCatalog($typeid, "对不起,您没有操作栏目<span class='text-primary'>{$typeid}</span>文档权限"); | |||||
| } else { | |||||
| CheckArcAdmin($id, $cuserLogin->getUserID()); | |||||
| } | |||||
| CheckCatalog($typeid, "对不起,您没有操作栏目<span class='text-primary'>{$typeid}</span>文档权限"); | |||||
| } | } | ||||
| //对保存的文档进行处理 | //对保存的文档进行处理 | ||||
| $pubdate = GetMkTime($pubdate); | $pubdate = GetMkTime($pubdate); | ||||
| @@ -32,7 +32,7 @@ else 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(50, 200) : $cfg_arc_click); | |||||
| if (empty($click)) $click = ($cfg_arc_click == '-1' ? mt_rand(200, 1000) : $cfg_arc_click); | |||||
| $channelid = -1; | $channelid = -1; | ||||
| $money = 0; | $money = 0; | ||||
| if (!isset($tags)) $tags = ''; | if (!isset($tags)) $tags = ''; | ||||
| @@ -346,7 +346,7 @@ | |||||
| ?> | ?> | ||||
| </td> | </td> | ||||
| <td width="90">浏览次数:</td> | <td width="90">浏览次数:</td> | ||||
| <td><input type="text" name="click" value="<?php echo ($cfg_arc_click=='-1' ? mt_rand(50, 200) : $cfg_arc_click);?>" class="admin-input-sm"></td> | |||||
| <td><input type="text" name="click" value="<?php echo ($cfg_arc_click=='-1' ? mt_rand(200, 1000) : $cfg_arc_click);?>" class="admin-input-sm"></td> | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </td> | </td> | ||||
| @@ -437,7 +437,7 @@ body.hidemenu .body-right { | |||||
| background:#e9ecef | background:#e9ecef | ||||
| } | } | ||||
| .option2 { | .option2 { | ||||
| background:#f2f2f2 | |||||
| background:#adb5bd | |||||
| } | } | ||||
| .option3 { | .option3 { | ||||
| background:#fff | background:#fff | ||||