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


PHP IsModelPriv函數代碼示例

本文整理匯總了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>
開發者ID:beijizhou,項目名稱:xinjiang001,代碼行數:31,代碼來源:syscount.php

示例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>
開發者ID:beijizhou,項目名稱:xinjiang001,代碼行數:31,代碼來源:goodsbrand_update.php

示例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 = '';
    }
開發者ID:jsycwangwei,項目名稱:NJIT,代碼行數:31,代碼來源:modeldata_save.php

示例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'])) {
開發者ID:CQHanSa,項目名稱:lingang,代碼行數:31,代碼來源:member_save.php

示例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()) {
        //強製去掉 '
        //強製去掉最後一位 /
開發者ID:jsycwangwei,項目名稱:NJIT,代碼行數:31,代碼來源:web_config.php

示例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);
開發者ID:wtySk,項目名稱:github,代碼行數:31,代碼來源:weblinktype.php

示例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 = '';
開發者ID:jsycwangwei,項目名稱:NJIT,代碼行數:31,代碼來源:infolist_save.php

示例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>
開發者ID:wtySk,項目名稱:github,代碼行數:31,代碼來源:job_add.php

示例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 = '';
開發者ID:beijizhou,項目名稱:xinjiang001,代碼行數:31,代碼來源:goods_save.php

示例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++;
開發者ID:beijizhou,項目名稱:xinjiang001,代碼行數:31,代碼來源:maintype.php

示例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()) {
開發者ID:beijizhou,項目名稱:xinjiang001,代碼行數:31,代碼來源:info.php

示例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 = '';
    }
開發者ID:beijizhou,項目名稱:xinjiang001,代碼行數:31,代碼來源:goodsorder.php

示例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 {
開發者ID:jsycwangwei,項目名稱:NJIT,代碼行數:31,代碼來源:usergroup_save.php

示例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)) {
開發者ID:beijizhou,項目名稱:xinjiang001,代碼行數:31,代碼來源:soft_do.php

示例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();
開發者ID:jsycwangwei,項目名稱:NJIT,代碼行數:31,代碼來源:infoclass_save.php


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