本文整理汇总了PHP中IsModelPriv函数的典型用法代码示例。如果您正苦于以下问题:PHP IsModelPriv函数的具体用法?PHP IsModelPriv怎么用?PHP IsModelPriv使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了IsModelPriv函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: dirname
<?php
require_once dirname(__FILE__) . '/inc/config.inc.php';
IsModelPriv('syscount');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>数据统计</title>
<link href="templates/style/admin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="templates/js/jquery.min.js"></script>
<script type="text/javascript" src="templates/js/forms.func.js"></script>
</head>
<body>
<div class="topToolbar"> <span class="title">数据统计</span> <a href="javascript:location.reload();" class="reload">刷新</a></div>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="dataTable">
<tr align="left">
<td height="45" colspan="3" class="firstCol"><strong class="sysCountNum">网站系统管理</strong></td>
</tr>
<tr align="left" class="head">
<td width="45%" height="36" class="firstCol">模块名称</td>
<td width="10%">数据量</td>
<td width="45%" class="action endCol">最后操作</td>
</tr>
<tr align="left" class="dataTr">
<td height="36" class="firstCol">管理员管理</td>
<td><?php
echo $dosql->GetTableRow('#@__admin');
?>
</td>
示例2: dirname
<?php
require_once dirname(__FILE__) . '/inc/config.inc.php';
IsModelPriv('goodsbrand');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>修改商品品牌</title>
<link href="templates/style/admin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="templates/js/jquery.min.js"></script>
<script type="text/javascript" src="templates/js/getuploadify.js"></script>
<script type="text/javascript" src="templates/js/checkf.func.js"></script>
</head>
<body>
<?php
$row = $dosql->GetOne("SELECT * FROM `#@__goodsbrand` WHERE `id`={$id}");
?>
<div class="formHeader"> <span class="title">修改商品品牌</span> <a href="javascript:location.reload();" class="reload">刷新</a> </div>
<form name="form" id="form" method="post" action="goodsbrand_save.php" onsubmit="return cfm_btype();">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="formTable">
<tr>
<td width="25%" height="40" align="right">所属品牌:</td>
<td width="75%"><select name="parentid" id="parentid">
<option value="0">一级品牌分类</option>
<?php
GetAllType('#@__goodsbrand', '#@__goodsbrand', 'parentid');
?>
</select>
<span class="maroon">*</span><span class="cnote">带<span class="maroon">*</span>号表示为必填项</span></td>
示例3: dirname
<?php
require_once dirname(__FILE__) . '/inc/config.inc.php';
IsModelPriv('diymodel');
/*
**************************
(C)2010-2014 phpMyWind.com
update: 2014-1-30 13:50:21
person: Feng
**************************
*/
//初始化参数
$r = $dosql->GetOne("SELECT * FROM `#@__diymodel` WHERE `modelname`='{$m}'");
$modelid = $r['id'];
$tbname = $r['modeltbname'];
$gourl = 'modeldata.php?m=' . $r['modelname'];
$action = isset($action) ? $action : '';
//引入操作类
require_once ADMIN_INC . '/action.class.php';
//添加模型信息
if ($action == 'add') {
//初始化信息
if (!isset($title)) {
$title = '';
}
if (!isset($flag)) {
$flag = '';
}
if (!isset($picurl)) {
$picurl = '';
}
示例4: dirname
<?php
require_once dirname(__FILE__) . '/inc/config.inc.php';
IsModelPriv('member');
/*
**************************
(C)2010-2014 phpMyWind.com
update: 2014-5-30 17:16:14
person: Feng
**************************
*/
//初始化参数
$tbname = '#@__member';
$gourl = 'member.php';
//引入操作类
require_once ADMIN_INC . '/action.class.php';
//添加会员
if ($action == 'add') {
if (!isset($enteruser)) {
$enteruser = '';
}
if (preg_match("/[^0-9a-zA-Z_@!\\.-]/", $username) || preg_match("/[^0-9a-zA-Z_@!\\.-]/", $password)) {
ShowMsg('用户名或密码非法!请使用[0-9a-zA-Z_@!.-]内的字符!', '-1');
exit;
}
if ($password != $repassword) {
ShowMsg('两次输入的密码不一样!', '-1');
exit;
}
$r = $dosql->GetOne("SELECT username FROM `{$tbname}` WHERE username='{$username}'");
if (!empty($r['username'])) {
示例5: dirname
<?php
require_once dirname(__FILE__) . '/inc/config.inc.php';
IsModelPriv('web_config');
/*
**************************
(C)2010-2014 phpMyWind.com
update: 2012-8-22 9:08:29
person: Feng
**************************
*/
//初始化参数
$gourl = 'web_config.php';
$action = isset($action) ? $action : '';
//引入相关文件
$config_cache = PHPMYWIND_INC . '/config.cache.php';
$watermark_inc = PHPMYWIND_DATA . '/watermark/watermark.inc.php';
$manageui_inc = ADMIN_INC . '/manageui.inc.php';
//设置选项卡项
$config_tab_arr = array('基本设置', '附件设置', '性能设置', 'URL静态化', '核心设置');
//统计当前数组数量
$config_tab_num = count($config_tab_arr);
//更新配置函数
function WriteConfig()
{
global $dosql, $config_cache, $gourl;
$str = '<?php if(!defined(\'IN_PHPMYWIND\')) exit(\'Request Error!\');' . "\r\n\r\n";
$dosql->Execute("SELECT `varname`,`vartype`,`varvalue`,`vargroup` FROM `#@__webconfig` ORDER BY orderid ASC");
while ($row = $dosql->GetArray()) {
//强制去掉 '
//强制去掉最后一位 /
示例6: dirname
<?php
require_once dirname(__FILE__) . '/inc/config.inc.php';
IsModelPriv('weblinktype');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>链接分类管理</title>
<link href="templates/style/admin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="templates/js/jquery.min.js"></script>
<script type="text/javascript" src="templates/js/forms.func.js"></script>
</head>
<body>
<div class="topToolbar"> <span class="title">链接分类管理</span> <span class="text"><a href="weblink.php">链接管理</a></span> <a href="javascript:location.reload();" class="reload">刷新</a></div>
<form name="form" id="form" method="post" action="">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="dataTable">
<tr align="left" class="head">
<td width="5%" height="36" class="firstCol"><input type="checkbox" name="checkid" onclick="CheckAll(this.checked);" /></td>
<td width="3%">ID</td>
<td width="40%">类别名称</td>
<td width="20%" align="center" abbr="center">排序</td>
<td width="32%" class="endCol">操作</td>
</tr>
</table>
<?php
function Show($id = 0, $i = 0)
{
global $dosql, $cfg_siteid;
$dosql->Execute("SELECT * FROM `#@__weblinktype` WHERE siteid='{$cfg_siteid}' AND parentid={$id} ORDER BY orderid ASC", $id);
示例7: dirname
<?php
require_once dirname(__FILE__) . '/inc/config.inc.php';
IsModelPriv('infolist');
/*
**************************
(C)2010-2014 phpMyWind.com
update: 2014-5-30 17:03:29
person: Feng
**************************
*/
//初始化参数
$tbname = '#@__infolist';
$gourl = 'infolist.php';
$action = isset($action) ? $action : '';
//添加列表信息
if ($action == 'add') {
//栏目权限验证
IsCategoryPriv($classid, 'add');
//初始化参数
if (!isset($mainid)) {
$mainid = '-1';
}
if (!isset($flag)) {
$flag = '';
}
if (!isset($picarr)) {
$picarr = '';
}
if (!isset($rempic)) {
$rempic = '';
示例8: dirname
<?php
require_once dirname(__FILE__) . '/inc/config.inc.php';
IsModelPriv('job');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>添加招聘信息</title>
<link href="templates/style/admin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="templates/js/jquery.min.js"></script>
<script type="text/javascript" src="templates/js/checkf.func.js"></script>
<script type="text/javascript" src="editor/kindeditor-min.js"></script>
<script type="text/javascript" src="editor/lang/zh_CN.js"></script>
</head>
<body>
<div class="formHeader"> <span class="title">添加招聘信息</span> <a href="javascript:location.reload();" class="reload">刷新</a> </div>
<form name="form" id="form" method="post" action="job_save.php" onsubmit="return cfm_job();">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="formTable">
<tr>
<td width="25%" height="40" align="right">岗位名称:</td>
<td width="75%"><input type="text" name="title" id="title" class="input" onblur="checkuser()" />
<span class="maroon">*</span><span class="cnote">带<span class="maroon">*</span>号表示为必填项</span> <span id="usernote"></span></td>
</tr>
<tr>
<td height="40" align="right">工作地点:</td>
<td><input type="text" name="jobplace" id="jobplace" class="input" /></td>
</tr>
<tr>
<td height="40" align="right">工作性质:</td>
示例9: dirname
<?php
require_once dirname(__FILE__) . '/inc/config.inc.php';
IsModelPriv('goods');
/*
**************************
(C)2010-2015 phpMyWind.com
update: 2014-5-30 14:07:16
person: Feng
**************************
*/
//初始化参数
$tbname = '#@__goods';
$gourl = 'goods.php';
$action = isset($action) ? $action : '';
//添加商品信息
if ($action == 'add') {
//栏目权限验证
IsCategoryPriv($classid, 'add');
//初始化参数
if (!isset($typeid)) {
$typeid = '-1';
}
if (!isset($brandid)) {
$brandid = '-1';
}
if (!isset($attrid)) {
$attrid = '';
}
if (!isset($attrvalue)) {
$attrvalue = '';
示例10: dirname
<?php
require_once dirname(__FILE__) . '/inc/config.inc.php';
IsModelPriv('maintype');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>二级类别管理</title>
<link href="templates/style/admin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="templates/js/jquery.min.js"></script>
<script type="text/javascript" src="templates/js/forms.func.js"></script>
</head>
<body>
<div class="topToolbar"> <span class="title">二级类别管理</span> <a href="javascript:location.reload();" class="reload">刷新</a></div>
<form name="form" id="form" method="post" action="">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="dataTable">
<tr align="left" class="head">
<td width="5%" height="36" class="firstCol"><input type="checkbox" name="checkid" onclick="CheckAll(this.checked);" /></td>
<td width="3%">ID</td>
<td width="40%">类别名称</td>
<td width="20%" align="center" abbr="center">排序</td>
<td width="32%" class="endCol">操作</td>
</tr>
</table>
<?php
function Show($id = 0, $i = 0)
{
global $dosql, $cfg_siteid;
$i++;
示例11: dirname
<?php
require_once dirname(__FILE__) . '/inc/config.inc.php';
IsModelPriv('info');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>单页信息管理</title>
<link href="templates/style/admin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="templates/js/jquery.min.js"></script>
<script type="text/javascript" src="templates/js/forms.func.js"></script>
</head>
<body>
<div class="topToolbar"> <span class="title">单页信息管理</span> <a href="javascript:location.reload();" class="reload">刷新</a></div>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="dataTable">
<tr align="left" class="head">
<td width="5%" height="36" class="firstCol">ID</td>
<td width="40%">单页名称</td>
<td width="40%">更新时间</td>
<td width="15%" class="endCol">操作</td>
</tr>
<?php
//权限验证
if ($cfg_adminlevel != 1) {
//初始化参数
$catgoryListPriv = array();
$catgoryUpdatePriv = array();
$dosql->Execute("SELECT * FROM `#@__adminprivacy` WHERE `groupid`=" . $cfg_adminlevel . " AND `model`='category' AND `action`<>'add' AND `action`<>'del'");
while ($row = $dosql->GetArray()) {
示例12: dirname
<?php
require_once dirname(__FILE__) . '/inc/config.inc.php';
IsModelPriv('goodsorder');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>商品订单管理</title>
<link href="templates/style/admin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="templates/js/jquery.min.js"></script>
<script type="text/javascript" src="templates/js/forms.func.js"></script>
</head>
<body>
<div class="topToolbar"> <span class="title">商品订单管理</span> <a href="javascript:location.reload();" class="reload">刷新</a></div>
<div class="toolbarTab">
<ul>
<?php
//初始化参数
$flag = isset($flag) ? $flag : 'all';
$keyword = isset($keyword) ? $keyword : '';
$flagArr = array('all' => '全部', 'core' => '星标', 'empty' => '未审', 'confirm' => '确认', 'payment' => '付款', 'postgoods' => '发货', 'getgoods' => '收货', 'applyreturn' => '申退', 'agreedreturn' => '退货', 'goodsback' => '返货', 'moneyback' => '退款', 'overorder' => '归档');
$flagArrNum = count($flagArr);
$i = 1;
foreach ($flagArr as $k => $v) {
if ($flag == $k) {
$flagOn = 'on';
} else {
$flagOn = '';
}
示例13: dirname
<?php
require_once dirname(__FILE__) . '/inc/config.inc.php';
IsModelPriv('usergroup');
/*
**************************
(C)2010-2014 phpMyWind.com
update: 2014-5-30 18:06:17
person: Feng
**************************
*/
//初始化参数
$tbname = '#@__usergroup';
$gourl = 'usergroup.php';
$action = isset($action) ? $action : '';
//引入操作类
require_once ADMIN_INC . '/action.class.php';
//保存操作
if ($action == 'save') {
if ($groupname_add != '') {
$dosql->ExecNoneQuery("INSERT INTO `{$tbname}` (groupname, expvala, expvalb, stars, color) VALUES ('{$groupname_add}', '{$expvala_add}', '{$expvalb_add}', '{$stars_add}', '{$color_add}')");
}
if (isset($id)) {
$ids = count($id);
for ($i = 0; $i < $ids; $i++) {
$dosql->ExecNoneQuery("UPDATE `{$tbname}` SET groupname='{$groupname[$i]}', expvala='{$expvala[$i]}', expvalb='{$expvalb[$i]}', stars='{$stars[$i]}', color='{$color[$i]}' WHERE id={$id[$i]}");
}
}
header("location:{$gourl}");
exit;
} else {
示例14: dirname
<?php
require_once dirname(__FILE__) . '/inc/config.inc.php';
IsModelPriv('soft');
/*
**************************
(C)2010-2015 phpMyWind.com
update: 2014-5-28 15:56:55
person: Feng
**************************
*/
//初始化参数
$action = isset($action) ? $action : '';
$keyword = isset($keyword) ? $keyword : '';
//删除单条记录
if ($action == 'del') {
//栏目权限验证
$r = $dosql->GetOne("SELECT `classid` FROM `#@__{$tbname}` WHERE `id`={$id}");
IsCategoryPriv($r['classid'], 'del', 1);
$deltime = time();
$dosql->ExecNoneQuery("UPDATE `#@__{$tbname}` SET delstate='true', deltime='{$deltime}' WHERE id={$id}");
}
//删除选中记录
if ($action == 'delall') {
if ($ids != '') {
//解析id,验证是否有删除权限
$ids = explode(',', $ids);
$idstr = '';
foreach ($ids as $id) {
$r = $dosql->GetOne("SELECT `classid` FROM `#@__{$tbname}` WHERE `id`={$id}");
if (IsCategoryPriv($r['classid'], 'del', 1)) {
示例15: dirname
<?php
require_once dirname(__FILE__) . '/inc/config.inc.php';
IsModelPriv('infoclass');
/*
**************************
(C)2010-2014 phpMyWind.com
update: 2014-5-30 16:53:58
person: Feng
**************************
*/
//初始化参数
$tbname = '#@__infoclass';
$gourl = 'infoclass.php';
//引入操作类
require_once ADMIN_INC . '/action.class.php';
//添加栏目
if ($action == 'add') {
//权限验证
//如果parentid等于0,则是新添加的栏目,不验证权限
if ($parentid != 0) {
IsCategoryPriv($parentid, 'add');
}
$parentstr = $doaction->GetParentStr();
$sql = "INSERT INTO `{$tbname}` (siteid, parentid, parentstr, infotype, classname, linkurl, picurl, picwidth, picheight, seotitle, keywords, description, orderid, checkinfo) VALUES ('{$cfg_siteid}', '{$parentid}', '{$parentstr}', '{$infotype}', '{$classname}', '{$linkurl}', '{$picurl}', '{$picwidth}', '{$picheight}', '{$seotitle}', '{$keywords}', '{$description}', '{$orderid}', '{$checkinfo}')";
if ($dosql->ExecNoneQuery($sql)) {
//为非超级管理员增加操作权限
if ($cfg_adminlevel != 1) {
$groupid = $cfg_adminlevel;
$siteid = $_SESSION['siteid'];
$classid = $dosql->GetLastID();