- $lines = file('var/sessions.txt');
-
- foreach ($lines as $line_num => $line) {
- $sessions[$line_num] = explode("\t",$line);
- }
-
- if ( strtotime("now") > strtotime(end($sessions)[0]) ) {
- print '<table bgcolor="red">';
- print '<tr><th><b><font color="white">submission closed</font></b></th><tr>';
- print '</table>';
- break;
+ if ( ! isset($SESSIONS_next) ) {
+ block("red", "submission closed");
+ exit;