📄 archives_sg_edit.php
字号:
<?php
require_once(dirname(__FILE__)."/config.php");
CheckRank(0,0);
require_once(DEDEINC."/dedetag.class.php");
require_once(DEDEINC."/customfields.func.php");
require_once(DEDEMEMBER."/inc/inc_catalog_options.php");
require_once(DEDEMEMBER."/inc/inc_archives_functions.php");
$channelid = isset($channelid) && is_numeric($channelid) ? $channelid : 1;
$aid = isset($aid) && is_numeric($aid) ? $aid : 0;
$mtypesid = isset($mtypesid) && is_numeric($mtypesid) ? $mtypesid : 0;
/*-------------
function _ShowForm(){ }
--------------*/
if(empty($dopost))
{
//璇诲彇褰掓。淇℃伅
$arcQuery = "Select ch.*,arc.* From `#@__arctiny` arc
left join `#@__channeltype` ch on ch.id=arc.channel where arc.id='$aid' ";
$cInfos = $dsql->GetOne($arcQuery);
if(!is_array($cInfos))
{
ShowMsg("璇诲彇鏂囨。淇℃伅鍑洪敊!","-1");
exit();
}
$addRow = $dsql->GetOne("Select * From `{$cInfos['addtable']}` where aid='$aid'; ");
if($addRow['mid']!=$cfg_ml->M_ID)
{
ShowMsg("瀵逛笉璧凤紝浣犳病鏉冮檺鎿嶄綔姝ゆ枃妗o紒","-1");
exit();
}
$addRow['id'] = $addRow['aid'];
include(DEDEMEMBER."/templets/archives_sg_edit.htm");
exit();
}
/*------------------------------
function _SaveArticle(){ }
------------------------------*/
else if($dopost=='save')
{
require_once(DEDEINC."/image.func.php");
require_once(DEDEINC."/oxwindow.class.php");
$flag = '';
$typeid = isset($typeid) && is_numeric($typeid) ? $typeid : 0;
$userip = GetIP();
$ckhash = md5($aid.$cfg_cookie_encode);
if($ckhash!=$idhash)
{
ShowMsg('鏍″
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -