本文整理汇总了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("../");
示例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();