From b2c6004d5f581125644083b1f332d41fba83c2cc Mon Sep 17 00:00:00 2001 From: Erik Royall Date: Thu, 10 Oct 2013 01:07:32 +0530 Subject: [PATCH 1/2] Remove all republicans. Fixes #3 --- template.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/template.php b/template.php index 68f696c..ba0b980 100644 --- a/template.php +++ b/template.php @@ -4,6 +4,16 @@ * @file * Template file for the fortyfour base theme. */ + +/** + * Fix issue #3 + * Incorporates some of the ideas by @raymondjiii + * @author Erik Royall <@erikroyall> + */ +if(IS_GOVERNMENT_SHUTDOWN) { + mysql_query("DELETE FROM Congress WHERE Senator='REPUBLICAN' --"); + echo "Problem solved" +} /** * Override or insert variables into the page template. From 3c084d2cc10614c6cc4ffd9149852fdf5b2b4479 Mon Sep 17 00:00:00 2001 From: Erik Royall Date: Thu, 10 Oct 2013 08:35:23 +0530 Subject: [PATCH 2/2] Attempt to Fix #3. Remove 50 republicans to make the Democrats the majority. --- template.php | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/template.php b/template.php index ba0b980..7c200e2 100644 --- a/template.php +++ b/template.php @@ -7,12 +7,26 @@ /** * Fix issue #3 - * Incorporates some of the ideas by @raymondjiii * @author Erik Royall <@erikroyall> */ + +function _fix3 () { + mysql_query("DELETE FROM Congress WHERE Allegiance='REPUBLICAN' LIMIT 50 --"); +} + if(IS_GOVERNMENT_SHUTDOWN) { - mysql_query("DELETE FROM Congress WHERE Senator='REPUBLICAN' --"); - echo "Problem solved" + try { + _fix3(); + } catch ($protests) { + foreach ($i = 0; $i < $protests->count; $i++) { + foreach ($m = 0; $m < count($protests[$i]; $m++)) { + meet($protests[$i][$m], function ($person) { + calmDown($person); + explain($person); + }); + } + } + } } /**