本文整理匯總了PHP中session_identification函數的典型用法代碼示例。如果您正苦於以下問題:PHP session_identification函數的具體用法?PHP session_identification怎麽用?PHP session_identification使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了session_identification函數的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: session_identification
<?php
// Include Files
include "../includes.inc.php";
// Session Identification
session_identification("admin");
print_header();
print_title("Create a new sector");
echo "<strong>Use this in the px_server option:</strong>";
echo "<li>tmp : tmp\n";
echo "<li>CMD : NEWSECTOR\n";
print_footer();
exit;
示例2: session_identification
<?php
// Include Files
include "includes.inc.php";
// Session Identification
session_identification();
print_header();
print_title("Sector view", "Here you will find all discovered sectors and planets on one single page. It will also let you claim sectors if appropriate.");
$cmd = input_check("show", "sid", "uid", 0, "claim", "!frmid", "!sid", "!ne_name", 0);
if ($uid == "") {
$uid = user_ourself();
}
if ($cmd == "show") {
if ($sid == "") {
sector_show_all_sectors($uid);
} else {
sector_show_sector($sid, $uid);
}
}
if ($cmd == "claim") {
$ok = "";
$errors['PARAMS'] = "Incorrect parameters specified..\n";
$errors['NAME'] = "The sector name already exists.\n";
$data['sector_id'] = $sid;
$data['name'] = convert_crlf_to_px_tag($ne_name);
comm_send_to_server("SECTOR", $data, $ok, $errors);
}
print_footer();
exit;
// ============================================================================================
//
示例3: session_reinit
function session_reinit($tmp)
{
$_SESSION['user'] = $tmp;
unset($_SESSION['theme_path']);
unset($_SESSION['theme_url']);
session_identification();
}