コード例 #1
0
}
if ($_COOKIE['forcelayout']) {
    $mobileswitch .= '<a href="?forcelayout=0" rel="nofollow">Auto view</a>';
} else {
    if ($mobileLayout) {
        $mobileswitch .= '<a href="?forcelayout=-1" rel="nofollow">Force normal view</a>';
    } else {
        $mobileswitch .= '<a href="?forcelayout=1" rel="nofollow">Force mobile view [BETA]</a>';
    }
}
//=======================
// Notification bars
$notifications = getNotifications();
//=======================
// Misc stuff
$layout_time = formatdatenow();
$layout_onlineusers = getOnlineUsersText();
$layout_birthdays = getBirthdaysText();
$layout_views = '<span id="viewCount">' . number_format($misc['views']) . '</span> ' . __('views');
$layout_title = htmlspecialchars(Settings::get('boardname'));
if ($title != '') {
    $layout_title .= ' &raquo; ' . $title;
}
//=======================
// Board logo and theme
$layout_logopic = 'img/logo.png';
if (!file_exists($layout_logopic)) {
    $layout_logopic = 'img/logo.jpg';
}
$layout_logopic = resourceLink($layout_logopic);
$favicon = resourceLink('img/favicon.ico');
コード例 #2
0
ファイル: printthread.php プロジェクト: knytrune/ABXD
    if ($forum['minpower'] > $pl) {
        die(__("You are not allowed to browse this forum."));
    }
} else {
    die(__("Unknown forum ID."));
}
$rCategories = Query("select * from {categories} where id={0}", $forum['catid']);
if (NumRows($rCategories)) {
    $category = Fetch($rCategories);
} else {
    die(__("Unknown category ID."));
}
$tags = ParseThreadTags($thread['title']);
$thread['title'] = strip_tags($thread['title']);
$title = $thread['title'];
write("\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en\" xml:lang=\"en\">\n<head>\n\t<meta http-equiv=\"Content-Type\" content=\"text/html; CHARSET=utf-8\" />\n\t<title>{0} - {2}</title>\n\t<link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"img/favicon.ico\" />\n</head>\n<body>\n\t<h1>{0}</h1>\n\t<p>\n\t\t{1}\n\t</p>\n", $title, formatdatenow(), htmlspecialchars(Settings::get("boardname")));
if ($thread['poll']) {
    $rPoll = Query("select * from {poll} where id={0}", $thread['poll']);
    if (NumRows($rPoll)) {
        $poll = Fetch($rPoll);
        $rCheck = Query("select * from {pollvotes} where poll={0} and user={1}", $thread['poll'], $loguserid);
        if (NumRows($rCheck)) {
            while ($check = Fetch($rCheck)) {
                $pc[$check['choice']] = "&#x2714; ";
            }
        }
        $totalVotes = FetchResult("select count(*) from {pollvotes} where poll={0}", $thread['poll']);
        $rOptions = Query("select * from {poll_choices} where poll={0}", $thread['poll']);
        $pops = 0;
        $options = array();
        $voters = array();