summary refs log tree commit diff stats
path: root/admin/welcome.php
diff options
context:
space:
mode:
authorStarla Insigna <starla4444@gmail.com>2010-12-11 14:05:05 -0500
committerStarla Insigna <starla4444@gmail.com>2010-12-11 14:05:05 -0500
commit74db7a24d9c2230b104979f4e4981c57ff73de71 (patch)
tree3059bb0a955a662cd9e04208eb6276071cea4c8a /admin/welcome.php
parent9efe4feaf5e19e51a18a229a6db36c5508e9faea (diff)
downloadfourisland-74db7a24d9c2230b104979f4e4981c57ff73de71.tar.gz
fourisland-74db7a24d9c2230b104979f4e4981c57ff73de71.tar.bz2
fourisland-74db7a24d9c2230b104979f4e4981c57ff73de71.zip
Made Four Island 2 a little more sane
I spent the last few hours sanitizing the database and fixing huge bugs in the code. Among the changes made were:
- "Theoretically related posts" have been removed due to the lack of FULLTEXT index support in InnoDB tables
- Removed tons of stripslashes() calls that were used to remove slashes from records before I realized (while doing all of this work) that magic_quotes_gpc was on for some reason. I mean, like, come on!
- Replaced all non-library uses of htmlentities() with htmlspecialchars(), which basically does the same thing except it doesn't mangle Unicode.
- Completely eradicated polls.
Note that this does mean that all database backups prior to December 11th 2010 are now incompatible with Four Island.
Diffstat (limited to 'admin/welcome.php')
-rwxr-xr-xadmin/welcome.php5
1 files changed, 0 insertions, 5 deletions
diff --git a/admin/welcome.php b/admin/welcome.php index 76b42b1..9ca13ce 100755 --- a/admin/welcome.php +++ b/admin/welcome.php
@@ -46,11 +46,6 @@ $cntcomments2 = mysql_query($cntcomments);
46$cntcomments3 = mysql_fetch_array($cntcomments2); 46$cntcomments3 = mysql_fetch_array($cntcomments2);
47$template->add('COMMENTS', $cntcomments3['COUNT(*)']); 47$template->add('COMMENTS', $cntcomments3['COUNT(*)']);
48 48
49$cntpolls = "SELECT COUNT(*) FROM polloftheweek";
50$cntpolls2 = mysql_query($cntpolls);
51$cntpolls3 = mysql_fetch_array($cntpolls2);
52$template->add('POLLS', $cntpolls3['COUNT(*)']);
53
54$cntquotes = "SELECT COUNT(*) FROM rash_quotes"; 49$cntquotes = "SELECT COUNT(*) FROM rash_quotes";
55$cntquotes2 = mysql_query($cntquotes); 50$cntquotes2 = mysql_query($cntquotes);
56$cntquotes3 = mysql_fetch_array($cntquotes2); 51$cntquotes3 = mysql_fetch_array($cntquotes2);