예제 #1
0
        } else {
            if ($regjg["jg"] >= -5 && $regjg["jg"] <= -1) {
                $_SESSION["btsreg"] = '1';
                $_SESSION["Ibh"] = $Ibh;
                $_SESSION["username"] = $username;
                $_SESSION["plus"] = 'DiscuzReg';
                $bdmsg = utf8str($regjg['msg']) . '||您需要在本站使用合法的用户名&邮箱注册并绑定一个用户';
                $Userbd = '1';
                $uncan = '5';
                /*
                ?>
                ||您需要在本站使用合法的用户名&邮箱注册并绑定一个用户
                <form method="post" action=""> 
                用户名:<input type="text" name="username" value="<?php echo $username; ?>" /> 
                邮箱:<input type="text" name="email" value="<?php echo $email; ?>" /> 
                        密码:<input type="password" name="pwd" value="101010bts" /> 
                        <input type="submit" value="绑定" />  
                        </form>
                <?
                */
            } else {
                echo "Faild!4" . utf8str($regjg['msg']);
                exit;
            }
        }
    } else {
        $Iuid = $regjg['uid'];
        $Iusername = $username;
        $Uusername = $username;
    }
}
예제 #2
0
$domail = 1;
if (!isset($mailto)) {
    echo '邮件发送失败!';
    $domail = 2;
}
if (!isset($mailtitle)) {
    echo '邮件发送失败!';
    $domail = 2;
} else {
    $mailtitle = utf8str($mailtitle);
}
if (!isset($mailtxt)) {
    echo '邮件发送失败!';
    $domail = 2;
} else {
    $mailtxt = utf8str($mailtxt);
}
if ($domail == 1) {
    switch ($mailfs) {
        case '1':
            @mail($mailto, $mailtitle, $mailtxt, 'BTSphp Connect');
            break;
        case '2':
            include './order/email.class.php';
            $mailtype = 'HTML';
            $smtp = new smtp($smtpserver, $smtpserverport, true, $smtpuser, $smtppass);
            //这里面的一个true是表示使用身份验证,否则不使用身份验证.
            $smtp->debug = false;
            //是否显示发送的调试信息
            $smtp->sendmail($mailto, $smtpusermail, $mailtitle, $mailtxt, $mailtype);
            break;
예제 #3
0
     /*
     ?>
     您的EMAIL已经存在,本站不允许重复Email,请绑定EMAIL原属用户名。密码忘记请使用取回密码。
     <form method="post" action="">   
             密码:<input type="password" name="pwd" value="123456" /> 
             <input type="submit" value="绑定" />  
             </form>
     <?
     */
 } else {
     if ($regjg["jg"] >= -5 && $regjg["jg"] <= -1) {
         $_SESSION["btsreg"] = '1';
         $_SESSION["Ibh"] = $Ibh;
         $_SESSION["username"] = $username;
         $_SESSION["plus"] = 'DiscuzReg';
         $bdmsg = utf8str($regjg['msg']) . '||您需要在本站使用合法的用户名&邮箱注册并绑定一个用户';
         $Userbd = '1';
         $uncan = '5';
         /*
         ?>
         ||您需要在本站使用合法的用户名&邮箱注册并绑定一个用户
         <form method="post" action=""> 
         用户名:<input type="text" name="username" value="<?php echo $username; ?>" /> 
         邮箱:<input type="text" name="email" value="<?php echo $email; ?>" /> 
                 密码:<input type="password" name="pwd" value="101010bts" /> 
                 <input type="submit" value="绑定" />  
                 </form>
         <?
         */
     } else {
         echo "Faild!4" . $regjg['msg'];
예제 #4
0
    } else {
        echo "error!";
    }
}
$regjg = handreg($nickname, $email, $password);
$Iusername = $username;
$Uusername = $username;
if ($regjg["jg"] != "1") {
    if ($regjg["jg"] == "3") {
        $_SESSION["btsbd"] = "1";
        $_SESSION["nickname"] = $nickname;
        $_SESSION["email"] = $email;
        $_SESSION["Ibh"] = $Ibh;
        $_SESSION["plus"] = "phpsaybd";
        //绑定开始
        $bdmsg = '您的EMAIL已经存在,本站不允许重复Email,请绑定EMAIL原属用户名。密码忘记请使用取回密码。';
        $Userbd = '1';
        $uncan = '4';
        /*
        ?>
        <form method="post" action="">   
                密码:<input type="password" name="pwd" value="123456" /> 
                <input type="submit" value="绑定" />  
                </form>
        <?
        */
    } else {
        echo "Faild!4" . utf8str($regjg["msg"]);
        exit;
    }
}
예제 #5
0
                    $tmod = 'BUError';
                    $btsuerrormsg = '您被禁止由本站登出至' . $Udm;
                    include 'intem.php';
                    exit;
                }
            }
            if ($WDomain != $Udm && $SDomain != $Udm) {
                $iffriend = IINFSet($Udm, '1');
                if ($iffriend['in'] == '1') {
                    $Ncurl = $_SESSION["URLrep"] . $Udm . $Uapiurl . '?doid=5';
                    $Uwname = BCurlKey($Ncurl);
                    $Uwname = trim($Uwname);
                    SETfriend($Uwname, $Udm, 1);
                }
            }
            echo utf8str('正在建立返回通信【不要关闭浏览器】....TO' . $Udm . '');
            $UURLrep = $_SESSION["URLrep"];
            ?>
			<script language="javascript" type="text/javascript">
           window.location.href="<?php 
            echo $UURLrep . $Udm . $Udourl . '?doid=4&bh=' . $Ibh . '&token=' . $token;
            ?>
"; 
            </script>
			<?php 
        }
        break;
    case "4":
        if (!isset($_GET["bh"])) {
            $tmod = 'BUError';
            $btsuerrormsg = '非法请求!';
예제 #6
0
        } else {
            if ($regjg["jg"] >= -5 && $regjg["jg"] <= -1) {
                $_SESSION["btsreg"] = '1';
                $_SESSION["Ibh"] = $Ibh;
                $_SESSION["username"] = $username;
                $_SESSION["plus"] = 'DiscuzReg';
                $bdmsg = utf8str($regjg['msg']) . '||您需要在本站使用合法的用户名&邮箱注册并绑定一个用户';
                $Userbd = '1';
                $uncan = '5';
                /*
                ?>
                ||您需要在本站使用合法的用户名&邮箱注册并绑定一个用户
                <form method="post" action=""> 
                用户名:<input type="text" name="username" value="<?php echo $username; ?>" /> 
                邮箱:<input type="text" name="email" value="<?php echo $email; ?>" /> 
                        密码:<input type="password" name="pwd" value="101010bts" /> 
                        <input type="submit" value="绑定" />  
                        </form>
                <?
                */
            } else {
                $btsuee = '1';
                $btsuerrormsg = 'Error!' . utf8str($regjg['msg']);
            }
        }
    } else {
        $Iuid = $regjg['uid'];
        $Iusername = $username;
        $Uusername = $username;
    }
}