Clan Adverts

www.afgserv.com

www.clan-themes.co.uk :: View topic - Upating for ChatServ 3.1 or greater

 Welcome To Clan Themes 

As the board grows please remember the Search Option and we hope you find our community useful.

We also monitor Private Messages to stop members from abusing our sites system.
If you are asking for assistance please provide your site link and nuke version, Thanks.

Upating for ChatServ 3.1 or greater

1 Replies / 1288 Views


Post new topic   Reply to topic  

   www.clan-themes.co.uk Forum Index » How To's

View previous topic :: View next topic


floppy
Reputation: 1794.6
votes: 10
Local time: 1:35 PM
Location: Jackson Mississippi
usa.gif

Status: Offline
2.77 posts per day
Medals: 1 (View more...)
Dedicated User (Amount: 1)
Clan Themes Scripts/Coder
Clan Themes Scripts/Coder
Joined: Nov 14, 2006
Last Visit: 01 Dec 2008
Posts: 2074
Points: 4343 

Post Upating for ChatServ 3.1 or greater Posted: Tue Mar 27, 2007 7:41 pm   

Shop Purchases:
Clan Roster 2.0

Nuke, grab it from https://sourceforge.net/project/showfiles.php?group_id=135757&package_id=150099https://sourceforge.net/project/showfiles.php?group_id=135757&package_id=150099

It's Nuke Scripts Source Forge section with all their stuff and you'll see Nuke versions patched to various patch versions. Grab the 7.6 patched to 3.1, best way to test.

Here's what you need to do for modules:

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"); }


If you add any blocks to the next release then do this to them:

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(); }


For admin files:

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"); }
 

 
View user's profileSend private messageVisit poster's website Reply with quote

floppy
Reputation: 1794.6
votes: 10
Local time: 1:35 PM
Location: Jackson Mississippi
usa.gif

Status: Offline
2.77 posts per day
Medals: 1 (View more...)
Dedicated User (Amount: 1)
Clan Themes Scripts/Coder
Clan Themes Scripts/Coder
Joined: Nov 14, 2006
Last Visit: 01 Dec 2008
Posts: 2074
Points: 4343 

View user's profileSend private messageVisit poster's website Reply with quote
Post new topic   Reply to topic  
   www.clan-themes.co.uk Forum Index » How To's


 
1 Replies / 1288 Views
Page 1 of 1
All times are GMT
Display posts from previous:   
 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum