Clan Adverts

Sponsors

CT on Facebook

Latest Product

User Box

Anonymous
38.107.179.219
Nickname:

Password:

Security Code
Security Code
Type Security Code


PND Downloads Feed

Phpnuke Downloads
How to Delete or Reset yo...
How to Delete or Reset your PHPNuke Admin Account
Lost your admin password ?  Cant login to your admin account ? This s...
Back Online & Stuff
Back Online & Stuff
Look at us with our nifty website back up and running… Seriously...
How to edit the admins in...
How to edit the admins in the forums
Here is a way to make someone admin in your forums on your Evo site. I...
Demo Splash Screen
Demo Splash Screen
Ped @ Clan Themes has released a simple splash screen entrance hack. ...
Free Phpnuke Business The...
Free Phpnuke Business Theme 6
This is the 6th Business theme for Phpnuke that Clan Themes has releas...
Tricked Out Slider
Tricked Out Slider
We have seen some great new things come out of Tricked Out News and th...

Custom Work

PHP Nuke Custom Work

www.clanthemes.com :: View topic - Server rules 'you cannot access this file directly'
Server rules 'you cannot access this file directly'

3 Replies / 758 Views


Post new topic   Reply to topic  

   www.clanthemes.com Forum Index » Modules

View previous topic :: View next topic


neilly
Reputation: 487.8 Add RepSubtract Rep
Local time: 5:57 PM
Location: Scotland
uk.gif

Rocket Noob
Rocket Noob

0.01 posts per day
Medals: 0

Joined: Dec 10, 2006
Last Visit: 18 May 2011
Posts: 27
Points: 7763 

Post Server rules 'you cannot access this file directly' Posted: Sat Mar 07, 2009 11:03 pm

Shop Purchases:
Clan Roster 2.0 · Multiple Gamer Evo

Hey guys

I recently added the Server Rules module. I know its a simple, easy module to use but I get the echo 'you cannot access this file directly' when accessing it from front.

Admin area, I can access freely.

Can anyone help?

http://fightingwolverines.com/modules.php?name=Server_Rules

Slainte
Neilly
 

 
View user's profileSend private messageVisit poster's websiteYahoo MessengerMSN Messenger Reply with quote

floppy
Reputation: 2088.8 Add RepSubtract Rep
votes: 22
Local time: 12:57 PM
Location: Jackson Mississippi
usa.gif

Site Admin
Site Admin

1.16 posts per day
Medals: 2 (View more...)
Dedication (Amount: 1)
Scripts/Coder
Scripts/Coder
Joined: Nov 14, 2006
Last Visit: 03 May 2012
Posts: 2353
Points: 132516 

Post Re: Server rules 'you cannot access this file directly' Posted: Sat Mar 07, 2009 11:15 pm

Shop Purchases:
Clan Roster 2.0 · Multi Gaming (Warrior) Evo Theme · COD6 ModernWarfare 2 Teaser Splash Screen · Left for Dead Evo Extreme Version

Oh yeah, I coded this one and it is an easy fix. Looks like your using evo, so, you need to change the following in modules/Server_Rules/index.php

Find
Code:
if (!eregi("modules.php", $PHP_SELF)) {
   die ("You can't access this file directly...");

}


Change to
Code:
if (!defined('MODULE_FILE')) {
   die('You can\'t access this file directly...');
}


BTW, we would appreciate it if you would update your links to us on your site. A lot of the features we provide might not work if you do not.
 

Phpnuke Downloads | VMaxxRx Male Enhancement  
View user's profileSend private messageVisit poster's website Reply with quote

neilly
Reputation: 487.8 Add RepSubtract Rep
Local time: 5:57 PM
Location: Scotland
uk.gif

Rocket Noob
Rocket Noob

0.01 posts per day
Medals: 0

Joined: Dec 10, 2006
Last Visit: 18 May 2011
Posts: 27
Points: 7763 

Post Server rules 'you cannot access this file directly' Posted: Sat Mar 07, 2009 11:32 pm

Shop Purchases:
Clan Roster 2.0 · Multiple Gamer Evo

Thanks a lot floppy and I apologise, I recently reinstalled and forgot to add the link again.

if you could revisit the sites index.php and see if thats sufficient?

Again thanks, that worked great as you can see here

Slainte
Neilly

(sorry about the PM and stuff lol)
 

 
View user's profileSend private messageVisit poster's websiteYahoo MessengerMSN Messenger Reply with quote


floppy
Reputation: 2088.8 Add RepSubtract Rep
votes: 22
Local time: 12:57 PM
Location: Jackson Mississippi
usa.gif

Site Admin
Site Admin

1.16 posts per day
Medals: 2 (View more...)
Super Dedicated User (Amount: 1)
Scripts/Coder
Scripts/Coder
Joined: Nov 14, 2006
Last Visit: 03 May 2012
Posts: 2353
Points: 132516 

Post Re: Server rules 'you cannot access this file directly' Posted: Sat Mar 07, 2009 11:33 pm

Shop Purchases:
Clan Roster 2.0 · Multi Gaming (Warrior) Evo Theme · COD6 ModernWarfare 2 Teaser Splash Screen · Left for Dead Evo Extreme Version

Glad it is fixed friend, looks like you have a link in the footer that isn't updated.

Nothing to be sorry for, I just keep trying to give users a heads up so it doesn't cause problems for them in the future.

I thank you for your continued support as it is you guys that make this site great.
 

 
View user's profileSend private messageVisit poster's website Reply with quote
Post new topic   Reply to topic  
   www.clanthemes.com Forum Index » Modules


 
3 Replies / 758 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