Protector System - for PHP-Nuke 6.5-7.2
Copyright (C) 2003, 2004 Marcus aka Mister (mister@warcenter.se)
Copyright (C) 2003, 2004 Graeme aka Techgfx (goose@techgfx.com)


Step by step guide - Instuctions made for v.1.15b1 and above.
Navigation
  • How to Update
  • How to Install
  • Copyright
  • Protector
  • TechGFX
  • How to Update
    Note: Do not use any update.php file if you are installing for the first time.

    • Upload all included files in the html folder located in the zip file. (The structure is correct so just upload to your nuke directory). Be sure to overwrite everything if you are asked. Do not upload the file install_blocked.php, this file is only needed when you are installing a fresh copy of the Protector System.

    • Look in the folder updates. There should be more folders there like "1.13b-1.13b2"! Select the version you are currently running and wanting to upgrade to.

    • So if your running version 1.13b, and you want to upgrade to version 1.13b2, you will need to select the folder called 1.13b-1.13b2 and upload the file called update.php that is in the folder to update.

    • If there are more folders like "1.13b2-1.13b3" then you must upload and run each update.php to get to the latest version installed. What this means is you cannot skip upgrades.

    The update file will run when you click on the icon in your administration panel (/admin.php) called Protector.
    Now delete update.php off your server

    Do not be alarmed if there is no file in the updates folder, this just means that the version you are updating to does not require and database updates.

    Note: Do not use any update.php file if you are installing for the first time.
    How to Install
    Note: The following steps must be done in the sequential order for Protector System to work.

    Step 1
    • Upload all included files in the html folder located in the zip file. (The structure is correct so just upload to your nuke directory).

    • Be sure to overwrite everything if you are asked.

    • It should be obvious where everything goes according to the directory structure.

    Step 2
    • Go into your administration panel (/admin.php) and there should be a Protector link/button there now.

    • Click that "button" and all the tables will be created in your database.

    • It is very important that you do this before you go to Step 3 or Step 4.

    Step 3
    • Open your header.php (this is located in your nuke root directory).

    • Find this code -> require_once("mainfile.php");

    • Add Below -> if(!eregi("admin.php",$_SERVER['PHP_SELF'])) { require_once("includes/blocker.php"); }

    • It should look like this:

      require_once("mainfile.php");
      if(!eregi("admin.php",$_SERVER['PHP_SELF'])) {require_once("includes/blocker.php"); }

    Step 4 A,B

    You must do some "modding" in /admin.php and /admin/modules/authors.php
    If you have not modified your admin.php and authors.php before, then there are some premade files included in this package for you. In the protector zip, go into the folders Extra/PreHackedFiles and upload and overright the included files. (The only PreHackedFiles have been made for PHPNuke 6.5, 7.0 and the NukeCops Bundle).
    You can use the PreHackedFiles if you are comfortable without modding the files yourself.

    A) Note: if you cant find the code below don't be alarmed then just skip this and go to B),
    • Open your admin.php (this is located in your nuke root directory).

    • Find this code around line 157: (It is 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'";

      Tip: If you have already modified this row already just add ,radminblocker

    • 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 this code around line 174:

      $radminsuper = $row[radminsuper];

    • Add directly below:

      $radminblocker = $row[radminblocker];
    B)
    • Find this code:

      require("auth.php");

    • Add directly below:

      require_once("includes/blocker.php");


      This will scan all functions in your admin.php file and prevent any sql injection that is no including the header.php file and therefore will not be monitored by the Protector System. But now will be monitored!


    • Open /admin/modules/authors.php

    • Find this code around line 395 (around 406 for v7.0)
      If you are using a newer nuke the start of the line could start with $result = $db->sql_query(..

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

      Tip: If you have modified this row already just add ,'' at the end.
      Note: The ,'' is not a double quotation ( " ) it its 2 single quotations ( ' ' )

    • 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','')", $dbi);

    Step 5
    • CHMOD the folder /ps_uploads to 0777 so that you can use the auto update IP 2 C feature!

    • Since this is a first installation of the Protector System then upload the bbb.php located in the folders Extra/AddBadBots/bbb.php to your root direcotory of nuke.

    • Then go to http://www.yoursite.com/bbb.php and there you can choose to install from a list of many Bad Bots.

    • You should also delete bbb.php after you have finished with it.

    Step 6
    • REMOVE THE FILE install_blocker.php!!!!!!!!!!

    Step 7
    • Enter your admin Module management. Be sure to enable module Protector for ALL and hide it.!!!!!!!!!!
    Copyright
    Creator: Marcus aka Mister
    Mail: mister@warcenter.se
    Support page: http://protector.warcenter.se

    Designer/Developer: Graeme aka Techgfx
    Mail: goose@techgfx.com
    Support page: http://www.techgfx.com

    • Protector System Non-Commercial Module security pack
    • Purpose of file: Non-Commercial Protector System security pack
    • Copyright (c) 2003,2004 by Mister // Protector System All rights reserved.
    • Copyright (c) 2003,2004 by Techgfx // TechCreations All rights reserved.
    • Although users are permitted to modify the code for their use, modified code may not be released in Commercial or Non-Commercial format, without expressed written permission from Mister or Techgfx at http://protector.warcenter.se
    • Translations are permitted
    • Modifiying the name format of the Protector System is not allowed
    • This package can not be ported without expressed written permission from Mister at http://protector.warcenter.se
    • This package can not be mirrored without expressed written permission from Mister or Techgfx at http://protector.warcenter.se
    • Use of this package requires that credites to the original PHP-Nuke remain in all site generated footers
    • The foolowing are the only sites permitted to mirror my script and/or include it in any PHP-Nuke distribution
      http://www.cpgnuke.com
      http:///www.nukecops.com
      http://protector.warcenter.se
      http://www.techgfx.com

    Thanks to beta testers:
    mikem from http://www.nukemods.com
    Swampy from http://www.zanzibarnightclub.co.uk/
    krazywhiteboy
    Ajthejuggalo
    And many many more...

    Please mail Mister at http://protector.warcenter.se us if there are any bugs found or if you want any more functions to be included etc.
    This is a beta version so it might have bugs. This system we have tested ourselves and some of our friends have tested it. No problems known so far.
    This is also my first nuke script ever some please don not nag me coz bad scripting. =) We all are newbies from the beginning. And at least it works =]



    Found some of the Protector System's work ripped? Contact mister@warcenter.se and goose@techgfx.com

    Protector System Copyright (C) 2003, 2004 Marcus aka Mister (mister@warcenter.se)
    Design Copyright (C) 2003, 2004 Graeme aka Techgfx (goose@techgfx.com)
    Protector
    Visit the Protector Home Page
    mister@warcenter.se
    Techgfx
    Visit the TechGFX Home Page
    goose@techgfx.com
    Corporate Alliance
    Protector and TechGFX
    Copyright (c) 2003, 2004 All rights reserved.