function display_my_favorite() { ?> <div class="b1"> <?php $select = 0; if (bbs_load_favboard($select) != -1 && ($boards = bbs_fav_boards($select, 1))) { $brd_name = $boards["NAME"]; // 英文名 $brd_desc = $boards["DESC"]; // 中文描述 $brd_flag = $boards["FLAG"]; $brd_bid = $boards["BID"]; //版 ID 或者 fav dir 的索引值 $rows = sizeof($brd_name); for ($j = 0; $j < $rows; $j++) { if ($brd_bid[$j] == -1) { //空收藏目录 echo "-空目录-"; } else { if ($brd_flag[$j] == -1) { ?> <div class="fi"> <a href="javascript:submenu(1,<?php echo $brd_bid[$j]; ?> ,0,0,0)" target="_self"> <img id="submenuimg_fav_<?php echo $brd_bid[$j]; ?> " src="images/close.gif" class="pm" alt="+" ></a><a href="bbsfav.php?select=<?php echo $brd_bid[$j]; ?> &up=-1"><script type="text/javascript">putImage('kfolder1.gif','class="s16x16"');</script><?php echo $brd_desc[$j]; ?> </a></div> <div id="submenu_fav_<?php echo $brd_bid[$j]; ?> " class="lineback"></div> <?php } else { $brd_link = "bbsdoc.php?board=" . urlencode($brd_name[$j]); if ($j != $rows - 1) { echo "<div class='lb'><div class='mi'><a href='" . $brd_link . "'>" . $brd_desc[$j] . "</a></div></div>"; } else { echo "<div class='lmi'><a href='" . $brd_link . "'>" . $brd_desc[$j] . "</a></div>"; } } } } } ?> </div> <?php }
<?php require_once "www2-funcs.php"; login_init(); if (isset($_GET["fav"])) { $boardList = FALSE; $select = intval($_GET["select"]); if (bbs_load_favboard($select) == -1) { exit; } $subMenu = "submenu_fav_" . $select; $boards = bbs_fav_boards($select, 1); } else { $boardList = TRUE; $group = intval($_GET["group"]); $group2 = intval($_GET["group2"]); $yank = intval($_GET["yank"]); if ($yank) { $yank = 1; } $subMenu = "submenu_brd_" . $group . "_" . $group2; if ($group < 0 || $group >= BBS_SECNUM) { exit; } $boards = bbs_getboards(constant("BBS_SECCODE" . $group), $group2, $yank | 2); } $brd_name = $boards["NAME"]; // с╒ндцШ $brd_desc = $boards["DESC"]; // жпндцХйЖ $brd_flag = $boards["FLAG"];
function atomic_mainpage() { global $currentuser; atomic_header(); if (strcmp($currentuser["userid"], "guest")) { $html = "<p>欢迎 " . $currentuser["userid"] . ". <a href='?act=logout'>注销</a></p>"; $select = 0; if (bbs_load_favboard($select) != -1) { $boards = bbs_fav_boards($select, 1); if ($boards) { $html .= "<p>顶层收藏夹: "; $brd_name = $boards["NAME"]; $brd_flag = $boards["FLAG"]; $brd_bid = $boards["BID"]; $rows = sizeof($brd_name); for ($i = 0; $i < $rows; $i++) { if ($brd_bid[$i] == -1) { continue; } if ($brd_flag[$i] == -1) { continue; } if ($brd_flag[$i] & BBS_BOARD_GROUP) { continue; } $html .= '<a href="?act=board&board=' . $brd_name[$i] . '">' . $brd_name[$i] . '</a> '; } $html .= '</p>'; } } $oldtotal = 0; $oldunread = 0; if (!bbs_getmailnum($currentuser["userid"], $total, $unread, $oldtotal, $oldunread)) { $unread = $total = 0; } $html .= "<p><a href='?act=mail'>信箱</a>: {$total} 封, 新信: {$unread} 封. <a href='?act=mailpost'>写信</a></p>"; echo $html; } else { echo <<<END <form action="bbslogin.php?mainurl=atomic.php" method="post"> 用户名: <input type="text" name="id" /> 密码: <input type="password" name="passwd" maxlength="39" /> <input type="submit" value="登录"/> </form> END; } atomic_show_boardjump(); if (is_null(UTF8SP)) { $url = $_SERVER['REQUEST_URI']; if (strstr($url, 'utf8=')) { $url = substr($url, 0, strlen($url) - 1); } else { if (!strstr($url, '?')) { $url .= '?utf8='; } } echo "UTF8: <a href='" . $url . (UTF8 ? "0" : "1") . "'>" . (UTF8 ? "ON" : "OFF") . "</a>. "; } else { echo "UTF8: " . (UTF8 ? "ON" : "OFF") . ". "; } echo "文章显示长度限制: " . MAXCHAR . "."; atomic_footer(); }
bbs_del_favboarddir($select, $delete_s); } if (isset($_GET["dname"])) { $add_dname = trim($_GET["dname"]); if ($add_dname) { bbs_add_favboarddir($add_dname); } } if (isset($_GET["bname"])) { $add_bname = trim($_GET["bname"]); if ($add_bname) { $sssss = bbs_add_favboard($add_bname); } } } $boards = bbs_fav_boards($select, $XX ? 2 : 1, 1); $list_father = bbs_get_father($select); if ($boards === FALSE) { html_error_quit("读取版列表失败"); } $fix = $XX ? "&x" : ""; ?> <script type="text/javascript"><!-- var o = new brdWriter(<?php echo $list_father; ?> , <?php echo $select; ?> , '<?php echo $fix;