PDA

View Full Version : Alerting



PappaLou
05-02-2007, 06:40 PM
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.

Invent
05-02-2007, 06:41 PM
Ill post a script in a moment, im doing an essay right now :P

Ed.
05-02-2007, 06:42 PM
If you get Tom you can an alert system coz thats the kinda stuff they do with Habbox.com etc :D I think it could be the version u gotta pay for tho!

Hope that helps!

Baving
05-02-2007, 06:42 PM
Admin end..




<?

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'>";

}

?>



user end..




<?

$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()); }

}

?>



havent tested

PappaLou
05-02-2007, 06:48 PM
nice 1 mate, +Rep

PappaLou
05-02-2007, 07:14 PM
tried it, didnt work,

Anyone else?

Amir
06-02-2007, 05:51 PM
I'm requesting one from ClubHabbo. They're a biggish thing now. Third person after one on Habbox Forum (at least!)

Moh
06-02-2007, 06:43 PM
I'm requesting one from ClubHabbo. They're a biggish thing now. Third person after one on Habbox Forum (at least!)
If u have no luck, ill try, he asked me to do his Updates Template for Cute News, the least he can do is give me a Script :)

Want to hide these adverts? Register an account for free!