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 -> phpnuke 7.6
Author Message
afc
Worker
Worker



Joined: Aug 16, 2003
Posts: 107
Location: USA

PostPosted: Tue Jan 10, 2006 5:16 pm Reply with quote

It a addon script and just needs admin.php change to new version, not sure how to do it. If you need full script please let me know.

here are the 3 lines that need changing:

if (!eregi("admin.php", $_SERVER['PHP_SELF']) && !is_admin($admin) && $disable && $name!= "Your_Account")



die();
}elseif (!eregi("admin.php", $_SERVER['PHP_SELF']) && is_admin($admin) && $disable && $name!= "Your_Account")
{
echo "<center><b><font color =\"#000000\">"._DISABLE."</font><font color =\"#ff0000\">$reason</font></b></center>";
}


define("_DISABLE_REASON1","This site is temporarily closed (reason see below), please come back in the near future.<br>Admins still have access to this site by logging in <a href=\"admin.php\">here</a>");
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Tue Jan 10, 2006 9:29 pm Reply with quote

What are you talking about here?
 
View user's profile Send private message
afc







PostPosted: Wed Jan 11, 2006 5:45 am Reply with quote

admin file name was changed for security, and the script was looking for admin.php which no longer there, i just need to know how to update it to look for admin file

example
admin.php is now called controlaccess.php

# $admin_file: Administration panel filename. "admin" by default for
# "admin.php". To improve security please rename the file
# "admin.php" and change the $admin_file value to the
# new filename (without the extension .php)
 
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Wed Jan 11, 2006 7:07 am Reply with quote

Just change the name of the admin file back - it serves no serious benefit by changing from the default and as you have found, it causes more problems than it is worth IMHO.

Edited to remove my typo's
 
View user's profile Send private message Send e-mail
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 -> phpnuke 7.6

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 ©