本文整理汇总了PHP中member::logout方法的典型用法代码示例。如果您正苦于以下问题:PHP member::logout方法的具体用法?PHP member::logout怎么用?PHP member::logout使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类member
的用法示例。
在下文中一共展示了member::logout方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: date
$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){
示例2: exit
<?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);
示例3: process_mode_logout
/**
* Logout mode
*
* @param array $gpc - blank array
*
*/
public function process_mode_logout($gpc)
{
member::logout();
}