コード例 #1
0
ファイル: viewforum.php プロジェクト: roniwahyu/AKEUDA
}
if ($fdata['forum_post']) {
    $can_post = checkgroup($fdata['forum_post']);
} else {
    $can_post = false;
}
//locale dependent forum buttons
if (is_array($fusion_images)) {
    if ($settings['locale'] != "English") {
        $newpath = "";
        $oldpath = explode("/", $fusion_images['newthread']);
        for ($i = 0; $i < count($oldpath) - 1; $i++) {
            $newpath .= $oldpath[$i] . "/";
        }
        if (is_dir($newpath . $settings['locale'])) {
            redirect_img_dir($newpath, $newpath . $settings['locale'] . "/");
        }
    }
}
//locale dependent forum buttons
if (iSUPERADMIN) {
    define("iMOD", true);
}
if (!defined("iMOD") && iMEMBER && $fdata['forum_moderators']) {
    $mod_groups = explode(".", $fdata['forum_moderators']);
    foreach ($mod_groups as $mod_group) {
        if (!defined("iMOD") && checkgroup($mod_group)) {
            define("iMOD", true);
        }
    }
}
コード例 #2
0
}
require_once INCLUDES . "theme_functions_include.php";
require_once THEMES . "templates/switcher.php";
$colour_switcher = new Switcher("select", "colour", "gif", "blue", "switcherbutton");
if (!$enable_colour_switcher) {
    $colour_switcher->disable();
}
$column_switcher = new Switcher("select", "columns", "gif", "both", "switcherbutton");
if (!$enable_column_switcher) {
    $column_switcher->disable();
}
$fontsize_switcher = new Switcher("increment", "fontsize", "gif", 1, "switcherbutton", "", true, array("step" => 0.1, "max" => 1.5));
if (!$enable_fontsize_switcher) {
    $fontsize_switcher->disable();
}
redirect_img_dir(THEME . "forum", THEME . "forum/" . $colour_switcher->selected);
set_image("pollbar", THEME . "images/panelcap_bg.jpg");
function get_head_tags()
{
    global $colour_switcher, $fontsize_switcher, $column_switcher;
    echo $colour_switcher->makeHeadTag();
    echo $column_switcher->makeHeadTag();
    echo "<style type='text/css'>body{font-size: " . $fontsize_switcher->selected . "em;}</style>";
    echo "<!--[if lte IE 7]><style type='text/css'>.clearfix {display:inline-block;} * html .clearfix{height: 1px;}#subheader ul {display:inline-block;}#subheader ul {display:inline;}#subheader ul li {float:left;} #main-bg, .panelbody{position: relative;}</style><![endif]-->";
}
function render_page($license = false)
{
    global $aidlink, $locale, $settings, $colour_switcher, $fontsize_switcher, $column_switcher, $main_style;
    echo "<div id='main' style='width: " . THEME_WIDTH . "; left: 50%; margin-left: -47.5%;'>\r\n\t\t<div id='header_t'><div id='header_r'><div id='header_l'><div id='corner_tr'><div id='corner_tl'>\r\n\t\t\t<div id='header'>\r\n\t\t\t<div id='header_bg' class='clearfix'>\r\n\t\t\t\t<div id='userbar' class='floatfix'>\r\n\t\t\t\t\t<ul id='anchors' class='flleft'><li><a href='#content'>" . $locale['global_210'] . "</a></li></ul>\r\n\t\t\t\t\t<ul id='links' class='clearfix flright'>\n";
    if (iMEMBER) {
        echo "\t\t\t\t\t\t\t<li><a href='" . BASEDIR . "edit_profile.php'>" . $locale['global_120'] . "</a> </li>\r\n\t\t\t\t\t\t<li> | <a href='" . BASEDIR . "messages.php'>" . $locale['global_121'] . "</a></li>\r\n\t\t\t\t\t\t" . (iADMIN ? "<li> | <a href='" . ADMIN . "index.php" . $aidlink . "' >" . $locale['global_123'] . "</a></li>" : "") . "\r\n\t\t\t\t\t\t<li> | <a href='" . BASEDIR . "setuser.php?logout=yes'>" . $locale['global_124'] . "</a></li>\n";