コード例 #1
0
ファイル: message_ajax.php プロジェクト: neevan1e/Done
    $update = $_POST['update'];
    $update = str_replace("\n", '<br/>', $update);
    $update = mysql_real_escape_string($update);
    $uploads = $_POST['uploads'];
    $profile_uid = $_POST['profile_uid'];
    $data = $FbWall->Save_Update($uid, $update, $uploads, $profile_uid);
    //print_r($data); die;
    if ($data) {
        $msg_id = $data['msg_id'];
        $orimessage = $data['message'];
        $message = tolink($data['message']);
        $time = $data['created'];
        $userid = $data['uid_fk'];
        $profileid = $data['profile_uid'];
        $username = $data['fullname'];
        $face = $FbWall->Gravatar($userid);
        if (textlink($orimessage)) {
            $link = textlink($orimessage);
        }
        ?>
		<div class="stbody" id="stbody<?php 
        echo $msg_id;
        ?>
">
			<div class="stimg">
            <?php 
        if (!empty($face)) {
            ?>
            	<img src="<?php 
            echo "user_avatar/" . $face;
            ?>