2 require ('config.php');
3 $level_restriction = NEW_USER
;
6 if ($userinfo['level'] >= MOD
&& isset ($_GET['user']))
8 $user = intval ($_GET['user']);
9 $usr = ';user='.intval ($_GET['user']);
10 $page_name = 'Message History for '.mysql_result (mysql_query ('SELECT `username` FROM `users` WHERE `userid` = '.intval ($_GET['user'])), 0);
14 $user = $userinfo['userid'];
16 $page_name = 'Message History';
19 require ('top.inc.php');
21 isset ($_GET['list']) ?
'' : $_GET['list'] = 0;
22 switch ($_GET['list'])
25 $list_criteria = '`postedby` = '.$user.' AND (`active` = 0 OR `aurachng` != 0) ORDER BY `messsec` DESC';
26 echo '<div class="c3"><a href="?list=0'.$usr.urlpath(1).'">All</a> | [Moderations and Suggestions]</div>
30 $list_criteria = '`postedby` = '.$user.' ORDER BY `messsec` DESC';
31 echo '<div class="c3">[All] | <a href="?list=1'.$usr.urlpath(1).'">Moderations and Suggestions</a></div>
37 require ('messages.inc.php');