'.$lng['sentbox'].'' : ''.$lng['inbox'].''; //add skin variables $skin = array( 'lang'=>DefaultLang(), 'lname'=>$lng['message_name'], 'lauthor'=>$lng['user'], 'lmdate'=>$lng['date'] ); $skin = array_push_assoc($skin,GenerateHeader($lng['lpm'].': '.(($_GET['submode']=='sentbox') ? $lng['sentbox'] : $lng['inbox']), ' > '.$lng['lpm'].' > '.$folder)); //do it! include('./skins/'.$default_skin.'/overall_header.tpl'); include('./skins/'.$default_skin.'/msgs_is_body.tpl'); $uid = $_SESSION['uid']; if (!isset($_GET['submode'])) { message_forum($lng['invalidmode'],'pms.php'); } switch($_GET['submode']) { case 'sentbox': { $sql = "SELECT * FROM ".PM_SENTBOX_TABLE." WHERE `u_n_id`='$uid'"; break; } case 'inbox': { $sql = "SELECT * FROM ".PM_INBOX_TABLE." WHERE `u_id`='$uid'"; break; } default: { message_forum($lng['invalidmode'],'pms.php'); break; } } $query = DataBase::sql_query($sql,CRITICAL,'Could not obtain messages information'); $count = DataBase::num_rows($query); if ($count==0) { $skin['nomsgs']='
'.$lng['no_elements'].'!