本文整理匯總了PHP中security::logout方法的典型用法代碼示例。如果您正苦於以下問題:PHP security::logout方法的具體用法?PHP security::logout怎麽用?PHP security::logout使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類security
的用法示例。
在下文中一共展示了security::logout方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: database
$sitelink = 'http://cardguys.com/Archive/';
$db_host = 'localhost';
$db_username = 'oscar497_cguys';
$db_password = 'l+uPfa+aQZ(U';
$db_name = 'oscar497_cguys_main';
define(SONVT, '');
// connect database
include_once 'includes/class_database.php';
$db = new database();
$db->connect($db_host, $db_username, $db_password, $db_name);
//////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////
include_once 'includes/functions.php';
include_once 'includes/class_security.php';
$security = new security();
$security->logout();
include_once 'class/class_config.php';
$config = new config();
include_once 'class/class_cards_bank.php';
$cards_bank = new cards_bank();
////////////////////////////////////////////////////////
$view = 'list';
include_once 'seosearch.php';
if ($_GET['module']) {
$module = clear($_GET['module']);
}
$oldmod = $module;
$id = 0;
$type = "";
$modul = seourl_loopup($module);
$module = isset($module) ? $module : "";
示例2: security
<?php
include './security.php';
include './sqli.php';
if (isset($_GET['username']) and isset($_GET['token'])) {
$s = new security($db, $_GET['username']);
$s->logout($_GET['token']);
}