File size: 649B
<?php
require 'sys/config.php';
$id = isset($_GET['id'])?fil($_GET['id'],'int'):'';
if($sql->result('SELECT COUNT(*) FROM `acc` WHERE `id`="'.$id.'"')==0)
{
$smarty->assign('title','Error');
$smarty->assign('back','/index.php');
$smarty->assign('error','This user does not exist');
$smarty->display('header.tpl');
$smarty->display('error.tpl');
$smarty->display('footer.tpl');
} else {$ank = $sql->query('SELECT * FROM `acc` WHERE `id`="'.$id.'"')->fetch_assoc();}
$smarty->assign('ank',$ank);
$smarty->assign('title','Profile View');
$smarty->display('header.tpl');
$smarty->display('ank.ank.tpl');
$smarty->display('footer.tpl');