aboutsummaryrefslogtreecommitdiffstats
path: root/template/default/category.tpl
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2005-07-17 15:06:39 +0000
committerplegall <plg@piwigo.org>2005-07-17 15:06:39 +0000
commite96510957cd6fb539fcaacb80e47f6f78abdefb7 (patch)
treeca28bd145aac1a5523765d4b995cabdb506e08cc /template/default/category.tpl
parenteb189de80066ce353e472cd9067defd67102177f (diff)
- new feature : use Apache authentication. If $conf['apache_authentication']
is set true : if no user matches $_SERVER['REMOTE_USER'] in "users" table, PWG automatically creates one. This way, users can customize the behaviour of the application. - template : new organisation of identification menu (category.php). Simplification is required for Apache authentication (no logout link even if user is externally logged in) - new : usernames can contain quotes (required because Apache authentication authorized quotes in usernames) git-svn-id: http://piwigo.org/svn/trunk@804 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--template/default/category.tpl64
1 files changed, 39 insertions, 25 deletions
diff --git a/template/default/category.tpl b/template/default/category.tpl
index fd4c88262..437652138 100644
--- a/template/default/category.tpl
+++ b/template/default/category.tpl
@@ -41,34 +41,48 @@
</div>
<div class="titreMenu">{L_IDENTIFY}</div>
<div class="menu">
- <!-- BEGIN login -->
+ <!-- BEGIN hello -->
+ <p>{L_HELLO}&nbsp;{USERNAME}&nbsp;!</p>
+ <!-- END hello -->
<ul class="menu">
+
+ <!-- BEGIN register -->
<li><a href="{U_REGISTER}">{L_REGISTER}</a></li>
- <li><a href="{F_IDENTIFY}">{L_LOGIN}</a></li>
- </ul>
- <hr />
- <form method="post" action="{F_IDENTIFY}">
- <input type="hidden" name="redirect" value="{U_REDIRECT}">
- {L_USERNAME}<br />
- <input type="text" name="username" size="15" value="" /><br />
- {L_PASSWORD}<br />
- <input type="password" name="password" size="15"><br />
- <!-- BEGIN remember_me -->
- <input type="checkbox" name="remember_me" value="1" /> {L_REMEMBER_ME}<br />
- <!-- END remember_me -->
- <input type="submit" name="login" value="{L_SUBMIT}" class="bouton" />
+ <!-- END register -->
+
+ <!-- BEGIN login -->
+ <li><a href="{F_IDENTIFY}">{L_LOGIN}</a></li>
+ <!-- END login -->
+
+ <!-- BEGIN logout -->
+ <li><a href="{U_LOGOUT}">{L_LOGOUT}</a></li>
+ <!-- END logout -->
+
+ <!-- BEGIN profile -->
+ <li><a href="{U_PROFILE}" title="{L_PROFILE_HINT}">{L_PROFILE}</a></li>
+ <!-- END profile -->
+
+ <!-- BEGIN admin -->
+ <li><a href="{U_ADMIN}" title="{L_ADMIN_HINT}">{L_ADMIN}</a></li>
+ <!-- END admin -->
+
+ </ul>
+
+ <!-- BEGIN quickconnect -->
+ <hr />
+ <form method="post" action="{F_IDENTIFY}">
+ <input type="hidden" name="redirect" value="{U_REDIRECT}">
+ {L_USERNAME}<br />
+ <input type="text" name="username" size="15" value="" /><br />
+ {L_PASSWORD}<br />
+ <input type="password" name="password" size="15"><br />
+ <!-- BEGIN remember_me -->
+ <input type="checkbox" name="remember_me" value="1" /> {L_REMEMBER_ME}<br />
+ <!-- END remember_me -->
+ <input type="submit" name="login" value="{L_SUBMIT}" class="bouton" />
</form>
- <!-- END login -->
- <!-- BEGIN logout -->
- <p>{L_HELLO}&nbsp;{USERNAME}&nbsp;!</p>
- <ul class="menu">
- <li><a href="{U_LOGOUT}">{L_LOGOUT}</a></li>
- <li><a href="{U_PROFILE}" title="{L_PROFILE_HINT}">{L_PROFILE}</a></li>
- <!-- BEGIN admin -->
- <li><a href="{U_ADMIN}" title="{L_ADMIN_HINT}">{L_ADMIN}</a></li>
- <!-- END admin -->
- </ul>
- <!-- END logout -->
+ <!-- END quickconnect -->
+
</div>
</div>
</td>