On DJ Panels you have Alert.php with the following code
How do you make these alerts appear on the site?Code:<form method='post' action='alert.php?act=create'> <table> <tr> <td>Message:</td> <td><textarea name='message' cols='30' rows='6'></textarea></td> </tr> <tr> <td></td> <td><input type='submit' value='Create'></td> </form>"; break; case"create": $message = $_POST['message']; if(empty($message)){ Echo"<b>Error:</b> Please fill out the message."; exit; } mysql_query("UPDATE alert SET active ='N'"); mysql_query("INSERT INTO alert (message,name,active) VALUES ('$message', '$_SESSION[session_username]', 'Y')"); Echo"<b>Alert Added Sucessfully</b><br> All other alerts have been deactivated. All users will recieve this alert once, until you deactivate it."; break; case"deactivate": mysql_query("UPDATE alert SET active ='N'"); Echo"<b>Alerts Deactivated</b><br> All previous alerts have been deactivated."; break; } ?>
+Rep for answer





Reply With Quote


