View file globalchat/user_profile.php

File size: 791B
<?php
$gc_title = 'Информация';
require 'controller/prestart.php';

if (empty ($_GET['user_id']) || !is_numeric ($_GET['user_id']))
$user_id = null;
else
$user_id = (int) $_GET['user_id'];

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

require 'controller/start.php';

$gcChat = new gcChat;

$gcSmarty->assign ('userId', (empty ($user_id) ? $result['myId'] : $user_id));
$gcSmarty->assign ('site', $result['siteInfo']);
$gcSmarty->assign ('usersInfo', $result['usersInfo']);
$gcSmarty->assign ('userRank', $result['userRank']);
$gcSmarty->display ('user_profile.tpl');

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

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