exit;
}
$db->db_server = $database[host];
$db->db_user = $database[user];
$db->db_password = $database[pass];
$db->db_db = $database[db];
$db->connect();
unset($database);
///////////////////////////////////
// SESSION VARS / CONFIG-ARRAY
///////////////////////////////////
$config = getconfig();
$tab = gettabs();
$points = getpoints();
$section = strtolower($section);
$sec = getsection("all");
if (!$section) {
    $section = $sec[$config[startsection]];
    $section = $section[title];
}
if (!$section) {
    $section = news;
}
$counttemplateloads = 0;
///////////////////////////////////
// GET CONSTRUCTION TIME START
///////////////////////////////////
$consttimer->start("globalcreate");
///////////////////////////////////
// STYLE FETCH
///////////////////////////////////
Beispiel #2
0
 }
 $secquery = $db->query_str("SELECT * FROM {$tab['section']}");
 while ($section = $db->fetch_array($secquery)) {
     eval("\$sections .= \"" . gettemplate("user.admin.rights.sections.bit") . "\";");
 }
 if ($tab[forum_board]) {
     $boardq = $db->query_str("SELECT * FROM {$tab['forum_board']} ORDER BY id ASC");
     while ($board = $db->fetch_array($boardq)) {
         eval("\$boards .= \"" . gettemplate("forum.admin.rights.board.bits") . "\";");
     }
 }
 $modsquery = $db->query_str("SELECT * FROM {$tab['right']} ORDER BY is_admin DESC");
 while ($right = $db->fetch_array($modsquery)) {
     $user = getuser($right[userid]);
     if (!$right[is_admin]) {
         $thesection = getsection($right[section]);
         if (!$thesection) {
             $thesection[title] = "invalid";
         }
     } else {
         $thesection[title] = "-----";
     }
     if ($right[boardid] == "0" && $right[section] == $sec[forum][id]) {
         $board = "<i>ALL BOARDS</i>";
     } elseif ($right[boardid]) {
         $board = getboard($right[boardid]);
         $board = $board[board_name];
     } else {
         $board = "-----";
     }
     eval("\$moderators .= \"" . gettemplate("user.admin.rights.listmoderators.bit") . "\";");
Beispiel #3
0
            $select[$re[3]] = " selected";
            $sectionbits .= "<option value=\"{$result['id']}\"{$selected}>{$result['title']}";
        }
        eval("\$inc[action] = \"" . gettemplate("admin.sworaconfig.limittraffic.edit") . "\";");
    }
}
#####################
if ($adminaction == "limittraffic" || $fail_limittraffic) {
    $fail = $fail_limittraffic;
    if (!$config[limittraffic_activ]) {
        $off = " checked";
    } else {
        $on = " checked";
    }
    $q = $db->query_str("SELECT  id,title FROM {$tab['section']} WHERE active='1'");
    while ($result = $db->fetch_array($q)) {
        $sectionbits .= "<option value=\"{$result['id']}\">{$result['title']}";
    }
    $q = $db->query_str("SELECT * FROM {$tab['config']} WHERE name LIKE 'limit\\_%'");
    while ($result = $db->fetch_array($q)) {
        preg_match("#limit_(\\d+)::(\\d+)::(\\w+)::(\\d+)#i", $result[name], $re);
        $size = formatfsize($re[1]);
        if ($re[4] == 0) {
            $secname[title] = "All";
        } else {
            $secname = getsection($re[4]);
        }
        eval("\$limitlist.=\"" . gettemplate("admin.sworaconfig.limittraffic.bit") . "\";");
    }
    eval("\$inc[action] = \"" . gettemplate("admin.sworaconfig.limittraffic") . "\";");
}