htaccess schutz und PDF export

All about webserver configurations, PHP and databases.

Moderator: Thorsten

Post Reply
marbu
Posts: 7
Joined: Tue May 16, 2006 4:26 pm

htaccess schutz und PDF export

Post 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
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Re: htaccess schutz und PDF export

Post 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
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
marbu
Posts: 7
Joined: Tue May 16, 2006 4:26 pm

Post by marbu »

Sorry the Problem is a other not the htaccess.
The Thread can close.
Post Reply