Просмотр файла moduls/user_gift_info.php

Размер файла: 1.71Kb
<?php
/**********************************************/
/* Автор скрипта: Александр Есин              */
/* E-Mail: [email protected] ([email protected]) */
/* ICQ: 6464729                               */
/* Site: http://ticlove.ru                    */
/**********************************************/
?>
<?php define ('SECURED', true); ?>
<?php require (dirname(__FILE__).'/../_inc/sql.php'); ?>
<?php require (dirname(__FILE__).'/../_inc/config.php'); ?>
<?php require (dirname(__FILE__).'/../_inc/function.php'); ?>
<?php
	 if (!empty($_POST['uid']))
	 {
	      $id_user = intval($_POST['uid']);
	      $q = mysql_query("SELECT * FROM `q_users` WHERE `id_user` = '".$id_user."' LIMIT 1;");
	      $user_array = mysql_fetch_array($q);
	      
	      echo '<div style="text-align: center;">';
	      if (!empty($user_array['avatar'])) {
	      echo '<img class="'.($user_array['vip_status'] == 1 ? 'photo_bor_vip' : 'photo_bor').'" src="http://'.$_SERVER["HTTP_HOST"].'/'.DIR_PHOTOS.'/'.$id_user.'/'.str_replace('_s', '_p', $user_array['avatar']).'" alt="Загрузка..." width="110" height="146" />';
	      } else echo '<img class="'.($user_array['vip_status'] == 1 ? 'photo_bor_vip' : 'photo_bor').'" src="http://'.$_SERVER["HTTP_HOST"].'/images/no_photo_norm.png" alt="Загрузка..." width="110" height="146" />';
	      echo '</div>';
	      echo '<div style="text-align: center;">';
	      echo 'От: '.htmlspecialchars($user_array['name'], ENT_QUOTES).', '.function_vozrast_n($user_array['god'].'-'.$user_array['mes'].'-'.$user_array['day']);
	      echo '<div>';
	      echo '<div style="text-align: center;">'.htmlspecialchars($user_array['city'], ENT_QUOTES).'</div>';
	 }
?>