Only in qotd_login_new: config.php
Only in qotd_login: config.php.sample
diff -w -c -r qotd_login/functions.php qotd_login_new/functions.php
*** qotd_login/functions.php	Sat Dec  6 22:00:46 2003
--- qotd_login_new/functions.php	Sat Jan  3 14:04:35 2004
***************
*** 23,34 ****
  
        // generate rendom number...
        //
!       mt_srand((double)microtime()*1000000);
! 
  
        // figure out where to pull qotd from and do it...
        //
!       if ($qotdSource == 1 || ($qotdSource == 0 && mt_rand(1,20) > 10))
        {
  
           // if we have access to the qotd_login directory,
--- 23,36 ----
  
        // generate rendom number...
        //
! 	  $random_org='http://random.org/cgi-bin/randnum?num=1&min=1&max=100&col=1';
! 	  $random_fh = fopen($random_org, 'r');
! 	  $random = fgets($random_fh);
! 	  fclose($random_fh);
  
        // figure out where to pull qotd from and do it...
        //
!       if ($qotdSource == 1 || ($qotdSource == 0 && $random > 50))
        {
  
           // if we have access to the qotd_login directory,
***************
*** 114,120 ****
        //
        else
        {
!          $sString = shell_exec($fortune_command);
           //$sString = nl2br($sString);
        }
  
--- 116,217 ----
        //
        else
        {
! 		  switch(date('d')) {
! 		   case 1:
! 			  $what='fortunes';
! 			  break;
! 		   case 2:
! 			  $what='linux';
! 			  break;
! 		   case 3:
! 			  $what='science';
! 			  break;
! 		   case 4:
! 			  $what='literature';
! 			  break;
! 		   case 5:
! 			  $what='computers';
! 			  break;
! 		   case 6:
! 			  $what='art';
! 			  break;
! 		   case 7:
! 			  $what='food';
! 			  break;
! 		   case 8:
! 			  $what='cookie';
! 			  break;
! 		   case 9:
! 			  $what='paradoxum';
! 			  break;
! 		   case 10:
! 			  $what='songs-poems';
! 			  break;
! 		   case 11:
! 			  $what='pets';
! 			  break;
! 		   case 12:
! 			  $what='people';
! 			  break;
! 		   case 13:
! 			  $what='goedel';
! 			  break;
! 		   case 14:
! 			  $what='love';
! 			  break;
! 		   case 15:
! 			  $what='perl';
! 			  break;
! 		   case 16:
! 			  $what='startrek';
! 			  break;
! 		   case 17:
! 			  $what='cookie';
! 			  break;
! 		   case 18:
! 			  $what='humorists';
! 			  break;
! 		   case 19:
! 			  $what='magic';
! 			  break;
! 		   case 20:
! 			  $what='definitions';
! 			  break;
! 		   case 21:
! 			  $what='kids';
! 			  break;
! 		   case 22:
! 			  $what='medicine';
! 			  break;
! 		   case 23:
! 			  $what='platitudes';
! 			  break;
! 		   case 24:
! 			  $what='wisdom';
! 			  break;
! 		   case 25:
! 			  $what='men-women';
! 			  break;
! 		   case 26:
! 			  $what='';
! 			  break;
! 		   case 27:
! 			  $what='politics';
! 			  break;
! 		   case 28:
! 			  $what='work';
! 			  break;
! 		   case 29:
! 			  $what='education';
! 			  break;
! 		   case 30:
! 			  $what='law';
! 			  break;
! 		   case 31:
! 			  $what='miscellaneous riddles ascii-art';
! 			  break;
! 		  }
! 		  $sString = shell_exec($fortune_command.' '.$what);
  		  //$sString = nl2br($sString);
        }
  
***************
*** 122,128 ****
        // now print the qotd to interface
        //
        echo '<br><center><img src="../plugins/qotd_login/qotd.gif"><br><br>';
!       echo $sString;
        echo "</center>";
  
     }
--- 219,225 ----
        // now print the qotd to interface
        //
        echo '<br><center><img src="../plugins/qotd_login/qotd.gif"><br><br>';
!       echo '<pre>'.$sString.'</pre>';
        echo "</center>";
  
     }
