WP-Ban - Version 1.00

Version Description

Download this release

Release Info

Developer GamerZ
Plugin Icon WP-Ban
Version 1.00
Comparing to
See all releases

Version 1.00

Files changed (2) hide show
  1. ban.php +241 -0
  2. readme.html +278 -0
ban.php ADDED
@@ -0,0 +1,241 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: WP-Ban
4
+ Plugin URI: http://www.lesterchan.net/portfolio/programming.php
5
+ Description: Ban Users By IP Or Host Name From Visiting Your WordPress Site
6
+ Version: 1.00
7
+ Author: GaMerZ
8
+ Author URI: http://www.lesterchan.net
9
+ */
10
+
11
+
12
+ /* Copyright 2006 Lester Chan (email : gamerz84@hotmail.com)
13
+
14
+ This program is free software; you can redistribute it and/or modify
15
+ it under the terms of the GNU General Public License as published by
16
+ the Free Software Foundation; either version 2 of the License, or
17
+ (at your option) any later version.
18
+
19
+ This program is distributed in the hope that it will be useful,
20
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
21
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
+ GNU General Public License for more details.
23
+
24
+ You should have received a copy of the GNU General Public License
25
+ along with this program; if not, write to the Free Software
26
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
27
+ */
28
+
29
+
30
+ ### Function: Ban Menu
31
+ add_action('admin_menu', 'ban_menu');
32
+ function ban_menu() {
33
+ if (function_exists('add_options_page')) {
34
+ add_options_page(__('Ban'), __('Ban'), 'manage_options', 'ban.php', 'ban_options');
35
+ }
36
+ }
37
+
38
+
39
+ ### Function: Get IP Address
40
+ if(!function_exists('get_IP')) {
41
+ function get_IP() {
42
+ if(empty($_SERVER["HTTP_X_FORWARDED_FOR"])) {
43
+ $ip_address = $_SERVER["REMOTE_ADDR"];
44
+ } else {
45
+ $ip_address = $_SERVER["HTTP_X_FORWARDED_FOR"];
46
+ }
47
+ if(strpos($ip_address, ',') !== false) {
48
+ $ip_address = explode(',', $ip_address);
49
+ $ip_address = $ip_address[0];
50
+ }
51
+ return $ip_address;
52
+ }
53
+ }
54
+
55
+
56
+
57
+ ### Function: Process Banning
58
+ function process_ban($banarray, $against) {
59
+ if(!empty($banarray)) {
60
+ foreach($banarray as $cban) {
61
+ $regexp = str_replace ('.', '\\.', $cban);
62
+ $regexp = str_replace ('*', '.+', $regexp);
63
+ if(ereg("^$regexp$", $against)) {
64
+ $banned_message = stripslashes(get_settings('banned_message'));
65
+ $banned_message = str_replace("%SITE_NAME%", get_settings('blogname'), $banned_message);
66
+ $banned_message = str_replace("%SITE_URL%", get_settings('siteurl'), $banned_message);
67
+ echo $banned_message;
68
+ exit();
69
+ }
70
+ }
71
+ }
72
+ return;
73
+ }
74
+
75
+
76
+ ### Function: Banned
77
+ add_action('init', 'banned');
78
+ function banned() {
79
+ $banned_ips = get_settings('banned_ips');
80
+ $banned_hosts = get_settings('banned_hosts');
81
+ process_ban($banned_ips, get_IP());
82
+ process_ban($banned_hosts, gethostbyaddr(get_IP()));
83
+ }
84
+
85
+
86
+ ### Function: Ban Options
87
+ function ban_options() {
88
+ global $wpdb;
89
+ if($_POST['Submit']) {
90
+ $update_ban_queries = array();
91
+ $update_ban_text = array();
92
+ $banned_ips_post = explode("\n", trim($_POST['banned_ips']));
93
+ $banned_hosts_post = explode("\n", trim($_POST['banned_hosts']));
94
+ $banned_message = trim($_POST['banned_template_message']);
95
+ if(!empty($banned_ips_post)) {
96
+ $banned_ips = array();
97
+ foreach($banned_ips_post as $banned_ip) {
98
+ if($banned_ip != get_IP()) {
99
+ $banned_ips[] = trim($banned_ip);
100
+ }
101
+ }
102
+ }
103
+ if(!empty($banned_hosts_post)) {
104
+ $banned_hosts = array();
105
+ foreach($banned_hosts_post as $banned_host) {
106
+ if($banned_host != gethostbyaddr(get_IP())) {
107
+ $banned_hosts[] = trim($banned_host);
108
+ }
109
+ }
110
+ }
111
+ $update_ban_queries[] = update_option('banned_ips', $banned_ips);
112
+ $update_ban_queries[] = update_option('banned_hosts', $banned_hosts);
113
+ $update_ban_queries[] = update_option('banned_message', $banned_message);
114
+ $update_ban_text[] = __('Banned IPs');
115
+ $update_ban_text[] = __('Banned Host Names');
116
+ $update_ban_text[] = __('Banned Message');
117
+ $i=0;
118
+ $text = '';
119
+ foreach($update_ban_queries as $update_ban_query) {
120
+ if($update_ban_query) {
121
+ $text .= '<font color="green">'.$update_ban_text[$i].' '.__('Updated').'</font><br />';
122
+ }
123
+ $i++;
124
+ }
125
+ if(empty($text)) {
126
+ $text = '<font color="red">'.__('No Ban Option Updated').'</font>';
127
+ }
128
+ }
129
+ ### Get Useronline Bots
130
+ $banned_ips = get_settings('banned_ips');
131
+ $banned_hosts = get_settings('banned_hosts');
132
+ $banned_ips_display = '';
133
+ $banned_hosts_display = '';
134
+ if(!empty($banned_ips)) {
135
+ foreach($banned_ips as $banned_ip) {
136
+ $banned_ips_display .= $banned_ip."\n";
137
+ }
138
+ }
139
+ if(!empty($banned_hosts)) {
140
+ foreach($banned_hosts as $banned_host) {
141
+ $banned_hosts_display .= $banned_host."\n";
142
+ }
143
+ }
144
+ $banned_ips_display = trim($banned_ips_display);
145
+ $banned_hosts_display = trim($banned_hosts_display);
146
+ ?>
147
+ <script type="text/javascript">
148
+ /* <![CDATA[*/
149
+ function banned_default_templates(template) {
150
+ var default_template;
151
+ switch(template) {
152
+ case "message":
153
+ default_template = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=<?php echo get_settings('blog_charset'); ?>\" />\n<title>%SITE_NAME% - %SITE_URL%</title>\n</head>\n<body>\n<p style=\"text-align: center; font-weight: bold;\">You Are Banned.</p>\n</body>\n</html>";
154
+ break;
155
+ }
156
+ document.getElementById("banned_template_" + template).value = default_template;
157
+ }
158
+ /* ]]> */
159
+ </script>
160
+ <?php if(!empty($text)) { echo '<!-- Last Action --><div id="message" class="updated fade"><p>'.$text.'</p></div>'; } ?>
161
+ <!-- Ban Options -->
162
+ <div class="wrap">
163
+ <h2>Ban Options</h2>
164
+ <form action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post">
165
+ <table width="100%" cellspacing="3" cellpadding="3" border="0">
166
+ <tr>
167
+ <td valign="top" colspan="2" align="center">
168
+ Your IP is: <strong><?php echo get_IP(); ?></strong><br />Your Host Name is: <strong><?php echo gethostbyaddr(get_IP()); ?></strong><br />
169
+ Please <strong>DO NOT</strong> ban yourself.
170
+ </td>
171
+ </tr>
172
+ <tr>
173
+ <td valign="top">
174
+ <strong><?php _e('Banned IPs'); ?>:</strong><br />
175
+ Use <strong>*</strong> for wildcards.<br />
176
+ Start each entry on a new line.<br /><br />
177
+ Examples:<br />
178
+ <strong>&raquo;</strong> 192.168.1.100<br />
179
+ <strong>&raquo;</strong> 192.168.1.*<br />
180
+ <strong>&raquo;</strong> 192.168.*.*<br />
181
+ </td>
182
+ <td>
183
+ <textarea cols="40" rows="10" name="banned_ips"><?php echo $banned_ips_display; ?></textarea>
184
+ </td>
185
+ </tr>
186
+ <tr>
187
+ <td valign="top">
188
+ <strong><?php _e('Banned Host Names'); ?>:</strong><br />
189
+ Use <strong>*</strong> for wildcards.<br />
190
+ Start each entry on a new line.<br /><br />
191
+ Examples:<br />
192
+ <strong>&raquo;</strong> *.sg<br />
193
+ <strong>&raquo;</strong> *.cn<br />
194
+ <strong>&raquo;</strong> *.th<br />
195
+ </td>
196
+ <td>
197
+ <textarea cols="40" rows="10" name="banned_hosts"><?php echo $banned_hosts_display; ?></textarea>
198
+ </td>
199
+ </tr>
200
+ <tr>
201
+ <td valign="top">
202
+ <strong><?php _e('Banned Message'); ?>:</strong><br /><br /><br />
203
+ <?php _e('Allowed Variables:'); ?><br />
204
+ - %SITE_NAME%<br />
205
+ - %SITE_URL%<br /><br />
206
+ <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template'); ?>" onclick="javascript: banned_default_templates('message');" class="button" />
207
+ </td>
208
+ <td>
209
+ <textarea cols="60" rows="20" id="banned_template_message" name="banned_template_message"><?php echo stripslashes(get_settings('banned_message')); ?></textarea>
210
+ </td>
211
+ </tr>
212
+ <tr>
213
+ <td width="100%" colspan="2" align="center"><input type="submit" name="Submit" class="button" value="<?php _e('Update Options'); ?>" />&nbsp;&nbsp;<input type="button" name="cancel" value="Cancel" class="button" onclick="javascript:history.go(-1)" /></td>
214
+ </tr>
215
+ </table>
216
+ </form>
217
+ </div>
218
+ <?php
219
+ }
220
+
221
+
222
+ ### Function: Create Ban Options
223
+ add_action('activate_ban.php', 'ban_init');
224
+ function ban_init() {
225
+ global $wpdb;
226
+ $banned_ips = array();
227
+ $banned_hosts = array();
228
+ add_option('banned_ips', $banned_ips, 'Banned IPs');
229
+ add_option('banned_hosts', $banned_hosts, 'Banned Hosts');
230
+ add_option('banned_message', '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'."\n".
231
+ '<html xmlns="http://www.w3.org/1999/xhtml">'."\n".
232
+ '<head>'."\n".
233
+ '<meta http-equiv="Content-Type" content="text/html; charset='.get_settings('blog_charset').'" />'."\n".
234
+ '<title>%SITE_NAME% - %SITE_URL%</title>'."\n".
235
+ '</head>'."\n".
236
+ '<body>'."\n".
237
+ '<p style="text-align: center; font-weight: bold;">You Are Banned.</p>'."\n".
238
+ '</body>'."\n".
239
+ '</html>', 'Banned Hosts');
240
+ }
241
+ ?>
readme.html ADDED
@@ -0,0 +1,278 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
+ <html>
3
+ <head>
4
+ <meta http-equiv="content-type" content="text/html; charset=utf-8" />
5
+ <title>WP-Ban 1.00 Readme</title>
6
+ <style type="text/css" media="screen">
7
+ /* Default Style */
8
+ BODY {
9
+ font-family: Verdana, Arial;
10
+ font-size: 12px;
11
+ color: #000000;
12
+ background: #FFFFFF;
13
+ }
14
+ P {
15
+ padding-left: 10px;
16
+ }
17
+ BLOCKQUOTE {
18
+ margin: 10px 20px 0px 20px;
19
+ padding: 10px;
20
+ border: 1px solid #8d8d8d;
21
+ background-color: #f5f5f5;
22
+ }
23
+ LI {
24
+ margin-top: 20px;
25
+ }
26
+ UL LI UL LI {
27
+ margin-top: 10px;
28
+ }
29
+ A, A:active, A:link, A:visited {
30
+ color: #2d3a4c;
31
+ text-decoration: none;
32
+ }
33
+ A:hover {
34
+ color: #5577a5;
35
+ text-decoration: underline;
36
+ }
37
+ /* Place Holder Style */
38
+ #Container {
39
+ width: 780px;
40
+ margin-left: auto;
41
+ margin-right: auto;
42
+ }
43
+ #Content {
44
+ background-color: #fafafa;
45
+ border: 1px solid #a2b6cb;
46
+ padding: 10px;
47
+ margin-top: -13px;
48
+ }
49
+ /* Title Style */
50
+ #Title {
51
+ font-family: Verdana, Arial;
52
+ font-size: 22px;
53
+ font-weight: bold;
54
+ color: #389aff;
55
+ border-bottom: 1px solid #389aff;
56
+ margin-bottom: 10px;
57
+ }
58
+ .SubTitle {
59
+ font-family: Verdana, Arial;
60
+ font-size: 18px;
61
+ font-weight: bold;
62
+ color: #5b87b4;
63
+ }
64
+ .SubSubTitle {
65
+ font-family: Verdana, Arial;
66
+ font-size: 14px;
67
+ font-weight: bold;
68
+ color: #73a4d6;
69
+ }
70
+ /* Tabs */
71
+ UL#Tabs {
72
+ font-family: Verdana, Arial;
73
+ font-size: 12px;
74
+ font-weight: bold;
75
+ list-style-type: none;
76
+ padding-bottom: 28px;
77
+ border-bottom: 1px solid #a2b6cb;
78
+ margin-bottom: 12px;
79
+ z-index: 1;
80
+ }
81
+ #Tabs LI.Tab {
82
+ float: right;
83
+ height: 25px;
84
+ background-color: #deedfb;
85
+ margin: 2px 0px 0px 5px;
86
+ border: 1px solid #a2b6cb;
87
+ }
88
+ #Tabs LI.Tab A {
89
+ float: left;
90
+ display: block;
91
+ color: #666666;
92
+ text-decoration: none;
93
+ padding: 5px;
94
+ }
95
+ #Tabs LI.Tab A:hover {
96
+ background-color: #bfe0fe;
97
+ border-bottom: 1px solid #bfe0fe;
98
+ }
99
+ /* Selected Tab */
100
+ #Tabs LI.SelectedTab {
101
+ float: right;
102
+ height: 25px;
103
+ background-color: #fafafa;
104
+ margin: 2px 0px 0px 5px;
105
+ border-top: 1px solid #a2b6cb;
106
+ border-right: 1px solid #a2b6cb;
107
+ border-bottom: 1px solid #fafafa;
108
+ border-left: 1px solid #a2b6cb;
109
+ }
110
+ #Tabs LI.SelectedTab A {
111
+ float: left;
112
+ display: block;
113
+ color: #666666;
114
+ text-decoration: none;
115
+ padding: 5px;
116
+ cursor: default;
117
+ }
118
+ /* Copyright */
119
+ #Copyright {
120
+ text-align: center;
121
+ }
122
+ </style>
123
+ <script type="text/javascript">
124
+ // Index Page
125
+ function index() {
126
+ // Tab
127
+ document.getElementById('IndexTab').className = 'SelectedTab';
128
+ document.getElementById('InstallTab').className = 'Tab';
129
+ document.getElementById('UpgradeTab').className = 'Tab';
130
+ document.getElementById('UsageTab').className = 'Tab';
131
+ // Page
132
+ document.getElementById('Index').style.display= 'block';
133
+ document.getElementById('IndexTab').className = 'SelectedTab';
134
+ document.getElementById('Install').style.display = 'none';
135
+ document.getElementById('Upgrade').style.display = 'none';
136
+ document.getElementById('Usage').style.display = 'none';
137
+ }
138
+ // Installation Page
139
+ function install() {
140
+ // Tab
141
+ document.getElementById('IndexTab').className = 'Tab';
142
+ document.getElementById('InstallTab').className = 'SelectedTab';
143
+ document.getElementById('UpgradeTab').className = 'Tab';
144
+ document.getElementById('UsageTab').className = 'Tab';
145
+ // Page
146
+ document.getElementById('Index').style.display= 'none';
147
+ document.getElementById('Install').style.display = 'block';
148
+ document.getElementById('Upgrade').style.display = 'none';
149
+ document.getElementById('Usage').style.display = 'none';
150
+ }
151
+ // Upgrade Page
152
+ function upgrade() {
153
+ // Tab
154
+ document.getElementById('IndexTab').className = 'Tab';
155
+ document.getElementById('InstallTab').className = 'Tab';
156
+ document.getElementById('UpgradeTab').className = 'SelectedTab';
157
+ document.getElementById('UpgradeTab').href = 'Tab';
158
+ document.getElementById('UsageTab').className = 'Tab';
159
+ // Page
160
+ document.getElementById('Index').style.display= 'none';
161
+ document.getElementById('Install').style.display = 'none';
162
+ document.getElementById('Upgrade').style.display = 'block';
163
+ document.getElementById('Usage').style.display = 'none';
164
+ }
165
+ // Usage Page
166
+ function usage() {
167
+ // Tab
168
+ document.getElementById('IndexTab').className = 'Tab';
169
+ document.getElementById('InstallTab').className = 'Tab';
170
+ document.getElementById('UpgradeTab').className = 'Tab';
171
+ document.getElementById('UsageTab').className = 'SelectedTab';
172
+ // Page
173
+ document.getElementById('Index').style.display= 'none';
174
+ document.getElementById('Install').style.display = 'none';
175
+ document.getElementById('Upgrade').style.display = 'none';
176
+ document.getElementById('Usage').style.display = 'block';
177
+ }
178
+ </script>
179
+ </head>
180
+ <body>
181
+ <div id="Container">
182
+ <!-- Title -->
183
+ <div id="Title">WP-Ban 1.00&nbsp;&nbsp;&nbsp;<span style="color: #aaaaaa;">Readme</span></div>
184
+
185
+ <!-- Tabs -->
186
+ <ul id="Tabs">
187
+ <li id="UsageTab" class="Tab"><a href="#Usage" onclick="usage(); return false;" title="Usage Instructions">Usage</a></li>
188
+ <li id="UpgradeTab" class="Tab"><a href="#Upgrade" onclick="upgrade(); return false;" title="Upgrade Instructions">Upgrade</a></li>
189
+ <li id="InstallTab" class="Tab"><a href="#Installation" onclick="install(); return false;" title="Installation Instructions">Installation</a></li>
190
+ <li id="IndexTab" class="SelectedTab"><a href="#Index" onclick="index(); return false;" title="Index Instructions">Index</a></li>
191
+ </ul>
192
+
193
+ <!-- Content -->
194
+ <div id="Content">
195
+ <!-- Index -->
196
+ <div id="Index">
197
+ <div class="SubTitle">&raquo; Index</div>
198
+ <div class="SubSubTitle">Plugin Information</div>
199
+ <p><b>Author</b><br /><b>&raquo;</b> Lester 'GaMerZ' Chan</p>
200
+ <p>
201
+ <b>EMail:</b><br /><b>&raquo;</b>
202
+ <script type="text/javascript">
203
+ /* <![CDATA[*/
204
+ document.write(' <a href="mailto:gamerz84@hotmail.com?Subject=WP-Ban%201.00%20Support" title="EMail To gamerz84@hotmail.com">gamerz84@hotmail.com</a>');
205
+ /* ]]> */
206
+ </script>
207
+ </p>
208
+ <p><b>Website:</b><br /><b>&raquo;</b> <a href="http://www.lesterchan.net/" title="http://www.lesterchan.net/">http://www.lesterchan.net/</a></p>
209
+ <!--
210
+ <p><b>Documentation:</b><br /><b>&raquo;</b> <a href="http://dev.wp-plugins.org/wiki/wp-ban" title="http://dev.wp-plugins.org/wiki/wp-ban">http://dev.wp-plugins.org/wiki/wp-ban</a></p>
211
+ <p><b>Development:</b><br /><b>&raquo;</b> <a href="http://dev.wp-plugins.org/browser/wp-ban/" title="http://dev.wp-plugins.org/browser/wp-ban/">http://dev.wp-plugins.org/browser/wp-ban/</a></p>
212
+ -->
213
+ <p><b>Support Forums:</b><br /><b>&raquo;</b> <a href="http://forums.lesterchan.net/index.php?board=10.0" title="http://forums.lesterchan.net/index.php?board=10.0">http://forums.lesterchan.net/index.php?board=10.0</a></p>
214
+ <p><b>Updated:</b><br /><b>&raquo;</b> 2nd January 2007</p>
215
+ <div class="SubSubTitle">Changelog</div>
216
+ <ul>
217
+ <li>
218
+ <b>Version 1.00 (02-11-2007)</b>
219
+ <ul>
220
+ <li>NEW: Initial Release</li>
221
+ </ul>
222
+ </li>
223
+ </ul>
224
+ </div>
225
+
226
+ <!-- Installation Instructions -->
227
+ <div id="Install" style="display: none;">
228
+ <div class="SubTitle">&raquo; Installation Instructions</div>
229
+ <ol>
230
+ <li>
231
+ Open <b>wp-content/plugins</b> Folder
232
+ </li>
233
+ <li>
234
+ Put:
235
+ <blockquote>File: ban.php</blockquote>
236
+ </li>
237
+ <li>
238
+ <b>Activate</b> WP-Ban Plugin
239
+ </li>
240
+ <li>
241
+ Refer To <b>Usage</b> For Further Instructions
242
+ </li>
243
+ </ol>
244
+ </div>
245
+
246
+ <!-- Upgrade Instructions -->
247
+ <div id="Upgrade" style="display: none;">
248
+ <div class="SubTitle">&raquo; Upgrade Instructions</div>
249
+ <div class="SubSubTitle">From v1.0x To v1.00</div>
250
+ <ol>
251
+ <li>
252
+ Open <b>wp-content/plugins</b> Folder
253
+ </li>
254
+ <li>
255
+ Overwrite:
256
+ <blockquote>File: ban.php</blockquote>
257
+ </li>
258
+ </ol>
259
+ </div>
260
+
261
+ <!-- Usage Instructions -->
262
+ <div id="Usage" style="display: none;">
263
+ <div class="SubTitle">&raquo; Usage Instructions</div>
264
+ <div class="SubSubTitle">General Usage</div>
265
+ <ol>
266
+ <li>
267
+ Go to '<b>WP-Admin -> Options -> Ban</b>'
268
+ </li>
269
+ <li>
270
+ Configure your ban options
271
+ </li>
272
+ </ol>
273
+ </div>
274
+ </div>
275
+ </div>
276
+ <p id="Copyright">WP-Ban 1.00<br />Copyright &copy; 2006 Lester 'GaMerZ' Chan. All Rights Reserved.</p>
277
+ </body>
278
+ </html>