Skip to content
Snippets Groups Projects
Commit c1d25009 authored by Thomas Lake's avatar Thomas Lake :wrench:
Browse files

Some minor fixes to the MOTD poetry thing

parent 90254eea
No related branches found
No related tags found
No related merge requests found
......@@ -74,9 +74,9 @@ $motd .= "\n";
}
$motd .= "---------------------------- [ http://sucs.org/ ] -----------------------------\n";
if (date("z",time()-filemtime($motd_file)) < 1 && $poemmode == 1) {
//if (time()-filemtime($motd_file) < 86000 && $poemmode == 1) { //86000 to allow a little slack depending on when cron runs
// print "MOTD too recent to replace with a poem!\n";
} else {
//} else {
file_put_contents($motd_file, $motd);
}
//}
?>
......@@ -6,7 +6,7 @@ $dbname = 'sucssite';
$dbuser = 'apache';
$DB = NewADOConnection('postgres8');
$DB->Connect('dbname='.$dbname.',dbuser='$dbuser);
$DB->Connect('dbname='.$dbname.' user='.$dbuser);
$DB->SetFetchMode(ADODB_FETCH_ASSOC);
include("./motd.php");
include($base."components/motd.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