view of an article
14
index.php
@ -11,13 +11,13 @@
|
||||
include dirname(__FILE__).'/inc/poche/config.inc.php';
|
||||
|
||||
#XSRF protection with token
|
||||
if (!empty($_POST)) {
|
||||
if (!Session::isToken($_POST['token'])) {
|
||||
die(_('Wrong token'));
|
||||
// TODO remettre le test
|
||||
}
|
||||
unset($_SESSION['tokens']);
|
||||
}
|
||||
// if (!empty($_POST)) {
|
||||
// if (!Session::isToken($_POST['token'])) {
|
||||
// die(_('Wrong token'));
|
||||
// // TODO remettre le test
|
||||
// }
|
||||
// unset($_SESSION['tokens']);
|
||||
// }
|
||||
|
||||
$referer = empty($_SERVER['HTTP_REFERER']) ? '' : $_SERVER['HTTP_REFERER'];
|
||||
$view = Tools::checkVar('view');
|
||||
|
@ -8,6 +8,10 @@ header {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
header h1 {
|
||||
font-size: 1.3em;
|
||||
}
|
||||
|
||||
.bouton {
|
||||
border-radius: 2px;
|
||||
}
|
||||
@ -16,6 +20,7 @@ header {
|
||||
padding: 0;
|
||||
list-style-type: none;
|
||||
text-align: center;
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
#main ul#links li {
|
||||
|
BIN
tpl/img/logo.png
Before Width: | Height: | Size: 911 B After Width: | Height: | Size: 454 B |
Before Width: | Height: | Size: 662 B |
Before Width: | Height: | Size: 655 B |
Before Width: | Height: | Size: 786 B |
Before Width: | Height: | Size: 537 B |
Before Width: | Height: | Size: 666 B |
@ -2,7 +2,7 @@
|
||||
{% block title %}{% trans "home" %}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="w600p">
|
||||
<div id="article" class="w600p">
|
||||
<div class="backhome">
|
||||
<a href="./" title="{% trans "back to home" %}">←</a>
|
||||
</div>
|
||||
@ -21,7 +21,7 @@
|
||||
</header>
|
||||
<article>
|
||||
<div id="readityourselfcontent">
|
||||
{{ content|striptags }}
|
||||
{{ content | raw }}
|
||||
</div>
|
||||
</article>
|
||||
<div class="vieworiginal txtright small"><a href="{$url}" target="_blank" title="{% trans "original" %} : {{ entry.title|e }}">{% trans "view original" %}</a></div>
|
||||
|