Beispiel #1
0
                for (; $q[0] == '';) {
                    $conut = rand(1, $num - 1);
                    $sql1 = "SELECT * FROM  `weixin_wall` where `num` = '{$conut}' limit 1 ";
                    $query1 = mysql_query($sql1, $link);
                    $q = mysql_fetch_row($query1);
                    $q[3] = $lastid;
                }
            }
            break;
        }
    }
}
$q[5] = pack('H*', $q[5]);
$q = emoji_unified_to_html(emoji_softbank_to_unified($q));
$id = $q[0];
$fakeid = $q[2];
$num = $q[3];
$content = $q[4];
$content = biaoqing($content);
$nickname = $q[5];
$avatar = $q[6];
$ret = $q[7];
$image = $q[9];
if ($q[3]) {
    @($msg = array(data => array(array("id" => $id, "fakeid" => $fakeid, "num" => $num, "content" => $content, "nickname" => $nickname, "avatar" => $avatar, "image" => $image)), ret => 1));
    echo $msg = json_encode($msg);
}
if (!$q[3]) {
    @($msg = array(data => array(), ret => 0));
    echo $msg = json_encode($msg);
}
Beispiel #2
0
            </p>
          </div>
        </div>
      </div>
    </div>
    <!-- end Profile Widget -->
    
    <?php 
include 'biaoqing.php';
$sql = "SELECT * FROM  `weixin_wall` order by id desc LIMIT 25";
$query = mysql_query($sql);
while ($q = mysql_fetch_row($query)) {
    $q[5] = pack('H*', $q[5]);
    $q[4] = pack('H*', $q[4]);
    $q = emoji_unified_to_html(emoji_softbank_to_unified($q));
    $q[4] = biaoqing($q[4]);
    //判断是否是审核过的
    if ($q[7] == 0) {
        //判断是否带图片,空为无
        if ($q[9] == '') {
            ?>
    <!-- Text Post -->
    <div class="item widget-container fluid-height social-entry texts waitshenhe" id="<?php 
            echo $q[0];
            ?>
">
      <div class="widget-content padded">
        <div class="profile-info clearfix">
          <img width="50" height="50" class="social-avatar pull-left" src="<?php 
            echo $q[6];
            ?>