本網站在啟用 JavaScript 的情況下可以運作的更好。
首頁
註冊
登入
DedeBIZ
/
DedeV6
關注
2
收藏
0
複製
0
程式碼
合併請求
0
版本發佈
29
活動
瀏覽代碼
功能优化
tags/6.2.6
tianya
2 年之前
父節點
ecbc985f30
當前提交
4e72c1663e
共有
4 個檔案被更改
,包括
1 行新增
和
31 行删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+0
-1
src/apps/count.php
+0
-10
src/system/common.func.php
+0
-19
src/system/inc/inc_stat.php
+1
-1
src/user/templets/menu.htm
+ 0
- 1
src/apps/count.php
查看文件
@@ -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
查看文件
@@ -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
查看文件
@@ -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
查看文件
@@ -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';?>">
Write
Preview
Loading…
取消
儲存