Exemplo n.º 1
0
                $AddError = '1';
                $btsuerrormsg = '应用流向不能为空!';
            }
            if ($AddError == '1') {
                $bkurl = 'javascript:history.go(-1)';
                echo $btsuerrormsg;
                ?>
				<strong><a class="btn btn-primary" href="<?php 
                echo $bkurl;
                ?>
" >[返回]</a></strong>
				<?php 
                exit;
            }
            $wname = fzr($_POST['wname']);
            $wdomain = fzr($_POST['wdomain']);
            $rank = intval($_POST['Rank']);
            $zt = intval($_POST['zt']);
            $from = intval($_POST['from']);
            if ($from != 5) {
                NewGoodFri($wname, $wdomain, $rank, $zt, $from, $ly, $bz, 0);
            } else {
                NewGoodFri($wname, $wdomain, $rank, $zt, '1', $ly, $bz, 0);
                NewGoodFri($wname, $wdomain, $rank, $zt, '2', $ly, $bz, 0);
            }
            break;
        default:
            break;
    }
}
if (isset($_SESSION['BtsuDel'])) {
Exemplo n.º 2
0
$doczyzm = '2';
if (!isset($btsyzmact)) {
    $_SESSION['doczyzm'] = '2';
} else {
    $_SESSION['doczyzm'] = $btsyzmact;
}
if (!isset($wateruser)) {
    $wateruser = '******';
}
if ($userip != "Unknown") {
    if (!isset($wateract)) {
        $wateract = 'fangwen';
    }
    $timenow = time();
    $timewater = $timenow - 360;
    $userip = fzr($userip);
    $sqlwater = mysqli_query($linkai, "SELECT `id` FROM `" . $mysql_head . "waterhub` WHERE `ip`='" . $userip . "' AND `act`='" . $wateract . "' AND `date`>='" . $timewater . "' ");
    if (!empty($sqlwater)) {
        $waternum = mysqli_num_rows($sqlwater);
        if ($waternum >= 4) {
            $doczyzm = '1';
            $_SESSION['doczyzm'] = '1';
        }
        mysqli_query($linkai, "insert into " . $mysql_head . "waterhub(date,ip,act,username,zt) values('{$timenow}','{$userip}','{$wateract}','{$wateruser}','1')");
    } else {
        mysqli_query($linkai, "insert into " . $mysql_head . "waterhub(date,ip,act,username,zt) values('{$timenow}','{$userip}','{$wateract}','{$wateruser}','1')");
    }
    if ($wateruser != 'UNknow') {
        $sqlwateruser = mysqli_query($linkai, "SELECT `id` FROM `" . $mysql_head . "waterhub` WHERE `username`='" . $wateruser . "' AND `act`='" . $wateract . "' AND `date`>='" . $timewater . "' ");
        if (!empty($sqlwateruser)) {
            $waterusernum = mysqli_num_rows($sqlwateruser);
Exemplo n.º 3
0
function DelBelive($dm, $safe = 1)
{
    if ($safe != 0) {
        $dm = YZdm($dm);
        $dm = fzr($dm);
    }
    $date = time();
    include './dorun/Run_Mysql.php';
    mysql_query("DELETE FROM `" . $mysql_head . "w_belivelist`  where `dm`='" . $dm . "' ", $linka);
}
+BTSnowball_Users!
+BTSnowball.Org社区欢迎您的加入
+本作品遵循Apache lincense V2.0并补充有BTSpl。具体请参见lincense&txt文件夹下相关文件
+Copyright (c) 2015 版权所属于相应代码的作者、贡献人和BTSnowball_Org社区相关人员
+ Author list:林友哲(Lin Youzhe)
*/
if (!isset($InBtsuAdmin)) {
    exit;
} else {
    if ($InBtsuAdmin != '1') {
        exit;
    }
}
if (isset($_GET['dusername'])) {
    $Iusername = $_GET['dusername'];
    $Iusername = fzr($Iusername);
} else {
    $Iusername = '******';
}
if (isset($_GET['do'])) {
    $domy = $_GET['do'];
    switch ($domy) {
        case "PDEL":
            if (!isset($_POST['pdel'])) {
                break;
            }
            if (!is_array($_POST['pdel'])) {
                echo $_POST['pdel'];
                exit;
            }
            foreach ($_POST['pdel'] as $pdela) {
Exemplo n.º 5
0
}
$pluswz = 'btsuapih';
include 'btsuplus.php';
if ($doid == "") {
    exit;
}
switch ($doid) {
    case "0":
        //反转
        if (!isset($_GET["bh"], $_GET["dm"], $_GET["Iyzma"], $_GET["Iyzmb"], $_GET["Iyzmc"], $_GET["Iyzmd"], $_GET["Ibh"], $_GET['ToKen'], $_GET['kla'])) {
            echo 'Error-BTSUConnect';
            exit;
        }
        $Ibh = intval($_GET["bh"]);
        $Udm = YZdm($_GET["dm"]);
        $Cuser = fzr($_GET["user"]);
        $Ubh = $_GET["Ibh"];
        $Uyzma = $_GET["Iyzma"];
        $Uyzmb = $_GET["Iyzmb"];
        $Uyzmc = $_GET["Iyzmc"];
        $Uyzmd = $_GET["Iyzmd"];
        $Ukla = $_GET["kla"];
        if (empty($Ubh)) {
            echo "empty!1";
            exit;
        }
        if (empty($Udm)) {
            echo "empty!2";
            exit;
        }
        if (empty($Uyzma)) {
Exemplo n.º 6
0
function handreg($username, $email, $password, $fs = 1)
{
    error_reporting(~E_ALL);
    $username = fzr($username);
    $email = fzr($email);
    $password = fzr($password);
    $windid = WindidApi::api('user');
    $result = $windid->register($username, $email, $password);
    if ($result < 1) {
        //返回信息小于1,说明没有注册成功
        $msg = windidMsg($result);
        //调用错误处理提示
        if ($result == "-10") {
            $remsg['msg'] = $msg;
            $remsg['jg'] = '-6';
            return $remsg;
        } elseif ($result == "-4" || $result == "-3") {
            $remsg['msg'] = $msg;
            $remsg['jg'] = '-2';
            return $remsg;
        } elseif ($result == "-5") {
            $remsg['msg'] = $msg;
            $remsg['jg'] = '-3';
            return $remsg;
        } elseif ($result == "-7") {
            $remsg['msg'] = $msg;
            $remsg['jg'] = '-4';
            return $remsg;
        } elseif ($result == "-8" || $result == "-9") {
            $remsg['msg'] = $msg;
            $remsg['jg'] = '-5';
            return $remsg;
        } elseif ($result == "-2" || $result == "-1") {
            $remsg['msg'] = $msg;
            $remsg['jg'] = '-1';
            return $remsg;
        } else {
            $remsg['msg'] = $msg;
            $remsg['jg'] = '-7';
            return $remsg;
        }
    } else {
        $remsg['msg'] = '注册成功';
        $remsg['jg'] = '1';
        $remsg['uid'] = $result;
        if ($fs == 2) {
            $ucsynlogin = $windid->synLogin($result);
            echo $ucsynlogin;
        }
        return $remsg;
    }
}
Exemplo n.º 7
0
if ($doyz == '1') {
    if (!isset($_POST['username'], $_POST['password'], $_POST['jyjg'])) {
        $tmod = 'BUError';
        $btsuerrormsg = '请输入用户名和密码!';
        include 'intem.php';
        exit;
    }
    if ($_SESSION["jyjg"] != "AdminBtsuOK") {
        if ($_SESSION["jyjg"] != intval($_POST["jyjg"])) {
            $tmod = 'BUError';
            $btsuerrormsg = '验证计算错误!';
            include 'intem.php';
            exit;
        }
    }
    $username = fzr(trim($_POST['username']));
    $password = md5(trim($_POST['password']));
    $sqladmin = mysql_query("SELECT * FROM `" . $mysql_head . "admin` WHERE `adminname`='" . $username . "' AND `zt`='1' ", $linka);
    $adminusc = '2';
    if ($infoadmin = mysql_fetch_object($sqladmin)) {
        if ($infoadmin == "") {
            $adminusc = '2';
        } else {
            $infopass = $infoadmin->password;
            if ($infopass === $password) {
                $adminusc = '1';
                $admingroup = $infoadmin->group;
            }
            unset($infopass);
            unset($password);
        }
Exemplo n.º 8
0
            if ($_POST['zt'] == "") {
                $AddError = '1';
                $btsuerrormsg = '状态不能为空!';
            }
            if ($AddError == '1') {
                $bkurl = 'javascript:history.go(-1)';
                echo $btsuerrormsg;
                ?>
				<strong><a class="btn btn-primary" href="<?php 
                echo $bkurl;
                ?>
" >[返回]</a></strong>
				<?php 
                exit;
            }
            $email = fzr($_POST['email']);
            $zt = intval($_POST['zt']);
            NewEBlack($email, $text, $zt, $update, 0, 0);
        default:
            break;
    }
}
if (isset($_SESSION['BtsuDel'])) {
    $_SESSION['BtsuDel'] == 'Un';
}
if (!isset($_GET['page'])) {
    $nuba = 0;
    $nubb = 30;
    $page = 1;
} else {
    $page = intval($_GET['page']);
Exemplo n.º 9
0
 case "nobel":
     if (!isset($_GET['dm'])) {
         break;
     }
     $ddm = trim($_GET['dm']);
     $ddm = fzr($ddm);
     $qciue = QCBDUser($Iusername, 1, $ddm, 1);
     $email = $qciue['email'];
     SetBelive($email, $ddm, 2);
     break;
 case "dobel":
     if (!isset($_GET['dm'])) {
         break;
     }
     $ddm = trim($_GET['dm']);
     $ddm = fzr($ddm);
     $qciue = QCBDUser($Iusername, 1, $ddm, 1);
     $email = $qciue['email'];
     SetBelive($email, $ddm, 1, 1, 1);
     break;
 case "del":
     if (!isset($_GET['id'])) {
         break;
     }
     $Muid = intval($_GET['id']);
     if (isset($_SESSION['BtsuDel'])) {
         if ($_SESSION['BtsuDel'] == 'allo') {
             DelUbIU($Muid, $Iusername);
         }
     }
     break;
Exemplo n.º 10
0
function DelBelive($dm, $safe = 1)
{
    if ($safe != 0) {
        $dm = YZdm($dm);
        $dm = fzr($dm);
    }
    $date = time();
    include './dorun/Run_Mysql_i.php';
    $dm = mysqli_real_escape_string($linkai, $dm);
    mysqli_query($linkai, "DELETE FROM `" . $mysql_head . "w_belivelist`  where `dm`='" . $dm . "' ");
}
Exemplo n.º 11
0
                    $url = fzr($_POST['url']);
                }
            } else {
                $url = 'http://www.btsnowball.org/ErrorZCloudURL/';
            }
            if (isset($_POST['ms'])) {
                if ($_POST['ms'] == "") {
                    $ms = '手动添加:无';
                } else {
                    $ms = fzr($_POST['ms']);
                }
            } else {
                $url = '手动添加:无';
            }
            $name = fzr($_POST['name']);
            $api = fzr($_POST['api']);
            $rank = intval($_POST['Rank']);
            $zt = intval($_POST['zt']);
            $zb = intval($_POST['zb']);
            NewZCloud($name, $api, $url, $rank, $zt, $zb, $ms, 0);
            break;
        default:
            break;
    }
}
if (isset($_SESSION['BtsuDel'])) {
    $_SESSION['BtsuDel'] == 'Un';
}
if (!isset($_GET['page'])) {
    $nuba = 0;
    $nubb = 30;