Пример #1
0
 if (isforumadmin($id)) {
     $board = '<input type="checkbox" name="boardadmin" value="1" onmouseover="showWMTT(\'id7\')" onmouseout="hideWMTT()" checked="checked" />';
 } else {
     $board = '<input type="checkbox" name="boardadmin" value="1" onmouseover="showWMTT(\'id7\')" onmouseout="hideWMTT()" />';
 }
 if (isanymoderator($id)) {
     $mod = '<input type="checkbox" name="moderator" value="1" onmouseover="showWMTT(\'id8\')" onmouseout="hideWMTT()" checked="checked" />';
 } else {
     $mod = '<input type="checkbox" name="moderator" value="1" onmouseover="showWMTT(\'id8\')" onmouseout="hideWMTT()" />';
 }
 if (ispageadmin($id)) {
     $page = '<input type="checkbox" name="pageadmin" value="1" onmouseover="showWMTT(\'id9\')" onmouseout="hideWMTT()" checked="checked" />';
 } else {
     $page = '<input type="checkbox" name="pageadmin" value="1" onmouseover="showWMTT(\'id9\')" onmouseout="hideWMTT()" />';
 }
 if (isfileadmin($id)) {
     $file = '<input type="checkbox" name="fileadmin" value="1" onmouseover="showWMTT(\'id10\')" onmouseout="hideWMTT()" checked="checked" />';
 } else {
     $file = '<input type="checkbox" name="fileadmin" value="1" onmouseover="showWMTT(\'id10\')" onmouseout="hideWMTT()" />';
 }
 if (iscashadmin($id)) {
     $cash = '<input type="checkbox" name="cashadmin" value="1" onmouseover="showWMTT(\'id11\')" onmouseout="hideWMTT()" checked="checked" />';
 } else {
     $cash = '<input type="checkbox" name="cashadmin" value="1" onmouseover="showWMTT(\'id11\')" onmouseout="hideWMTT()" />';
 }
 if (isgalleryadmin($id)) {
     $gallery = '<input type="checkbox" name="galleryadmin" value="1" onmouseover="showWMTT(\'id12\')" onmouseout="hideWMTT()" checked="checked" />';
 } else {
     $gallery = '<input type="checkbox" name="galleryadmin" value="1" onmouseover="showWMTT(\'id12\')" onmouseout="hideWMTT()" />';
 }
 if (issuperadmin($id)) {
Пример #2
0
            $hash = $CAPCLASS->get_hash();
            $CAPCLASS->clear_oldcaptcha();
            $captcha_form = $captcha . ' <input type="text" name="captcha" size="5" maxlength="5" /><input name="captcha_hash" type="hidden" value="' . $hash . '" /><br />';
        }
        eval("\$report_deadlink = \"" . gettemplate("report_deadlink") . "\";");
        echo $report_deadlink;
    } else {
        redirect("index.php?site=files", $_language->module['cant_report_without_fileID'], "3");
    }
} else {
    $accesslevel = 1;
    $adminactions = '';
    if (isclanmember($userID)) {
        $accesslevel = 2;
    }
    if (isfileadmin($userID)) {
        $adminactions = '<table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td align="right">';
        $adminactions .= '<input type="button" onclick="MM_goToURL(\'parent\',\'index.php?site=files&amp;action=newfile\');return document.MM_returnValue" value="' . $_language->module['new_file'] . '" /> ';
        $adminactions .= '<input type="button" onclick="MM_openBrWindow(\'admin/admincenter.php?site=filecategorys\',\'\')" value="' . $_language->module['new_category'] . '" />';
        $adminactions .= '</td></tr></table><br />';
    }
    // STATS
    // categories in database
    $catQry = safe_query("SELECT * FROM " . PREFIX . "files_categorys WHERE subcatID = '0' ORDER BY name");
    $totalcats = mysql_num_rows($catQry);
    if ($totalcats) {
        // files in database
        $fileQry = safe_query("SELECT * FROM " . PREFIX . "files");
        $totalfiles = mysql_num_rows($fileQry);
        if ($totalfiles) {
            $hddspace = 0;
Пример #3
0
#   Copyright 2005-2011 by webspell.org                                  #
#                                                                        #
#   visit webSPELL.org, webspell.info to get webSPELL for free           #
#   - Script runs under the GNU GENERAL PUBLIC LICENSE                   #
#   - It's NOT allowed to remove this copyright-tag                      #
#   -- http://www.fsf.org/licensing/licenses/gpl.html                    #
#                                                                        #
#   Code based on WebSPELL Clanpackage (Michael Gruber - webspell.at),   #
#   Far Development by Development Team - webspell.org                   #
#                                                                        #
#   visit webspell.org                                                   #
#                                                                        #
##########################################################################
*/
$_language->read_module('filecategorys');
if (!isfileadmin($userID) or mb_substr(basename($_SERVER['REQUEST_URI']), 0, 15) != "admincenter.php") {
    die($_language->module['access_denied']);
}
function generate_overview($filecats = '', $offset = '', $subcatID = 0)
{
    global $_language;
    $rubrics = safe_query("SELECT * FROM " . PREFIX . "files_categorys WHERE subcatID = '" . $subcatID . "' ORDER BY name");
    $i = 1;
    $CAPCLASS = new Captcha();
    $CAPCLASS->create_transaction();
    $hash = $CAPCLASS->get_hash();
    while ($ds = mysql_fetch_array($rubrics)) {
        if ($i % 2) {
            $td = 'td1';
        } else {
            $td = 'td2';