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

GamePanelX

Description:  User-specific settings

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

*/
include_once("include/config.php"); 
include_once("include/auth.php");
include_once("include/statusInfo.php");
include_once("include/SqlCon.php");
?>
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/<?php echo $config['theme']; ?>/main.css">
</head>

<body leftmargin="0px" topmargin="0px" marginwidth="0px" marginheight="0px" onLoad="init()">

<div id="loading" style="position:absolute; top:60px; left:5px; overflow: hidden;"><img src="images/loading.gif" border="0"></div>
<script src="include/loading.js"></script>

<table border="0" cellpadding="0" cellspacing="0" align="center" width="100%" height="40" background="css/<?php echo $config['theme']; ?>/img/largeGrad.png">
<tr>
  <td align="center" valign="middle"><span class="top_page_titles">Settings</span></td>
</tr>
</table>

<br /><br />

<table border="0" class="tablez" width="600" cellpadding="0" cellspacing="0" align="center">
<tr background="css/<?php echo $config['theme']; ?>/img/smallGrad.png" height="20">
  <td colspan="3" align="left">&nbsp;&nbsp;&nbsp;&nbsp;<span class="top_titles">My Settings</span></td>
</tr>

<tr class="rowz_title">
  <td colspan="2">&nbsp;</td>
</tr>

<tr class="rowz_title">
  <td align="right"><span class="rowz_alt">Username:&nbsp;&nbsp;</span></td>
  <td align="left"><?php echo $GPXuserName; ?></td>
</tr>

<tr class="rowz_title">
  <td align="right"><span class="rowz_alt">Password:&nbsp;&nbsp;</span></td>
  <td align="left"><a href="ChangePassword.php">Click to change password</a></td>
</tr>

<?php
// Ip Address stuff
$ip           = $_SERVER['REMOTE_ADDR'];
$hostAddress  = gethostbyaddr($ip);
?>

<tr class="rowz_title">
  <td colspan="2">&nbsp;</td>
</tr>

<tr class="rowz_title">
  <td align="right"><span class="rowz_alt">Client IP Address:&nbsp;&nbsp;</span></td>
  <td align="left"><?php echo $ip; ?></td>
</tr>

<tr class="rowz_title">
  <td align="right"><span class="rowz_alt">Client Hostname:&nbsp;&nbsp;</span></td>
  <td align="left"><?php if(!empty($hostAddress)) echo $hostAddress; ?></td>
</tr>

<tr class="rowz_title">
  <td colspan="2">&nbsp;</td>
</tr>

</table>

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