Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RN v2.20.00 - All Issues
Author Message
wxspotter
New Member
New Member



Joined: Jul 22, 2008
Posts: 10

PostPosted: Mon Jul 28, 2008 11:07 am Reply with quote

I'm trying to use a module called Ultimate Weather - Version Version 2.0. I've uploaded all modules, blocks, and so on, to the correct directories. The problem is that every time I try to access the administration section (http://www.tristateweather.org/admin.php?op=WeatherConf) for this module it just says Access Denied. I changed the permissions all to 777 to see if that would work but it doesn't. The module and block IS working, but I can not change the configuration details for them within the administration. My site is [ Only registered users can see links on this board! Get registered or login! ] and if you look below the radar you can see the block in action.

I have no way of contacting the author of this block and that is why I'm coming here.

The one reason I could think of it not working is because it says it for for PHP-Nuke 5.6. However, isnt there a way to get this to work in with Raven Nuke? If you want a copy of the zip file that the package came with just give me your email and I can send it.

Thanks in advance Very Happy
 
View user's profile Send private message
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

PostPosted: Mon Jul 28, 2008 12:02 pm Reply with quote

Those admin scripts may not be updated to the Patched standards

Here is the correct code you should be using and all deprecated lines you need to find
Code:


if (!defined('ADMIN_FILE')) {
   die ("Access Denied");
}

Deprecated:

if (!eregi("admin.php", $_SERVER['PHP_SELF'])) { die ("Access Denied"); }
if (!eregi("admin.php", $_SERVER['SCRIPT_NAME'])) { die ("Access Denied"); }
if (!eregi("".$admin_file.".php", $_SERVER['SCRIPT_NAME'])) { die ("Access Denied"); }
if (!stristr($_SERVER['SCRIPT_NAME'], "admin.php")) { die ("Access Denied"); }


_________________
- Star Wars Rebellion Network -

Need help? Nuke Patched Core, Coding Services, Webmaster Services 
View user's profile Send private message Visit poster's website
wxspotter







PostPosted: Mon Jul 28, 2008 12:17 pm Reply with quote

Sorry I'm new to this. What do I do with these lines in the admin file?
 
jestrella
Moderator



Joined: Dec 01, 2005
Posts: 593
Location: Santiago, Dominican Republic

PostPosted: Mon Jul 28, 2008 1:22 pm Reply with quote

in your module's admin file, you should find somethings this... like evaders said:
Code:
if (!eregi("admin.php", $_SERVER['PHP_SELF'])) { die ("Access Denied"); }

if (!eregi("admin.php", $_SERVER['SCRIPT_NAME'])) { die ("Access Denied"); }
if (!eregi("".$admin_file.".php", $_SERVER['SCRIPT_NAME'])) { die ("Access Denied"); }
if (!stristr($_SERVER['SCRIPT_NAME'], "admin.php")) { die ("Access Denied"); }


and should be replaced with:
Code:
if (!defined('ADMIN_FILE')) { die ("Access Denied"); }

_________________
"For those whom have not reach the sky... Every mountain seems high"

Best Regards
Jonathan Estrella [ Only registered users can see links on this board! Get registered or login! ] 
View user's profile Send private message Visit poster's website
jestrella







PostPosted: Mon Jul 28, 2008 1:23 pm Reply with quote

most of the time they are located at the very top lines in the file.
 
wxspotter







PostPosted: Wed Jul 30, 2008 9:11 am Reply with quote

This worked to an extent. It now cuts off part of the Ultimate Weather admin section like half way down. Sad
 
jestrella







PostPosted: Thu Jul 31, 2008 12:05 pm Reply with quote

can you show us a screenshot????
or better then a download link...

btw there are other great weather addons for nuke like NukeWeather from [ Only registered users can see links on this board! Get registered or login! ]

live demo here: [ Only registered users can see links on this board! Get registered or login! ]
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RN v2.20.00 - All Issues

View next topic
View previous topic
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 can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©