示例#1
0
文件: pcmain.php 项目: bianle/www2
function pcmain_blog_new_user()
{
    global $pcconfig, $link;
    $newUsers = getNewUsers($link, _PCMAIN_USERS_NUM_);
    ?>
<ul>
<?php 
    foreach ($newUsers as $newUser) {
        echo "<li><a href=\"index.php?id=" . $newUser["username"] . "\"><span title=\"" . html_format($newUser["description"]) . "\">" . html_format($newUser["corpusname"]) . "</span></a>&nbsp;<a href=\"/bbsqry.php?userid=" . $newUser["username"] . "\"><font class=\"low\">" . $newUser["username"] . "</font></a></li>";
    }
    ?>
				
</ul>
<?php 
}
示例#2
0
文件: opml.php 项目: bianle/www2
    ?>
" /> 
<?php 
}
//10min更新一次
if (pc_update_cache_header()) {
    return;
}
$type = 0;
@($type = intval($_GET["t"]));
$link = pc_db_connect();
if ($type == 3) {
    $blogs = getScoreTopUsers($link, 100);
    $opmlTitle = $pcconfig["BBSNAME"] . "BLOG热门用户组";
} elseif ($type == 2) {
    $blogs = getNewUsers($link, 100);
    $opmlTitle = $pcconfig["BBSNAME"] . "BLOG新用户组";
} elseif ($type == 1) {
    $blogs = getMostVstUsers($link, 100);
    $opmlTitle = $pcconfig["BBSNAME"] . "BLOG热门用户组";
} else {
    $blogs = getLastUpdates($link, 100);
    $opmlTitle = $pcconfig["BBSNAME"] . "BLOG更新用户组";
}
pc_db_close($link);
header("Content-Type: text/xml");
header("Content-Disposition: inline;filename=opml.xml");
pc_opml_init($opmlTitle);
foreach ($blogs as $blog) {
    $title = stripslashes($blog["corpusname"]);
    $htmlUrl = pc_personal_domainname($blog["username"]);