예제 #1
0
function friend_user_default()
{
    // ajax only
    //	$ret .= "&bull;&nbsp;Search people to be added as friends<br />";
    //	$ret .= "&bull;&nbsp;List of friends by groups/circles<br />";
    $basepath = $_SESSION['basepath'];
    $template = new Template();
    $logged_in = user_user_loggedin();
    // Deteksi User Agent
    $template_file = "modules/004_friends/templates/friend_user_default.php";
    $template->logged_in = $logged_in;
    $template->basepath = $basepath;
    $template->circles = (array) friend_user_ws_circle($_SESSION['user_id'], 'array');
    $return = $template->render($template_file);
    return $return;
}
예제 #2
0
function friend_user_default()
{
    $basepath = $_SESSION['basepath'];
    $template = new Template();
    $logged_in = user_user_loggedin();
    $template->logged_in = $logged_in;
    $template->basepath = $basepath;
    // dapatkan semua bagian avatar berdasar tipe
    $lilo_mongo = new LiloMongo();
    $lilo_mongo->selectDB('Assets');
    $lilo_mongo->selectCollection('Avatar');
    $template->element_dir = $_SESSION['element_dir'];
    $template->material_dir = $_SESSION['material_dir'];
    $template->preview_dir = $_SESSION['preview_dir'];
    $user_property = user_user_property();
    $template->user_property = json_decode($user_property);
    $template->heartBeatInterval = 60000;
    $template->top = $template->render("modules/000_user_interface/templates/top.php");
    $template->left = $template->render("modules/000_user_interface/templates/left.php");
    $template->right = $template->render("modules/000_user_interface/templates/right.php");
    $template->bottom = $template->render("modules/000_user_interface/templates/bottom.php");
    $template->circles = (array) friend_user_ws_circle($_SESSION['user_id'], 'array');
    //	$template_file = "modules/005_messaging/templates_popbloopdark/message_user_status.php";
    $template_file = "modules/004_friends/templates/friend_user_default.php";
    $template->middle = $template->render($template_file);
    $return = $template->render("modules/000_user_interface/templates/ui_user_default.php");
    return $return;
}