<?phpif($usrdata['user_level'] == 2){?><br /><br /><table width="40%"> <tr><td class="header2">Admin Options</td> </tr> <tr><td class="content2"><?php echo '<center><a href=\''.$domain.'/index.php?action=admin&case=managegames&cmd=edit&ID='.$ID.'\'><img src=\''.$domain.'/templates/default/images/editbtn.png\' border=\'0\'> Edit Game<img src=\''.$domain.'/templates/default/images/editbtn.png\' border=\'0\'></a> | <a href=\''.$domain.'/index.php?action=admin&case=managegames&cmd=delete&ID='.$ID.'\' onclick="return confirm(\'Are you sure you want to delete this game?\')"> <img src=\''.$domain.'/templates/default/images/deletebtn.png\' border=\'0\'>Delete Game<img src=\''.$domain.'/templates/default/images/deletebtn.png\' border=\'0\'></a></center>';?><br /><br /><small>Mod by: Adam LaCombe</small></td></tr></table><?}?>
<?php if($usrdata['user_level'] == 2){ ?> <table width="100%"> <tr> <td class="header2">Admin Panel</td> </tr> <tr> <td class="content2"> <?php echo '<ul class=\'catmenu\'> <li><a href=\''.$domain.'/index.php?action=admin&case=addgame\'>Add Game</a></li> <li><a href=\''.$domain.'/index.php?action=admin&case=addvid\'>Add Video</a></li> <li><a href=\''.$domain.'/index.php?action=admin&case=managegames\'>Manage Games</a></li> <li><a href=\''.$domain.'/index.php?action=admin&case=managevids\'>Manage Videos</a></li> <li><a href=\''.$domain.'/index.php?action=admin&case=addvidcategory\'>Add Video Category</a></li> <li><a href=\''.$domain.'/index.php?action=admin&case=addcategory\'>Add Category</a></li> <li><a href=\''.$domain.'/index.php?action=admin&case=managevidcategories\'>Manage Video Categories</a></li> <li><a href=\''.$domain.'/index.php?action=admin&case=managecategories\'>Manage Categories</a></li> <li><a href=\''.$domain.'/index.php?action=admin&case=addlink\'>Add Link</a></li> <li><a href=\''.$domain.'/index.php?action=admin&case=managelinks\'>Manage Links</a></li> <li><a href=\''.$domain.'/index.php?action=admin&case=approvecomments\'>Approve Comments</a></li> <li><a href=\''.$domain.'/index.php?action=admin&case=settings\'>Site Settings</a></li> <li><a href=\''.$domain.'/index.php?action=admin&case=managemembers\'>Manage Memebers</a></li> <li><a href=\''.$domain.'/index.php?action=admin&case=newsletter\'>Manage Newsletters</a></li> <li><a href=\''.$domain.'/index.php?action=admin&case=newsletter&cmd=newnewsletter\'>New Newsletter</a></li> </ul>'; ?> </td> </tr> </table> <? } ?>
echo ' <div class=\'menutop\'>'; if($seo_on == 1){ echo ' <ul> <li><a href=\''.$domain.'\' title=\'Home\'>Home</a></li> <li><a href=\''.$domain.'/mostplayed/\' title=\'Most Played\'>Most Played</a></li> <li><a href=\''.$domain.'/newest/\' title=\'Newest\'>Newest</a></li><li><a href="'.$domain.'/memberslist/" title="Member List">Member List</a></li> <li><a href=\''.$domain.'/search/\' title=\'Search\'>Search</a></li> '; if(!isset($suserid)){ echo ' <li class=\'floatr\'><a href=\''.$domain.'/login/\'>Login</a></li> <li class=\'floatr\'><a href=\''.$domain.'/signup/\'>Signup</a></li>'; }else{ echo ' <li class=\'floatr\'><a href=\''.$domain.'/logout/\'>Logout</a></li> <li class=\'floatr\'><a href=\''.$domain.'/myaccount/\'>My Account</a></li>'; }
?> <?php if($usrdata['user_level'] == 2){ ?> <?php echo '<li class=\'floatr\'><a href=\''.$domain.'/index.php?action=admin&case=home\'>Admin</a></li>'; ?> <? } ?><?php
case 'home': include ('home.php'); break;
default: include ('statics.php'); break;
<table><tr><td><ul class=\'catmenu\'><li><a href=\''.$domain.'/index.php?action=admin&case=addgame\'>Add Game</a></li><li><a href=\''.$domain.'/index.php?action=admin&case=managegames\'>Manage Games</a></li><li><a href=\''.$domain.'/index.php?action=admin&case=addcategory\'>Add Category</a></li><li><a href=\''.$domain.'/index.php?action=admin&case=managecategories\'>Manage Categories</a></li><li><a href=\''.$domain.'/index.php?action=admin&case=addlink\'>Add Link</a></li><li><a href=\''.$domain.'/index.php?action=admin&case=managelinks\'>Manage Links</a></li><li><a href=\''.$domain.'/index.php?action=admin&case=approvecomments\'>Approve Comments</a></li><li><a href=\''.$domain.'/index.php?action=admin&case=settings\'>Site Settings</a></li><li><a href=\''.$domain.'/index.php?action=admin&case=managemembers\'>Manage Memebers</a></li><li><a href=\''.$domain.'/index.php?action=admin&case=newsletter\'>Manage Newsletters</a></li><li><a href=\''.$domain.'/index.php?action=admin&case=newsletter&cmd=newnewsletter\'>New Newsletter</a></li></ul></td></tr></table>