當前位置: 首頁>>代碼示例>>PHP>>正文


PHP session_identification函數代碼示例

本文整理匯總了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;
開發者ID:jaytaph,項目名稱:perihelion-oldcode,代碼行數:13,代碼來源:createnewsector.php

示例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;
// ============================================================================================
//
開發者ID:jaytaph,項目名稱:perihelion-oldcode,代碼行數:31,代碼來源:sector.php

示例3: session_reinit

function session_reinit($tmp)
{
    $_SESSION['user'] = $tmp;
    unset($_SESSION['theme_path']);
    unset($_SESSION['theme_url']);
    session_identification();
}
開發者ID:jaytaph,項目名稱:perihelion-oldcode,代碼行數:7,代碼來源:general_encrypt.inc.php


注:本文中的session_identification函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。