diff --git a/api/.htaccess b/api/.htaccess index 510143c..9553254 100644 --- a/api/.htaccess +++ b/api/.htaccess @@ -1,5 +1,10 @@ -RewriteEngine On +# Allow PHP_AUTH_USER with CGI script +# (Inspired by http://www.yetanothercommunitysystem.com/article-321-regle-comment-utiliser-l-authentification-http-en-php-chez-ovh ) + + +RewriteEngine on RewriteRule ^tags/get tags_get.php +RewriteRule ^tags/rename tags_rename.php RewriteRule ^posts/dates posts_dates.php RewriteRule ^posts/get posts_get.php RewriteRule ^posts/recent posts_recent.php @@ -7,14 +12,7 @@ RewriteRule ^posts/all posts_all.php RewriteRule ^posts/update posts_update.php RewriteRule ^posts/add posts_add.php RewriteRule ^posts/delete posts_delete.php -RewriteRule ^tags/rename tags_rename.php RewriteRule ^export/html export_html.php - -# Allow PHP_AUTH_USER with CGI script -# (Inspired by http://www.yetanothercommunitysystem.com/article-321-regle-comment-utiliser-l-authentification-http-en-php-chez-ovh ) - - -RewriteEngine on RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization},L] diff --git a/templates/editprofile.tpl.php b/templates/editprofile.tpl.php index 6e548ba..d5f2000 100644 --- a/templates/editprofile.tpl.php +++ b/templates/editprofile.tpl.php @@ -57,7 +57,7 @@ $this->includeTemplate($GLOBALS['top_include']); - / + /