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


PHP dmsg函数代码示例

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


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

示例1: _userinfo

                             $user = _userinfo($fields, $email);
                             eval("\$title = \"{$title}\";");
                             $content = ob_template($template, 'mail');
                         }
                         send_mail($email, $title, $content, $sender);
                     }
                 }
                 if ($id < count($emails)) {
                     msg('已发送 ' . $id . ' 封邮件,系统将自动继续,请稍候...', '?moduleid=' . $moduleid . '&file=' . $file . '&sendtype=3&id=' . $id . '&pernum=' . $pernum . '&pertime=' . $pertime . '&send=1', $pertime);
                 }
                 cache_delete($_username . '_sendmail.php');
                 $forward = '?moduleid=' . $moduleid . '&file=' . $file;
             }
         }
     }
     dmsg('邮件发送成功', $forward);
 } else {
     $sendtype = isset($sendtype) ? intval($sendtype) : 1;
     isset($email) or $email = '';
     $emails = '';
     if (isset($userid)) {
         if ($userid) {
             $userids = is_array($userid) ? implode(',', $userid) : $userid;
             $result = $db->query("SELECT email FROM {$DT_PRE}member WHERE userid IN ({$userids})");
             while ($r = $db->fetch_array($result)) {
                 $emails .= $r['email'] . "\n";
             }
         }
     }
     if ($email) {
         if (strpos($email, ',') !== false) {
开发者ID:hcd2008,项目名称:destoon,代码行数:31,代码来源:sendmail.inc.php

示例2: type_select

         $type_select = type_select($TYPE, 0, 'post[typeid]', $L['default_type'], $typeid);
         $head_title = $L['news_title_edit'];
     }
     break;
 case 'delete':
     $itemid or message($L['news_msg_choose']);
     $itemids = is_array($itemid) ? $itemid : array($itemid);
     foreach ($itemids as $itemid) {
         $do->itemid = $itemid;
         $item = $do->get_one();
         if (!$item || $item['username'] != $_username) {
             message();
         }
         $do->recycle($itemid);
     }
     dmsg($L['op_del_success'], $forward);
     break;
 default:
     $status = isset($status) ? intval($status) : 3;
     in_array($status, array(1, 2, 3)) or $status = 3;
     $typeid = isset($typeid) ? $typeid === '' ? -1 : intval($typeid) : -1;
     $type_select = type_select($TYPE, 0, 'typeid', $L['default_type'], $typeid, '', $L['all_type']);
     $condition = "username='{$_username}' AND status={$status}";
     if ($keyword) {
         $condition .= " AND title LIKE '%{$keyword}%'";
     }
     if ($typeid > -1) {
         $condition .= " AND typeid={$typeid}";
     }
     $lists = $do->get_list($condition);
     foreach ($lists as $k => $v) {
开发者ID:hiproz,项目名称:zhaotaoci.cc,代码行数:31,代码来源:news.inc.php

示例3: dmsg

        }
        break;
    case 'check':
        if ($itemid) {
            $do->check($itemid);
            dmsg('审核成功', $forward);
        } else {
            $lists = $do->get_list("status=2 AND username=''" . $condition, $dorder[$order]);
            include tpl('link_check', $module);
        }
        break;
    case 'order':
        $do->order($listorder);
        dmsg('排序成功', $forward);
        break;
    case 'delete':
        $itemid or msg('请选择链接');
        $do->delete($itemid);
        dmsg('删除成功', $forward);
        break;
    case 'level':
        $itemid or msg('请选择链接');
        $level = intval($level);
        $do->level($itemid, $level);
        dmsg('级别设置成功', $forward);
        break;
    default:
        $lists = $do->get_list("status=3 AND username=''" . $condition, $dorder[$order]);
        include tpl('link', $module);
        break;
}
开发者ID:hcd2008,项目名称:destoon,代码行数:31,代码来源:link.inc.php

示例4: dmsg

        dmsg('更新成功', $this_forward);
        break;
    case 'delete':
        if ($areaid) {
            $areaids = $areaid;
        }
        $areaids or msg();
        $do->delete($areaids);
        dmsg('删除成功', $this_forward);
        break;
    case 'update':
        if (!$area || !is_array($area)) {
            msg();
        }
        $do->update($area);
        dmsg('更新成功', $this_forward);
        break;
    default:
        $DAREA = array();
        $condition = $keyword ? "areaname LIKE '%{$keyword}%'" : "parentid={$parentid}";
        $result = $db->query("SELECT * FROM {$table} WHERE {$condition} ORDER BY listorder,areaid");
        while ($r = $db->fetch_array($result)) {
            $r['childs'] = substr_count($r['arrchildid'], ',');
            $DAREA[$r['areaid']] = $r;
        }
        include tpl('area');
        break;
}
class area
{
    var $areaid;
开发者ID:hcd2008,项目名称:destoon,代码行数:31,代码来源:area.inc.php

示例5: msg

        msg('ID从' . $fid . '至' . ($itemid - 1) . $MOD['name'] . ($update ? '更新' : '生成') . '成功' . progress($sid, $fid, $tid), "?moduleid={$moduleid}&file={$file}&action={$action}&sid={$sid}&fid={$itemid}&tid={$tid}&num={$num}&update={$update}&all={$all}&one={$one}");
        break;
    case 'cate':
        $catid or msg('请选择分类');
        isset($num) or $num = 50;
        isset($fid) or $fid = 1;
        $total = max(ceil($CAT['item'] / $MOD['pagesize']), 1);
        if ($fpage && $tpage) {
            $fid = $fpage;
            $num = $tpage - $fpage + 1;
            tohtml('list', $module);
            dmsg('生成成功', $this_forward);
        }
        if ($fid <= $total) {
            tohtml('list', $module);
            msg('第' . $fid . '页至第' . ($fid + $num - 1) . '页生成成功', '?moduleid=' . $moduleid . '&file=' . $file . '&action=' . $action . '&catid=' . $catid . '&fid=' . ($fid + $num) . '&num=' . $num . '&fpage=' . $fpage . '&tpage=' . $tpage);
        } else {
            dmsg('生成成功', $this_forward);
        }
        break;
    case 'item':
        $catid or msg('请选择分类');
        msg('', '?moduleid=' . $moduleid . '&file=' . $file . '&action=show&catid=' . $catid . '&num=' . $num);
        break;
    default:
        $r = $db->get_one("SELECT min(itemid) AS fid,max(itemid) AS tid FROM {$table} WHERE status=3");
        $fid = $r['fid'] ? $r['fid'] : 0;
        $tid = $r['tid'] ? $r['tid'] : 0;
        include tpl('html', $module);
        break;
}
开发者ID:hcd2008,项目名称:destoon,代码行数:31,代码来源:html.inc.php

示例6: addslashes

         $reply = addslashes(save_remote(save_local(stripslashes($reply))));
         $db->query("UPDATE {$DT_PRE}ask SET status={$status},admin='{$_username}',admintime='{$DT_TIME}',reply='{$reply}' WHERE itemid={$itemid}");
         dmsg('受理成功', $forward);
     } else {
         $r = $db->get_one("SELECT * FROM {$DT_PRE}ask WHERE itemid={$itemid}");
         $r or msg();
         extract($r);
         $addtime = timetodate($addtime, 5);
         $admintime = timetodate($admintime, 5);
         include tpl('ask_edit', $module);
     }
     break;
 case 'delete':
     $itemid or msg();
     $db->query("DELETE FROM {$DT_PRE}ask WHERE itemid={$itemid} ");
     dmsg('删除成功', '?moduleid=' . $moduleid . '&file=' . $file);
     break;
 default:
     $_status = array('待受理', '<span style="color:blue;">受理中</span>', '<span style="color:green;">已解决</span>', '<span style="color:red;">未解决</span>');
     $sfields = array('按条件', '标题', '内容', '会员名', '回复', '受理人');
     $dfields = array('title', 'title', 'content', 'username', 'reply', 'admin');
     $dstatus = array('待受理', '受理中', '已解决', '未解决');
     $sorder = array('结果排序方式', '提交时间降序', '提交时间升序', '受理时间降序', '受理时间升序', '会员评分降序', '会员评分升序');
     $dorder = array('itemid DESC', 'itemid DESC', 'itemid ASC', 'admintime DESC', 'admintime ASC', 'star DESC', 'star ASC');
     isset($fields) && isset($dfields[$fields]) or $fields = 0;
     isset($typeid) or $typeid = 0;
     $status = isset($status) && isset($dstatus[$status]) ? intval($status) : '';
     isset($order) && isset($dorder[$order]) or $order = 0;
     $fields_select = dselect($sfields, 'fields', '', $fields);
     $type_select = type_select('ask', 1, 'typeid', '请选择分类', $typeid);
     $status_select = dselect($dstatus, 'status', '受理状态', $status, '', 1, '', 1);
开发者ID:hcd2008,项目名称:destoon,代码行数:31,代码来源:ask.inc.php

示例7: send_sms

             send_sms($U['mobile'], '您的会员资料修改审核结果已通过站内信发送,请注意查阅');
         }
         if ($wec) {
             send_weixin($username, '您的会员资料修改审核结果已通过站内信发送,请注意查阅');
         }
         if ($sql1) {
             $db->query("UPDATE {$DT_PRE}member SET " . substr($sql1, 1) . " WHERE userid={$userid}");
         }
         if ($sql2) {
             $db->query("UPDATE {$DT_PRE}company SET " . substr($sql2, 1) . " WHERE userid={$userid}");
         }
         if ($sql3) {
             $db->query("UPDATE {$content_table} SET " . substr($sql3, 1) . " WHERE userid={$userid}");
         }
         $db->query("DELETE FROM {$DT_PRE}member_check WHERE username='{$username}'");
         dmsg('操作成功', '?moduleid=' . $moduleid . '&file=' . $file . '&action=member');
     } else {
         include tpl('validate_show', $module);
     }
     break;
 default:
     $menuid = $S[$action];
     $sfields = array('按条件', '认证项', '会员名', '操作人');
     $dfields = array('title', 'title', 'username', 'editor');
     isset($fields) && isset($dfields[$fields]) or $fields = 0;
     isset($fromtime) or $fromtime = '';
     isset($totime) or $totime = '';
     isset($type) or $type = '';
     $status = isset($status) ? intval($status) : 0;
     $fields_select = dselect($sfields, 'fields', '', $fields);
     $condition = '1';
开发者ID:hiproz,项目名称:zhaotaoci.cc,代码行数:31,代码来源:validate.inc.php

示例8: Copyright

<?php

/*
	[Destoon B2B System] Copyright (c) 2008-2013 Destoon.COM
	This is NOT a freeware, use is subject to license.txt
*/
defined('IN_DESTOON') or exit('Access Denied');
isset($item) or msg();
require DT_ROOT . '/include/type.class.php';
$forward = '?file=' . $file . '&item=' . $item;
$do = new dtype();
$do->item = $item;
$do->cache = 1;
if ($submit) {
    $do->update($post);
    dmsg('更新成功', $forward);
} else {
    $lists = $do->get_list();
    include tpl('type');
}
开发者ID:hcd2008,项目名称:destoon,代码行数:20,代码来源:type.inc.php

示例9: isset

             }
         }
         isset($mobile) && is_mobile($mobile) or $mobile = '';
         $head_title = $L['send_passport_title'];
         include template('send', $module);
     }
     break;
 case 'passport':
     $_username == $_passport or dheader('edit.php');
     if ($submit) {
         isset($npassport) or $npassport = '';
         require MD_ROOT . '/member.class.php';
         $do = new member();
         $do->userid = $_userid;
         if ($do->edit_passport($_passport, $npassport, $_username)) {
             dmsg($L['op_edit_success'], 'edit.php');
         } else {
             message($do->errmsg);
         }
     } else {
         $head_title = $L['send_passport_title'];
         include template('send', $module);
     }
     break;
 default:
     if ($_userid) {
         dheader($MOD['linkurl']);
     }
     if ($auth) {
         $user = check_auth($auth);
         auth_time($user['authtime']);
开发者ID:hiproz,项目名称:zhaotaoci.cc,代码行数:31,代码来源:send.inc.php

示例10: array

     if ($submit) {
         if ($black) {
             $blacks = array();
             $tmp = explode(' ', trim($black));
             foreach ($tmp as $v) {
                 if (($do->is_member($v) || $v == 'Guest') && !in_array($v, $blacks)) {
                     $blacks[] = $v;
                 }
             }
             $black = $blacks ? implode(' ', $blacks) : '';
         } else {
             $black = '';
         }
         $send = $send ? 1 : 0;
         $db->query("UPDATE {$DT_PRE}member SET black='{$black}',send='{$send}' WHERE userid={$_userid}");
         dmsg($L['op_update_success'], '?action=setting');
     } else {
         $head_title = $L['message_title_black'] . $DT['seo_delimiter'] . $head_title;
         $user = $db->get_one("SELECT black,send FROM {$DT_PRE}member WHERE userid={$_userid}");
         $could_send = false;
         if ($DT['message_email'] && $DT['mail_type'] != 'close') {
             if (check_group($_groupid, $DT['message_group'])) {
                 $could_send = true;
             }
         }
     }
     break;
 case 'outbox':
     $status = 2;
     $name = $L['message_title_outbox'];
     $condition = "fromuser='{$_username}' AND status={$status} " . $condition;
开发者ID:hiproz,项目名称:zhaotaoci.cc,代码行数:31,代码来源:message.inc.php

示例11: credit_add

        if ($user['edittime'] == 0 && $user['inviter'] && $MOD['credit_user']) {
            $inviter = $user['inviter'];
            $r = $db->get_one("SELECT itemid FROM {$DT_PRE}finance_credit WHERE note='{$_username}' AND username='{$inviter}'");
            if (!$r) {
                credit_add($inviter, $MOD['credit_user']);
                credit_record($inviter, $MOD['credit_user'], 'system', $L['edit_invite'], $_username);
            }
        }
        if ($user['edittime'] == 0 && $MOD['credit_edit']) {
            credit_add($_username, $MOD['credit_edit']);
            credit_record($_username, $MOD['credit_edit'], 'system', $L['edit_profile'], $DT_IP);
        }
        if ($post['password']) {
            message($L['edit_msg_success'] . $L['edit_msg_password'], '?tab=' . $tab . '&success=1');
        }
        dmsg($L['edit_msg_success'], '?tab=' . $tab . '&success=1');
    } else {
        message($do->errmsg);
    }
} else {
    $COM_TYPE = explode('|', $MOD['com_type']);
    $COM_SIZE = explode('|', $MOD['com_size']);
    $COM_MODE = explode('|', $MOD['com_mode']);
    $MONEY_UNIT = explode('|', $MOD['money_unit']);
    $head_title = $L['edit_title'];
    extract($user);
    $mode_check = dcheckbox($COM_MODE, 'post[mode][]', $mode, 'onclick="check_mode(this, ' . $MOD['mode_max'] . ');"', 0);
    $content_table = content_table(4, $userid, is_file(DT_CACHE . '/4.part'), $DT_PRE . 'company_data');
    $t = $db->get_one("SELECT * FROM {$content_table} WHERE userid={$userid}");
    if ($t) {
        $introduce = $t['content'];
开发者ID:hcd2008,项目名称:destoon,代码行数:31,代码来源:edit.inc.php

示例12: msg

                     } else {
                         $menu[$i]['type'] = 'click';
                         $menu[$i]['key'] = $post[$i][0]['key'];
                     }
                 } else {
                     msg('菜单' . ($i + 1) . ' 地址/事件 不能为空');
                 }
             }
         }
     }
     $btn['button'] = $menu;
     $par = stripslashes(urldecode(json_encode($btn)));
     $url = 'https://api.weixin.qq.com/cgi-bin/menu/create?access_token=' . $access_token;
     $arr = $wx->http_post($url, $par);
     if ($arr['errcode'] == 0) {
         dmsg('同步成功', '?moduleid=' . $moduleid . '&file=' . $file . '&action=' . $action);
     } else {
         msg('同步失败 - ' . $arr['errcode'] . ':' . $arr['errmsg']);
     }
 } else {
     #print_r($wx->http_get('https://api.weixin.qq.com/cgi-bin/menu/get?access_token='.$access_token));
     cache_weixin();
     $menu = cache_read('weixin-menu.php');
     if (!is_array($menu) || count($menu) < 1 || count($menu) > 3) {
         $menu = array();
         for ($i = 0; $i < 3; $i++) {
             for ($j = 0; $j < 6; $j++) {
                 $menu[$i][$j]['name'] = '';
                 $menu[$i][$j]['key'] = '';
             }
         }
开发者ID:hiproz,项目名称:zhaotaoci.cc,代码行数:31,代码来源:weixin.inc.php

示例13: dmsg

        }
        dmsg('更新成功', '?file=' . $file);
        break;
    case 'delete':
        if ($areaid) {
            $areaids = $areaid;
        }
        $areaids or msg();
        $do->delete($areaids);
        dmsg('删除成功', '?file=' . $file);
        break;
    case 'update':
        foreach ($post as $v) {
            $do->update($v);
        }
        dmsg('更新成功', '?file=' . $file);
        break;
    default:
        $condition = '1';
        if ($kw) {
            $condition .= " AND (name LIKE '%{$keyword}%' OR domain LIKE '%{$keyword}%')";
        }
        $lists = $do->get_list($condition);
        include tpl('city');
        break;
}
class city
{
    var $areaid;
    var $db;
    var $table;
开发者ID:hcd2008,项目名称:destoon,代码行数:31,代码来源:city.inc.php

示例14: set_cookie

}
require DT_ROOT . '/module/' . $module . '/common.inc.php';
if ($action == 'logout' && $admin_user) {
    set_cookie('admin_user', '');
    dmsg($L['index_msg_logout'], $MODULE[2]['linkurl']);
}
require MD_ROOT . '/member.class.php';
require DT_ROOT . '/include/post.func.php';
$do = new member();
if ($submit) {
    if (word_count($note) > 1000) {
        message($L['index_msg_note_limit']);
    }
    $note = '<?php exit;?>' . htmlspecialchars(stripslashes($note));
    file_put(DT_ROOT . '/file/user/' . dalloc($_userid) . '/' . $_userid . '/note.php', $note);
    dmsg($L['op_update_success'], $MODULE[2]['linkurl']);
} else {
    $head_title = '';
    $do->userid = $_userid;
    $user = $do->get_one();
    extract($user);
    $logintime = timetodate($logintime, 5);
    $regtime = timetodate($regtime, 5);
    $userurl = userurl($_username, '', $domain);
    $sys = array();
    $i = 0;
    $result = $db->query("SELECT itemid,title,addtime,groupids FROM {$DT_PRE}message WHERE groupids<>'' ORDER BY itemid DESC", 'CACHE');
    while ($r = $db->fetch_array($result)) {
        $groupids = explode(',', $r['groupids']);
        if (!in_array($_groupid, $groupids)) {
            continue;
开发者ID:hcd2008,项目名称:destoon,代码行数:31,代码来源:index.inc.php

示例15: Copyright

<?php

/*
	[Destoon B2B System] Copyright (c) 2008-2013 Destoon.COM
	This is NOT a freeware, use is subject to license.txt
*/
defined('IN_DESTOON') or exit('Access Denied');
$menus = array(array('操作日志', '?file=' . $file), array('日志清理', '?file=' . $file . '&action=delete', 'onclick="if(!confirm(\'为了系统安全,系统仅删除90天之前的日志\')) return false"'));
switch ($action) {
    case 'delete':
        $time = $today_endtime - 90 * 86400;
        $db->query("DELETE FROM {$DT_PRE}admin_log WHERE logtime<{$time}");
        dmsg('清理成功', '?file=' . $file);
        break;
    default:
        $sfields = array('按条件', '网址', '管理员', 'IP');
        $dfields = array('qstring', 'qstring', 'username', 'ip');
        isset($fields) && isset($dfields[$fields]) or $fields = 0;
        $ip = isset($ip) ? $ip : '';
        $username = isset($username) ? $username : '';
        $fromdate = isset($fromdate) ? $fromdate : '';
        $fromtime = is_date($fromdate) ? strtotime($fromdate . ' 0:0:0') : 0;
        $todate = isset($todate) ? $todate : '';
        $totime = is_date($todate) ? strtotime($todate . ' 23:59:59') : 0;
        $fields_select = dselect($sfields, 'fields', '', $fields);
        $condition = '1';
        if ($keyword) {
            $condition .= " AND {$dfields[$fields]} LIKE '%{$keyword}%'";
        }
        if ($fromtime) {
            $condition .= " AND logtime>{$fromtime}";
开发者ID:hcd2008,项目名称:destoon,代码行数:31,代码来源:log.inc.php


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