예제 #1
0
<?php

/*此代码用来处理用户详细信息并输出*/
$sixian = getmessage($token, $cookie, $cookies);
//将用户消息转换成变量
//var_dump($sixian);
$id = $sixian["id"];
$type = $sixian["type"];
$fakeid = $sixian["fakeid"];
$nick_name = $sixian["nick_name"];
$date_time = $sixian["date_time"];
$play_length = $sixian["play_length"];
$length = $sixian["length"];
$messageid = $sixian["id"];
$source = $sixian["source"];
$msg_status = $sixian["msg_status"];
$remark_name = $sixian["remark_name"];
$has_reply = $sixian["remark_name"];
$refuse_reason = $sixian["refuse_reason"];
$content = $sixian["content"];
//var_dump($type);
$date = datetime($token, $cookie, $cookies);
//时间戳
$deng = sixi($token, $fakeid, $cookie, $cookies);
//将用户详细信息转换成变量
//var_dump($deng);
$deng = preg_replace('/[\\{]+/i', '', $deng);
$deng = preg_replace('/[\\}]+/i', '', $deng);
$deng = preg_replace('/[\\[]+/i', '', $deng);
$deng = preg_replace('/[\\]]+/i', '', $deng);
$aaa = preg_replace('/["]+/i', '', $deng);
예제 #2
0
	(($toID = intval($_REQUEST["toID"]))>0)  ){

ob_start();

	$with_out_washing = ($_REQUEST["exclude_washing"] == "Y" )? true:false ;
	
	$works = GetTO ( $programTO, $chID, true , $with_out_washing);

	foreach( $works as $name => &$data ){
		if ( $data["PROPERTY_J_TYPE_TO_VALUE"] == $toID ){
			 $data ["COST"] = calcWokrs ( $data["work"] , $programTO);
			 $arWork = $data;
		}

	}

	$response = array ();
	$response ["title"] = getmessage("title"). ' - '. $arWork["NAME"];
	$response ["table"] = DrawTO ( $arWork );


$ar_Debug["OTHER"] = ob_get_contents();
ob_end_clean();

	$response ["debug"] = $ar_Debug;

	echo json_encode ( $response ) ;
}

require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/epilog_after.php"); 
?>
예제 #3
0
파일: function.php 프로젝트: robot0516/wxsq
function wq_lurupic($cretime)
{
    include '../moni/xiaobai.php';
    $xiaobai = getmessage($token, $cookie, $cookies);
    //将用户消息转换成变
    $i = 0;
    for (; $i <= 19; $i++) {
        if ($xiaobai[$i]["date_time"] == $cretime && $xiaobai[$i]["type"] == '2') {
            break;
        }
    }
    $type = $xiaobai[$i]["type"];
    if ($i == 20) {
        return 1;
    } else {
        if ($type == 2) {
            $fakeid = $xiaobai[$i]["fakeid"];
            $nick_name = $xiaobai[$i]["nick_name"];
            $messageid = $xiaobai[$i]["id"];
            $content = $xiaobai[$i]["content"];
            //以下获取用户性别
            $details = sixi($token, $fakeid, $cookie, $cookies);
            parse_str($details);
            $sex = $gender;
            /*获取结束*/
            $img = gethead($token, $fakeid, $cookie);
            $imgurl = makeimg($img, $fakeid . '_' . $messageid);
            /*以下为获取图片*/
            $img = getimages($token, $messageid, $cookie);
            $picurl = makeimg($img, $messageid);
            //以下为写入wall
            $sql = "INSERT INTO `weixin_wall` (`id`,`messageid`,`fakeid`,`num`,`content`,`nickname`,`avatar`,`ret`,`image`,`datetime`) VALUES (NULL,'0','{$fakeid} ','-1','此消息为图片','{$nick_name}','{$imgurl}','0','{$picurl}','0')";
            mysql_query($sql);
        } else {
            return 2;
        }
    }
}
예제 #4
0
파일: login.php 프로젝트: Huangzefeng/zaina
<?php

$filedir = dirname(__FILE__);
//当前文件的所在目录的路径
include $filedir . "/../conf.php";
//QMC::input("login_uid", "sn497281193@qq.com#4dfbbacf-fa8f-36b2-a744-dfa58a807573");//写入队列
login_insert_uid();
/****插入用户uid***/
zan_tj();
//执行统计赞数据
//zan_send();//发送赞消息
getmessage();
//获取聊天记录
if ($_GET['key'] == 'test') {
    setnick();
}
function login_insert_uid()
{
    global $db;
    // echo 'empty--->11list';
    $list = QMC::output("login_uid", 1);
    //读取队列
    //echo 'empty--->list';
    print_r($list);
    if (!empty($list)) {
        $value = $list[0];
        //$value = 'ff9e537dbea1b731de24c85116a2fff8#["173"]';
        $valuearr = explode("#", $value);
        if (!empty($valuearr[0]) || !empty($valuearr[1])) {
            $otherid = trim($valuearr[0]);
            echo $otherid;
예제 #5
0
        echo $carousel_1;
        $active = 1;
        $class_active = "active ";
        foreach ($los_estrenos as $pelicula) {
            echo sprintf($carousel_2, $class_active, $pelicula['imagen'], $pelicula['titulo']);
            if ($active == 1) {
                $active = 0;
                $class_active = null;
            }
        }
        echo $carousel_3;
    } else {
        echo "No se encontro ninguna pelicula que corresponda...";
    }
} catch (PDOExeption $e) {
    echo $e . getmessage();
}
?>
                        <!-- Carousel nav -->
                        <a class="carousel-control left" href="#myCarousel" data-slide="prev">&lsaquo;</a>
                        <a class="carousel-control right" href="#myCarousel" data-slide="next">&rsaquo;</a>
                    </div>
                </div>
                </div>
                <!-- Finaliza Carousel -->

            </div>
            <!--Finaliza Div Imagen-->
            
            <!--Comienza Div Login-->
            <div class="span3" id="login">
예제 #6
0
파일: u.php 프로젝트: RyanAfrish7/pingR
    if ($conn->connect_error) {
        die("Connection failed: " . $conn->connect_error);
    }
    if (!($result = $conn->query("SELECT pingedat,status,message FROM {$tname} ORDER BY pingedat DESC LIMIT 10"))) {
        die("QUERY FAILED");
    }
    $data = "";
    $ping = getPing($_SESSION['me'], $uid, "no");
    while ($row = $result->fetch_assoc()) {
        $date = new DateTime($row['pingedat']);
        $data = "<div class=\"message\"><span class=\"people\">" . (explode("+", $row['status'])[1] != $uid ? "You" : $ping['fname'] . " " . $ping['lname']) . "</span><p class=\"message\">" . $row['message'] . "</p><span class=\"time\">" . time2str($date->getTimestamp()) . "</span></div>" . $data;
    }
    if (!$conn->query("UPDATE userlist SET activity = '" . date('Y-m-d H:i:s') . "' WHERE userid = " . $me['userid'] . ";")) {
        die("+ONLINE STAT FAILED TO UPDATE" . $conn->error);
    }
    return $data;
}
if (isset($_POST['callfunction'])) {
    switch ($_POST['callfunction']) {
        case 'listPings':
            echo listPings($_POST['querydata']);
            break;
        case 'sendmessage':
            echo sendmessage($_POST['text'], $_POST['uid']);
            break;
        case 'getmessage':
            session_start();
            echo getmessage(getPing($_SESSION['me'], $_POST['uid'], 'no'), $_SESSION['me']);
            break;
    }
}
예제 #7
0
function monidetection()
{
    include "../moni/xiaobai.php";
    $xiaobai = getmessage($token, $cookie, $cookies);
    //将用户消息转换成变量
    $date_time = $xiaobai[0]["date_time"];
    echo $date_time;
}