Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Bug in install.php's phpNuke Checker  (Read 8905 times)

0 Members and 1 Guest are viewing this topic.

jgb6534

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Bug in install.php's phpNuke Checker
« on: July 22, 2005, 12:35:07 am »

I just tried to install Coppermine 1.4.1 and was blocked from doing so by the phpNuke check at the start of install.php.

This site does not have phpNuke installed, but it does happen to have two, nested versions of Mambo on it. That is, I was trying to install it in:

/public_html/redrover/portfolio/

This is a Mambo site so the following directory exists:

/public_html/redrover/modules/

However there is another Mambo site installed below it and consequently, there's also the following directory:

/public_html/modules/

While doing its phpNuke check (see below), install.php found ../../modules and erroneously thought there was a phpNuke installation.  It gave me the option of continuing, in theory, and I clicked the "continue" link, filled in the form, and clicked "let's go."  But it just cycled back to the error message and wouldn't let me proceed.

phpNuke check:

Code: [Select]
// Check if standalone is installed in a portal like phpNuke
if (is_dir('../../modules') && $_REQUEST['continue_anyway'] != 1) {
    die(
        "<html><body><h1>ERROR</h1>You seem to be trying to install the standalone Coppermine into your Nuke portal.<br />
         This version can only be used as standalone!<br />
         Some server setups might display this warning even though you don't have a nuke portal installed - if this is the case for you, <a href=\"" . $PHP_SELF . "?continue_anyway=1\">continue</a> with the install.
         If you are using a nuke portal, you might want to take a look into <a href=\"http://www.cpgnuke.com/\">CpgNuke</a> or use one of the (unsupported)
         <a href=\"http://sourceforge.net/project/showfiles.php?group_id=89658&package_id=95984\">coppermine ports</a>
         - do not continue!</body></html>"
         );
} // end check
« Last Edit: May 17, 2006, 06:47:59 pm by Nibbler »
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Bug in install.php's phpNuke Checker
« Reply #1 on: July 22, 2005, 02:09:55 am »

Comment out that bit of code and try again.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

jgb6534

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Bug in install.php's phpNuke Checker
« Reply #2 on: July 22, 2005, 03:06:07 am »

Comment out that bit of code and try again.
I tricked it by temporarily renaming the offending modules directory.

Worked just fine.

But I might suggest a more accurate way of checking for phpNuke--like maybe looking for a specific PHPN file in addition to a directory.

Just a thought...

Nibbler

  • Guest
Re: Bug in install.php's phpNuke Checker
« Reply #3 on: May 17, 2006, 06:47:45 pm »

Fixed as of svn revision 3037.
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 19 queries.