CPG 1.3 run on CGI CPG 1.3 run on CGI
 

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 1.3 run on CGI

Started by rXhalogene, April 14, 2004, 01:40:07 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rXhalogene

Hi,

My hoster had changed his Server Configuration.

PHP is running @ CGI

I cant change the preferences of a user. (for example, to another group)

I had to change all

$PHP_SELF
 in
usermgr.php

Joachim Müller

doesn't depend on how php is run, but if the var $PHP_SELF is defined correctly. Edit include/init.inc.php and find // Initialise the $CONFIG array and some other variables
$CONFIG = array();
$PHP_SELF = isset($HTTP_SERVER_VARS['REDIRECT_URL']) ? $HTTP_SERVER_VARS['REDIRECT_URL'] : $HTTP_SERVER_VARS['SCRIPT_NAME'];
and edit accordingly if $PHP_SELF doesn't work on your server.

Since this is not related to cpg1.3.0, but applies to all coppermine versions I moved your posting from the cpg1.3.0 bugs board to the support board.

GauGau

rXhalogene

Quote from: "gaugau"and edit accordingly if $PHP_SELF doesn't work on your server.

what du you mean?

rXhalogene

Sorry i have no Idea.

me = No  coder!

Joachim Müller

urm, check what server vars you do have (using phpinfo) and replace
Quote$HTTP_SERVER_VARS['SCRIPT_NAME']
with a server var that exists on your server. If you're not sure, run phpinfo and paste the part that comes after "PHP Variables" into your posting. Do not post a link to your phpinfo file (might be a security risk).

GauGau

rXhalogene


_SERVER["PHP_SELF"]        /intern/phpinfo.php


the is  php self....

Joachim Müller

then replace$PHP_SELF = isset($HTTP_SERVER_VARS['REDIRECT_URL']) ? $HTTP_SERVER_VARS['REDIRECT_URL'] : $HTTP_SERVER_VARS['SCRIPT_NAME'];with$PHP_SELF = isset($HTTP_SERVER_VARS['REDIRECT_URL']) ? $HTTP_SERVER_VARS['REDIRECT_URL'] : $_SERVER["PHP_SELF"];

GauGau

rXhalogene

Sorry the Same problem!