Anyone know a script where like;
You can enter an IP & a message to alert the IP so the person with tht IP gets alerted.
Or any DJ Panels that have an alert feature?
+Rep for all help & ill give some furni to pple who help.
Anyone know a script where like;
You can enter an IP & a message to alert the IP so the person with tht IP gets alerted.
Or any DJ Panels that have an alert feature?
+Rep for all help & ill give some furni to pple who help.
Ill post a script in a moment, im doing an essay right now![]()
If you get Tom you can an alert system coz thats the kinda stuff they do with Habbox.com etcI think it could be the version u gotta pay for tho!
Hope that helps!
2110 Reputation thanks to: IntersocialIf you Rep, please leave your name.
Admin end..
user end..PHP Code:
<?
if($_POST['do']=='send') {
$ip = mysql_escape_string(addslashes($_POST['ip']));
$msg = mysql_escape_string(addslashes($_POST['msg']));
$sql = "INSERT INTO alert(ip, msg) VALUES('". $ip ."','". $msg ."')";
$query = mysql_query($sql); if(!$query) { die(mysql_error()); }
echo "Alert sent!";
}else{
echo "<form method=POST><input type=hidden name=do value='send'>
IP: <input type='text' name='ip'><BR>
Msg: <textarea name=msg></textarea><BR>
<input type=submit value='Send'>";
}
?>
havent testedPHP Code:
<?
$sql = "SELECT * FROM alert WHERE ip = '". $_SERVER['REMOTE_ADDR'] ."' LIMIT 1";
$query = mysql_query($sql); if(!$query) { die(mysql_error()); }
if(mysql_num_rows($query)==1) {
$a = mysql_fetch_array($query);
echo "<script> alert('$a[msg]'); </script>";
$sql = "DELETE FROM alert WHERE ip = '". $_SERVER['REMOTE_ADDR'] ."'";
$query = mysql_query($sql); if(!$query) { die(mysql_error()); }
}
?>
Last edited by Baving; 05-02-2007 at 06:46 PM.
nice 1 mate, +Rep
tried it, didnt work,
Anyone else?
I'm requesting one from ClubHabbo. They're a biggish thing now. Third person after one on Habbox Forum (at least!)
[Go-RockFM.co.uk] [Now Open?][ Don't Forget To Tune In ] [ Owner / DJ Rob ][ You All Rock ] [ Felt Like Being Kind ][ I Can Tell Your Name. All Green Rep's Returned ]
Want to hide these adverts? Register an account for free!