| Code:
|
Making Modules Compliant to Nuke Patched 3.1
OPEN modules/ALL_MODULES/*.php:
Note: The actual code might vary depending on the author but the below should give you a clear idea.
FIND:
if (!eregi("modules.php", $_SERVER["PHP_SELF"])) { die("You can't access this file directly..."); }
REPLACE, WITH:
if (!defined('MODULE_FILE')) { die ("You can't access this file directly..."); }
OPEN modules/ALL_MODULES/index.php:
Note: It?s possible that you will find the below changes not only in the index.php file. Check the other files
as well to be sure you change all of them.
FIND:
$index = 1;
OR:
$index=1;
OR:
$index =1;
REPLACE, WITH:
define('INDEX_FILE', true);
FIND:
if ($module == 1) {
REPLACE, WITH:
if (defined('MODULE_FILE')) {
FIND:
if ($header == 1) {
REPLACE, WITH:
if (defined('NUKE_HEADER')) {
FIND:
if ($footer == 1) {
REPLACE, WITH:
if (defined('NUKE_FOOTER')) {
OPEN modules/ALL_MODULES/admin/*.php:
FIND:
if (!eregi("admin.php", $_SERVER['PHP_SELF'])) { die ("Access Denied"); }
REPLACE, WITH:
if (!defined('ADMIN_FILE')) { die ("Access Denied"); }
|
| Code:
|
Making Blocks Compliant to Nuke Patched 3.1
OPEN blocks/block-*.php:
Note: The actual code might vary depending on the author but the below should give you a clear idea. If the below FIND is missing all together, you can ADD it just AFTER <?php
FIND:
if (eregi("block-Some_Name.php",$_SERVER[PHP_SELF])) { Header("Location: ../index.php"); die(); }
REPLACE, WITH:
if ( !defined('BLOCK_FILE') ) { Header("Location: ../index.php"); die(); }
|
| Code:
|
Making Admin Files Compliant to Nuke Patched 3.1
OPEN admin/case/*.php, admin/links/*.php & admin/modules/*.php:
Note: The actual code might vary depending on the author but the below should give you a clear idea.
FIND:
if (!eregi("admin.php", $_SERVER['PHP_SELF'])) { die ("Access Denied"); }
REPLACE, WITH:
if (!defined('ADMIN_FILE')) { die ("Access Denied"); }
|