示例#1
0
    exit;
}
if (isset($_POST["serviceport"])) {
    accounts_save();
    exit;
}
if (isset($_POST["username"])) {
    members_save();
    exit;
}
if (isset($_GET["accounts-search"])) {
    accounts_search();
    exit;
}
if (isset($_GET["members-accounts"])) {
    accounts();
    exit;
}
if (isset($_GET["account-js"])) {
    accounts_js();
    exit;
}
if (isset($_GET["accounts-js"])) {
    accounts_js();
    exit;
}
if (isset($_GET["accounts-popup"])) {
    accounts_popup();
    exit;
}
if (isset($_POST["accounts-delete"])) {
示例#2
0
                }
            default:
                $tpl->set('{content}', file_get_contents(ENGINE_DIR . "/modules/main.php"));
                break;
        }
        $tpl->compile('main');
        eval(' ?' . '>' . $tpl->result['main'] . '<' . '?php ');
    } else {
        $tpl->global_clear();
        $usersql = $db->query("SELECT * FROM accounts WHERE Name='" . $_SESSION['username'] . "' AND pLocked='1'") or die(mysql_error());
        if ($row = mysql_fetch_assoc($usersql)) {
            banneduser($row['pID'], $db, $config, $tpl);
        }
    }
} else {
    $auth = accounts($_POST['username'], $_POST['password'], $_POST['serverlist'], $_SERVER['REMOTE_ADDR'], $_POST['ucomp'], $_POST['auth_name']);
    $passremind = passremind($_POST['email'], $_POST['serverlist'], $_POST['passremind']);
    switch ($do) {
        case "availability":
            if ($_GET['list'] == "user") {
                $username = security($_POST['user_name']);
                $sql = $db->query("SELECT * FROM accounts WHERE Name='{$username}'") or die(mysql_error());
                if ($row = $db->fetch_assoc($sql)) {
                    echo "no";
                } else {
                    if (!$username) {
                        echo "null";
                    } else {
                        echo "yes";
                    }
                }
#
#
#
#
#
#
#
#
#
#
require "settings.php";
if (isset($_POST["key"])) {
    switch ($_POST["key"]) {
        case "edit":
            if (isset($_POST["accounts"])) {
                $OUTPUT = accounts($_POST);
            } else {
                $OUTPUT = edit($_POST);
            }
            break;
        case "write":
            $OUTPUT = write($_POST);
            break;
        default:
            $OUTPUT = slctDep();
            break;
    }
} else {
    # Display default output
    $OUTPUT = slctDep();
}
示例#4
0
	if(isset($_GET["rules-search"])){rules_search();exit;}
	if(isset($_GET["rule-js"])){rules_js();exit;}
	if(isset($_GET["subrules-tabs"])){subrules_tabs();exit;}
	if(isset($_POST["rule-enable"])){subrules_enable();exit;}
	if(isset($_POST["subrule-id"])){subrules_save();exit;}
	if(isset($_GET["rules-tabs"])){rules_tabs();exit;}
	if(isset($_GET["rules-popup"])){rules_popup();exit;}
	
	
	if(isset($_POST["rule-delete"])){members_delete();exit;}
	
	
	if(isset($_POST["serviceport"])){accounts_save();exit;}
	if(isset($_POST["username"])){members_save();exit;}
	if(isset($_GET["accounts-search"])){accounts_search();exit;}
	if(isset($_GET["members-accounts"])){accounts();exit;}
	if(isset($_GET["account-js"])){accounts_js();exit;}
	if(isset($_GET["accounts-js"])){accounts_js();exit;}
	if(isset($_GET["accounts-popup"])){accounts_popup();exit;}
	if(isset($_POST["accounts-delete"])){accounts_delete();exit;}
	
js();
// main_cache_rules

function js(){
	$page=CurrentPageName();
	$tpl=new templates();
	$sock=new sockets();
	$t=time();
	$sock->SET_INFO("SquidAsSeenCache",1);
	header("content-type: application/x-javascript");