} if (!empty($_GET['a']) && $_GET['a'] == $profile->realname) { header("HTTP/1.0 301 Moved Permanently"); header("Status: 301 Moved Permanently"); header("Location: /profile/{$uid}"); exit; } if ($profile->user_id == 0) { header("HTTP/1.0 404 Not Found"); header("Status: 404 Not Found"); $smarty->display('static_404.tpl'); exit; } $profile->getStats(); if ($uid == $USER->user_id) { $profile->countTickets(); $USER->tickets = $profile->tickets; $USER->last_ticket_time = $profile->last_ticket_time; if (!empty($_SESSION['last_ticket_time']) && $profile->last_ticket_time <= $_SESSION['last_ticket_time']) { $profile->tickets = 0; } } $smarty->assign_by_ref('profile', $profile); $images = new ImageList(); if ($uid == $USER->user_id || $USER->hasPerm('moderator')) { if (isset($_GET['reject']) && empty($_GET['reject'])) { $statuses = array('pending', 'accepted', 'geograph'); } else { $statuses = ''; //all }