예제 #1
0
파일: pm.php 프로젝트: Miliup/miliofficeweb
 * @license        http://help.dedecms.com/usersguide/license.html
 * @link           http://www.dedecms.com
 */
require_once dirname(__FILE__) . "/config.php";
CheckRank(0, 0);
$menutype = 'mydede';
$menutype_son = 'pm';
$id = isset($id) ? intval($id) : 0;
if ($cfg_mb_lit == 'Y') {
    ShowMsg('由于系统开启了精简版会员空间,你不能向其它会员发短信息,不过你可以向他留言!', '-1');
    exit;
}
#api{{
if (defined('UC_API') && @(include_once DEDEROOT . '/uc_client/client.php')) {
    if ($data = uc_get_user($cfg_ml->M_LoginID)) {
        uc_pm_location($data[0]);
    }
}
#/aip}}
if (!isset($dopost)) {
    $dopost = '';
}
//检查用户是否被禁言
CheckNotAllow();
$state = empty($state) ? "" : $state;
/*--------------------
function __send(){  }
----------------------*/
if ($dopost == 'send') {
    /** 好友记录 **/
    $sql = "SELECT * FROM `#@__member_friends` WHERE  mid='{$cfg_ml->M_ID}' AND ftype!='-1'  ORDER BY addtime DESC LIMIT 20";
예제 #2
0
파일: pmwin.php 프로젝트: v998/discuzx-en
<?php

/**
 * UCenter Application Development Example
 *
 * Open the short message center Example code
 * Use the interface function:
 * uc_pm()		Must, jump to the short message center URL
 * uc_pm_checknew()	Optional for global determine whether there is a new short message, return $newpm Variable
 */
//Short message center, open in a window
uc_pm_location($Example_uid, $newpm);
exit;
예제 #3
0
파일: pm.php 프로젝트: xubo245/liuyangzhang
<?php

require dirname(__FILE__) . "/" . "global.php";
if (!$lfjid) {
    showerr("你还没登录");
}
if (defined("UC_CONNECT")) {
    uc_pm_location($lfjuid);
    exit;
}
if (ereg("^pwbbs", $webdb[passport_type]) && !is_array($db_modes)) {
    if (is_table("{$TB_pre}msgc")) {
        $newpw = 1;
    } else {
        $newpw = 0;
    }
}
$linkdb = array("收件箱" => "?job=list", "写新消息" => "?job=send", "清空收件箱" => "?job=clean");
if ($job == 'list') {
    if (!$page) {
        $page = 1;
    }
    $rows = 20;
    $min = ($page - 1) * $rows;
    if (ereg("^pwbbs", $webdb[passport_type]) && !is_array($db_modes)) {
        if ($newpw) {
            $SQL = "SELECT A.*,B.* FROM {$TB_pre}msg A LEFT JOIN {$TB_pre}msgc B ON A.mid=B.mid WHERE A.`touid`='{$lfjuid}' AND A.type='rebox' ORDER BY A.mid DESC LIMIT {$min},{$rows}";
        } else {
            $SQL = "SELECT * FROM {$TB_pre}msg WHERE `touid`='{$lfjuid}' AND type='rebox' ORDER BY mid DESC LIMIT {$min},{$rows}";
        }
        $showpage = getpage("{$TB_pre}msg", "WHERE `touid`='{$lfjuid}' AND type='rebox'", "?job={$job}", $rows);
예제 #4
0
파일: discuz.php 프로젝트: shenhua4286/gxw
function API_InMsg()
{
    global $userid;
    include_once ONEZ_ROOT . './uc_client/client.php';
    return uc_pm_location($userid);
}
예제 #5
0
<?php

/**
 * UCenter 应用程序开发 Example
 *
 * 开启短消息中心的 Example 代码
 * 使用到的接口函数:
 * uc_pm()		必须,跳转到短消息中心的 URL
 * uc_pm_checknew()	可选,用于全局判断是否有新短消息,返回 $newpm 变量
 */
//打开短消息中心的窗口
uc_pm_location($Cta_uid, $newpm);
exit;