Page 1 of 1

htaccess schutz und PDF export

Posted: Thu Jul 20, 2006 4:07 pm
by marbu
Hallo,
ich habe ein kleines Problem,

ich habe in der HTaccess ein Passwortschutz hinzugefügt und kann seit dem keine PDF-Dateien mehr exportieren. in der inc/pdf.php in der Zeile 536 sollte es sein ;-)

Code: Select all

 $image = "http://".$_SERVER["SERVER_NAME"].$image
greifst das FAQ über http auf die Bilder zu.

folgende Dinge habe ich schon probiert:

Code: Select all

 $image = "http://benutzername:passwort@".$_SERVER["SERVER_NAME"].$image
hat irgendjemand eine Ahnung wie ich das umgehen kann???

Gruß Marbu

Re: htaccess schutz und PDF export

Posted: Thu Jul 20, 2006 7:19 pm
by matteo
Hi,
marbu wrote:

Code: Select all

 $image = "http://benutzername:passwort@".$_SERVER["SERVER_NAME"].$image
the line should be:

Code: Select all

            $image = "http://username@password:".$_SERVER["SERVER_NAME"].$image;
Said this, my suggestion is to hack a little bit more your .htaccess to allow uncoditional access from 127.0.0.1: the HTTP connection above is just coming from 127.0.0.1 and this will save you to change that line when you'll update phpMyFAQ to a new release.

Regards,
Matteo

Posted: Fri Jul 21, 2006 9:46 am
by marbu
Sorry the Problem is a other not the htaccess.
The Thread can close.