Browse Source

功能优化

tags/6.2.6
tianya 1 year ago
parent
commit
4e72c1663e
4 changed files with 1 additions and 31 deletions
  1. +0
    -1
      src/apps/count.php
  2. +0
    -10
      src/system/common.func.php
  3. +0
    -19
      src/system/inc/inc_stat.php
  4. +1
    -1
      src/user/templets/menu.htm

+ 0
- 1
src/apps/count.php View File

@@ -28,7 +28,6 @@ if ($cid < 0) {
$idtype = 'aid';
}
$mid = (isset($mid) && is_numeric($mid)) ? $mid : 0;
//UpdateStat();
if (!empty($maintable)) {
$dsql->ExecuteNoneQuery("UPDATE `{$maintable}` SET click=click+1 WHERE {$idtype}='$aid' ");
}


+ 0
- 10
src/system/common.func.php View File

@@ -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();
$arrs2 = array();
/**


+ 0
- 19
src/system/inc/inc_stat.php View File

@@ -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;
}
?>

+ 1
- 1
src/user/templets/menu.htm View File

@@ -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' : '';?>">
<ul class="list-group list-group-flush">
<?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 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';?>">


Loading…
Cancel
Save