@@ -60,8 +60,8 @@ if (isset($dopost) && $dopost == "delete") { | |||||
//流量列表数 | //流量列表数 | ||||
$dlist->pagesize = 30; | $dlist->pagesize = 30; | ||||
$tplfile = DEDEADMIN."/templets/statistics_list.htm"; | $tplfile = DEDEADMIN."/templets/statistics_list.htm"; | ||||
$dlist->SetParameter("ip",$ip); | |||||
$dlist->SetParameter("url_type",$url_type); | |||||
$dlist->SetParameter("ip", $ip); | |||||
$dlist->SetParameter("url_type", $url_type); | |||||
$dlist->SetTemplate($tplfile); | $dlist->SetTemplate($tplfile); | ||||
$dlist->SetSource($sql); | $dlist->SetSource($sql); | ||||
$dlist->Display(); | $dlist->Display(); | ||||
@@ -17,7 +17,7 @@ if (empty($action)) { | |||||
$tag = HtmlReplace($tag, -1); | $tag = HtmlReplace($tag, -1); | ||||
$orderby = empty($orderby) ? 'id' : preg_replace("#[^a-z]#i", '', $orderby); | $orderby = empty($orderby) ? 'id' : preg_replace("#[^a-z]#i", '', $orderby); | ||||
$orderway = isset($orderway) && $orderway == 'asc' ? 'asc' : 'desc'; | $orderway = isset($orderway) && $orderway == 'asc' ? 'asc' : 'desc'; | ||||
if (!empty($tag)) $where = " WHERE tag like '%$tag%' OR id = '$tag'"; | |||||
if (!empty($tag)) $where = " WHERE tag like '%$tag%' OR id='$tag'"; | |||||
else $where = ''; | else $where = ''; | ||||
$neworderway = ($orderway == 'desc' ? 'asc' : 'desc'); | $neworderway = ($orderway == 'desc' ? 'asc' : 'desc'); | ||||
$query = "SELECT T.*,TI.* FROM `#@__tagindex` T LEFT JOIN `#@__tagindex_infos` TI ON TI.tagid=T.id $where ORDER BY $orderby $orderway"; | $query = "SELECT T.*,TI.* FROM `#@__tagindex` T LEFT JOIN `#@__tagindex_infos` TI ON TI.tagid=T.id $where ORDER BY $orderby $orderway"; | ||||
@@ -1,5 +1,5 @@ | |||||
<?php | <?php | ||||
if (!defined('DEDEINC')) exit ('dedebiz'); | |||||
if (!defined('DEDEINC')) exit('dedebiz'); | |||||
/** | /** | ||||
* 文档列表 | * 文档列表 | ||||
* | * | ||||
@@ -1,5 +1,5 @@ | |||||
<?php | <?php | ||||
if (!defined('DEDEINC')) exit ('dedebiz'); | |||||
if (!defined('DEDEINC')) exit('dedebiz'); | |||||
/** | /** | ||||
* 自定义模型列表 | * 自定义模型列表 | ||||
* | * | ||||
@@ -8,7 +8,7 @@ if (!defined('DEDEINC')) exit('dedebiz'); | |||||
* This source file is subject to the MIT license that is bundled | * This source file is subject to the MIT license that is bundled | ||||
* with this source code in the file LICENSE. | * with this source code in the file LICENSE. | ||||
*/ | */ | ||||
require_once(DEDEINC . "/libraries/fixtures/abstractprovider.php"); | |||||
require_once(DEDEINC."/libraries/fixtures/abstractprovider.php"); | |||||
class Crawlers extends AbstractProvider | class Crawlers extends AbstractProvider | ||||
{ | { | ||||
@@ -71,7 +71,6 @@ function ch_img($fvalue, &$arcTag, &$refObj, $fname = '') | |||||
$revalue = ''; | $revalue = ''; | ||||
$GLOBAL['photoid'] = 0; | $GLOBAL['photoid'] = 0; | ||||
foreach ($dtp->CTags as $ctag) { | foreach ($dtp->CTags as $ctag) { | ||||
if ($ctag->GetName() == "img") { | if ($ctag->GetName() == "img") { | ||||
$fields = $ctag->CAttribute->Items; | $fields = $ctag->CAttribute->Items; | ||||
$fields['text'] = str_replace("'", "", $ctag->GetAtt('text')); | $fields['text'] = str_replace("'", "", $ctag->GetAtt('text')); | ||||
@@ -40,7 +40,6 @@ function lib_infoguide(&$ctag, &$refObj) | |||||
} | } | ||||
} | } | ||||
$innerText = $dtp->GetResult(); | $innerText = $dtp->GetResult(); | ||||
$ctp = new DedeTagParse(); | $ctp = new DedeTagParse(); | ||||
$ctp->SetNameSpace('field', '[', ']'); | $ctp->SetNameSpace('field', '[', ']'); | ||||
$ctp->LoadSource($innerText); | $ctp->LoadSource($innerText); | ||||