Location: PHPKode > projects > Esvon Personals > esvon-personals/inc/blocks/block-User_Menu.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/
//
// --------------------------------------------------------------------------

function block_User_Menu(&$tpl){

  $v = array();
  $v['u_id'] = (int)hwSessionGetVar('userid');
  if(!$v['u_id']) return;

  global $DATE_FMT, $DATE_TIME_FMT;
 
  $v['u_regdate'] = strftime($DATE_FMT,hwSessionGetVar('regdate'));
  $dt = hwSessionGetVar('exp_date');
  $v['u_expdate'] = $dt ? strftime($DATE_FMT,$dt) : 'N/A';
  
  $u_ac_pp = hwSessionGetVar('u_ac_pp');
  $v['u_account'] = hwLangPhrase('pp_name-'.$u_ac_pp, hwSessionGetVar('u_ac'));
  
  $dt = hwSessionGetVar('lastlogin');
  $v['u_lastlogin'] = $dt ? strftime($DATE_TIME_FMT,$dt) : 'N/A';
  $v['username'] = hwSessionGetVar('username');
  $z = array();
  $z['USER_MENU'] = EvalAdvTpl(TPL_PATH.'user_menu.htm',$v);  
  $tpl->AddCell('b_User_Menu',$z);

}

?>
Return current item: Esvon Personals