MyShaarli/tpl/vintage
VirtualTam 44acf70681 Refactor login / ban authentication steps
Relates to https://github.com/shaarli/Shaarli/issues/324

Added:
- Add the `LoginManager` class to manage logins and bans

Changed:
- Refactor IP ban management
- Simplify logic
- Avoid using globals, inject dependencies

Fixed:
- Use `ban_duration` instead of `ban_after` when setting a new ban

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
2018-02-05 18:12:09 +01:00
..
css Apply the new timezone template variables to the vintage theme 2017-04-04 18:44:24 +02:00
images Move default template to vintage folder 2017-02-27 20:01:54 +01:00
js Apply the new timezone template variables to the vintage theme 2017-04-04 18:44:24 +02:00
404.html Move default template to vintage folder 2017-02-27 20:01:54 +01:00
addlink.html Move default template to vintage folder 2017-02-27 20:01:54 +01:00
changepassword.html Move default template to vintage folder 2017-02-27 20:01:54 +01:00
changetag.html Move default template to vintage folder 2017-02-27 20:01:54 +01:00
configure.html Rename title link label to home link and apply it in vintage theme 2017-05-03 19:16:40 +02:00
daily.html Move default template to vintage folder 2017-02-27 20:01:54 +01:00
dailyrss.html Move default template to vintage folder 2017-02-27 20:01:54 +01:00
editlink.html Move default template to vintage folder 2017-02-27 20:01:54 +01:00
export.bookmarks.html Move default template to vintage folder 2017-02-27 20:01:54 +01:00
export.html Move default template to vintage folder 2017-02-27 20:01:54 +01:00
feed.atom.html Move default template to vintage folder 2017-02-27 20:01:54 +01:00
feed.rss.html Move default template to vintage folder 2017-02-27 20:01:54 +01:00
import.html Fix a warning generated in return_bytes function and refactor it 2017-04-03 18:53:43 +02:00
includes.html Move default template to vintage folder 2017-02-27 20:01:54 +01:00
install.html Apply the new timezone template variables to the vintage theme 2017-04-04 18:44:24 +02:00
linklist.html Empty tag search will look for not tagged links 2017-05-25 15:51:12 +02:00
linklist.paging.html Public/private filter: use two separate buttons 2018-01-24 18:46:31 +01:00
loginform.html Refactor login / ban authentication steps 2018-02-05 18:12:09 +01:00
opensearch.html Move default template to vintage folder 2017-02-27 20:01:54 +01:00
page.footer.html Apply the new timezone template variables to the vintage theme 2017-04-04 18:44:24 +02:00
page.header.html Rename title link label to home link and apply it in vintage theme 2017-05-03 19:16:40 +02:00
page.html Move default template to vintage folder 2017-02-27 20:01:54 +01:00
picwall.html Move default template to vintage folder 2017-02-27 20:01:54 +01:00
pluginsadmin.html Move default template to vintage folder 2017-02-27 20:01:54 +01:00
readme.txt Move default template to vintage folder 2017-02-27 20:01:54 +01:00
tag.cloud.html Move tagcloud template file to tag.cloud 2017-05-25 15:05:24 +02:00
tools.html Add Note bookmarklet #580 2017-05-25 15:34:26 +02:00

===== Shaarli template organisation =====

Any Shaarli page should conform to this RainTPL template:

-----------------------------------------------------
<html>
<head>{include="includes"}</head>
<body>
	<div id="pageheader">{include="page.header"}</div>
    You body goes here...
    {include="page.footer"}
</body>
</html>
-----------------------------------------------------

If you want to also add something in the page header (in the dark area), do it here:

<div id="pageheader">{include="page.header"}My menu goes here...</div>


Example: "Add new link" form:
-----------------------------------------------------
<html>
<head>{include="includes"}</head>
<body onload="document.addform.post.focus();">
<div id="pageheader">
	{include="page.header"}
	<div id="headerform">
		<form method="GET" action="" name="addform" class="addform">
			<input type="text" name="post" style="width:50%;"> 
			<input type="submit" value="Add link" class="bigbutton">
		</form>
	</div>
</div>
{include="page.footer"}
</body>
</html>
-----------------------------------------------------