CPG installed on XAMPP bug CPG installed on XAMPP bug
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

CPG installed on XAMPP bug

Started by Aditya Mooley, December 14, 2004, 12:39:44 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Aditya Mooley

We installed CPG on XAMPP http://www.apachefriends.org/xampp-en.html for linux and Nuke test which is built into index.php triggers error You installed the standalone Coppermine into your Nuke portal.
Because XAMPP which is a very popular Apache + PHP install for newbies has got the ../../modules directory.
We need a better method to check for PHPNuke
--- "Its Nice 2 BE Important but its more Important 2 Be NICE" ---
Follow Coppermine on Twitter

Tarique Sani

SANIsoft PHP applications for E Biz

Andi

Hi :)

Is it actually still necessary to test the installation on the presence of phpnuke?
hope, I could help you... :)

Aditya Mooley

The test for PHPNuke should be moved to install.php with an option for user to override the warning.
--- "Its Nice 2 BE Important but its more Important 2 Be NICE" ---
Follow Coppermine on Twitter

Nibbler


Andi

hope, I could help you... :)

Joachim Müller

OK, this is what I did to fix this:
  • removed the modules check in index.php alltogether
  • Changed the check in install.php as suggested:// 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
I hope this fixes the XAMPP bug, or is at least a workaround everybody can live with.
Please confirm.

Joachim

Tarique Sani

SANIsoft PHP applications for E Biz

Andi

hope, I could help you... :)

Tarique Sani

BTW - now the install itself is bugged ;) will fix it someday
SANIsoft PHP applications for E Biz