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


PHP M::sendNotice方法代码示例

本文整理汇总了PHP中M::sendNotice方法的典型用法代码示例。如果您正苦于以下问题:PHP M::sendNotice方法的具体用法?PHP M::sendNotice怎么用?PHP M::sendNotice使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在M的用法示例。


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

示例1: send_msgc

function send_msgc($msg, $isNotify = true)
{
    global $db;
    if (!is_array($msg)) {
        return;
    }
    $uid = $sql = $mc_sql = array();
    $userService = L::loadClass('UserService', 'user');
    /* @var $userService PW_UserService */
    foreach ($msg as $k => $v) {
        $username = $userService->getUserNameByUserId($v[0]);
        if (!$username) {
            continue;
        }
        M::sendNotice(array($username), array('title' => $v[6], 'content' => $v[7]));
    }
}
开发者ID:sherlockhouse,项目名称:aliyun,代码行数:17,代码来源:msg.php

示例2: array

    $sqlarray = array('fupid' => $actuid, 'tid' => $tid, 'uid' => $memberdb['uid'], 'actmid' => $memberdb['actmid'], 'username' => $memberdb['username'], 'totalcash' => $refund_fee, 'signuptime' => $timestamp, 'isrefund' => 1, 'refundreason' => $memberdb['refundreason']);
    $db->update("INSERT INTO pw_activitymembers SET " . S::sqlSingle($sqlarray));
    $db->update("UPDATE {$defaultValueTableName} SET updatetime=" . S::sqlEscape($timestamp) . " WHERE tid=" . S::sqlEscape($tid));
    //报名列表动态时间
    $newactuid = $db->insert_id();
    /*支付成功费用流通日志
    	退款成功
    	*/
    $data = array();
    L::loadClass('ActivityForBbs', 'activity', false);
    $postActForBbs = new PW_ActivityForBbs($data);
    $statusValue = $postActForBbs->getActivityStatusValue($tid);
    $postActForBbs->UpdatePayLog($tid, $newactuid, $statusValue);
    /*支付成功费用流通日志*/
    /*短消息通知 退款 发起人*/
    $msgContentText = $memberdb['isadditional'] ? 'activity_refund2_content' : 'activity_refund_content';
    M::sendNotice(array($memberdb['author']), array('title' => getLangInfo('writemsg', 'activity_refund_title', array('uid' => $memberdb['uid'], 'username' => $memberdb['username'], 'tid' => $tid, 'subject' => $memberdb['subject'], 'totalcash' => $refund_fee)), 'content' => getLangInfo('writemsg', $msgContentText, array('uid' => $memberdb['uid'], 'username' => $memberdb['username'], 'tid' => $tid, 'subject' => $memberdb['subject'], 'totalcash' => $refund_fee))), 'notice_active', 'notice_active');
    /*短消息通知 退款 参与人*/
    $msgContentText = $memberdb['isadditional'] ? 'activity_refund2_signuper_content' : 'activity_refund_signuper_content';
    M::sendNotice(array($memberdb['username']), array('title' => getLangInfo('writemsg', 'activity_refund_signuper_title', array('uid' => $memberdb['authorid'], 'username' => $memberdb['author'], 'tid' => $tid, 'subject' => $memberdb['subject'], 'totalcash' => $refund_fee)), 'content' => getLangInfo('writemsg', $msgContentText, array('uid' => $memberdb['authorid'], 'username' => $memberdb['author'], 'tid' => $tid, 'subject' => $memberdb['subject'], 'totalcash' => $refund_fee))), 'notice_active', 'notice_active');
    paymsg("read.php?tid={$tid}", 'act_refund_success');
} else {
    paymsg("index.php", 'undefined_action');
}
function paymsg($url, $msg, $notify = 'success')
{
    if (empty($_POST)) {
        refreshto($url, $msg);
    }
    exit($notify);
}
开发者ID:sherlockhouse,项目名称:aliyun,代码行数:31,代码来源:act_alipay_receive.php

示例3: exit

<?php

!function_exists('readover') && exit('Forbidden');
$g = $db->get_one("SELECT p.gid,p.rvalue AS allowbuy,u.grouptitle FROM pw_permission p LEFT JOIN pw_usergroups u ON p.gid=u.gid WHERE p.uid='0' AND p.fid='0' AND p.gid=" . S::sqlEscape($rt['paycredit']) . " AND p.rkey='allowbuy' AND u.gptype='special'");
if ($g && $g['allowbuy']) {
    $userService = L::loadClass('UserService', 'user');
    /* @var $userService PW_UserService */
    if ($rt['extra_1'] == 1) {
        if ($rt['groupid'] == '-1') {
            $userService->update($rt['uid'], array('groupid' => $g['gid']));
        } else {
            $groups = $rt['groups'] ? $rt['groups'] . $rt['groupid'] . ',' : ",{$rt['groupid']},";
            $userService->update($rt['uid'], array('groupid' => $g['gid'], 'groups' => $groups));
        }
    } else {
        $groups = $rt['groups'] ? $rt['groups'] . $g['gid'] . ',' : ",{$g['gid']},";
        $userService->update($rt['uid'], array('groups' => $groups));
    }
    $db->pw_update("SELECT uid FROM pw_extragroups WHERE uid=" . S::sqlEscape($rt['uid']) . " AND gid=" . S::sqlEscape($g['gid']), "UPDATE pw_extragroups SET " . S::sqlSingle(array('togid' => $rt['groupid'], 'startdate' => $timestamp, 'days' => $rt['number'])) . " WHERE uid=" . S::sqlEscape($rt['uid']) . " AND gid=" . S::sqlEscape($g['gid']), "INSERT INTO pw_extragroups SET " . S::sqlSingle(array('uid' => $rt['uid'], 'togid' => $rt['groupid'], 'gid' => $g['gid'], 'startdate' => $timestamp, 'days' => $rt['number'])));
    M::sendNotice(array($rt['username']), array('title' => getLangInfo('writemsg', 'groupbuy_title'), 'content' => getLangInfo('writemsg', 'groupbuy_content', array('fee' => $fee, 'gname' => $g['grouptitle'], 'number' => $rt['number']))));
    $ret_url = 'profile.php?action=buy';
}
开发者ID:jechiy,项目名称:PHPWind,代码行数:22,代码来源:pay_3.php

示例4: Showmsg

        S::gp(array('password'));
        S::gp(array('newmanager'), 'GP', 2);
        if (!threadSetCheckOwnerPassword($winduid, $password)) {
            Showmsg('您输入的密码不正确!');
        }
        $userdb = $db->get_one("SELECT m.username,m.groupid,m.memberid FROM pw_cmembers c LEFT JOIN pw_members m ON c.uid=m.uid WHERE c.ifadmin='1' AND c.colonyid=" . S::sqlEscape($cyid) . ' AND c.uid=' . S::sqlEscape($newmanager));
        if (empty($userdb)) {
            Showmsg('请选择要转让的用户!');
        }
        $userdb['groupid'] == '-1' && ($userdb['groupid'] = $userdb['memberid']);
        if ($o_groups && strpos($o_groups, ',' . $userdb['groupid'] . ',') === false) {
            Showmsg('您选择的用户没有接受的权限!');
        }
        //* $db->update("UPDATE pw_colonys SET admin=" . S::sqlEscape($userdb['username']) . ' WHERE id=' . S::sqlEscape($cyid));
        pwQuery::update('pw_colonys', 'id=:id', array($cyid), array('admin' => $userdb['username']));
        M::sendNotice(array($userdb['username']), array('title' => getLangInfo('writemsg', 'group_attorn_title'), 'content' => getLangInfo('writemsg', 'group_attorn_content', array('username' => $windid, 'cyid' => $cyid, 'cname' => $colony['cname'], 'descrip' => $colony['descrip']))));
        refreshto("thread.php?cyid={$cyid}", '转让群组成功!');
    }
} elseif ($t == 'disband') {
    if (!($windid == $colony['admin'] && $groupRight['allowdisband'] || $groupid == '3')) {
        Showmsg('colony_out_right');
    }
    if (empty($_POST['step'])) {
        require_once PrintEot('thread_set');
        footer();
    } else {
        S::gp(array('password'));
        if (!threadSetCheckOwnerPassword($winduid, $password)) {
            Showmsg('您输入的密码不正确!');
        }
        if ($db->get_value("SELECT COUNT(*) as sum FROM pw_cnalbum WHERE atype=1 AND ownerid=" . S::sqlEscape($cyid)) > 0) {
开发者ID:jechiy,项目名称:PHPWind,代码行数:31,代码来源:thread_set.php

示例5: exit

!function_exists('readover') && exit('Forbidden');
require_once R_P . 'require/functions.php';
PwNewDB();
$friendServer = L::loadClass('Friend', 'friend');
if ($hash == appkey($o_u, $app) && $winduid && $o_u !== $winduid) {
    $userService = L::loadClass('UserService', 'user');
    /* @var $userService PW_UserService */
    $ckuser = $userService->get($o_u);
    $iffriend = $friendServer->getFriendByUidAndFriendid($winduid, $o_u);
    if ($ckuser && empty($iffriend)) {
        $friendcheck = getstatus($ckuser['userstatus'], PW_USERSTATUS_CFGFRIEND, 3);
        if (!$friendcheck) {
            $db->query("DELETE FROM pw_attention WHERE uid=" . S::sqlEscape($winduid) . " AND friendid=" . S::sqlEscape($o_u));
            addSingleFriend(true, $winduid, $o_u, $timestamp, 0);
            addSingleFriend(true, $o_u, $winduid, $timestamp, 0);
            M::sendNotice(array($ckuser['username']), array('title' => getLangInfo('writemsg', 'friend_add_title_1', array('username' => $windid)), 'content' => getLangInfo('writemsg', 'friend_add_content_1', array('uid' => $winduid, 'username' => $windid))));
        } elseif ($friendcheck == 1) {
            $db->query("DELETE FROM pw_attention WHERE uid=" . S::sqlEscape($winduid) . " AND friendid=" . S::sqlEscape($touid));
            addSingleFriend(false, $winduid, $o_u, $timestamp, 1);
            M::sendRequest($winduid, array($ckuser['username']), array('create_uid' => $winduid, 'create_username' => $windid, 'title' => getLangInfo('writemsg', 'friend_add_title_2', array('username' => $windid)), 'content' => getLangInfo('writemsg', 'friend_add_content_2', array('uid' => $winduid, 'username' => $windid, 'msg' => stripslashes($checkmsg)))), 'request_friend', 'request_friend');
        }
        Cookie('o_invite', '');
    }
}
function addSingleFriend($updatemem, $winduid, $frienduid, $timestamp, $status, $friendtype = 0, $checkmsg = '')
{
    global $db;
    $pwSQL = S::sqlSingle(array('uid' => $winduid, 'friendid' => $frienduid, 'joindate' => $timestamp, 'status' => $status, 'descrip' => $checkmsg, 'ftid' => $friendtype));
    $attentionService = L::loadClass('Attention', 'friend');
    /* @var $attentionService PW_Attention */
    if ($isAttention = $attentionService->isFollow($winduid, $frienduid)) {
开发者ID:jechiy,项目名称:PHPWind,代码行数:31,代码来源:o_invite.php

示例6: get_date

            $buyer_config['starttime'] = get_date($begintime, 'Y-m-d H:i');
            $buyer_config['endtime'] = get_date($begintime + $buyer_config['days'] * 86400, 'Y-m-d H:i');
            $lasttime = $begintime + $buyer_config['days'] * 86400;
        } else {
            $buyer_config['starttime'] = get_date($timestamp, 'Y-m-d H:i');
            $buyer_config['endtime'] = get_date($timestamp + $buyer_config['days'] * 86400, 'Y-m-d H:i');
            $lasttime = $timestamp + $buyer_config['days'] * 86400;
        }
        $creditype = $config['creditype'];
        $creditypename = $credit->cType[$config['creditype']];
        $creditnum = $config['price'];
        $buyer_config['link'] = str_replace(array('&#61;', '&amp;'), array('=', '&'), $buyer_config['link']);
        $newconfig = addslashes(serialize($buyer_config));
        $credit->set($uid, $creditype, -$price);
        $db->update("UPDATE pw_buyadvert SET " . S::sqlSingle(array('ifcheck' => 1, 'lasttime' => $lasttime, 'config' => $newconfig)) . "WHERE id=" . S::sqlEscape($id) . "AND uid=" . S::sqlEscape($uid));
        M::sendNotice(array($buyer['username']), array('title' => getLangInfo('writemsg', 'advert_buy_title'), 'content' => getLangInfo('writemsg', 'advert_buy_content', array('creditnum' => $creditnum, 'creditypename' => $creditypename, 'days' => $buyer_config['days']))));
        updatecache_c();
        $basename = "{$amind_file}?adminjob=hack&hackset=advert&job=check&id={$id}";
        adminmsg('operate_success');
    }
    include_once PrintEot('setadvert');
    exit;
} elseif ($action == 'cate') {
    require_once R_P . 'require/credit.php';
    if (empty($job)) {
        S::gp(array('ifshow', 'ifhire', 'keyword', 'page'));
        $pwSQL = '';
        if (!empty($ifshow)) {
            $pwSQL .= $ifshow == 2 ? " AND ifshow=0 " : " AND ifshow=1 ";
        }
        if (!empty($ifhire)) {
开发者ID:jechiy,项目名称:PHPWind,代码行数:31,代码来源:setadvert.php

示例7: exit

<?php

!function_exists('readover') && exit('Forbidden');
$rmbrate = $db_creditpay[$rt['paycredit']]['rmbrate'];
!$rmbrate && ($rmbrate = 10);
$currency = round($rt['price'] * $rmbrate);
require_once R_P . 'require/credit.php';
$credit->addLog('main_olpay', array($rt['paycredit'] => $currency), array('uid' => $rt['uid'], 'username' => $rt['username'], 'ip' => $onlineip, 'number' => $rt['price']));
$credit->set($rt['uid'], $rt['paycredit'], $currency);
M::sendNotice(array($rt['username']), array('title' => getLangInfo('writemsg', 'olpay_title'), 'content' => getLangInfo('writemsg', 'olpay_content_2', array('currency' => $currency, 'cname' => $credit->cType[$rt['paycredit']], 'number' => $rt['price']))));
开发者ID:jechiy,项目名称:PHPWind,代码行数:10,代码来源:pay_0.php

示例8: PrintEot

    require_once R_P . 'require/header.php';
    require_once PrintEot('reward');
    footer();
} else {
    PostCheck();
    require_once R_P . 'require/credit.php';
    //* include_once pwCache::getPath(D_P . 'data/bbscache/forum_cache.php');
    pwCache::getData(D_P . 'data/bbscache/forum_cache.php');
    if ($type == '1') {
        //$db->update("UPDATE pw_threads SET state='2' WHERE tid=" . S::sqlEscape($tid));
        pwQuery::update('pw_threads', 'tid=:tid', array($tid), array('state' => 2));
        $credit->addLog('reward_return', array($rt['cbtype'] => $rt['cbval'] * 2), array('uid' => $authorid, 'username' => $author, 'ip' => $onlineip, 'fname' => $forum[$fid]['name']));
        $credit->set($authorid, $rt['cbtype'], $rt['cbval'] * 2);
    } else {
        if ($timestamp < $rt['timelimit'] && $groupid != '3' && $groupid != '4') {
            Showmsg('reward_time_limit');
        }
        //$db->update("UPDATE pw_threads SET state='3' WHERE tid=" . S::sqlEscape($tid));
        pwQuery::update('pw_threads', 'tid=:tid', array($tid), array('state' => 3));
    }
    return_value($tid, $rt['catype'], $rt['caval']);
    if ($ifmsg) {
        if ($type == '1') {
            $affect = $credit->cType[$rt['cbtype']] . ":" . $rt['cbval'] * 2;
        } else {
            $affect = '';
        }
        M::sendNotice(array($rt['author']), array('title' => getLangInfo('writemsg', 'endreward_title_' . $type), 'content' => getLangInfo('writemsg', 'endreward_content_' . $type, array('manager' => $windid, 'fid' => $fid, 'tid' => $tid, 'subject' => $rt['subject'], 'postdate' => get_date($rt['postdate']), 'forum' => $forum[$fid]['name'], 'affect' => $affect, 'admindate' => get_date($timestamp), 'reason' => 'None'))));
    }
    refreshto("read.php?tid={$tid}&ds=1", 'operate_success');
}
开发者ID:jechiy,项目名称:PHPWind,代码行数:31,代码来源:endreward.php

示例9: exit

<?php

!function_exists('readover') && exit('Forbidden');
/****

@name:生日卡
@type:会员类
@effect:对特定用户使用。

****/
S::gp(array('uid'), 'GP', 2);
if ($tooldb['type'] != 2) {
    Showmsg('tooluse_type_error');
    // 判断道具类型是否设置错误
}
if (!$uid) {
    Showmsg('tooluse_nobirther');
}
$userService = L::loadClass('UserService', 'user');
/* @var $userService PW_UserService */
$userName = $userService->getUserNameByUserId($uid);
if (!$userName) {
    Showmsg('tooluse_nobirther');
}
$db->update("UPDATE pw_usertool SET nums=nums-1 WHERE uid=" . S::sqlEscape($winduid) . "AND toolid=" . S::sqlEscape($toolid));
M::sendNotice(array($userName), array('title' => getLangInfo('writemsg', 'birth_title', array('userName' => $userName)), 'content' => getLangInfo('writemsg', 'birth_content', array('fromUsername' => $windid))));
$logdata = array('type' => 'use', 'descrip' => 'tool_16_descrip', 'uid' => $winduid, 'username' => $windid, 'toname' => $userName, 'ip' => $onlineip, 'time' => $timestamp, 'toolname' => $tooldb['name'], 'subject' => $subject);
writetoollog($logdata);
Showmsg("已向您的好友发送了生日贺卡");
开发者ID:sherlockhouse,项目名称:aliyun,代码行数:29,代码来源:birth.php

示例10: SendAppmsg

 function SendAppmsg($toname, $fromname, $subject, $content)
 {
     $userService = $this->_getUserService();
     M::sendNotice(array($toname), array('title' => Char_cv(stripslashes($subject)), 'content' => Char_cv(stripslashes($content))), 'notice_apps', 'notice_apps');
     return new ApiResponse(true);
 }
开发者ID:dw250100785,项目名称:shopnc,代码行数:6,代码来源:class_Msg.php

示例11: array_values

 $pass = array_values($pass);
 $pw_posts = GetPtable($ptable);
 //if ($type == 'pass') {
 if (is_array($pass)) {
     $fids = $tids = array();
     $query = $db->query("SELECT fid,tid FROM {$pw_posts} WHERE {$sql} AND pid IN(" . S::sqlImplode($pass) . ")");
     while ($rt = $db->fetch_array($query)) {
         $tids[$rt['tid']]++;
         $fids[$rt['fid']]++;
     }
     foreach ($tids as $key => $value) {
         $rt = $db->get_one("SELECT postdate,author FROM {$pw_posts} WHERE tid=" . S::sqlEscape($key) . " ORDER BY postdate DESC LIMIT 1");
         //$db->update("UPDATE pw_threads SET replies=replies+".S::sqlEscape($value) . ",lastpost=" . S::sqlEscape($rt['postdate'],false) . ",lastposter =" . S::sqlEscape($rt['author'],false) . "WHERE tid=" . S::sqlEscape($key));
         $db->update(pwQuery::buildClause('UPDATE :pw_table SET replies = replies + :replies, lastpost = :lastpost, lastposter = :lastposter WHERE tid = :tid', array('pw_threads', $value, $rt['postdate'], $rt['author'], $key)));
         # memcache refresh
         M::sendNotice(array($rt['author']), array('title' => getLangInfo('writemsg', 'post_pass_title'), 'content' => getLangInfo('writemsg', 'post_pass_content', array('tid' => $key))));
         /*
         				$threadList = L::loadClass("threadlist", 'forum');
         				$threadList->updateThreadIdsByForumId($fid,$key);
         
         				$thread = L::loadClass("Threads", 'forum');
         				$thread->clearThreadByThreadId($key); */
         Perf::gatherInfo('changeThreadWithForumIds', array('fid' => $fid));
     }
     foreach ($fids as $key => $value) {
         /**
         				$db->update("UPDATE pw_forumdata SET article=article+".S::sqlEscape($value).",tpost=tpost+".S::sqlEscape($value,false)."WHERE fid=".S::sqlEscape($key));
         				**/
         $db->update(pwQuery::buildClause("UPDATE :pw_table SET article=article+:article,tpost=tpost+:tpost WHERE fid=:fid", array('pw_forumdata', $value, $value, $key)));
     }
     $db->update("UPDATE {$pw_posts} SET ifcheck='1',ifwordsfb='{$db_wordsfb}' WHERE {$sql} AND pid IN(" . S::sqlImplode($pass) . ")");
开发者ID:sherlockhouse,项目名称:aliyun,代码行数:31,代码来源:tpccheck.php

示例12: Cookie

 }
 if ($rgyz == 1) {
     Cookie("winduser", StrCode($winduid . "\t" . PwdCode($windpwd) . "\t" . $safecv));
     Cookie("ck_info", $db_ckpath . "\t" . $db_ckdomain);
     Cookie('lastvisit', '', 0);
     //将$lastvist清空以将刚注册的会员加入今日到访会员中
     /*连续登录天数*/
     if ($db_md_ifopen) {
         require_once R_P . 'require/functions.php';
         doMedalBehavior($winduid, 'continue_login');
     }
 }
 //发送短消息
 if ($rg_config['rg_regsendmsg']) {
     $rg_config['rg_welcomemsg'] = str_replace('$rg_name', $regname, $rg_config['rg_welcomemsg']);
     M::sendNotice(array($windid), array('title' => "Welcome To[{$db_bbsname}]!", 'content' => $rg_config['rg_welcomemsg']));
 }
 //发送邮件
 //* @include_once pwCache::getPath(D_P.'data/bbscache/mail_config.php');
 pwCache::getData(D_P . 'data/bbscache/mail_config.php');
 if ($rg_config['rg_emailcheck']) {
     if ($rg_config['rg_regsendemail'] && $ml_mailifopen) {
         require_once R_P . 'require/sendemail.php';
         sendemail($regemail, 'email_welcome_subject', 'email_welcome_content', 'email_additional');
     }
     $verifyhash = GetVerify();
     $rgyz = md5($rgyz . substr(md5($db_sitehash), 0, 5) . substr(md5($regname), 0, 5));
     require_once R_P . 'require/sendemail.php';
     $sendinfo = sendemail($regemail, 'email_check_subject', 'email_check_content', 'email_additional');
     if ($sendinfo === true) {
         ObHeader("{$db_registerfile}?step=finish&email={$regemail}&verify={$verifyhash}");
开发者ID:jechiy,项目名称:PHPWind,代码行数:31,代码来源:register.php

示例13: sendMsg

 /**
  * @desc 发消息通知用户帖子被封
  *
  * @param string $user -- 收件人用户名
  * @param array $L     -- 消息内容信息
  * @param string $type -- 帖子类型:t=>主题;p=>回复
  */
 function sendMsg($user, $L, $type = 't')
 {
     if ($type == 't') {
         $title = getLangInfo('cpmsg', 'filtermsg_thread_title');
         $content = getLangInfo('cpmsg', 'filtermsg_thread_content', $L);
     } else {
         $title = getLangInfo('cpmsg', 'filtermsg_post_title');
         $content = getLangInfo('cpmsg', 'filtermsg_post_content', $L);
     }
     M::sendNotice(array($user), array('title' => $title, 'content' => $content));
 }
开发者ID:jechiy,项目名称:PHPWind,代码行数:18,代码来源:wordscan.class.php

示例14: trim

    require_once R_P . 'require/common.php';
    $msg_title = trim($subject);
    $atc_content = trim($atc_content);
    if (empty($atc_content) || empty($msg_title)) {
        Showmsg('msg_empty');
    } elseif (strlen($msg_title) > 75 || strlen($atc_content) > 1500) {
        Showmsg('msg_subject_limit');
    }
    require_once R_P . 'require/bbscode.php';
    $wordsfb = L::loadClass('FilterUtil', 'filter');
    if (($banword = $wordsfb->comprise($msg_title)) !== false) {
        Showmsg('title_wordsfb');
    }
    if (($banword = $wordsfb->comprise($atc_content, false)) !== false) {
        Showmsg('content_wordsfb');
    }
    $query = $db->query("SELECT uid FROM pw_pcmember WHERE tid=" . S::sqlEscape($tid) . " GROUP BY uid");
    while ($rt = $db->fetch_array($query)) {
        $uiddb[] = $rt['uid'];
    }
    $messageType = $pcid == 1 ? 'notice_postcate' : 'notice_active';
    $ifuids = $sqladd = $msglog = array();
    if ($uiddb) {
        $userNames = array();
        $userService = L::loadClass('UserService', 'user');
        /* @var $userService PW_UserService */
        $userNames = $userService->getUserNamesByUserIds($uiddb);
        M::sendNotice($userNames, array('create_uid' => $winduid, 'create_username' => $windid, 'title' => $msg_title, 'content' => $atc_content), $messageType, $messageType);
    }
    Showmsg('send_success');
}
开发者ID:jechiy,项目名称:PHPWind,代码行数:31,代码来源:pcsendmsg.php

示例15: exit

<?php

!defined('P_W') && exit('Forbidden');
!$db_ifselfshare && Showmsg("sharelink_colse");
if (empty($_POST['step'])) {
    require_once PrintEot('ajax');
    ajax_footer();
} else {
    PostCheck();
    S::gp(array('linkname', 'linkurl', 'username', 'linkdescrip', 'linklogo'), 'P');
    (!$linkname || !$linkurl) && Showmsg('sharelink_link_empty');
    !$linkdescrip && ($linkdescrip = '');
    $username = !$username ? $windid : $username . '(' . $windid . ')';
    !$linklogo && ($linklogo = '');
    $linkurl = strtolower($linkurl);
    strncmp($linkurl, 'http://', 7) != 0 && Showmsg('sharelink_link_error');
    $rs = $db->get_one("SELECT sid FROM pw_sharelinks WHERE username=" . S::sqlEscape($username));
    $rs && Showmsg('sharelink_apply_limit');
    $pwSQL = S::sqlSingle(array('name' => $linkname, 'url' => $linkurl, 'username' => $username, 'descrip' => $linkdescrip, 'logo' => $linklogo, 'ifcheck' => 0, 'username' => $username));
    $db->update("INSERT INTO pw_sharelinks SET {$pwSQL}");
    M::sendNotice(array($manager), array('title' => getLangInfo('writemsg', 'sharelink_apply_title'), 'content' => getLangInfo('writemsg', 'sharelink_apply_content', array('username' => $windid, 'time' => get_date($timestamp)))));
    Showmsg("sharelink_success");
}
开发者ID:jechiy,项目名称:PHPWind,代码行数:23,代码来源:sharelink.php


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