惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Microsoft Azure Blog
Microsoft Azure Blog
博客园 - 三生石上(FineUI控件)
WordPress大学
WordPress大学
人人都是产品经理
人人都是产品经理
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 聂微东
Jina AI
Jina AI
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
T
Tailwind CSS Blog
罗磊的独立博客
爱范儿
爱范儿
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Apple Machine Learning Research
Apple Machine Learning Research
博客园 - Franky
阮一峰的网络日志
阮一峰的网络日志
雷峰网
雷峰网
博客园 - 叶小钗
美团技术团队
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
月光博客
月光博客
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
大猫的无限游戏
大猫的无限游戏
The Cloudflare Blog
Last Week in AI
Last Week in AI
S
SegmentFault 最新的问题
博客园 - 【当耐特】
小众软件
小众软件
Hugging Face - Blog
Hugging Face - Blog
量子位
宝玉的分享
宝玉的分享
V
Visual Studio Blog
博客园_首页
IT之家
IT之家
V
V2EX
腾讯CDC
aimingoo的专栏
aimingoo的专栏
博客园 - 司徒正美
Microsoft Security Blog
Microsoft Security Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Blog — PlanetScale
Blog — PlanetScale
I
InfoQ
有赞技术团队
有赞技术团队
J
Java Code Geeks
Recorded Future
Recorded Future
Engineering at Meta
Engineering at Meta
Vercel News
Vercel News
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
H
Help Net Security

博客园 - viii

第一课:什么是Google排名技术 Google PageRank的计算源代码 网络推手离企业营销有多远? 国内外主要搜索引擎登陆地址 Google推广的价值是什么? 搜索引擎优化(SEO)类网站设计 网站建设与搜索引擎优化的不可分性 为什么DIV+CSS有利排名 什么是搜索引擎推广 登录搜索引擎常见问题 搜索引擎优化不是网页标签优化 邮件营销 Google登录与设计 网站排名—域名 实用搜索技巧 SEO中的“白帽” “黑帽” 影响SEO49个网站排名的因素 怎么把从搜索引擎来的用户留下? 网站规划与优化的技巧
pligg乱码的解决办法(9.8)
viii · 2007-09-16 · via 博客园 - viii

找到 libs/html1.php
然后找到这个函数,替换这个函数就可以了

function do_sidebar($var_smarty) {
// show the categories in the sidebar
global $db, $dblang, $globals, $the_cats;//, $navwhere;

// fix for 'undefined index' errors
// if(!isset($navwhere['text4'])){$navwhere['text4'] = '';}else{$navwhere['text4'] = htmlentities($navwhere['text4']);}
// if(!isset($navwhere['text3'])){$navwhere['text3'] = '';}else{$navwhere['text3'] = htmlentities($navwhere['text3']);}
// if(!isset($navwhere['text2'])){$navwhere['text2'] = '';}else{$navwhere['text2'] = htmlentities($navwhere['text2']);}
// if(!isset($navwhere['text1'])){$navwhere['text1'] = '';}else{$navwhere['text1'] = htmlentities($navwhere['text1']);}
// if(!isset($navwhere['link4'])){$navwhere['link4'] = '';}
// if(!isset($navwhere['link3'])){$navwhere['link3'] = '';}
// if(!isset($navwhere['link2'])){$navwhere['link2'] = '';}
// if(!isset($navwhere['link1'])){$navwhere['link1'] = '';}
// $var_smarty->assign('navbar_where', $navwhere);

// $var_smarty->assign('body_args', '');
// fix for 'undefined index' errors

$_caching = $var_smarty->cache; // get the current cache settings
$var_smarty->cache = true; // cache has to be on otherwise is_cached will always be false
$var_smarty->cache_lifetime = -1; // lifetime has to be set to something otherwise is_cached will always be false
$thetpl = $var_smarty->get_template_vars('the_template_sidebar_modules') . '/categories.tpl';

// check to see if the category sidebar module is already cached
// if it is, use it

if(isset($_REQUEST['category'])){
$thecat = sanitize($_REQUEST['category'], 3);
}else{
$thecat = '';
}
if ($var_smarty->is_cached($thetpl, 'sidebar|category|'.$thecat)) {
$var_smarty->assign('cat_array', 'x'); // this is needed. sidebar.tpl won't include the category module if cat_array doesnt have some data
}else{
if(isset($_REQUEST['category'])){$thecat = $db->get_var("SELECT category_name FROM " . table_categories . " WHERE `category_safe_name` = '".urlencode(sanitize($_REQUEST['category'], 1))."';");}

if(!empty($_REQUEST['id'])) {
$doing_story=true;
} else {
$doing_story=false;
}

$var_smarty->assign('UrlMethod', urlmethod);

foreach($the_cats as $cat){
if($cat->category_id == $thecat && $cat->category_lang == $dblang && $cat->category_parent == 0)
{
$globals['category_id'] = $cat->category_id;
$globals['category_name'] = $cat->category_name;
}
}

$pos = strrpos($_SERVER["SCRIPT_NAME"], "/");
$script_name = substr($_SERVER["SCRIPT_NAME"], $pos + 1, 100);
$script_name = str_replace(".php", "", $script_name);

include_once('dbtree.php');
$array = tree_to_array(0, table_categories);
$var_smarty->assign('lastspacer', 0);
$var_smarty->assign('cat_array', $array);

// use the 'totals' table now
$published_count = get_story_count('published');

$var_smarty->assign('published_count', $published_count);
$categories = mysql_query("select *, count(*) as count from " . table_links . ", " . table_categories . " where category_lang='$dblang' and category_id=link_category group by link_category ORDER BY category_name ASC");

$categorylist = array();
while ($rows = mysql_fetch_array ($categories, MYSQL_ASSOC)) array_push ($categorylist, $rows);
$var_smarty->assign('categorylist', $categorylist);
$var_smarty->assign('category_url', getmyurl('maincategory'));

}

$var_smarty->cache = $_caching; // set cache back to original value

check_actions('do_sidebar');

return $var_smarty;
}
                                                                                                                                       ——微创营销