Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> Raven's RavenNuke(tm) v2.00.00 - v2.02.00 Distro
Author Message
DC_IronMan
New Member
New Member



Joined: Nov 15, 2005
Posts: 14

PostPosted: Sun Feb 19, 2006 7:54 pm Reply with quote

I changed the admin.php file to a new name. Everything work but when I edit a module in the admin area I get a page can not be displayed. When I submit the save changes it points back to the admin.php file but I changed that file name.

What do I need to edit so that it points the the new admin file?

Thanks
 
View user's profile Send private message
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Thu Feb 23, 2006 6:42 am Reply with quote

Sting has the issue fixed for our upcoming patch release. Here is the fix:

To fix - in modules.php specifically the module_edit_save() function:

Change


function module_edit_save($mid, $custom_title, $view, $groups, $inmenu, $mod_group) {
global $prefix, $db;
if($view == 4) { $ingroups = implode("-",$groups); }
if($view < 4) { $ingroups = ""; }
$mid = intval($mid);
if ($view != 1) { $mod_group = 0; }
$result = $db->sql_query("update " . $prefix . "_modules set custom_title='$custom_title', view='$view', groups='$ingroups', inmenu='$inmenu', mod_group='$mod_group' where mid='$mid'");
Header("Location: admin.php?op=modules");
}

to

function module_edit_save($mid, $custom_title, $view, $groups, $inmenu, $mod_group) {
global $prefix, $db, $admin_file;
if($view == 4) { $ingroups = implode("-",$groups); }
if($view < 4) { $ingroups = ""; }
$mid = intval($mid);
if ($view != 1) { $mod_group = 0; }
$result = $db->sql_query("update " . $prefix . "_modules set custom_title='$custom_title', view='$view', groups='$ingroups', inmenu='$inmenu', mod_group='$mod_group' where mid='$mid'");
Header("Location: " .$admin_file.".php?op=modules");
}


Thanks Sting!

_________________
Where Do YOU Stand?
HTML Newsletter::ShortLinks::Mailer::Downloads and more... 
View user's profile Send private message Visit poster's website
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> Raven's RavenNuke(tm) v2.00.00 - v2.02.00 Distro

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 ©