Skip to content
Snippets Groups Projects
Commit fe419c06 authored by Denis Walker's avatar Denis Walker
Browse files

Adds election reminder for those who haven't voted.

Separates election config into settings.php
parent 6e673f2e
No related branches found
No related tags found
No related merge requests found
<?php
# Settings for this particular election:
define('ELECTION_YEAR', '2009');
define('ELECTION_START', '2008-12-01 00:00');
define('ELECTION_END', '2008-12-08 00:00');
define('ELECTION_NO_MANIFESTO', 'http://sucs.org/vote/None.html');
$smarty->assign("election_year", ELECTION_YEAR);
$smarty->assign("title", "Executive Election ".ELECTION_YEAR);
......
<?php
if (strtotime('now') > strtotime(ELECTION_START) && strtotime('now') < strtotime(ELECTION_END) && !$DB->GetOne("SELECT username FROM election_votes where username=?", $session->username)) {
$messages['info'][] = "<strong>You haven't voted yet</strong><br />\nThe SUCS Executive Election is in progress. <a href=\"/Vote\">Vote now!</a>\n";
}
?>
......@@ -11,6 +11,8 @@ if (!$session->loggedin) {
$output = "<div class=\"cbb\"><h3>You are logged in</h3><p>If you would like to contribute to the site or report a bug, please contact chckens or dez.</p></div>";
//include('users.php');
//$output .= $result;
include('electionreminder.php');
$output .= $result;
include('planetposts.php');
$output .= $result;
include('forumposts.php');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment