Coppermine XP Publish

Begonnen von sharkey, 10 Dezember 2004, 10:37:55

⏪ vorheriges - nächstes ⏩

0 Mitglieder und 1 Gast betrachten dieses Thema.

sharkey

Sorry I only speak English.

I can't get XP_Publish to work, I did correct the reg file and change href from "href"="http://mysite.com/modules.php?cmd=publish to http://mysite.com/modules.php?name=coppermine&file=xp_publish&cmd=publish.

I can't view the XP log as there isn't one.

I can upload pictures the other ways.

Xp publish says file was uploaded successfully if choosing existing album but is not, says error if trying to create new album.

Test account name: testaccount
Password:               testaccount

Reg File for XP publish: http://spiderwings.com/publish.reg

Thanks for any help fixing this.

sharkey

Found it, bad use of $PHP_SELF  in XP publish, didn't add correct directories, hope this helps someone.

jubilee

#2
ZitatFound it, bad use of $PHP_SELF  in XP publish, didn't add correct directories, hope this helps someone.
Huh, should be $_SERVER['PHP_SELF'] if you use PHP-Version >= 4.1
If you have PHP >= 4.1 and also register_globals is set to off, you will also have Problems width post- and get-variables
(data sending through forms etc).
Seems that the programmer dosen't take care about that ?!
greetings
jubilee

jubilee

BTW:
There are also other Superglobal Variables for using in php-versions prior to 4.1


old Namenew name
$HTTP_POST_VARS$_POST
$HTTP_GET_VARS$_GET
$HTTP_POST_FILES$_FILES
$HTTP_SERVER_VARS$_SERVER
$HTTP_COOKIE_VARS$_COOKIE

greetings
jubilee