static function SendFeedMsg($receiver, $title, $content, $type = '1') { $receiverInfo = kekezu::get_user_info(intval($receiver)); if (!$receiverInfo) { return false; } $objMsgM = new Keke_witkey_msg_class(); $objMsgM->setType($type); $objMsgM->setTo_uid($receiverInfo['uid']); $objMsgM->setTo_username($receiverInfo['username']); $objMsgM->setTitle(kekezu::escape($title)); $objMsgM->setContent(kekezu::escape($content)); $objMsgM->setOn_time(time()); return $objMsgM->create_keke_witkey_msg(); }
$objMsgM = new Keke_witkey_msg_class(); if (strtoupper(CHARSET) == 'GBK') { $to_username = kekezu::utftogbk($to_username); } $arrSpaceInfo = kekezu::get_user_info($to_username, 1); if (!$arrSpaceInfo) { $tips['errors']['to_username'] = '******'; kekezu::show_msg($tips, NULL, NULL, NULL, 'error'); } if ($arrSpaceInfo['uid'] == $gUid) { $tips['errors']['to_username'] = '******'; kekezu::show_msg($tips, NULL, NULL, NULL, 'error'); } if (strtoupper(CHARSET) == 'GBK') { $title = kekezu::utftogbk($title); $content = kekezu::utftogbk($content); } $objMsgM->setUid($gUid); $objMsgM->setUsername($username); $objMsgM->setTo_uid($arrSpaceInfo['uid']); $objMsgM->setTo_username($arrSpaceInfo['username']); $objMsgM->setTitle(kekezu::str_filter(kekezu::escape($title))); $objMsgM->setContent(kekezu::str_filter(kekezu::escape($content))); $objMsgM->setOn_time(time()); $objMsgM->setType(3); $objMsgM->create_keke_witkey_msg(); unset($objMsgM); kekezu::show_msg('已发送', NULL, NULL, NULL, 'ok'); } else { $userArrData = keke_user_class::get_user_info($id); }
public static function send_private_message($title, $tar_content, $to_uid, $to_username, $url = '', $output = 'normal') { global $uid, $username; global $_lang; if (CHARSET == 'gbk') { $title = kekezu::utftogbk($title); $tar_content = kekezu::utftogbk($tar_content); $to_username = kekezu::utftogbk($to_username); } $msg_obj = new Keke_witkey_msg_class(); $msg_obj->_msg_id = null; $msg_obj->setUid($uid); $msg_obj->setUsername($username); $msg_obj->setTitle($title); $msg_obj->setTo_uid($to_uid); $msg_obj->setTo_username($to_username); $msg_obj->setContent($tar_content); $msg_obj->setOn_time(time()); $msg_obj->setType(2); return $msg_obj->create_keke_witkey_msg(); }
$arrOldFileLists = CommonClass::getFileArrayByPath(',', $editInfo['log_content_data']['old_file_path']); $arrFileLists = CommonClass::getFileArrayByPath(',', $editInfo['log_content_data']['file_path']); require keke_tpl_class::template('shop/goods/admin/tpl/goods_updateinfo'); die; } break; case 'off_shelf': if ($is_submit == "1") { $serviceInfo = db_factory::get_one("select * from " . TABLEPRE . "witkey_service where service_id=" . intval($service_id)); $objMsgM = new Keke_witkey_msg_class(); $objMsgM->setTo_uid($serviceInfo['uid']); $objMsgM->setTo_username($serviceInfo['username']); $objMsgM->setTitle("商品下架"); $objMsgM->setContent(kekezu::str_filter(kekezu::escape("您的商品 " . $serviceInfo[title] . " 被管理员下架,下架原因:{$reason}"))); $objMsgM->setOn_time(time()); $objMsgM->setType(2); $objMsgM->create_keke_witkey_msg(); goods_shop_class::set_service_status($service_id, 3); kekezu::admin_show_msg($_lang['operate_notice'], $url_str, 2, '商品下架成功', 'success'); } else { require keke_tpl_class::template('shop/' . $model_info['model_dir'] . '/admin/tpl/goods_reason'); die; } break; } } if (isset($sbt_action)) { $key_ids = $ckb; if (is_array($key_ids)) { $action = "aa"; $log_mac_arr = array("del" => $_lang['delete'], "user" => $_lang['open'], "pass" => $_lang['pass'], "disable" => $_lang['disable']);