URL URL
 

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

URL

Started by turksus, April 08, 2005, 05:51:46 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

turksus

http://www.turksus.com/~6352.6497//cgi-bin/php.dat?theme=eyeball

http://www.turksus.com/~6352.6497//cgi-bin/php.dat?lang=turkish

whenever i go to lang or theme, it is going to wrong url. EXAM above.but when i put the right url manually to explorer it works, can someone please help me

kegobeer

What is php.dat?  Coppermine doesn't have any file like that.
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

Tranz

I think this has to do with a server (mis?)configuration.

turksus

i think i have to change to target somehow it is going to wrong driction
is there anyway i can do it manually?

kegobeer

Use phpMyAdmin to change the ecards_more_pic_target in the cpg132_config table.
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

Nibbler

You need to fix the $PHP_SELF variable in init.inc.php to point somewhere sensible.

turksus

how do i do that and where to
i am sorry i don't have any expr. with php

thanks for trying to help me by the way

turksus

You need to fix the $PHP_SELF variable in init.inc.php to point somewhere sensible.

when you somewhere sensible like where
and how do i change that?


turksus

$PHP_SELF = isset($HTTP_SERVER_VARS['REDIRECT_URL']) ? $HTTP_SERVER_VARS['REDIRECT_URL'] : str_replace("htdocs/","",$HTTP_SERVER_VARS['SCRIPT_NAME']);

i found that in ---init.inc.php--
but what do i put htdocs instead family that other person had
did not work
do i need to put family there?
what do i need to replaced with

thanks for your paitance

Nibbler

Try
str_replace("~6352.6497//cgi-bin/php.dat","path",$HTTP_SERVER_VARS['SCRIPT_NAME']);

where 'path' is the folder your gallery is installed to.

Also add

$_SERVER['PHP_SELF'] = $PHP_SELF;

just afterwards.

turksus

"~6352.6497//cgi-bin/php.dat","path",
i think that's where the problem is
it should not be "~6352.6497//cgi-bin/php.dat" (but you know better)
when i type manually to expolorer
http://www.turksus.com/cpg132/index.php?lang=turkish
it does it corret everthing is fine
but from the drop down menu
it is going to wrong direction(i think)
http://www.turksus.com/~6352.6497//cgi-bin/php.dat
and
i know it is too much but when you say path what does it look like?

thank you very much
turksus

Nibbler

path would be 'cpg132/' for you. The code says to replace

"~6352.6497//cgi-bin/php.dat"

with

"cpg132/"

so

http://www.turksus.com/~6352.6497//cgi-bin/php.dat?lang=turkish

becomes

http://www.turksus.com/cpg132/?lang=turkish

turksus

i did this in include/init.inc.php
str_replace("~6352.6497//cgi-bin/php.dat","cpg132/",$HTTP_SERVER_VARS['SCRIPT_NAME']); $_SERVER['PHP_SELF'] = $PHP_SELF;

and also

$PHP_SELF = isset($HTTP_SERVER_VARS['REDIRECT_URL']) ? $HTTP_SERVER_VARS['REDIRECT_URL'] : str_replace("~6352.6497//cgi-bin/php,dat","cpg132/",$HTTP_SERVER_VARS['SCRIPT_NAME']); $_SERVER['PHP_SELF'] = $PHP_SELF;

it is still doing the same thing

Nibbler

You put php - comma - dat instead of php - dot - dat I think.

turksus

this is as it is
$PHP_SELF = isset($HTTP_SERVER_VARS['REDIRECT_URL']) ? $HTTP_SERVER_VARS['REDIRECT_URL'] : str_replace("~6352.6497//cgi-bin/php.dat","cpg132/",$HTTP_SERVER_VARS['SCRIPT_NAME']); $_SERVER['PHP_SELF'] = $PHP_SELF;
but still does not work any idea
thanks

Nibbler

Can you PM me an FTP login ?

turksus

DID YOU GET MY PM

Nibbler

Yes, and I replied that the account you gave me does not have the correct permissions to edit the files.

turksus

i use my provider's ftp and edit--i don't why you could not edit
is there anything else i could do?
can i send you the whole file(init.inc.php)