Jump to content
MakeWebGames

IP Details - FREE SCRIPT (First Ever)


Recommended Posts

Posted

This is my first ever script so please be kind with comments.

I would also like to point out that this is an edit of the user statistics script by Jaimee

5k3bll.jpg

Make ipdetails.php and add the code below:

<?php require("top.php"); ?>
<form method="post">
<?php if (in_array($name, $admin_array) or in_array($name, $manager_array)){ ?>

<fieldset style="color: #ffffff; border: 1px solid #ffffff; width: 600px; text-align: left; padding: 5px;">

<table width="550" border="0" align="center" cellpadding="0" cellspacing="2" class="table">

 <tr>
<td colspan="3" align="left" class="head">IP Details: </td>
 </tr>
 <tr>
<td width="150" align="left" class="sub">Name:</td>
<td width="150" align="left" class="sub">Signup_IP:</td>
<td width="250" align="left" class="sub">Login_IP:</td>
</tr>

 <? 

$result = mysql_query("SELECT name,signup_ip,login_ip FROM login WHERE sitestate='0'") or die(mysql_error());


// keeps getting the next row until there are no more to get
while($row = mysql_fetch_array( $result )) {
// Print out the contents of each row into a table

?>
 <tr>
<td width="150" align="left" class="cell"><?php echo "<a href=\"view_profile.php?name=". $row['name'] ."\" onFocus=\"if(this.blur)this.blur()\">".$row['name']."</a>"; ?></td>
<td width="150" align="left" class="cell"><?php echo $row['signup_ip']; ?></td>
<td width="250" align="left" class="cell"><?php echo $row['login_ip']; ?></td>
</tr>

 <?php } // while ?>

</table>
</fieldset>


</p>
</form>
<?php } include('information_bar.php'); ?>
<?php require("bottom.php"); ?>

 

add the below code to information_bar.php

 

<a href=\"ipdetails.php\" onFocus=\"if(this.blur)this.blur()\">Player IP Details</a> || 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...