Changeset 542
- Timestamp:
- 19/06/12 09:36:56 (11 months ago)
- Location:
- branches/sucs-site/components
- Files:
-
- 2 modified
-
motd.php (modified) (1 diff)
-
motd_wrapper.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/sucs-site/components/motd.php
r541 r542 75 75 $motd .= "---------------------------- [ http://sucs.org/ ] -----------------------------\n"; 76 76 77 if (date("z",time()-filemtime($motd_file)) < 1 && $poemmode == 1) { 77 //if (time()-filemtime($motd_file) < 86000 && $poemmode == 1) { //86000 to allow a little slack depending on when cron runs 78 78 // print "MOTD too recent to replace with a poem!\n"; 79 } else {79 //} else { 80 80 file_put_contents($motd_file, $motd); 81 }81 //} 82 82 ?> -
branches/sucs-site/components/motd_wrapper.php
r541 r542 7 7 8 8 $DB = NewADOConnection('postgres8'); 9 $DB->Connect('dbname='.$dbname.' ,dbuser='$dbuser);9 $DB->Connect('dbname='.$dbname.' user='.$dbuser); 10 10 $DB->SetFetchMode(ADODB_FETCH_ASSOC); 11 11 12 include( "./motd.php");12 include($base."components/motd.php");
