assign( 'next_step',$step ); $gBitUser->mUserId = ROOT_USER_ID; $pumpList = []; foreach( array_keys( $gBitSystem->mPackages ) as $package ) { if( $gBitInstaller->isPackageActive( $package ) ) { $file = constant( strtoupper( $package ).'_PKG_PATH' ).'admin/pump_'.$package.'_inc.php'; if( file_exists( $file )) { $pumpList[$package] = $file; } } } $gBitSmarty->assign( 'pumpList', $pumpList ); /** * datapump setup */ if( isset( $_REQUEST['fSubmitDataPump'] ) ) { $pumpedData = []; if( !empty( $_REQUEST['pump_package'] ) ) { foreach( $_REQUEST['pump_package'] as $package ) { if( $gBitInstaller->isPackageActive( $package ) ) { $file = constant( strtoupper( $package ).'_PKG_PATH' ).'admin/pump_'.$package.'_inc.php'; include_once( $file ); } } } $gBitSmarty->assign( 'pumpedData',$pumpedData ); $app = '_done'; $gBitSmarty->assign( 'next_step',$step + 1 ); if( $gBitSystem->isPackageActive( 'wiki' ) && !empty( $pumpedData['Wiki'] )) { $gBitSystem->storeConfig( 'wiki_home_page', $pumpedData['Wiki'][0], WIKI_PKG_NAME ); } } elseif( isset( $_REQUEST['skip'] )) { $app = '_done'; $goto = $step + 1; $gBitSmarty->assign( 'next_step',$goto ); header( "Location: ".INSTALL_PKG_URL."install.php?step=$goto" ); die; }