Changeset 542

Show
Ignore:
Timestamp:
19/06/12 09:36:56 (11 months ago)
Author:
tswsl1989
Message:

Some minor fixes to the MOTD poetry thing

Location:
branches/sucs-site/components
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/sucs-site/components/motd.php

    r541 r542  
    7575$motd .= "---------------------------- [ http://sucs.org/ ] -----------------------------\n"; 
    7676 
    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 
    7878    // print "MOTD too recent to replace with a poem!\n"; 
    79 } else { 
     79//} else { 
    8080    file_put_contents($motd_file, $motd); 
    81 } 
     81//} 
    8282?> 
  • branches/sucs-site/components/motd_wrapper.php

    r541 r542  
    77 
    88$DB = NewADOConnection('postgres8'); 
    9 $DB->Connect('dbname='.$dbname.',dbuser='$dbuser); 
     9$DB->Connect('dbname='.$dbname.' user='.$dbuser); 
    1010$DB->SetFetchMode(ADODB_FETCH_ASSOC); 
    1111 
    12 include("./motd.php"); 
     12include($base."components/motd.php");