Example #1
0
<?php

$user = new User();
$followed = $user->getFollows();
$followers = $user->getFollowers();
$smarty->assign("followed", $followed);
$smarty->assign("followers", $followers);
Example #2
0
File: stream.php Project: kvox/TVSS
    $_POST['max_id'] = 0;
} else {
    $_POST['max_id'] = (int) $_POST['max_id'];
}
if (!isset($_POST['type'])) {
    $type = 1;
} else {
    $type = $_POST['type'];
}
$friends = array();
if (isset($_POST['user_id'])) {
    $user_id = $_POST['user_id'];
    $limit = 10;
    if (isset($_POST['friends'])) {
        $user = new User();
        $friends = $user->getFollows($_POST['user_id']);
        if (count($friends)) {
            $friends = array_keys($friends);
        }
    }
} else {
    $user_id = null;
    $limit = 20;
}
$stream = $streamer->get($_POST['max_id'], $limit, $language, $user_id, $friends);
$html = '';
function getNakNek($string)
{
    global $lang;
    $nak = array("a", "á", "o", "ó", "u", "ú");
    $nek = array("e", "é", "i", "í", "ö", "ő", "ü", "ű");