View file globalchat/user_menu.php

File size: 794B
<?php
$gc_title = "Меню чатера";
require 'controller/prestart.php';

if (empty ($_GET['user_id']) || !is_numeric ($_GET['user_id']))
{
echo "<div class='err'>Такого пользователя не существует</div>";
require "cms/$gc_cms/foot.php";
exit ();
}
else
$user_id = (int) $_GET['user_id'];

/* Заказываем и получаем результат */
$gcProcess->addRequest ('userId', $user_id);
$gcProcess->requestTo ('user_profile.php');

require 'controller/start.php';

$gcSmarty->assign ('userId', $user_id);
$gcSmarty->assign ('myId', $result['myId']);
$gcSmarty->assign ('usersInfo', $result['usersInfo']);
$gcSmarty->display ('user_menu.tpl');

$gcSmarty->display ('foot_navigation.tpl');

require "cms/$gc_cms/foot.php";