Пример #1
0
require_once 'classes/Authenticator.php';
include 'includes/config.php';
$topnavvalue = "添加安全令";
include 'includes/html_toubu/html_toubu.php';
include 'includes/page_inc/header_normal.php';
if ($logincheck == 0) {
    $navurladd = SITEHOST . "welcome.php";
    $topnavvalue = "WELCOME";
    include 'includes/page_inc/welcome_inc.php';
} else {
    $query = "SELECT * FROM `users` WHERE `user_name`='{$user}'";
    $rowtemp = queryRow($query);
    $user_id = $rowtemp['user_id'];
    $user_right = $rowtemp['user_right'];
    $sql = "SELECT * FROM `authdata` WHERE `user_id`='{$user_id}'";
    if (queryNum_rows($sql) < MOST_AUTH) {
        try {
            include 'includes/auth_add/authadd_bykey.php';
            //生成AUTH用
        } catch (Exception $exc) {
            $authaddbykeyerrorid = 5;
        }
    } else {
        $authaddbykeyerrorid = 6;
    }
    switch ($authaddbykeyerrorid) {
        case 0:
            $jumptxt = "还原成功,即将跳转到该安全令页面。";
            if ($auth_moren == 1) {
                $jumpurl = SITEHOST . "auth.php";
            } else {
Пример #2
0
function checkpostusername($arruname)
{
    global $dbconnect;
    $sql = "SELECT * FROM `users` WHERE `user_name`='{$arruname}'";
    if (queryNum_rows($sql) == 0) {
        return true;
    } else {
        return false;
    }
}
Пример #3
0
<?php

//fix
include 'includes/config.php';
include 'classes/Authenticator.php';
$topnavvalue = "添加安全令";
include 'includes/html_toubu/html_toubu.php';
include 'includes/page_inc/header_normal.php';
if ($logincheck == 0) {
    $jumpurl = SITEHOST . 'index.php';
    $innertxt = "你还没登入,添加个态君吖。即将返回首页";
    include 'includes/auth_add/authadd_error.php';
} else {
    if ($logincheck == 1) {
        $query = "SELECT * FROM `users` WHERE `user_name`='{$user}'";
        $rowtemp = queryRow($query);
        $user_id = $rowtemp['user_id'];
        $query = "SELECT * FROM `authdata` WHERE `user_id`='{$user_id}'";
        $number_rows = queryNum_rows($query);
        if ($number_rows < MOST_AUTH) {
            include 'includes/page_inc/addauth_inc.php';
        } else {
            $jumpurl = SITEHOST . 'myauthall.php';
            $innertxt = "你已经拥有" . MOST_AUTH . "枚安全令了,不能再多了。<br>如要添加请到我的安全令中删除已有的安全令。";
            include 'includes/auth_add/authadd_error.php';
        }
    }
}
include 'includes/page_inc/footer.php';
Пример #4
0
<?php

//fix
include '../config.php';
if (check_data('id', 'get')) {
    if (!checkzhongwenzimushuzixiahuaxian($_GET['id'])) {
        echo "inlegal";
    } else {
        $user = db_iconv('id', 'get', true, true);
        $sql = "SELECT * FROM `users` WHERE `user_name`='{$user}'";
        if (queryNum_rows($sql) == 0) {
            echo "true";
        } else {
            echo "false";
        }
    }
} else {
    echo "";
}
Пример #5
0
<?php

ob_start();
include 'includes/config.php';
$topnavvalue = "账号管理";
include 'includes/html_toubu/html_toubu.php';
include 'includes/page_inc/header_normal.php';
if ($logincheck == 0) {
    ob_end_clean();
    header("Location: login.php");
    exit;
} else {
    $navurladd = SITEHOST . "account.php";
    $query = "SELECT * FROM `users` WHERE `user_name`='{$user}'";
    $rowtemp = queryRow($query);
    $user_id = $rowtemp['user_id'];
    $user_right = $rowtemp['user_right'];
    $query = "SELECT * FROM `authdata` WHERE `user_id`='{$user_id}'";
    $auth_total_all = queryNum_rows($query);
    include 'includes/page_inc/account_inc.php';
}
include 'includes/page_inc/footer.php';
ob_flush();
Пример #6
0
    echo "<p class='has-authenticator-none-active'>{$auth_total_all}/" . MOST_AUTH . "</p>";
} else {
    echo "<p class='none-authenticator'>{$auth_total_all}/" . MOST_AUTH . "</p>";
}
?>
                        </div>
                    </div>
                    <div id="lobby-games">
                        <h3 class="section-title">安全令管理&添加</h3>
                        <div id="games-list"> 
                            <a class="games-title border-2 closed" href="#wow" id="aforwowjq" rel="game-list-wow">我的安全令</a>
                            <ul id="game-list-wow" style="display: none;">
                                <?php 
echo allatthecho($logincheck, $user_id, $user_right);
$sql = "SELECT * FROM `authdata` WHERE `user_id`='{$user_id}'";
$resultnumber = queryNum_rows($sql);
if ($resultnumber < MOST_AUTH) {
    ?>
                                    <!--添加账号-->
                                    <li id="addWowTrial" class="trial no-subtitle border-4" >
                                        <span class="game-icon">
                                            <span class="png-fix"><img width="32" height="32" src="resources/img/bga.png" alt=""></span></span>
                                        <span class="account-info">
                                            <span class="account-link">
                                                <strong>
                                                    <a class="CN-WOW-mop-se" href="<?php 
    echo SITEHOST;
    ?>
addauth.php">战网安全令在线版</a>
                                                </strong>
                                                <span class="account-region">中国(CN) 美国(US) 欧洲(EU)</span>