install
[ class tree: install ] [ index: install ] [ all elements ]

Source for file upgrade_database.php

Documentation is available at upgrade_database.php

  1. <?php
  2. /**
  3.  * @version $Header$
  4.  * @package install
  5.  * @subpackage upgrade
  6.  */
  7.  
  8. /**
  9.  * required setup
  10.  */
  11. $app '';
  12. include_onceINSTALL_PKG_PATH.'install_database.php' );
  13. // update the MySQL settings in the db server array
  14. iffunction_exists'mysql_connect' ) ) {
  15.     // check version of mysql server
  16.     ifpreg_match'/[4-9]\./'@mysql_get_server_info() ) ) {
  17.         $dbtodsn['mysql''MySQL '.mysql_get_server_info();
  18.     elseifpreg_match'/3\./'@mysql_get_server_info() ) ) {
  19.         $dbtodsn['mysql''MySQL '.mysql_get_server_info().' WARNING!!!';
  20.     else {
  21.         $dbtodsn['mysql''MySQL 3.x';
  22.     }
  23. }
  24. $gBitSmarty->assign'include_template'INSTALL_PKG_PATH."templates/install_database".$app.".tpl" );
  25. ?>

Documentation generated on Wed, 29 Jul 2015 13:57:30 +0000 by phpDocumentor 1.5.0-lsces