本文整理汇总了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();
}