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