当前位置: 首页>>代码示例>>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;未经允许,请勿转载。