Before you say its ripped, i have permission to use this and modify it by the owner..

Basically i have this;

PHP Code:
<?  
ob_start
(); # Allows Cookies  
include("config.php"); # Includes Your Configuration File  
if($logged[username] && logged[level] == 5# If Logged In AND Level 5  
{  
switch(
$_GET[act]) # Lets Us Use One Page For The Entire Admin Part  
{  
default: 
# The Default Page  
$rquery mysql_query("SELECT * FROM cfh ORDER BY id DESC"); # Queries The Call For Help Messages  
while($m=mysql_fetch_array($rquery)) # Displays Them All In Order  
echo("<b>Username Requiring Help:</b> $m[username]  
<br>  
<b>Category:</b> 
$m[category]  
<br>  
<b>Message:</b> 
$m[message] 
<br>
 <b>IP:</b> 
$m[ip]  
<br>  
<b>Options:</b> <a href=\"?act=reply&id=
$m[id]\">Respond</a> || <a href=\"?act=delete&id=$m[id]\">Delete</a><br><br>"); # Admin Control Panel  
break;  
case 
'delete'# The Part In URL  
$cquery mysql_query("SELECT * FROM cfh WHERE id = '$_GET[id]'"); # Queries The Call For Helps  
$c=mysql_fetch_array($cquery); # Displays Them All In Order  
$delete mysql_query("DELETE FROM `cfh` WHERE id = '$_GET[id]'"); # Deletes The Message From The Table  
echo("The call for help message has been deleted!"); # Shows Message  
break;  
case 
'reply'# The Part In URL  
$rquery mysql_query("SELECT * FROM cfh ORDER BY id DESC"); # Queries The Call For Help Messages  
while($m=mysql_fetch_array($rquery)) # Displays Them All In Order  
if($_POST[alert]) { # If Form Has Been Submitted  
$message $_POST[message]; # Message Variable  
$username $_POST[username]; # Username Variable  
mysql_query(" UPDATE `cfh` SET `alert` = '$message' WHERE `username` = '$username' "); # Adds The Alert Into The Table  
echo ("Your alert has been sent."); # Shows Message  
}else{ # The Form Hasnt Been Submitted Yet  
echo("<form method=\"post\"><b>Send To:</b> <input type=\"text\" name=\"username\" value=\"$m[username]\" readonly><br>  
<b>Alert:</b> <textarea name=\"message\"></textarea><br><br>  
<input type=\"submit\" name=\"alert\" value=\"Alert User\"></form>"
); # Shows Alert Form  
break;  
}  
}  
} else { 
# User Isn't Logged In Or Level 5  
echo("You Are Not Logged In Or Level 5"); # Shows Message  
}  
?>
I have updated the SQL and the form so it writes the IP to the table called 'ip'

Basically i need that admin panel page, so that when you reply to a call for help, it doesnt send the logged username, but to the IP address of the sender, as it was originally intended to be used for a user system, but i want it to be used for anything..

So basically it doesnt send to 'logged username' but to the IP of the sender..

Thanks.