@@ -51,7 +51,7 @@ else if ($dopost == 'savequick') { | |||||
$templist = "{style}/list_{$nid}.htm"; | $templist = "{style}/list_{$nid}.htm"; | ||||
$temparticle = "{style}/article_{$nid}.htm"; | $temparticle = "{style}/article_{$nid}.htm"; | ||||
$queryTemplate = "INSERT INTO `#@__arctype`(reid,topid,sortrank,typename,namegk,enname,ennamegk,bigpic,litimg,typedir,isdefault,defaultname,issend,channeltype,tempindex,templist,temparticle,modname,namerule,namerule2,ispart,corank,description,keywords,seotitle,moresite,siteurl,sitepath,ishidden,`cross`,`crossid`,`content`,`smalltypes`) | $queryTemplate = "INSERT INTO `#@__arctype`(reid,topid,sortrank,typename,namegk,enname,ennamegk,bigpic,litimg,typedir,isdefault,defaultname,issend,channeltype,tempindex,templist,temparticle,modname,namerule,namerule2,ispart,corank,description,keywords,seotitle,moresite,siteurl,sitepath,ishidden,`cross`,`crossid`,`content`,`smalltypes`) | ||||
VALUES('~reid~','~topid~','~rank~','~typename~','~namegk~','~enname~','~ennamegk~','~bigpic~','~litimg~','~typedir~','$isdefault','$defaultname','$issend','$channeltype','$tempindex','$templist','$temparticle','default','$namerule','$namerule2','0','0','','','~typename~','0','','','0','0','0','','')"; | |||||
VALUES('~reid~','~topid~','~rank~','~typename~','','','','','','~typedir~','$isdefault','$defaultname','$issend','$channeltype','$tempindex','$templist','$temparticle','default','$namerule','$namerule2','0','0','','','~typename~','0','','','0','0','0','','')"; | |||||
if (empty($savetype)) { | if (empty($savetype)) { | ||||
foreach ($_POST as $k => $v) { | foreach ($_POST as $k => $v) { | ||||
if (preg_match("#^posttype#", $k)) { | if (preg_match("#^posttype#", $k)) { | ||||
@@ -19,8 +19,8 @@ if (empty($imgstick)) { | |||||
$noeditor = isset($noeditor) ? $noeditor : ''; | $noeditor = isset($noeditor) ? $noeditor : ''; | ||||
$activepath = str_replace('.', '', $activepath); | $activepath = str_replace('.', '', $activepath); | ||||
$activepath = preg_replace("#\/{1,}#", '/', $activepath); | $activepath = preg_replace("#\/{1,}#", '/', $activepath); | ||||
if (strlen($activepath) < strlen($cfg_medias_dir)) { | |||||
$activepath = $cfg_medias_dir; | |||||
if (strlen($activepath) < strlen($cfg_image_dir)) { | |||||
$activepath = $cfg_image_dir; | |||||
} | } | ||||
$inpath = $cfg_basedir.$activepath; | $inpath = $cfg_basedir.$activepath; | ||||
$activeurl = '..'.$activepath; | $activeurl = '..'.$activepath; | ||||
@@ -10,7 +10,6 @@ | |||||
*/ | */ | ||||
require_once(DEDEINC.'/libraries/dedehttpdown.class.php'); | require_once(DEDEINC.'/libraries/dedehttpdown.class.php'); | ||||
require_once(DEDEINC.'/image.func.php'); | require_once(DEDEINC.'/image.func.php'); | ||||
require_once(DEDEINC.'/archives.func.php'); | |||||
require_once(DEDEINC.'/archive/partview.class.php'); | require_once(DEDEINC.'/archive/partview.class.php'); | ||||
$backurl = !empty($_COOKIE['ENV_GOBACK_URL']) ? $_COOKIE['ENV_GOBACK_URL'] : ''; | $backurl = !empty($_COOKIE['ENV_GOBACK_URL']) ? $_COOKIE['ENV_GOBACK_URL'] : ''; | ||||
$backurl = preg_match("#content_#", $backurl) ? "<a href='$backurl' class='btn btn-success btn-sm'>记忆的列表页</a> " : ''; | $backurl = preg_match("#content_#", $backurl) ? "<a href='$backurl' class='btn btn-success btn-sm'>记忆的列表页</a> " : ''; | ||||
@@ -1,6 +0,0 @@ | |||||
<?php | |||||
if (!defined('DEDEINC')) exit('dedebiz'); | |||||
//为了兼容旧版本文件,这里将函数直接封装到archive小助手中 | |||||
//所以这里仅做一个文件引入映射,今后的开发,如果遇到此类函数 | |||||
//在开发过程中直接使用helper('archive');即可 | |||||
helper('archive'); |
@@ -87,11 +87,11 @@ if (!function_exists('GetChannelTable')) { | |||||
{ | { | ||||
global $dsql; | global $dsql; | ||||
if ($formtype == 'archive') { | if ($formtype == 'archive') { | ||||
$query = "SELECT ch.maintable, ch.addtable FROM #@__arctiny tin LEFT JOIN #@__channeltype ch ON ch.id=tin.channel WHERE tin.id='$id'"; | |||||
$query = "SELECT ch.maintable, ch.addtable FROM `#@__arctiny` tin LEFT JOIN `#@__channeltype` ch ON ch.id=tin.channel WHERE tin.id='$id'"; | |||||
} else if ($formtype == 'typeid') { | } else if ($formtype == 'typeid') { | ||||
$query = "SELECT ch.maintable, ch.addtable FROM #@__arctype act LEFT JOIN #@__channeltype ch ON ch.id=act.channeltype WHERE act.id='$id'"; | |||||
$query = "SELECT ch.maintable, ch.addtable FROM `#@__arctype` act LEFT JOIN `#@__channeltype` ch ON ch.id=act.channeltype WHERE act.id='$id'"; | |||||
} else { | } else { | ||||
$query = "SELECT maintable, addtable FROM #@__channeltype WHERE id='$id'"; | |||||
$query = "SELECT maintable, addtable FROM `#@__channeltype` WHERE id='$id'"; | |||||
} | } | ||||
$row = $dsql->GetOne($query); | $row = $dsql->GetOne($query); | ||||
return $row; | return $row; | ||||
@@ -10,7 +10,6 @@ | |||||
*/ | */ | ||||
if (!defined('DEDEMEMBER')) exit('dedebiz'); | if (!defined('DEDEMEMBER')) exit('dedebiz'); | ||||
require_once(DEDEINC.'/image.func.php'); | require_once(DEDEINC.'/image.func.php'); | ||||
require_once(DEDEINC.'/archives.func.php'); | |||||
require_once(DEDEINC."/userlogin.class.php"); | require_once(DEDEINC."/userlogin.class.php"); | ||||
//检查用户是否被禁言 | //检查用户是否被禁言 | ||||
CheckNotAllow(); | CheckNotAllow(); | ||||