summaryrefslogtreecommitdiffstats
path: root/index.cgi
diff options
context:
space:
mode:
authorpiernov <piernov@piernov.servegame.org>2012-10-21 21:40:48 +0200
committerpiernov <piernov@piernov.servegame.org>2012-10-21 21:40:48 +0200
commit9e5495e169ef0cb888a91a1ead62bc81e1b2bdba (patch)
tree91d54cbf14deec05c027e9c204997b2c04185957 /index.cgi
parent8a03b03fb21e168ace1c5424967d0e6ddbc6c7cc (diff)
downloadbdg-master.tar.gz
bdg-master.tar.bz2
bdg-master.tar.xz
bdg-master.zip
Correction encodage UTF-8, correction pageur + ajout champ séléction page latest.cgiHEADmaster
Diffstat (limited to 'index.cgi')
-rwxr-xr-xindex.cgi2
1 files changed, 1 insertions, 1 deletions
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