leon        01/05/31 11:12:04

  Modified:    freetrade2/modules/database/mysql standard_library
               freetrade2/modules/screen welcome
  Log:
  Adding version information to debug info on welcome screen
  
  Revision  Changes    Path
  1.4       +33 -2     freetrade/freetrade2/modules/database/mysql/standard_library
  
  Index: standard_library
  ===================================================================
  RCS file: /home/cvs/freetrade/freetrade2/modules/database/mysql/standard_library,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- standard_library  2000/07/21 21:02:58     1.3
  +++ standard_library  2001/05/31 18:12:04     1.4
  @@ -4,13 +4,16 @@
        ** Description: This module contains database functions that are needed 
        ** in at least 75% of all page views.
        **
  -     ** Version: $Revision: 1.3 $
  +     ** Version: $Revision: 1.4 $
        ** Created: 06/02/2000
        ** Author: Leon Atkinson
        ** Email: [EMAIL PROTECTED]
        ** CVS Author: $Author: leon $
        ** Last Revised$
        ** Log : $Log: standard_library,v $
  +     ** Log : Revision 1.4  2001/05/31 18:12:04  leon
  +     ** Log : Adding version information to debug info on welcome screen
  +     ** Log :
        ** Log : Revision 1.3  2000/07/21 21:02:58  leon
        ** Log : Removing SQL from GENERATE_SID
        ** Log :
  @@ -254,5 +257,33 @@
                }
   
                return(TRUE);
  +     }
  +
  +
  +
  +     /*
  +     ** Function: getDBVersion()
  +     ** Input: none
  +     ** Output: STRING
  +     ** Description: returns the name and version of database server
  +     */
  +     function getDBVersion()
  +     {
  +             global $DatabaseLink;
  +
  +             $Query = "SHOW VARIABLES LIKE 'version' ";
  +
  +             if(!($DatabaseResult = mysql_query($Query, $DatabaseLink)))
  +             {
  +                     addToLog("Couldn't get server version!",
  +                             LOG_EMERGENCY, __FILE__, __LINE__);
  +
  +                     return(FALSE);
  +             }
  +
  +             $Row = mysql_fetch_row($DatabaseResult);
  +
  +             return("MySQL " . $Row[1]);
        }
  -?>
  \ No newline at end of file
  +
  +?>
  
  
  
  1.7       +8 -2      freetrade/freetrade2/modules/screen/welcome
  
  Index: welcome
  ===================================================================
  RCS file: /home/cvs/freetrade/freetrade2/modules/screen/welcome,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- welcome   2000/11/08 00:54:38     1.6
  +++ welcome   2001/05/31 18:12:04     1.7
  @@ -2,14 +2,17 @@
        /*
        ** File: welcome
        ** Description: default screen for site
  -     ** Version: $Revision: 1.6 $
  +     ** Version: $Revision: 1.7 $
        ** Created: 05/18/1999
        ** Author: Leon Atkinson
        ** Email: [EMAIL PROTECTED]
        ** CVS Author: $Author: leon $
  -     ** Last Revised: $Date: 2000/11/08 00:54:38 $
  +     ** Last Revised: $Date: 2001/05/31 18:12:04 $
        **
        ** Log : $Log: welcome,v $
  +     ** Log : Revision 1.7  2001/05/31 18:12:04  leon
  +     ** Log : Adding version information to debug info on welcome screen
  +     ** Log :
        ** Log : Revision 1.6  2000/11/08 00:54:38  leon
        ** Log : *** empty log message ***
        ** Log :
  @@ -58,6 +61,9 @@
        */
        print("LOCAL TIME: " . date("l dS of F Y h:i:s A") . "<BR>\n");
   
  +     print("PHP: " . phpversion() . "<br>\n");
  +
  +     print("Database: " . getDBVersion() . "<br>\n");
   
        print("SERVER_NAME: " . SERVER_NAME . "<BR>\n");
        print("SCRIPT_NAME: " . SCRIPT_NAME . "<BR>\n");
  
  
  
_______________________________________________
FreeTrade-dev mailing list
[EMAIL PROTECTED]
http://share.whichever.com/mailman/listinfo/freetrade-dev

Reply via email to