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

Source for file install_datapump.php

Documentation is available at install_datapump.php

  1. <?php
  2. /**
  3.  * @version $Header$
  4.  * @package install
  5.  * @subpackage functions
  6.  */
  7.  
  8. // Copyright (c) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
  9. // All Rights Reserved. See below for details and a complete list of authors.
  10. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See http://www.gnu.org/copyleft/lesser.html for details.
  11.  
  12. // assign next step in installation process
  13. $gBitSmarty->assign'next_step',$step );
  14.  
  15. $gBitUser->mUserId ROOT_USER_ID;
  16.  
  17. $pumpList array();
  18. foreacharray_keys$gBitSystem->mPackages as $package {
  19.     if$gBitInstaller->isPackageActive$package ) ) {
  20.         $file constantstrtoupper$package ).'_PKG_PATH' ).'admin/pump_'.$package.'_inc.php';
  21.         iffile_exists$file )) {
  22.             $pumpList[$package$file;
  23.         }
  24.     }
  25. }
  26. $gBitSmarty->assign'pumpList'$pumpList );
  27.  
  28. /**
  29.  * datapump setup
  30.  */
  31. ifisset$_REQUEST['fSubmitDataPump') ) {
  32.     $pumpedData array();
  33.     if!empty$_REQUEST['pump_package') ) {
  34.         foreach$_REQUEST['pump_package'as $package {
  35.             if$gBitInstaller->isPackageActive$package ) ) {
  36.                 $file constantstrtoupper$package ).'_PKG_PATH' ).'admin/pump_'.$package.'_inc.php';
  37.                 include_once$file );
  38.             }
  39.         }
  40.     }
  41.     $gBitSmarty->assign'pumpedData',$pumpedData );
  42.     $app '_done';
  43.     $gBitSmarty->assign'next_step',$step );
  44.  
  45.     if$gBitSystem->isPackageActive'wiki' && !empty$pumpedData['Wiki')) {
  46.         $gBitSystem->storeConfig'wiki_home_page'$pumpedData['Wiki'][0]WIKI_PKG_NAME );
  47.     }
  48. elseifisset$_REQUEST['skip')) {
  49.     $app '_done';
  50.     $goto $step 1;
  51.     $gBitSmarty->assign'next_step',$goto );
  52.     header"Location: ".INSTALL_PKG_URL."install.php?step=$goto);
  53.     die;
  54. }
  55. ?>

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