本文整理汇总了PHP中NeedAuth函数的典型用法代码示例。如果您正苦于以下问题:PHP NeedAuth函数的具体用法?PHP NeedAuth怎么用?PHP NeedAuth使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了NeedAuth函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: define
<?php
define("ROOTPATH", "../../");
include ROOTPATH . "includes/admin.inc.php";
include ROOTPATH . "includes/pages.inc.php";
include "language/" . $sLan . ".php";
include "func/member.inc.php";
NeedAuth(68);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head >
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="css/style.css" type="text/css" rel="stylesheet">
<title><?php
echo $strAdminTitle;
?>
</title>
</head>
<body >
<?php
$step = $_REQUEST["step"];
$memberid = $_REQUEST["memberid"];
$id = $_REQUEST["id"];
if ($memberid == "") {
echo "ERROR:NO MEMBERID";
exit;
}
//查询
示例2: define
<?php
define("ROOTPATH", "../../");
include ROOTPATH . "includes/admin.inc.php";
include "language/" . $sLan . ".php";
include "func/stat.inc.php";
NeedAuth(81);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head >
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="css/style.css" type="text/css" rel="stylesheet">
<title><?php
echo $strAdminTitle;
?>
</title>
</head>
<body>
<?php
$nowtime = time();
$year = date("Y", $nowtime);
$month = date("n", $nowtime);
$thismonth == "" || !isset($thismonth) ? $getmonth = $month : ($getmonth = $thismonth);
$datas = getyear($year, $getmonth);
$sum_month = "1th_day + 2th_day + 3th_day + 4th_day + 5th_day + 6th_day + 7th_day + 8th_day + 9th_day + 10th_day + 11th_day + 12th_day + 13th_day + 14th_day + 15th_day + 16th_day + 17th_day + 18th_day + 19th_day + 20th_day + 21th_day + 22th_day + 23th_day + 24th_day + 25th_day + 26th_day + 27th_day + 28th_day + 29th_day + 30th_day + 31th_day";
$msql->query("select * from {P}_tools_statdate where id = '{$month}'");
if ($msql->next_record()) {
for ($d = 1; $d < 31; $d++) {
$countid_month = $msql->f($d . 'th_day');
示例3: define
<?php
define("ROOTPATH", "../../");
include ROOTPATH . "includes/admin.inc.php";
include "language/" . $sLan . ".php";
include "func/upload.inc.php";
NeedAuth(122);
$act = $_POST["act"];
switch ($act) {
//?????????
case "proplist":
$catid = $_POST["catid"];
$nowid = $_POST["nowid"];
if ($nowid != "" && $nowid != "0") {
$msql->query("select * from {P}_news_con where id='{$nowid}'");
if ($msql->next_record()) {
$prop1 = $msql->f('prop1');
$prop2 = $msql->f('prop2');
$prop3 = $msql->f('prop3');
$prop4 = $msql->f('prop4');
$prop5 = $msql->f('prop5');
$prop6 = $msql->f('prop6');
$prop7 = $msql->f('prop7');
$prop8 = $msql->f('prop8');
$prop9 = $msql->f('prop9');
$prop10 = $msql->f('prop10');
$prop11 = $msql->f('prop11');
$prop12 = $msql->f('prop12');
$prop13 = $msql->f('prop13');
$prop14 = $msql->f('prop14');
$prop15 = $msql->f('prop15');
示例4: define
<?php
define("ROOTPATH", "../../");
include ROOTPATH . "includes/admin.inc.php";
include "language/" . $sLan . ".php";
include "func/upload.inc.php";
NeedAuth(96);
$step = $_REQUEST["step"];
$id = $_REQUEST["id"];
$groupid = $_REQUEST["groupid"];
if ($step == "addgroup" && $_REQUEST["groupname"] != "") {
$groupname = $_REQUEST["groupname"];
$msql->query("insert into {P}_advs_linkgroup set\r\n\t\t`groupname`='{$groupname}',\r\n\t\t`xuhao`='1',\r\n\t\t`moveable`='1'\r\n\t");
$groupid = $msql->instid();
echo "<script>self.location='link.php?groupid=" . $groupid . "'</script>";
}
if ($step == "delgroup" && $_REQUEST["groupid"] != "" && $_REQUEST["groupid"] != "0") {
$msql->query("select * from {P}_advs_link where groupid='" . $_REQUEST["groupid"] . "' ");
while ($msql->next_record()) {
$lbid = $msql->f('id');
$oldsrc = $msql->f('src');
if (file_exists(ROOTPATH . $oldsrc) && $oldsrc != "") {
unlink(ROOTPATH . $oldsrc);
}
}
$fsql->query("delete from {P}_advs_link where groupid='" . $_REQUEST["groupid"] . "' ");
$msql->query("delete from {P}_advs_linkgroup where id='" . $_REQUEST["groupid"] . "'");
echo "<script>self.location='link.php'</script>";
}
if ($groupid == "") {
$msql->query("select * from {P}_advs_linkgroup limit 0,1");
示例5: define
<?php
define("ROOTPATH", "../../");
include ROOTPATH . "includes/admin.inc.php";
include "language/" . $sLan . ".php";
include "func/member.inc.php";
NeedAuth(69);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head >
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="css/style.css" type="text/css" rel="stylesheet">
<title><?php
echo $strAdminTitle;
?>
</title>
<script type="text/javascript" src="../../base/js/base.js"></script>
<script type="text/javascript" src="js/paycenter.js"></script>
</head>
<body >
<?php
$step = $_REQUEST["step"];
$pcenter = $_REQUEST["pcenter"];
$pcentertype = $_REQUEST["pcentertype"];
$pcenteruser = $_REQUEST["pcenteruser"];
$pcenterkey = $_REQUEST["pcenterkey"];
$key1 = $_REQUEST["key1"];
示例6: define
<?php
define("ROOTPATH", "../../");
include ROOTPATH . "includes/admin.inc.php";
include "language/" . $sLan . ".php";
NeedAuth(0);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head >
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="css/style.css" type="text/css" rel="stylesheet">
<title><?php
echo $strAdminTitle;
?>
</title>
<script language="javascript" src="<?php
echo ROOTPATH;
?>
base/js/base.js"></script>
<script language="javascript" src="js/frame.js"></script>
</head>
<body class="framebody">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="150" valign="top">
示例7: define
<?php
define("ROOTPATH", "../../");
include ROOTPATH . "includes/admin.inc.php";
include "language/" . $sLan . ".php";
NeedAuth(95);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head >
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="css/style.css" type="text/css" rel="stylesheet">
<title><?php
echo $strAdminTitle;
?>
</title>
</head>
<body>
<?php
$step = $_REQUEST["step"];
$id = $_REQUEST["id"];
if ($step == "del") {
$msql->query("select src from {P}_advs_pic where id='{$id}'");
if ($msql->next_record()) {
$src = $msql->f('src');
}
if (file_exists(ROOTPATH . $src) && $src != "") {
unlink(ROOTPATH . $src);
}
示例8: define
<?php
define("ROOTPATH", "../../");
include ROOTPATH . "includes/admin.inc.php";
include "language/" . $sLan . ".php";
NeedAuth(183);
$step = $_REQUEST["step"];
$id = $_REQUEST["id"];
$propname = $_REQUEST["propname"];
$xuhao = $_REQUEST["xuhao"];
$catid = $_REQUEST["catid"];
$pid = $_REQUEST["pid"];
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head >
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="css/style.css" type="text/css" rel="stylesheet">
<title><?php
echo $strAdminTitle;
?>
</title>
</head>
<body class="popbody">
<?php
if ($step == "copy") {
$msql->query("delete from {P}_product_prop where catid='{$catid}'");
$p = 1;
$msql->query("select * from {P}_product_prop where catid='{$pid}'");
示例9: define
<?php
define("ROOTPATH", "../../");
include ROOTPATH . "includes/admin.inc.php";
include "language/" . $sLan . ".php";
NeedAuth(151);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head >
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="css/style.css" type="text/css" rel="stylesheet">
<title><?php
echo $strAdminTitle;
?>
</title>
<script type="text/javascript" src="../../base/js/base.js"></script>
<script type="text/javascript" src="../../base/js/form.js"></script>
<script type="text/javascript" src="../../base/js/blockui.js"></script>
<script type="text/javascript" src="js/photo.js"></script>
</head>
<body >
<?php
$pid = $_REQUEST["pid"];
$step = $_REQUEST["step"];
$cc = $_REQUEST["cc"];
if (!isset($pid) || $pid == "") {
$pid = 0;
}
if ($step == "add" && $_REQUEST["cat"] != "" && $_REQUEST["cat"] != " ") {
示例10: define
<?php
define("ROOTPATH", "../../");
include ROOTPATH . "includes/admin.inc.php";
include ROOTPATH . "includes/pages.inc.php";
include "language/" . $sLan . ".php";
NeedAuth(123);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head >
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="css/style.css" type="text/css" rel="stylesheet">
<title><?php
echo $strAdminTitle;
?>
</title>
<script type="text/javascript" src="../../base/js/base.js"></script>
<script type="text/javascript" src="../../base/js/form.js"></script>
<script type="text/javascript" src="../../base/js/blockui.js"></script>
<script type="text/javascript" src="js/news.js"></script>
</head>
<body>
<?php
$step = $_REQUEST["step"];
if ($step == "del") {
$id = $_GET["id"];
$fmpath = fmpath($id) . ":";
$msql->query("select id from {P}_news_con where proj regexp '{$fmpath}' ");
示例11: define
<?php
define("ROOTPATH", "../../");
include ROOTPATH . "includes/admin.inc.php";
include "language/" . $sLan . ".php";
NeedAuth(180);
$step = $_REQUEST["step"];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head >
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="css/style.css" type="text/css" rel="stylesheet">
<title><?php
echo $strAdminTitle;
?>
</title>
</head>
<body>
<?php
if ($step == "modify") {
$var = $_POST["var"];
while (list($key, $val) = each($var)) {
$msql->query("update {P}_product_config set value='{$val}' where variable='{$key}'");
}
SayOk($strConfigOk, "config.php", "");
}
示例12: define
<?php
define("ROOTPATH", "../../");
include ROOTPATH . "includes/admin.inc.php";
include "language/" . $sLan . ".php";
include "func/upload.inc.php";
NeedAuth(155);
$pid = $_REQUEST["pid"];
if (!isset($pid) || $pid == "") {
$pid = 0;
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head >
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="css/style.css" type="text/css" rel="stylesheet">
<title><?php
echo $strAdminTitle;
?>
</title>
<script type="text/javascript" src="../../base/js/base.js"></script>
<script type="text/javascript" src="../../base/js/form.js"></script>
<script type="text/javascript" src="../../base/js/blockui.js"></script>
<script type="text/javascript" src="js/photo.js"></script>
<style type="text/css">
<!--
.style1 {color: #FF0033}
-->
</style>
示例13: define
<?php
define("ROOTPATH", "../../");
include ROOTPATH . "includes/admin.inc.php";
include "language/" . $sLan . ".php";
NeedAuth(161);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head >
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="css/style.css" type="text/css" rel="stylesheet">
<title><?php
echo $strAdminTitle;
?>
</title>
<script type="text/javascript" src="../../base/js/base.js"></script>
<script type="text/javascript" src="../../base/js/form.js"></script>
<script type="text/javascript" src="../../base/js/blockui.js"></script>
<script type="text/javascript" src="js/down.js"></script>
</head>
<body >
<?php
$pid = $_REQUEST["pid"];
$step = $_REQUEST["step"];
$cc = $_REQUEST["cc"];
if (!isset($pid) || $pid == "") {
$pid = 0;
}
if ($step == "add" && $_REQUEST["cat"] != "" && $_REQUEST["cat"] != " ") {
示例14: define
<?php
define("ROOTPATH", "../../");
include ROOTPATH . "includes/admin.inc.php";
include "language/" . $sLan . ".php";
NeedAuth(84);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head >
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="css/style.css" type="text/css" rel="stylesheet">
<title><?php
echo $strAdminTitle;
?>
</title>
<script type="text/javascript" src="../../base/js/base.js"></script>
<script type="text/javascript" src="../../base/js/form.js"></script>
<script type="text/javascript" src="../../base/js/blockui.js"></script>
<script type="text/javascript" src="js/qq.js"></script>
</head>
<body >
<?php
$id = $_REQUEST["id"];
$msql->query("select * from {P}_tools_code where cat='qq' and id='{$id}' ");
if ($msql->next_record()) {
$qq = $msql->f('qq');
$name = $msql->f('name');
$position = $msql->f('position');
示例15: define
<?php
define("ROOTPATH", "../../");
include ROOTPATH . "includes/admin.inc.php";
include "language/" . $sLan . ".php";
include "func/vote.inc.php";
NeedAuth(82);
$action = $_REQUEST["action"];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="css/style.css" type="text/css" rel="stylesheet">
<title><?php
echo $strAdminTitle;
?>
</title>
<script>
blank = new Image(); blank.src = "images/blank.gif";
aqua = new Image(); aqua.src = "images/aqua.gif";
blue = new Image(); blue.src = "images/blue.gif";
brown = new Image(); brown.src = "images/brown.gif";
darkgreen = new Image(); darkgreen.src = "images/darkgreen.gif";
gold = new Image(); gold.src = "images/gold.gif";
green = new Image(); green.src = "images/green.gif";
grey = new Image(); grey.src = "images/grey.gif";
orange = new Image(); orange.src = "images/orange.gif";
pink = new Image(); pink.src = "images/pink.gif";
purple = new Image(); purple.src = "images/purple.gif";