inherit
54941
0
Mar 24, 2011 16:00:30 GMT -8
Mithras
2,603
August 2005
mithras
|
Post by Mithras on Jan 20, 2007 11:47:12 GMT -8
This basically allows the admin (or anyone with access to the headers and footers) to set a different message for each banned person. <script type="text/javascript" src="http://ex.mithraslive.com/pb/ip.php"> // Individual Ban Messages by Mithras - Part I </script>
<script type="text/javascript"> // Individual Ban Messages by Mithras - Part II
var messages = [ // 'IP address','Message' ['12.345.67.890','message1'], ];
if(document.title.match(/An Error Has Occurred/)) { for(a=0; a<messages.length; a++) { if(ip == messages[a][0]) { var fonts = document.getElementsByTagName('font'); for(b=0; b<fonts.length; b++) { if(fonts[b].innerHTML.match(/you have been banned/)) { fonts[b].innerHTML += '<br /><br />' + messages[a][1]; } } } } } </script>
The red is the IP address of the person being banned, and the blue is the message that is displayed. Global FooterEdited on 5/28 to change to URL to the externally hosted section.
|
|