From 9e5495e169ef0cb888a91a1ead62bc81e1b2bdba Mon Sep 17 00:00:00 2001 From: piernov Date: Sun, 21 Oct 2012 21:40:48 +0200 Subject: Correction encodage UTF-8, correction pageur + ajout champ séléction page latest.cgi MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'index.cgi') diff --git a/index.cgi b/index.cgi index 177054f..8084011 100755 --- a/index.cgi +++ b/index.cgi @@ -36,7 +36,7 @@ displayed = Hash.new() i = 0 until i == count -db.execute("SELECT id,titre,auteur,blague,DATE_FORMAT(date_post, '%e/%c/%Y'),voteplus,votetotal FROM blague WHERE ID=#{rand(total)+1}").each { |row| +db.execute("SELECT id,titre,auteur,blague,DATE_FORMAT(date_post, '%e/%c/%Y'),voteplus,voteminus FROM blague WHERE ID=#{rand(total)+1}").each { |row| if displayed["#{row[0]}"] == true next else -- cgit v1.2.3-54-g00ecf