From 2a1791a4b1c319fc5bbc286d0bc94827fe1feec9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Sun, 4 Aug 2013 22:51:12 +0200 Subject: [PATCH] view of an article --- index.php | 14 +++++++------- tpl/css/style.css | 5 +++++ tpl/img/logo.png | Bin 911 -> 454 bytes tpl/img/messages/close.png | Bin 662 -> 0 bytes tpl/img/messages/cross.png | Bin 655 -> 0 bytes tpl/img/messages/help.png | Bin 786 -> 0 bytes tpl/img/messages/tick.png | Bin 537 -> 0 bytes tpl/img/messages/warning.png | Bin 666 -> 0 bytes tpl/view.twig | 4 ++-- 9 files changed, 14 insertions(+), 9 deletions(-) delete mode 100644 tpl/img/messages/close.png delete mode 100644 tpl/img/messages/cross.png delete mode 100644 tpl/img/messages/help.png delete mode 100644 tpl/img/messages/tick.png delete mode 100644 tpl/img/messages/warning.png diff --git a/index.php b/index.php index 381b8cc..94c72a2 100644 --- a/index.php +++ b/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'); diff --git a/tpl/css/style.css b/tpl/css/style.css index d856a35..6b9f6ac 100644 --- a/tpl/css/style.css +++ b/tpl/css/style.css @@ -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 { diff --git a/tpl/img/logo.png b/tpl/img/logo.png index f917857fb164763de174630ae68852136d6350b2..549b84665cdbab6f20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R;&|C&Z9(&vdRh zyTN--{{96r3%K8RDQ~wv#5?N?L;bq^)BV4dY%Pwx(B7F+7^^?yyu03rQP!1ZVBYA2sy{*lvGXNldS3E^&LLA5UHuj-~Nttpxt674l>XMLTD-rXyCR>x0sgzcK0=e^_0 zlm(Ku>*n-%DLHPA%Bi$ny1o0}{r`WD+_BxXJ4?KJuGl*>?W6`>{Ucv{45T*inq6$Y zdT&?8{@JEsE>Dg3FE`&_?!aCGLtEJYhzlk#JPrCSy)5dDA}|jyc)I$ztaD0e0swQ7 Be2f49 diff --git a/tpl/img/messages/close.png b/tpl/img/messages/close.png deleted file mode 100644 index 731aa018f240a80ed89ed48e386f8a364089e99e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 662 zcmV;H0%`q;P)z@;j(q!3lK=n!AY({UO#lFTB>(_`g8%^e{{R4h=>PzA zFaQARU;qF*m;eA5Z<1fdMgRZ;3`s;mRCwBA{Qv(y0~)Xa;xHh#0%Ap|*nJ>A2E?m? z_z1FMfB<4dGJqe5n}Im-^XJbzXU?2qxO3+YSVC1*mBGZsgn@^L=L?WKABby#_#;RT zAb=P^1^_W15bpru|MTb1|F5g73o;c2gTz2`P_P54hXEjfU-TN zkO7lFe*E}fOG^tZsiULw|J%23{~tVf@Lxqm<-eGi*#Fa~PlK(jtgHm90jUM)0qF$@ zAdmrP_U+pTw@p}B`2V_f>%bar-@g6-^5x55_Q8V(|I5qE!_|TGfb;?c5XgYHvuDpn z@h1ld$Nw!`w!r-Q|J=EA|M~g(QPj+uH47y579fC_U@?IVczJmlgoK3Pd@e372B6DO z)Bpn;OalZEh8GkR6#ielcoA&#-o1POZ`!m8%zpIf(SI{DGYl^P1Q13b>g((O|MKO_ z|HFq5{}&V#{LjwL{(se~RsX+#|NcKLEDR$M0RjkXG=gG6R8$ns2YTthfq?;>4^2?u zXaoo#l!R1ORfRVZVM|B=0fds2|NZ;-f8M-#Sd%iyRUkQ#8swx55I|Tn6EFuEoyT++I zn$b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^T zED%wc9ezHgW@NMb!^uT_|SvCpFLJylbx zY%bpaTGI8IYXMN$9w<3j9VkA~NYOKEQXsj?6a9_hcwfU$acAhJhB)zb_w@MVUEy@S zX&I>K-R!bhu3?(6bHWIg$HEl7{9g>>&l_qdd+UYb(1~BCo9LptNq&8>!yoJ3Ui(i5 zRJ|XnYBklL!{@$-7=3mJ>P@1c=7Oc79e-V7yf+%lD2!I;Y&nXBZ>=B!5?CB>LvEx6 znI%n)qqi$#X#wKB(U7XP2P=+4{b@j#r%9-K(8UqtSDk>0UKzf*HM9yqMZ1D!$2MdZ zR=`U>0zhOH1XqN?nY@AQqB7)Fp4{v&dKXvb43hZKvnN8;Po;+jY*}~*Z|W9Q0W%{D z^T}Cc<|r(Su=1K=P5>Z4 zg`et&Va}tdzBS-G-ZcO)zCWpJvGQwrHZ`@wpM420ac@bI5~KkTFfGEM3sPWO8co4^fI6lPnA)Y{ef%@{+SnoUk0+dW+*{8WvF8}}l07*qoM6N<$g7cXs A&j0`b diff --git a/tpl/view.twig b/tpl/view.twig index d2ec207..8ef5cd9 100644 --- a/tpl/view.twig +++ b/tpl/view.twig @@ -2,7 +2,7 @@ {% block title %}{% trans "home" %}{% endblock %} {% block content %} -
+
@@ -21,7 +21,7 @@
- {{ content|striptags }} + {{ content | raw }}