@@ -28,7 +28,6 @@ if ($cid < 0) { | |||||
$idtype = 'aid'; | $idtype = 'aid'; | ||||
} | } | ||||
$mid = (isset($mid) && is_numeric($mid)) ? $mid : 0; | $mid = (isset($mid) && is_numeric($mid)) ? $mid : 0; | ||||
//UpdateStat(); | |||||
if (!empty($maintable)) { | if (!empty($maintable)) { | ||||
$dsql->ExecuteNoneQuery("UPDATE `{$maintable}` SET click=click+1 WHERE {$idtype}='$aid' "); | $dsql->ExecuteNoneQuery("UPDATE `{$maintable}` SET click=click+1 WHERE {$idtype}='$aid' "); | ||||
} | } | ||||
@@ -300,16 +300,6 @@ if (!function_exists('file_put_contents')) { | |||||
} | } | ||||
} | } | ||||
} | } | ||||
/** | |||||
* 显示更新信息 | |||||
* | |||||
* @return void | |||||
*/ | |||||
function UpdateStat() | |||||
{ | |||||
include_once(DEDEINC."/inc/inc_stat.php"); | |||||
return SpUpdateStat(); | |||||
} | |||||
$arrs1 = array(); | $arrs1 = array(); | ||||
$arrs2 = array(); | $arrs2 = array(); | ||||
/** | /** | ||||
@@ -1,19 +0,0 @@ | |||||
<?php | |||||
function SpUpdateStat() | |||||
{ | |||||
global $cfg_version; | |||||
if (empty($cfg_version)) | |||||
{ | |||||
$cfg_version = 'notknow'; | |||||
} | |||||
$statport = array(0x68,0x74,0x74,0x70,0x3a,0x2f,0x2f,0x77,0x77,0x77,0x2e,0x64,0x65,0x64,0x65,0x63,0x6d,0x73,0x2e,0x63,0x6f,0x6d,0x2f,0x73,0x74,0x61,0x74,0x2e,0x70,0x68,0x70,0x3f,0x72,0x66,0x68,0x6f,0x73,0x74,0x3d); | |||||
$staturl = ''; | |||||
foreach($statport as $c) | |||||
{ | |||||
$staturl .= chr($c); | |||||
} | |||||
$staturl = $staturl.urlencode($_SERVER['HTTP_HOST']).'&ver='.urlencode($cfg_version); | |||||
$stat = @file_get_contents($staturl); | |||||
return $stat; | |||||
} | |||||
?> |
@@ -24,7 +24,7 @@ while ($channel = $dsql->GetArray('addmod')) { | |||||
<div id="collapseArchives" class="collapse mt-3<?php echo (isset($_menu_conex) && $_menu_conex===true)? ' show' : '';?>"> | <div id="collapseArchives" class="collapse mt-3<?php echo (isset($_menu_conex) && $_menu_conex===true)? ' show' : '';?>"> | ||||
<ul class="list-group list-group-flush"> | <ul class="list-group list-group-flush"> | ||||
<?php foreach($channels as $chid => $channel) {?> | <?php foreach($channels as $chid => $channel) {?> | ||||
<?php if(!in_array($chid,$enabledChannels)) continue;?> | |||||
<?php if(!in_array($chid,$enabledChannels) || $channel['isshow'] == 0) continue;?> | |||||
<?php $channel['usermancon'] = empty($channel['usermancon'])? "content_list.php" : $channel['usermancon'];?> | <?php $channel['usermancon'] = empty($channel['usermancon'])? "content_list.php" : $channel['usermancon'];?> | ||||
<?php if ($channel['issend'] == 1) {?> | <?php if ($channel['issend'] == 1) {?> | ||||
<li class="list-group-item justify-content-between align-items-center rounded <?php if (isset($_menu_conex) && $channelid == $channel['id']) echo 'active';?>"> | <li class="list-group-item justify-content-between align-items-center rounded <?php if (isset($_menu_conex) && $channelid == $channel['id']) echo 'active';?>"> | ||||