coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: rXhalogene on April 14, 2004, 01:40:07 PM

Title: CPG 1.3 run on CGI
Post by: rXhalogene on April 14, 2004, 01:40:07 PM
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
Title: CPG 1.3 run on CGI
Post by: Joachim Müller on April 15, 2004, 09:08:15 AM
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
Title: CPG 1.3 run on CGI
Post by: rXhalogene on April 15, 2004, 12:29:37 PM
Quote from: "gaugau"and edit accordingly if $PHP_SELF doesn't work on your server.

what du you mean?
Title: CPG 1.3 run on CGI
Post by: rXhalogene on April 15, 2004, 10:06:10 PM
Sorry i have no Idea.

me = No  coder!
Title: CPG 1.3 run on CGI
Post by: Joachim Müller on April 16, 2004, 08:13:01 AM
urm, check what server vars you do have (using phpinfo (http://www.php.net/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
Title: CPG 1.3 run on CGI
Post by: rXhalogene on April 16, 2004, 01:27:29 PM

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


the is  php self....
Title: CPG 1.3 run on CGI
Post by: Joachim Müller on April 16, 2004, 03:55:01 PM
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
Title: CPG 1.3 run on CGI
Post by: rXhalogene on April 16, 2004, 04:09:41 PM
Sorry the Same problem!