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

View file

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

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 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" %}">&larr;</a> <a href="./" title="{% trans "back to home" %}">&larr;</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>