Esempio n. 1
0
            } else {
                alert($console->tags('INFO_INSERT_ERRO'), -1);
                //填入的資訊有誤!!
                exit;
            }
        }
        break;
    case "logout":
        $member->logout();
        alert($console->tags('LOGOUT_SURE'), '-1');
        //已成功登出!!
        exit;
        break;
    case "fotgot":
        if ($_GET["auth"]) {
            if ($member->recive_check_mail($_GET)) {
                print "<meta http-equiv=Content-Type content=text/html; charset=utf-8>";
                echo '<form id="form1" action="member?cpw&nock=1" method="post"><input type="hidden" name="password" value="' . base64_decode(urldecode($_GET["auth"])) . '"><br>';
                echo $console->tags('PLEASE_ENTER_PASSWORD') . ':<input type="password" name="new_password" id="password" value=""><br>';
                echo $console->tags('PLEASE_ENTER_PASSWORD_AGAIN') . ':<input type="password" id="new_password" value=""><br>';
                echo '<input type="button" value=" ' . $console->tags('SEND') . ' " onclick="checkdata()"></form>
				<script>
				function checkdata(){
					if(document.getElementById("password").value=="" || document.getElementById("password").value==null){
						return alert("' . $console->tags('PASSWORD_OLD_REQUIRE') . '");
					}
					if (document.getElementById("password").value==document.getElementById("new_password").value){
						document.getElementById("form1").submit();
					}else{
						alert("' . $console->tags('PASSWORD_SECOND_REQUIRE') . '");
					}