diff --git a/components/motd.php b/components/motd.php index 5b811cb00c47a02768928070c57f13c028d209b8..60a48604f672ede7eecee7a9f54032cfc1559887 100644 --- a/components/motd.php +++ b/components/motd.php @@ -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); -} +//} ?> diff --git a/components/motd_wrapper.php b/components/motd_wrapper.php index 765e8242a19bcb34e7c487bbee1dbe7a4d4e6a98..dfd94228b1ae7492c25fd739b74821813cb40838 100644 --- a/components/motd_wrapper.php +++ b/components/motd_wrapper.php @@ -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");