Location: PHPKode > projects > Game Panel X > GamePanelX/PanelLeftAdmin.php
<?php
/*

GamePanelX

Description:  Left admin panel with links to main pages

Author:       Ryan D. Gehrig
License:      GNU General Public License (GPL)

*/
include_once('include/config.php');
include_once('include/auth.php');
include_once('include/SqlCon.php');

// Kill page if user is not an admin
$query = "SELECT is_admin FROM users WHERE username='$GPXuserName'";
sqlCon($query);

if($row['is_admin'] != 'Y')
{
    include('Unauthorized.php');
    exit(0);
}
?>
<html>
<head>
<title><?php echo $config['title']; ?></title>
<META NAME="ROBOTS" CONTENT="NONE">
<META NAME="GOOGLEBOT" CONTENT="NONE">
<META NAME="Slurp" CONTENT="NONE">
<link rel="stylesheet" type="text/css" href="css/<?php echo $config['theme']; ?>/panelLeft.css">
</head>

<body topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">

<table align="center" cellpadding="0" cellspacing="0" style="border-right:1px solid black" width="100%" height="100%">
  <tr>
    <td valign="top">

<div align="center">
<font color="#FFFFFF" face="verdana" size="3">
<b>GamePanelX</b><br />
Version <?php echo $config['GPX-VERSION']; ?>
</font>

<br /><br />

<font color="white">Logged in: <b><?php echo $GPXuserName; ?></b></font>
<br />
<b><a href="logout.php" target="_top">Logout</a></b>
</div>

<br /><br />

<table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">

  <!-- Server Setup -->
  <tr style="vertical-align:middle;height:20px;line-height:19px;background-image:url('css/<?php echo $config['theme']; ?>/img/smallGrad.png')">
    <td align="left">&nbsp;&nbsp;&nbsp;<img src="images/main/settings-14.png" border="0" />&nbsp;<span class="left_panel_title">Server Setup</span></td>
  </tr>
  <tr>
    <td align="left">&nbsp;<a href="AdminMain.php" target="mainFrame"><img src="images/servers/leftpanel/main.png" border="0" />&nbsp;Main Page</a></td>
  </tr>
  <tr>
    <td align="left">&nbsp;<a href="Configuration.php" target="mainFrame"><img src="images/servers/leftpanel/settings.png" border="0" />&nbsp;Edit Configuration</a></td>
  </tr>
  <tr>
    <td align="left">&nbsp;<a href="SSHTest.php" target="mainFrame"><img src="images/servers/leftpanel/cmd_line.png" border="0" />&nbsp;Test SSH Connection</a></td>
  </tr>
  <tr>
    <td align="left">&nbsp;</td>
  </tr>

  <!-- User Editing -->
  <tr style="vertical-align:middle;height:20px;line-height:19px;background-image:url('css/<?php echo $config['theme']; ?>/img/smallGrad.png')">
    <td align="left">&nbsp;&nbsp;&nbsp;<img src="images/main/user-group-14.png" border="0" />&nbsp;<span class="left_panel_title">User Accounts</span></td>
  </tr>
  <tr>
    <td align="left">&nbsp;<a href="UserEditor.php" target="mainFrame"><img src="images/servers/leftpanel/user_group.png" border="0" />&nbsp;User Editor</a></td>
  </tr>
  <tr>
    <td align="left">&nbsp;<a href="CreateUser.php" target="mainFrame"><img src="images/servers/leftpanel/add_user.png" border="0" />&nbsp;Create User</a></td>
  </tr>
  <tr>
    <td align="left">&nbsp;<a href="MyInfo.php" target="mainFrame"><img src="images/edit.png" border="0" />&nbsp;Edit My Account</a></td>
  </tr>
  <tr>
    <td align="left">&nbsp;</td>
  </tr>  

  <!-- Remote Servers -->
  <tr style="vertical-align:middle;height:20px;line-height:19px;background-image:url('css/<?php echo $config['theme']; ?>/img/smallGrad.png')">
    <td align="left">&nbsp;&nbsp;&nbsp;<img src="images/main/server-14.png" border="0" />&nbsp;<span class="left_panel_title">Remote Servers</span></td>
  </tr>
  <tr>
    <td align="left">&nbsp;<a href="RemoteServerManager.php" target="mainFrame"><img src="images/servers/leftpanel/server.png" border="0" />&nbsp;Remote Server Manager</a></td>
  </tr>
  <tr>
    <td align="left">&nbsp;<a href="RemoteServerNew.php" target="mainFrame"><img src="images/servers/leftpanel/server_add.png" border="0" />&nbsp;Create Remote Server</a></td>
  </tr>
  <tr>
    <td align="left">&nbsp;</td>
  </tr>
  
  <!-- User Servers -->
  <tr height="20" style="vertical-align:middle;height:20px;line-height:19px;background-image:url('css/<?php echo $config['theme']; ?>/img/smallGrad.png')">
    <td align="left">&nbsp;&nbsp;&nbsp;<img src="images/servers/leftpanel/games.png" border="0" height="14" width="14" />&nbsp;<span class="left_panel_title">User Servers</span></td>
  </tr>
  <tr>
    <td align="left">&nbsp;<a href="ListServers.php?type=game" target="mainFrame"><img src="images/servers/leftpanel/games.png" border="0" />&nbsp;List Game Servers</a></td>
  </tr>
  <tr>
    <td align="left">&nbsp;<a href="ListServers.php?type=voip" target="mainFrame"><img src="images/servers/leftpanel/vent.png" border="0" />&nbsp;List Voip Servers</a></td>
  </tr>
  <tr>
    <td align="left">&nbsp;<a href="CreateServer.php?type=game" target="mainFrame"><img src="images/servers/leftpanel/games.png" border="0" />&nbsp;Create Game Server</a></td>
  </tr>
  <tr>
    <td align="left">&nbsp;<a href="CreateServer.php?type=voip" target="mainFrame"><img src="images/servers/leftpanel/vent.png" border="0" />&nbsp;Create Voip Server</a></td>
  </tr>
  <tr>
    <td align="left">&nbsp;</td>
  </tr>

  <!-- Supported Servers -->
  <tr height="20">
    <td align="left" style="vertical-align:middle;height:20px;line-height:20px;background-image:url('css/<?php echo $config['theme']; ?>/img/smallGrad.png')" valign="middle">&nbsp;&nbsp;&nbsp;<img src="images/servers/small/games.png" border="0" height="14" width="14" />&nbsp;<span class="left_panel_title">Supported Servers</span></td>
  </tr>
  <tr>
    <td align="left">&nbsp;<a href="SupportedServers.php?type=game" target="mainFrame"><img src="images/servers/leftpanel/games.png" border="0" />&nbsp;Supported Game Servers</a></td>
  </tr>
  <tr>
    <td align="left">&nbsp;<a href="SupportedServers.php?type=voip" target="mainFrame"><img src="images/servers/leftpanel/vent.png" border="0" />&nbsp;Supported Voip Servers</a></td>
  </tr>
  <tr>
    <td align="left">&nbsp;<a href="CreateSupportedServer.php?type=game" target="mainFrame"><img src="images/servers/leftpanel/games.png" border="0" />&nbsp;Create Supported Game Server</a></td>
  </tr>
  <tr>
    <td align="left">&nbsp;<a href="CreateSupportedServer.php?type=voip" target="mainFrame"><img src="images/servers/leftpanel/vent.png" border="0" />&nbsp;Create Supported Voip Server</a></td>
  </tr>
  <tr>
    <td align="left">&nbsp;<a href="XMLImport.php" target="mainFrame"><img src="images/xml-14.png" border="0" />&nbsp;Import XML Server Data</a></td>
  </tr>
  <tr>
    <td align="left">&nbsp;</td>
  </tr>
  
  <!-- Games Templates -->
  <tr style="vertical-align:middle;height:20px;line-height:19px;background-image:url('css/<?php echo $config['theme']; ?>/img/smallGrad.png')">
    <td align="left">&nbsp;&nbsp;&nbsp;<img src="images/main/template-14.png" border="0" />&nbsp;<span class="left_panel_title">Templates</span></td>
  </tr>
  
  <tr>
    <td align="left">&nbsp;<a href="Templates.php?type=game" target="mainFrame"><img src="images/servers/leftpanel/template_game.png" border="0" />&nbsp;Game Templates</a></td>
  </tr>
  <tr>
    <td align="left">&nbsp;<a href="Templates.php?type=voip" target="mainFrame"><img src="images/servers/leftpanel/template_voip.png" border="0" />&nbsp;Voip Templates</a></td>
  </tr>
  <tr>
    <td align="left">&nbsp;<a href="TemplateNew.php?type=game" target="mainFrame"><img src="images/servers/leftpanel/template_game.png" border="0" />&nbsp;Create Game Template</a></td>
  </tr>
  <tr>
    <td align="left">&nbsp;<a href="TemplateNew.php?type=voip" target="mainFrame"><img src="images/servers/leftpanel/template_voip.png" border="0" />&nbsp;Create Voip Template</a></td>
  </tr>
  <tr>
    <td align="left">&nbsp;</td>
  </tr>
  
  <!-- About -->
  <tr style="vertical-align:middle;height:20px;line-height:19px;background-image:url('css/<?php echo $config['theme']; ?>/img/smallGrad.png')">
    <td align="left">&nbsp;&nbsp;&nbsp;<img src="images/main/about-14.png" border="0" />&nbsp;<span class="left_panel_title">GamePanelX</span></td>
  </tr>
  <tr>
    <td align="left">&nbsp;<a href="About.php" target="mainFrame"><img src="images/servers/leftpanel/about.png" border="0" />&nbsp;About GamePanelX</a></td>
  </tr>
  <tr>
    <td align="left">&nbsp;</td>
  </tr>
</table>

    </td>
  </tr>
</table>

</body>
</html>
Return current item: Game Panel X