- $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>';
+ if ( ! isset($SESSIONS_next) ) {
+ block("red", "submission closed");