view of an article

This commit is contained in:
Nicolas Lœuillet 2013-08-04 22:51:12 +02:00
parent 63c35580c7
commit 2a1791a4b1
9 changed files with 14 additions and 9 deletions

View file

@ -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');

View file

@ -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 {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 911 B

After

Width:  |  Height:  |  Size: 454 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 662 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 655 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 786 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 537 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 666 B

View file

@ -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" %}">&larr;</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>