Location: PHPKode > projects > Esvon Personals > esvon-personals/inc/pages/profile.php
<?php

// --------------------------------------------------------------------------
//
// Esvon Classifieds v.4.0
// Copyright(C), Esvon LTD, 2001-2010, All Rights Reserved.
// E-mail: hide@address.com
//
// All forms of reproduction, including, but not limited to, internet posting, 
// printing, e-mailing, faxing and recording are strictly prohibited.
// One license required per site running Esvon Classifieds. 
// To obtain a license for using Esvon Classifieds, please register at
// http://www.esvon.com/pg/products/p_classifieds/
//
// --------------------------------------------------------------------------

if(!defined('SITE_PATH')) die('Access Denied');

 $id = (int)$_GET['id'];
 $tpl_v = $db->one_assoc('SELECT *,UNIX_TIMESTAMP(lastlogin) AS lastlogin FROM '.TBL_USER.' WHERE id='.$id);

  if(!$tpl_v){
    header('Location: index.php?page=browse');
    exit;
  }

  $O_UFS = &Factory::singleton('FieldsSet', '{user_fields}');

  $tpl_v = $O_UFS->FillCustomFieldsArray($tpl_v, true);
  $O_UFS->AdjustCustomFields($tpl_v);

  $tpl_v['id'] = $id;
  $tpl_v['lastlogin'] = strftime($DATE_TIME_FMT, $tpl_v['lastlogin']);

  EvalAdvTpl(TPL_PATH.'user_profile_view.htm',$tpl_v,1);

?>
Return current item: Esvon Personals