Code:
HOW TO INSTALL. You MUST follow the steps in correct order to get the system to work.
------------------------------
Step 1
Upload all the files in the html folder(the structure is correct so just upload in to your nuke dir)
It should be OBVIOUS where everything goes according to the Directory structure
-----------------------------
Step 2
Go in to your admin.php and there should be a "Ban System" or Protector link/button there now.
Just click that "button" and all the tables will be created in your database.
It's VERY important that you DO THIS before you go to step 3 or step 4
------------------------------
Step 3
Open header.php and around line 36 paste this:
/*START BAN SYSTEM*/
include("includes/blocker.php");
/*STOP BAN SYSTEM*/
-----------------------------
Step 4 (IMPORTANT!!!!!!!!!!!)
If you want the feature where you can add access to the Protector System
(if you want to add access to admins that not are super admin) you must do some "hacking" in /admin.php and admin/modules/authors.php
if you have a clean admin.php/authors.php (that means a file where you have done no changes to)
,I have in the extra folder put a admin.php/authors.php which have the changes already made for you.(NUKE 6.5 ONLY)
You can use those files if you are not comfortable making the follwing changes.
(open admin.php)
Find on line 157 (it's under the function GraphicAdmin())
$sql = "SELECT radminarticle,radmintopic,radminuser,radminsurvey,radminsection,radminlink,radminephem,radminfaq,radmindownload,radminreviews,radminnewsletter,radminforum,radmincontent,radminency,radminsuper FROM ".$prefix."_authors WHERE aid='$aid'";
-------------------
Replace with:
$sql = "SELECT radminarticle,radmintopic,radminuser,radminsurvey,radminsection,radminlink,radminephem,radminfaq,radmindownload,radminreviews,radminnewsletter,radminforum,radmincontent,radminency,radminsuper,radminblocker FROM ".$prefix."_authors WHERE aid='$aid'";
-------------------
Find on line 174
$radminsuper = $row[radminsuper];
-------------------
Add directly under:
$radminblocker = $row[radminblocker];
-------------------
open admin/modules/authors.php
Find on line 395
$result = sql_query("insert into ".$prefix."_authors values ('$add_aid', '$add_name', '$add_url', '$add_email', '$add_pwd', '0', '$add_radminarticle','$add_radmintopic','$add_radminuser','$add_radminsurvey','$add_radminsection','$add_radminlink','$add_radminephem','$add_radminfaq','$add_radmindownload','$add_radminreviews','$add_radminnewsletter','$add_radminforum','$add_radmincontent','$add_radminency','$add_radminsuper','$add_admlanguage')", $dbi);
-------------------
Replace with:
$result = sql_query("insert into ".$prefix."_authors values ('$add_aid', '$add_name', '$add_url', '$add_email', '$add_pwd', '0', '$add_radminarticle','$add_radmintopic','$add_radminuser','$add_radminsurvey','$add_radminsection','$add_radminlink','$add_radminephem','$add_radminfaq','$add_radmindownload','$add_radminreviews','$add_radminnewsletter','$add_radminforum','$add_radmincontent','$add_radminency','$add_radminsuper','$add_admlanguage','$add_radminblocker')", $dbi);
------------------------------
|