• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP getAdminId函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中getAdminId函数的典型用法代码示例。如果您正苦于以下问题:PHP getAdminId函数的具体用法?PHP getAdminId怎么用?PHP getAdminId使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了getAdminId函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: isValidEmailAccess

function isValidEmailAccess($id, $table_prefix, $mysql)
{
    if (!isset($_COOKIE['inout_sub_admin'])) {
        return true;
    }
    if ($id == -1) {
        return false;
    }
    $accessflag = 0;
    $aid = getAdminId($mysql);
    $catId = mysql_query("select eid from " . $table_prefix . "admin_access_control where aid={$aid}");
    $email_cnt = $mysql->total($table_prefix . "email_advt", "id={$id}");
    while ($row = mysql_fetch_row($catId)) {
        if ($row[0] == 0) {
            if ($mysql->total($table_prefix . "ea_em_n_cat", "eid={$id}") == 0 && $email_cnt > 0) {
                $accessflag = 1;
            }
        } else {
            if ($mysql->total($table_prefix . "ea_em_n_cat", "eid={$id} and cid={$row['0']}") > 0) {
                $accessflag = 1;
            }
        }
    }
    if ($accessflag == 0) {
        return false;
    } else {
        return true;
    }
}
开发者ID:Maxlander,项目名称:shixi,代码行数:29,代码来源:functions.php


示例2: count

								   $relt="select count(distinct a.id) from ".$table_prefix."email_advt a, ".$table_prefix."ea_em_n_cat b 
		inner join ( SELECT eid FROM ".$table_prefix."admin_access_control where aid=$subAdminId )c on b.cid=c.eid 
		where a.id= b.eid and a.unsubstatus=0 and b.unsubstatus=0";
								   $total=$mysql->echo_one($relt);
								   echo $total;
								  }
								  else
								  {
								  echo $mysql->total("".$table_prefix."email_advt"," unsubstatus=0");
								  }*/
?>
)</option>-->
	    <?php 
$getListSql = "select * from " . $table_prefix . "email_advt_category order by name";
if (isset($_COOKIE['inout_sub_admin'])) {
    $subAdminId = getAdminId($mysql);
    $getListSql = "SELECT a.*\tFROM " . $table_prefix . "email_advt_category a inner join \n\t\t\t\t\t\t\t( SELECT eid FROM " . $table_prefix . "admin_access_control where aid={$subAdminId} ) b\n\t\t\t\t\t\t\t\ton a.id=b.eid  order by a.name";
}
$result = mysql_query($getListSql);
while ($row = mysql_fetch_row($result)) {
    echo '<option value="' . $row[0] . '">' . $row[1] . " (";
    $tot = mysql_query("select * from " . $table_prefix . "email_advt a, " . $table_prefix . "ea_em_n_cat b where a.id=b.eid AND a.unsubstatus=0 AND b.unsubstatus=0 AND b.cid={$row['0']}");
    echo mysql_num_rows($tot);
    echo ")</option>";
}
?>
      </select> 
      <span class="style4">*</span><span class="info">&nbsp;<br>
      (Number of emails in brackets. Email List can be changed only for pending campagns or when you restart an active campaign.)</span></td>
    </tr>
	
开发者ID:Maxlander,项目名称:shixi,代码行数:30,代码来源:createcamp.php


示例3: list

    echo "<a href=\"javascript:history.back(-1);\">Go Back</a><br><br>";
}
if ($resultstring != "") {
    echo "You have successfully exported the selected data. You may find the exported files in the following directory. <br><br>\n \t<span class=\"inserted\">export/{$day}/</span>";
    echo "<br><br>If you want to download all the exported files right now, please click on the corresponding links below.";
    echo "<br><br>" . $resultstring;
}
if ($show != "") {
    $show .= "]";
    echo "<br><span class=\"already\">You cannot export list(s) {$show} which have no emails.</span><br><br>";
}
if ($invalid != "") {
    $invalid .= "]";
    echo "<br><span class=\"already\">You dont have access to export the list(s) {$invalid} .</span><br><br>";
    if ($log_enabled == 1) {
        $aid = getAdminId($mysql);
        $adminname = $mysql->echo_one("select username from  " . $table_prefix . "subadmin_details where id={$aid}");
        mysql_query("insert into " . $table_prefix . "admin_log_info values('','{$aid}','{$adminname} attempted unauthorized access to export the list(s) {$invalid}','" . time() . "','{$CST_MLM_ADMIN_MANAGEMENT}')");
    }
}
if ($valid != "") {
    $valid .= "]";
    $aid = getAdminId($mysql);
    mysql_query("insert into " . $table_prefix . "admin_log_info values('','{$aid}','List(s) exported:{$valid}','" . time() . "','{$CST_MLM_LIST}')");
}
?>
</td>
  </tr>
</table>
<?php 
include_once "admin.footer.inc.php";
开发者ID:Maxlander,项目名称:shixi,代码行数:31,代码来源:export_data_run.php


示例4: getNavMenu

	<div class="row" style="font-size:15x;">
		<div class="col-xs-12 col-sm-9">
			<p>Добро пожаловать в "dPanel" - СРМ.</p>
			<p>Если Вы работаете на компьютере то сверху и слева будет меню с доступными страницами.<br>
			Если вы пользуетесь смартфоном то меню вызывается путем нажатия на иконку сверху.</p>
			<p>Ниже есть ссылки быстрого доступа.</p>
			<ul class="list-unstyled">
				<?php 
getNavMenu();
?>
			</ul>
			<p>Воспользуйтесь системой тикетов для поддержки <a href="<?php 
echo $cfg['options']['siteurl'];
?>
/newchat/<?php 
echo getAdminId();
?>
/new" class="tickets_links">здесь</a></p>
		</div>
	</div>
	<hr class="border-top-news">
	<div class="row">
		<div class="col-xs-12 col-sm-9">
			<h1>Новости</h1>
				<?php 
echo getNewsForMainPage();
?>
		</div>
	</div>
开发者ID:g20000,项目名称:mag.ru,代码行数:29,代码来源:stats.php


示例5: writeLog

function writeLog($new, $table_prefix, $extension, $arraycount, $mysql)
{
    include "constants.php";
    $aid = 0;
    if (isset($_COOKIE['inout_sub_admin'])) {
        $aid = getAdminId($mysql);
    }
    if ($new > 0) {
        mysql_query("insert into " . $table_prefix . "admin_log_info values('','{$aid}','{$new} email(s) added to database {$extension}','" . time() . "','{$CST_MLM_EMAIL}')");
    }
    if ($arraycount[1] > 0) {
        $catlist = $mysql->echo_one("select name from " . $table_prefix . "email_advt_category where id={$_POST['category']}");
        mysql_query("insert into " . $table_prefix . "admin_log_info values('','{$aid}','{$arraycount['1']} email(s) added to list(s) {$catlist} {$extension}','" . time() . "','{$CST_MLM_LIST}')");
    }
    if ($arraycount[2] > 0) {
        $catlist = $mysql->echo_one("select name from " . $table_prefix . "email_advt_category where id={$_POST['category2']}");
        mysql_query("insert into " . $table_prefix . "admin_log_info values('','{$aid}','{$arraycount['2']} email(s) added to list(s) {$catlist} {$extension}','" . time() . "','{$CST_MLM_LIST}')");
    }
    if ($arraycount[3] > 0) {
        $catlist = $mysql->echo_one("select name from " . $table_prefix . "email_advt_category where id={$_POST['category3']}");
        mysql_query("insert into " . $table_prefix . "admin_log_info values('','{$aid}','{$arraycount['3']} email(s) added to list(s) {$catlist} {$extension}','" . time() . "','{$CST_MLM_LIST}')");
    }
}
开发者ID:Maxlander,项目名称:shixi,代码行数:23,代码来源:extractems.php



注:本文中的getAdminId函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP getAdminModel函数代码示例发布时间:2022-05-15
下一篇:
PHP getAdminController函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap