当前位置: 首页>>代码示例>>PHP>>正文


PHP MooMessageAdmin函数代码示例

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


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

示例1: system_adminaction_edit

function system_adminaction_edit()
{
    global $menu_nav_arr, $dbTablePre;
    $actionid = MooGetGPC('actionid', 'integer');
    $ispost = MooGetGPC('ispost', 'integer');
    if (empty($actionid)) {
        MooMessageAdmin('参数错误', 'index.php?action=adminaction&h=list', 1);
    }
    if ($ispost) {
        $actiondesc = MooGetGPC('actiondesc', 'string');
        $actioncode = MooGetGPC('actioncode', 'string');
        $navcode = MooGetGPC('navcode', 'string');
        $navname = MooGetGPC('navname', 'string');
        if (empty($actiondesc) || empty($actioncode) || empty($navcode) || empty($navname)) {
            $admin->showMessage('请将信息填写完整', 'index.php?action=adminaction&h=add', 1);
        }
        $sql = "UPDATE {$GLOBALS['dbTablePre']}admin_action SET navname='{$navname}',navcode='{$navcode}',actioncode='{$actioncode}',actiondesc='{$actiondesc}' WHERE id='{$actionid}'";
        $result = $GLOBALS['_MooClass']['MooMySQL']->query($sql);
        if ($result) {
            //note 插入日志
            serverlog(2, $GLOBALS['dbTablePre'] . 'admin_action', "{$GLOBALS['username']}修改操作{$actionid}", $GLOBALS['adminid']);
            salert('修改成功', 'index.php?action=system_adminaction&h=list');
            //MooMessageAdmin('修改成功','index.php?action=system_adminaction&h=list',1);
        } else {
            salert('修改失败', 'index.php?action=system_adminaction&h=list');
            //MooMessageAdmin('修改失败','index.php?action=system_adminaction&h=list',1);
        }
    }
    $sql = "SELECT * FROM {$GLOBALS['dbTablePre']}admin_action WHERE id='{$actionid}'";
    $adminaction = $GLOBALS['_MooClass']['MooMySQL']->getOne($sql);
    require_once adminTemplate('adminaction_edit');
}
开发者ID:noikiy,项目名称:zays,代码行数:32,代码来源:system_adminaction.php

示例2: activite_sub

function activite_sub()
{
    $db = $GLOBALS['db'];
    $href = 'http://www.7651.com/index.php?n=activity&h=' . $_REQUEST['href'];
    $address = 'module/activity/templates/default/images/activity_new/' . $_REQUEST['address'];
    $group = $_REQUEST['group'];
    $sort = $_REQUEST['sort'];
    if ($_REQUEST['mid']) {
        $mid = $_REQUEST['mid'];
        $sql = "update web_activity_img SET `group` = '{$group}',`address` = '{$address}',`href` = '{$href}',`sort` = '{$sort}' where mid = '{$mid}'";
        $db->query($sql);
        MooMessageAdmin('编辑成功', 'activity_img.php', 2);
        exit;
    } else {
        $sql = "select mid from web_activity_img where `href` = '{$href}' or `address` = '{$address}' or (`group` = '{$group}' and `sort` = '{$sort}')";
        if ($db->getOne($sql)) {
            MooMessageAdmin('信息有错误', 'activity_img.php?act=add', 2);
            exit;
        } else {
            $sql = "insert into web_activity_img (`group`,`address`,`href`,`sort`) values ('{$group}','{$address}','{$href}','{$sort}')";
            $db->query($sql);
            MooMessageAdmin('添加成功', 'activity_img.php', 2);
            exit;
        }
    }
}
开发者ID:noikiy,项目名称:zays,代码行数:26,代码来源:activity_img.php

示例3: system_adminlog_del

function system_adminlog_del()
{
    $logid_list = MooGetGPC('checkboxes', 'string');
    $day = MooGetGPC('day', 'integer');
    $time = time() - $day * 24 * 60 * 60;
    if (empty($logid_list) && empty($day)) {
        MooMessageAdmin('参数错误', 'index.php?action=system_adminlog&h=list', 1);
    }
    if (!empty($logid_list)) {
        $logid_string = implode(',', $logid_list);
        $sql = "DELETE FROM {$GLOBALS['dbTablePre']}server_log WHERE slid IN ({$logid_string})";
        $result = $GLOBALS['_MooClass']['MooMySQL']->query($sql);
        $note = "ID:({$logid_string})";
    } else {
        $sql = "DELETE FROM {$GLOBALS['dbTablePre']}server_log WHERE time<{$time}";
        $result = $GLOBALS['_MooClass']['MooMySQL']->query($sql);
        $note = "时间早于" . date('Y-m-d H:i:s', $time);
    }
    //note 插入日志
    serverlog(4, $GLOBALS['dbTablePre'] . 'server_log', "删除日志{$note}", $GLOBALS['adminid']);
    if ($result) {
        MooMessageAdmin('删除日志成功', 'index.php?action=system_adminlog&h=list', 1);
    } else {
        MooMessageAdmin('删除日志失败', 'index.php?action=system_adminlog&h=list', 1);
    }
}
开发者ID:noikiy,项目名称:zays,代码行数:26,代码来源:system_adminlog.php

示例4: site_skin_check

function site_skin_check()
{
    global $dbTablePre, $_MooClass;
    $uid = MooGetGPC('uid', 'string');
    $sql = "select * from {$dbTablePre}members_skin where uid = '{$uid}'";
    $uid_skin = $_MooClass['MooMySQL']->getOne($sql);
    if ($_POST) {
        $image = MooGetGPC('image', 'string', 'P');
        $skiname = MooGetGPC('skiname', 'string', 'P');
        $skin_style = MooGetGPC('skin_style', 'string', 'P');
        $imgs = $_FILES['imgs'];
        $maxfilesize = 1024 * 1024;
        $time = time();
        $type = array('jpg', 'jpeg', 'gif', 'png', 'bmp');
        if (!empty($imgs['size'])) {
            foreach ($type as $v) {
                if (eregi($v, $imgs['type'])) {
                    $flag = 1;
                }
            }
            if ($flag != 1) {
                $notice = "照片必须为BMP,JPG,PNG或GIF格式";
                MooMessageAdmin($notice, 'index.php?action=site_story&h=check&uid={$uid}', 0);
                exit;
            }
            if ($imgs['size'] >= $maxfilesize) {
                $notice = "上传图片大小不得超过1M";
                MooMessageAdmin($notice, 'index.php?action=site_skin&h=check&uid={$uid}', 0);
                exit;
            }
            //删除之前上传的图片
            unlink('../' . $image);
            //note 上传到指定目录,并且获得上传后的文件描述
            $new_path = 'data/upload/images_skin/';
            $file_url = $new_path . $imgs['name'];
            if (file_exists('../' . $file_url)) {
                unlink('../' . $file_url);
            }
            if (!move_uploaded_file(str_replace('\\\\', '\\', $imgs['tmp_name']), '../' . $file_url)) {
                echo '<script>没有上传成功!;window.history.go(-1);</script>';
                exit;
            }
            $sql = "update {$dbTablePre}members_skin set skiname='{$skiname}',skin_style='{$skin_style}',image='{$file_url}',date='{$time}' where uid='{$uid}'";
            if ($_MooClass['MooMySQL']->query($sql)) {
                //note 插入日志
                serverlog(1, $GLOBALS['dbTablePre'] . 'members_skin', '修改皮肤成功', $GLOBALS['adminid']);
                salert("修改皮肤成功", "index.php?action=site_skin&h=check&uid={$uid}");
            }
        } else {
            $sql = "update {$dbTablePre}members_skin set skiname='{$skiname}',skin_style='{$skin_style}',image='{$image}',date='{$time}' where uid='{$uid}'";
            if ($_MooClass['MooMySQL']->query($sql)) {
                serverlog(1, $GLOBALS['dbTablePre'] . 'members_skin', '修改皮肤成功', $GLOBALS['adminid']);
                salert("修改皮肤成功", "index.php?action=site_skin&h=check&uid={$uid}");
            }
        }
    }
    require adminTemplate('site_skin_check');
}
开发者ID:noikiy,项目名称:zays,代码行数:58,代码来源:site_skin.php

示例5: multipage

    $url2 = "apply_time1={$apply_time1}&apply_time2={$apply_time2}&sid={$apply_sid}&uid={$uid}";
    $currenturl = "index.php?action=vipuser&h=pay_query&" . $url2;
    $page_links = multipage($total, $page_per, $page, $currenturl);
    require adminTemplate('vipuser_pay_query');
}
/***********************************************控制层(C)*****************************************/
$h = MooGetGPC('h', 'string', 'G') == '' ? 'pay' : MooGetGPC('h', 'string', 'G');
//note 动作列表
$hlist = array('pay', 'nopay', 'downline', 'upgrade_apply', 'pay_other', 'apply_list', 'high', 'diamond', 'city_star', 'vip_summary', 'viped', 'hurryhigh', 'hurrydiamond', 'getvip_group', 'pay_query');
//note 判断页面是否存在
if (!in_array($h, $hlist)) {
    MooMessageAdmin('您要打开的页面不存在', 'index.php?action=vipuser');
}
//note 判断是否有权限
if (!checkGroup('vipuser', $h)) {
    MooMessageAdmin('您没有此操作的权限', 'index.php?action=vipuser');
}
switch ($h) {
    case 'pay':
        //note 已支付列表
        vipuser_pay();
        break;
    case 'nopay':
        //note 未支付列表
        vipuser_nopay();
        break;
    case 'downline':
        //note 线下支付
        vipuser_downline();
        break;
    case 'upgrade_apply':
开发者ID:noikiy,项目名称:zays,代码行数:31,代码来源:vipuser.php

示例6: site_story_edit

function site_story_edit()
{
    global $story_sweet_process, $_MooClass, $dbTablePre, $memcached;
    $ispost = MooGetGPC('ispost', 'integer', 'P');
    $imgpost = MooGetGPC('imgpost', 'integer', 'P');
    //$MooImage = MooAutoLoad('MooImage');
    if ($imgpost == '1') {
        $story_picname = MooGetGPC('imgUrl', 'string', 'P');
        $sid = MooGetGPC('sid', 'integer', 'P');
        $mid = MooGetGPC('mid', 'integer', 'P');
        //重新生成小图 覆盖原来的首页照
        $src = IMG_ROOT . $story_picname;
        $sidmd5 = $sid * 3;
        $size = getimagesize($src, $info);
        $width = $size['0'];
        $height = $size['1'];
        $sizearray = array(0 => array('width' => 280, 'height' => 168), 1 => array('width' => 252, 'height' => 151), 2 => array('width' => 150, 'height' => 90));
        $namearray = array(0 => 'big', 1 => 'medium', 2 => 'small');
        $newimages = changesize($src, '../data/upload/story', 0, 0, $width, $height, $sid, $sizearray, $namearray);
        $sql = "UPDATE {$GLOBALS['dbTablePre']}story SET is_index='{$mid}' WHERE sid='{$sid}'";
        $res = $GLOBALS['_MooClass']['MooMySQL']->query($sql);
        if ($res) {
            echo 1;
        }
        exit;
    }
    if ($ispost == '1') {
        $sid = trim(MooGetGPC('sid', 'integer', 'P'));
        $title = htmlspecialchars(trim(MooGetGPC('title', 'string', 'P')));
        $content = htmlspecialchars(trim(MooGetGPC('content', 'string', 'P')));
        $confirmtime = htmlspecialchars(MooGetGPC('confirmtime', 'string', 'P'));
        $story_date = '';
        if ($confirmtime) {
            $story_date1 = htmlspecialchars(MooGetGPC('confirmtime', 'string', 'P'));
            $story_date = strtotime($story_date1);
        } else {
            $story_date1 = trim(MooGetGPC('date', 'string', 'P'));
            $story_date = strtotime($story_date1);
        }
        $name1 = trim(MooGetGPC('name1', 'string', 'P'));
        $name1 = htmlspecialchars($name1);
        $name2 = trim(MooGetGPC('name2', 'string', 'P'));
        $name2 = htmlspecialchars($name2);
        $state = trim(MooGetGPC('state', 'integer', 'P'));
        $syscheck = trim(MooGetGPC('pass', 'integer', 'P'));
        $recommand = trim(MooGetGPC('recommand', 'integer', 'P'));
        $hot = trim(MooGetGPC('clicknum', 'integer', 'P'));
        date_default_timezone_set('Asia/Shanghai');
        $submit_date = time();
        $imgtitle = trim(MooGetGPC('imgtitle', 'string', 'P'));
        $imgtitle = htmlspecialchars($imgtitle);
        //note 上传新图片
        //note 判断上传的文件类型
        $flag = '';
        $images = array('jpg', 'jpeg', 'gif', 'png', 'bmp');
        $maxfilesize = 1024 * 1024;
        $filesize = $_FILES['img']['size'];
        if (!empty($filesize)) {
            foreach ($images as $v) {
                if (strpos($_FILES['img']['type'], $v) == true) {
                    $flag = 1;
                }
            }
            if ($flag != 1) {
                $notice = "照片必须为BMP,JPG,PNG或GIF格式";
                MooMessageAdmin($notice, 'index.php?action=site_story&h=edit&id=' . $sid, 0);
                exit;
            }
            if ($filesize > $maxfilesize) {
                $notice = "上传图片大小不得超过1M";
                MooMessageAdmin($notice, 'index.php?action=site_story&h=edit&id=' . $sid, 0);
                exit;
            }
            //note 上传到指定目录,并且获得上传后的文件描述
            global $upload;
            $upload = MooAutoLoad('MooUpload');
            $upload->config(array('targetDir' => IMG_ROOT, 'saveType' => '0'));
            $files = $upload->saveFiles('img');
            $story_picname = $files[0]['name'] . "." . $files[0]['extension'];
            $filetype = explode('.', $story_picname);
            $filetype = array_pop($filetype);
            //生成小图
            /*
            $src = IMG_ROOT.$story_picname;
            $sidmd5=$sid*3;
            $size = getimagesize($src,$info);
            $width = $size['0'];
            $height = $size['1'];
            $sizearray=array(0=>array('width'=>280,'height'=>168),1=>array('width'=>252,'height'=>151),2=>array('width'=>150,'height'=>90));
            $namearray=array(0=>'big',1=>'medium',2=>'small');
            $newimages=changesize($src,'../data/upload/story',0,0,$width,$height,$sid,$sizearray,$namearray);
            */
            $res_in_pic = '';
            if ($story_picname) {
                //note 插入story_pic表
                $sql_in_spic = "INSERT INTO {$GLOBALS['dbTablePre']}story_pic SET sid='{$sid}',img='{$story_picname}',title='{$imgtitle}',submit_date='{$submit_date}',syscheck='{$syscheck}'";
                $res_in_pic = $GLOBALS['_MooClass']['MooMySQL']->query($sql_in_spic);
            }
        }
        $sql = "UPDATE {$GLOBALS['dbTablePre']}story SET title='{$title}',content='{$content}',story_date='{$story_date}',name1='{$name1}',name2='{$name2}',state='{$state}',syscheck='{$syscheck}',recommand='{$recommand}',hot='{$hot}' WHERE sid='{$sid}' ";
//.........这里部分代码省略.........
开发者ID:noikiy,项目名称:zays,代码行数:101,代码来源:site_story.php

示例7: active_activity_edit

function active_activity_edit()
{
    $id = MooGetGPC('id', 'integer', 'G');
    $id = empty($id) ? MooGetGPC('id', 'integer', 'P') : $id;
    $data = array();
    if ($_POST) {
        $where['id'] = $id;
        $data['title'] = trim(MooGetGPC('title', 'string', 'P'));
        if (empty($data['title'])) {
            MooMessageAdmin('请活动主题', 'index.php?action=active_activity&h=add');
            exit;
        }
        $data['type'] = MooGetGPC('type', 'integer', 'P');
        $data['price'] = MooGetGPC('price', 'integer', 'P');
        $data['price_online'] = MooGetGPC('price_online', 'integer', 'P');
        $data['starttime'] = MooGetGPC('starttime', 'string', 'P');
        if (empty($data['starttime'])) {
            MooMessageAdmin('请填写活动的报名开始时间', 'index.php?action=active_activity&h=add');
            exit;
        }
        $data['starttime'] = strtotime($data['starttime'] . ' 0:0:0');
        $data['endtime'] = MooGetGPC('endtime', 'string', 'P');
        if (empty($data['endtime'])) {
            MooMessageAdmin('请填写活动的报名结束时间', 'index.php?action=active_activity&h=add');
            exit;
        }
        $data['endtime'] = strtotime($data['endtime'] . ' 23:59:59');
        $data['opentime'] = MooGetGPC('opentime', 'array', 'P');
        if (empty($data['opentime']['day'])) {
            $data['opentime'] = 0;
        } else {
            $data['opentime'] = strtotime($data['opentime']['day'] . ' ' . $data['opentime']['hour'] . ':' . $data['opentime']['mintue'] . ':0');
        }
        $data['closetime'] = MooGetGPC('closetime', 'array', 'P');
        if (empty($data['closetime']['day'])) {
            $data['closetime'] = 0;
        } else {
            $data['closetime'] = strtotime($data['closetime']['day'] . ' ' . $data['closetime']['hour'] . ':' . $data['closetime']['mintue'] . ':0');
        }
        $data['issex'] = MooGetGPC('issex', 'string', 'P');
        $data['issex'] = $data['issex'] < 1 ? 100 : ($data['issex'] > 100 ? 100 : $data['issex']);
        $data['province'] = MooGetGPC('province', 'integer', 'P');
        $data['activity_img'] = 'module/activity/templates/default/images/activity_new/' . MooGetGPC('img', 'string', 'P');
        $data['href'] = 'index.php?n=activity&h=' . MooGetGPC('href', 'string', 'P');
        $data['city'] = MooGetGPC('city', 'integer', 'P');
        $data['place'] = htmlspecialchars(trim(MooGetGPC('place', 'string', 'P')));
        $data['profile'] = htmlspecialchars(trim(MooGetGPC('profile', 'string', 'P')));
        $data['introduction'] = htmlspecialchars(trim(MooGetGPC('introduction', 'string', 'P')));
        updatetable('activity', $data, $where);
        MooMessageAdmin('活动修改成功', 'index.php?action=active_activity&h=edit&id=' . $id);
    }
    $sql = 'SELECT `type`,`title`,`price`,`price_online`,`starttime`,`endtime`,`opentime`,`closetime`,`issex`,`province`,`city`,`place`,`profile`,`introduction` from `' . $GLOBALS['dbTablePre'] . 'activity` where `id`=' . $id;
    $data = $GLOBALS['_MooClass']['MooMySQL']->getOne($sql);
    require adminTemplate('active_activity_detail');
}
开发者ID:noikiy,项目名称:zays,代码行数:55,代码来源:active_activity.php

示例8: adminTemplate

                 }
             }
         }
         require_once adminTemplate('vote_member_one');
     }
 } else {
     if ($act == 'delect') {
         if (empty($_REQUEST['uid'])) {
             header("location:vote_member.php?act=list");
         } else {
             $uid = $_REQUEST['uid'];
             $sql = "DELETE FROM vote_member WHERE uid = {$uid}";
             $db->query($sql);
             $sql = "DELETE FROM vote_sub WHERE uid = {$uid}";
             $db->query($sql);
             MooMessageAdmin('删除成功', 'vote_member.php?act=list', 1);
         }
     } else {
         if ($act == 'edit') {
             if (empty($_REQUEST['uid'])) {
                 header("location:vote_member.php?act=list");
             } else {
                 $uid = $_REQUEST['uid'];
                 $sql = "select t1.*,t2.vote_title,t3.sub_time,t3.vote_result,t3.vid from vote_member as t1 left join vote_sub as t3 on t1.uid=t3.uid left join vote as t2 on t3.vid = t2.vid where t1.uid = '{$uid}'";
                 $result = $db->getAll($sql);
                 foreach ($result as $k => $v) {
                     if ($k == '0') {
                         $arr[] = $v;
                     }
                     $arr['vote'][$v[vid]][] = $v['vote_title'];
                     $str = str_replace(':1', "", $v['vote_result']);
开发者ID:noikiy,项目名称:zays,代码行数:31,代码来源:vote_member.php

示例9: kefu_all

function kefu_all()
{
    global $_MooClass;
    $channel = 1;
    $sid = $GLOBALS['adminid'];
    $page_per = 15;
    $reguser = array();
    if (!empty($_REQUEST['submit'])) {
        $page = 1;
    } else {
        $page = max(1, MooGetGPC('page', 'integer'));
    }
    $limit = 15;
    $offset = ($page - 1) * $limit;
    $group = $GLOBALS['groupid'];
    $sid = $GLOBALS['adminid'];
    $username = $GLOBALS['username'];
    if ($group == '78' || $group == '70' || $group == '67') {
        MooMessageAdmin('权限不足', 'index.php?action=activity&h=activity_member', 1);
        exit;
    } else {
        $uid = $_REQUEST['uid'];
        $channel = $_REQUEST['channel'];
        $purpose = $_REQUEST['purpose'];
        if ($purpose == '0' && $channel == '0') {
            $sql = "SELECT COUNT(id) AS COUNT FROM web_ahtv_reguser where  sid ='" . $uid . "'";
        } else {
            if ($purpose != '0' && $channel == '0') {
                $sql = "SELECT COUNT(id) AS COUNT FROM web_ahtv_reguser where purpose='" . $purpose . "' and sid ='" . $uid . "'";
            } else {
                if ($purpose == '0' && $channel != '0') {
                    $sql = "SELECT COUNT(id) AS COUNT FROM web_ahtv_reguser where channel='" . $channel . "' and sid ='" . $uid . "'";
                } else {
                    $sql = "SELECT COUNT(id) AS COUNT FROM web_ahtv_reguser where channel='" . $channel . "' and purpose='" . $purpose . "' and sid ='" . $uid . "'";
                }
            }
        }
        $a = $_MooClass['MooMySQL']->getOne($sql);
        $total = $a['COUNT'];
        if ($purpose == '0' && $channel == '0') {
            $sql = "SELECT a.id,a.uid,a.edit_time,a.next_time,a.username,a.gender,a.birthday,a.province,a.city,a.mobile,a.regtime,a.isattend,a.channel,a.purpose,a.income,a.note,a.sid FROM web_ahtv_reguser as a where  a.sid ='" . $uid . "' order by a.edit_time desc LIMIT {$offset},{$limit}";
        } else {
            if ($purpose != '0' && $channel == '0') {
                $sql = "SELECT a.id,a.uid,a.edit_time,a.next_time,a.username,a.gender,a.birthday,a.province,a.city,a.mobile,a.regtime,a.isattend,a.channel,a.purpose,a.income,a.note,a.sid  FROM web_ahtv_reguser as a where  a.purpose='" . $purpose . "' and a.sid ='" . $uid . "' order by a.edit_time desc LIMIT {$offset},{$limit}";
            } else {
                if ($purpose == '0' && $channel != '0') {
                    $sql = "SELECT a.id,a.uid,a.edit_time,a.next_time,a.username,a.gender,a.birthday,a.province,a.city,a.mobile,a.regtime,a.isattend,a.channel,a.purpose,a.income,a.note,a.sid  FROM web_ahtv_reguser as a where a.channel='" . $channel . "'  and a.sid ='" . $uid . "' order by a.edit_time desc LIMIT {$offset},{$limit}";
                } else {
                    $sql = "SELECT a.id,a.uid,a.edit_time,a.next_time,a.username,a.gender,a.birthday,a.province,a.city,a.mobile,a.regtime,a.isattend,a.channel,a.purpose,a.income,a.note,a.sid  FROM web_ahtv_reguser as a where a.channel='" . $channel . "' and a.purpose='" . $purpose . "' and a.sid ='" . $uid . "' order by a.edit_time desc LIMIT {$offset},{$limit}";
                }
            }
        }
        $currenturl = "index.php?action=activity&h=kefu_all&channel={$channel}&uid={$uid}&purpose={$purpose}";
        $pages = multipage($total, $page_per, $page, $currenturl);
        $page_num = ceil($total / $limit);
        $result = $_MooClass['MooMySQL']->getAll($sql);
        $purs = $purpose;
        foreach ($result as $key => $value) {
            $id = $value['id'];
            $uid = $value['uid'];
            $username = $value['username'];
            $gender = $value['gender'];
            $birthday = explode('-', $value['birthday']);
            $birthday = $birthday[0] . '年' . $birthday[1] . '月';
            $province = $value['province'];
            $city = $value['city'];
            $mobile = $value['mobile'];
            $regtime = $value['regtime'];
            $isattend = $value['isattend'];
            $channel = $value['channel'];
            $pur = $value['purpose'];
            if ($pur == 2) {
                $purpose = '不能参加';
            } else {
                if ($pur == 3) {
                    $purpose = '要考虑';
                } else {
                    if ($pur == 4) {
                        $purpose = '有意向';
                    } else {
                        if ($pur == 5) {
                            $purpose = '确定参加';
                        } else {
                            if ($pur == 6) {
                                $purpose = '支付环节';
                            } else {
                                $purpose = '未处理';
                            }
                        }
                    }
                }
            }
            $income = $value['income'];
            $sid = $value['sid'];
            $note = $value['note'];
            $edit_time = $value['edit_time'];
            $next_time = $value['next_time'];
            $reguser[] = array('k' => $key + 1, 'id' => $id, 'uid' => $uid, 'username' => $username, 'gender' => $gender, 'birthday' => $birthday, 'province' => $province, 'city' => $city, 'mobile' => $mobile, 'regtime' => $regtime, 'isattend' => $isattend, 'channel' => $channel, 'sid' => $sid, 'note' => $note, 'income' => $income, 'purpose' => $purpose, 'edit_time' => $edit_time, 'next_time' => $next_time);
        }
        require_once adminTemplate('activity_kf_list');
//.........这里部分代码省略.........
开发者ID:noikiy,项目名称:zays,代码行数:101,代码来源:activity.php

示例10: preg_replace

    $currenturl = preg_replace("/(&type=undealed)/", "", $currenturl);
    $currenturl = preg_replace("/(&type=dealed)/", "", $currenturl);
    $currenturl = preg_replace("/(&type=all)/", "", $currenturl);
    $currenturl2 = $currenturl;
    $currenturl = $currenturl . "&type={$type}";
    $pages = multipage($total['num'], $limit, $page, $currenturl);
    //note 跳转到某一页
    $page_num = ceil($total['num'] / $limit);
    //note 插入日志
    serverlog(1, $GLOBALS['dbTablePre'] . 'service_chat', "{$GLOBALS['username']}查看聊天记录列表", $GLOBALS['adminid']);
    //note 调用模板
    require adminTemplate('active_chat_list');
}
/***********************************************控制层(C)*****************************************/
$h = MooGetGPC('h', 'string', 'G') == '' ? 'list' : MooGetGPC('h', 'string', 'G');
//note 动作列表
$hlist = array('list');
//note 判断页面是否存在
if (!in_array($h, $hlist)) {
    MooMessageAdmin('您要打开的页面不存在', 'index.php?n=main');
}
//note 判断是否有权限
if (!checkGroup('active_chat', $h)) {
    MooMessageAdmin('您没有此操作的权限', 'index.php?n=main');
}
switch ($h) {
    //note 委托列表
    case 'list':
        active_chat_list();
        break;
}
开发者ID:noikiy,项目名称:zays,代码行数:31,代码来源:active_chat.php

示例11: hntest_class_del

function hntest_class_del()
{
    $tc_id = MooGetGPC('tc_id', 'integer', 'G');
    $parent = MooGetGPC('parent', 'integer', 'G');
    $table = $GLOBALS['dbTablePre'] . 'test_class';
    if ($parent == 0) {
        $sql = "DELETE FROM {$table} WHERE parent={$tc_id}";
        $GLOBALS['_MooClass']['MooMySQL']->query($sql);
    }
    $sql = "DELETE FROM {$table} WHERE tc_id={$tc_id}";
    $GLOBALS['_MooClass']['MooMySQL']->query($sql);
    MooMessageAdmin('删除成功', 'index.php?action=hntest&h=class_list', 1);
}
开发者ID:noikiy,项目名称:zays,代码行数:13,代码来源:hntest.php

示例12: carrelaxbargameedit

function carrelaxbargameedit()
{
    $href = MooGetGPC("href", "string", "P");
    $introduce = MooGetGPC("introduce", "string", "P");
    $id = MooGetGPC("id", "string", "P");
    if (empty($href)) {
        $notice = "游戏的链接地址不能为空";
        MooMessageAdmin($notice, 'index.php?n=lovestation&h=carrelaxbargame');
        exit;
    }
    if (empty($introduce)) {
        $notice = "游戏介绍说明必须填写";
        MooMessageAdmin($notice, 'index.php?n=lovestation&h=carrelaxbargame');
        exit;
    }
    /*
        if($_FILES['imgfile']['error']==UPLOAD_ERR_OK){
            $minfilesize = 100;
            $maxfilesize = 1024000;
            $filesize = $_FILES['imgfile']['size'];
            if($filesize > $maxfilesize ) {
                $notice = "请上传小于1000KB的照片。";
                MooMessageAdmin($notice,'index.php?action=lovestation&h=carrelaxbargame');
                exit();
            }
            if($filesize < $minfilesize) {
                $notice = "请上传大于100b的照片。";
                MooMessageAdmin($notice,'index.php?action=lovestation&h=carrelaxbargame');
                exit();
            }
            $true_type = file_type($_FILES['imgfile']['tmp_name']);
            $extname = strtolower(substr($_FILES['imgfile']['name'],(strrpos($_FILES['imgfile']['name'],'.')+1)));
            $images = array('/jpg/', '/jpeg/', '/gif/', '/png/', '/JPG/', '/JPEG/', '/GIF/', '/PNG/');
            if(in_array('/'.$extname.'/',$images)){
                foreach($images as $v) {
                    //note http://ask.wangmeng.cn/question/76
                    if(preg_match($v,$_FILES['imgfile']['type'])
                        && ('image/'.$true_type == $_FILES['imgfile']['type']
                            || 'image/p'.$true_type == $_FILES['imgfile']['type']
                            || 'image/x-'.$true_type == $_FILES['imgfile']['type']) ) {
    
                        $file_content = file_get_contents($_FILES['imgfile']['tmp_name']);
                        $low_file_content = strtolower($file_content);
                        $pos = strpos($low_file_content, '<?php');
                        if($pos){
                            $notice = "照片中含有不安全信息请重新上传";
                            MooMessageAdmin($notice,'index.php?n=lovestation&h=carrelaxbargame');
                            exit();
                        }else{
                            $flag = 1;
                        }
                    }
                }
            }
            if($flag != 1) {
                $notice = "请上传JPEG,JPG,PNG或GIF格式";
                MooMessageAdmin($notice,'index.php?action=lovestation&h=carrelaxbargame');
                exit();
            }
    */
    if ($_FILES['imgfile']['error'] == UPLOAD_ERR_OK) {
        $filename = "module/lovestation/templates/default/images/carrelaxbargame/" . $_FILES['imgfile']['name'];
        $data['imgfile'] = $filename;
        //上传图片处理结束
    }
    $data['href'] = $href;
    $data['introduce'] = $introduce;
    $data['dateline'] = time();
    $whearr['id'] = $id;
    updatetable("cargames", $data, $whearr);
    MooMessageAdmin("更新成功", 'index.php?action=lovestation&h=carrelaxbargame');
    exit;
}
开发者ID:noikiy,项目名称:zays,代码行数:73,代码来源:lovestation.php

示例13: text_show_dele

function text_show_dele()
{
    global $_MooClass;
    $id = $_REQUEST['id'];
    $sql = "DELETE FROM {$GLOBALS['dbTablePre']}text_show WHERE id = {$id}";
    $_MooClass['MooMySQL']->query($sql);
    MooMessageAdmin('删除成功', 'index.php?action=other&h=text_show', 1);
}
开发者ID:noikiy,项目名称:zays,代码行数:8,代码来源:other.php

示例14: date

        $value['bgtime'] = date('Y-m-d', $value['bgtime']);
        $value['endtime'] = date('Y-m-d', $value['endtime']);
        $value['k'] = $key + 1;
        $comment[] = $value;
    }
    $pages = multipage($total, $page_per, $page, $currenturl);
    $page_num = ceil($total / $limit);
    require_once adminTemplate('site_recommend_diamond_district');
}
/***********************************************控制层(C)*****************************************/
$h = MooGetGPC('h', 'string') == '' ? 'list' : MooGetGPC('h', 'string');
//note 动作列表
$hlist = array('list', 'recommendget', 'district');
//note 判断页面是否存在
if (!in_array($h, $hlist)) {
    MooMessageAdmin('您要打开的页面不存在', 'index.php?action=system_admingroup&h=list');
}
switch ($h) {
    //note 钻石会员推荐列表
    case 'list':
        site_recommend_diamond_list();
        break;
        //note 提交钻石会员推荐列表
    //note 提交钻石会员推荐列表
    case 'recommendget':
        site_recommendget();
        break;
        //NOTE 钻石会员首页推荐(地区)
    //NOTE 钻石会员首页推荐(地区)
    case 'district':
        site_recommend_diamond_district();
开发者ID:noikiy,项目名称:zays,代码行数:31,代码来源:site_recommend_diamond.php

示例15: logout_change_identify

function logout_change_identify()
{
    MooSetCookie('change_identity', '', -86400 * 365);
    $GLOBALS['change_adminid'] = 0;
    MooMessageAdmin('成功返回', 'index.php', 1);
}
开发者ID:noikiy,项目名称:zays,代码行数:6,代码来源:login.php


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