Source for file constructini.php

Documentation is available at constructini.php

  1. <?php
  2. /**
  3. * Upgrade the database to the latest version used by Bumblebee
  4. *
  5. @author    Stuart Prescott
  6. @copyright  Copyright Stuart Prescott
  7. @license    http://opensource.org/licenses/gpl-license.php GNU Public License
  8. @version    $Id$
  9. @package    Bumblebee
  10. @subpackage Installer
  11. */
  12.  
  13.  
  14. /**
  15. * Work out a db.ini from the defaults and the user input
  16. */
  17. function constructini($source$defaults{
  18.   $eol "\n";
  19.   $s '[database]'.$eol
  20.       .'host = "'.$defaults['sqlHost'].'"'.$eol
  21.       .'username = "'.$defaults['sqlUser'].'"'.$eol
  22.       .'passwd = "'.$defaults['sqlPass'].'"'.$eol
  23.       .'database = "'.$defaults['sqlDB'].'"'.$eol
  24.       .'tableprefix = "'.$defaults['sqlTablePrefix'].'"'.$eol;
  25.   return $s;
  26. }
  27.  
  28.  
  29. ?>

Documentation generated on Tue, 06 Mar 2007 10:01:06 +0000 by phpDocumentor 1.3.0