Esempio n. 1
0
                $update["password"] = $_POST["new_password"];
                $update["create_date"] = date("Y-m-d H:i:s");
                if ($member->update($update)) {
                    alert($console->tags('UPDATE_SURE'), $console->_j_web_set['main_path'] . "/member/detail");
                    //修改成功!!
                    exit;
                }
            } 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){
Esempio n. 2
0
<?php

defined('IN_DESTOON') or exit('Access Denied');
require DT_ROOT . '/module/' . $module . '/common.inc.php';
require MD_ROOT . '/member.class.php';
$do = new member();
$do->logout();
$session = new dsession();
session_destroy();
$forward = $forward ? linkurl($forward) : DT_PATH;
$action = 'logout';
$api_msg = $api_url = '';
if ($MOD['passport']) {
    include DT_ROOT . '/api/' . $MOD['passport'] . '.inc.php';
    if ($api_url) {
        $forward = $api_url;
    }
}
#if($MOD['sso']) include DT_ROOT.'/api/sso.inc.php';
if ($api_msg) {
    message($api_msg, $forward, -1);
}
message($api_msg, $forward);
 /**
  * Logout mode
  *
  * @param array $gpc - blank array
  *
  */
 public function process_mode_logout($gpc)
 {
     member::logout();
 }