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


PHP std_security_chk函數代碼示例

本文整理匯總了PHP中std_security_chk函數的典型用法代碼示例。如果您正苦於以下問題:PHP std_security_chk函數的具體用法?PHP std_security_chk怎麽用?PHP std_security_chk使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了std_security_chk函數的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: std_connect

<?php

/* $Id: remove_va.php,v 1.3 2004/07/25 03:31:52 nighty Exp $ */
$min_lvl = 800;
require "../../../php_includes/cmaster.inc";
std_connect();
$user_id = std_security_chk($auth);
$admin = std_admin();
$cTheme = get_theme_info();
$res = pg_safe_exec("SELECT user_name FROM users WHERE id='" . (int) $user_id . "'");
$adm_usr = pg_fetch_object($res, 0);
$adm_user = $adm_usr->user_name;
if ($admin == 0) {
    echo "Restricted to logged in CService Admins, sorry.";
    die;
}
if (!($admin >= 800)) {
    echo "Sorry, your admin access is too low.";
    die;
}
$nrw_lvl = 0;
if (acl(XWEBAXS_2)) {
    $nrw_lvl = 1;
}
if (acl(XWEBAXS_3)) {
    $nrw_lvl = 2;
}
echo "<html><head><title>LOCKED VERIFICATION ANSWERS (DELETE MODE)</title>";
std_theme_styles();
echo "</head>\n";
std_theme_body("../");
開發者ID:Shadowss,項目名稱:gnuworld-website,代碼行數:31,代碼來源:remove_va.php

示例2: header

<?php

/* $Id: newuser.php,v 1.32 2006/03/11 18:40:34 nighty Exp $ */
require "../../php_includes/blackhole.inc";
require "../../php_includes/cmaster.inc";
if ($loadavg5 >= CRIT_LOADAVG) {
    header("Location: highload.php");
    die;
}
std_connect();
$cTheme = get_theme_info();
$user_id = std_security_chk($_COOKIE["auth"]);
$admin = 0;
$confirm_url = gen_server_url() . substr($REQUEST_URI, 0, strrpos($REQUEST_URI, "/")) . "/confirm.php";
// check for global lock (admin)
if (newusers_off()) {
    echo "<html><head><title>PAGE LOCKED BY CSERVICE ADMINISTRATORS</title>";
    std_theme_styles();
    echo "</head>\n";
    std_theme_body();
    echo "<center>\n";
    echo "<h2>";
    echo "Sorry, You can't register new users at the moment.";
    echo "</h2>";
    echo "</center>\n";
    echo "</body></html>\n\n";
    die;
}
if (NEWUSERS_IPCHECK && !newu_ipcheck(0)) {
    echo "<html><head><title>SECURITY WARNING</title>";
    std_theme_styles();
開發者ID:Shadowss,項目名稱:gnuworld-website,代碼行數:31,代碼來源:newuser.php


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