CPG 1.3 run on CGI CPG 1.3 run on CGI
 

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

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!