summaryrefslogtreecommitdiff
path: root/install_packages.php
diff options
context:
space:
mode:
authorSean Lee <seannerd@users.sourceforge.net>2006-02-22 03:47:27 +0000
committerSean Lee <seannerd@users.sourceforge.net>2006-02-22 03:47:27 +0000
commite2b8de489f4f320fd4fc9cc163a860a2da8777d7 (patch)
tree8dc00ce7d8edb71d6e2f00ffd429ab6ef9ea4041 /install_packages.php
parentc3c994c7614068c3434cfb0e3671ae19e6e17df6 (diff)
downloadinstall-e2b8de489f4f320fd4fc9cc163a860a2da8777d7.tar.gz
install-e2b8de489f4f320fd4fc9cc163a860a2da8777d7.tar.bz2
install-e2b8de489f4f320fd4fc9cc163a860a2da8777d7.zip
Edit-Undo. Moving the inserts caused major login problems. They are now back the way they were. The quota inserts that cause constraint violations need to be moved to a pump script.
Diffstat (limited to 'install_packages.php')
-rw-r--r--install_packages.php43
1 files changed, 22 insertions, 21 deletions
diff --git a/install_packages.php b/install_packages.php
index 0549ff6..085be61 100644
--- a/install_packages.php
+++ b/install_packages.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_install/install_packages.php,v 1.31 2006/02/22 03:13:31 seannerd Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_install/install_packages.php,v 1.32 2006/02/22 03:47:27 seannerd Exp $
* @package install
* @subpackage functions
*/
@@ -184,6 +184,27 @@ if( !empty( $_REQUEST['cancel'] ) ) {
$gBitInstaller->storePreference( 'package_phpbb', 'y', PHPBB_PKG_NAME );
}
+ // 4. run the defaults through afterwards so we can be sure all tables needed have been created
+ foreach( array_keys( $gBitInstaller->mPackages ) as $package ) {
+ if (!empty($package)) {
+ if( in_array( $package, $_REQUEST['packages'] ) || ( empty( $gBitInstaller->mPackages[$package]['installed'] ) && !empty( $gBitInstaller->mPackages[$package]['required'] ) ) ) {
+ if( $method == 'install' || $method == 'reinstall' ) {
+ // this list of installed packages is used to show newly installed packages
+ if( !empty( $gBitInstaller->mPackages[$package]['defaults'] ) ) {
+ foreach( $gBitInstaller->mPackages[$package]['defaults'] as $def ) {
+ if ($gBitInstaller->mDb->mType == 'firebird' ) $def = preg_replace("/\\\'/","''", $def );
+ $gBitInstaller->mDb->query( $def );
+ }
+ }
+ } else {
+ // This is where any links to clear data not in the current package will be processed
+ }
+ // this is to list any processed packages
+ $packageList[$method][] = $package;
+ }
+ }
+ }
+
// only install modules during the first install
if( isset( $_SESSION['first_install'] ) && $_SESSION['first_install'] == TRUE ) {
/**
@@ -247,26 +268,6 @@ if( !empty( $_REQUEST['cancel'] ) ) {
unset( $_SESSION['email'] );
}
- // 4. run the defaults through afterwards so we can be sure all tables needed have been created
- foreach( array_keys( $gBitInstaller->mPackages ) as $package ) {
- if (!empty($package)) {
- if( in_array( $package, $_REQUEST['packages'] ) || ( empty( $gBitInstaller->mPackages[$package]['installed'] ) && !empty( $gBitInstaller->mPackages[$package]['required'] ) ) ) {
- if( $method == 'install' || $method == 'reinstall' ) {
- // this list of installed packages is used to show newly installed packages
- if( !empty( $gBitInstaller->mPackages[$package]['defaults'] ) ) {
- foreach( $gBitInstaller->mPackages[$package]['defaults'] as $def ) {
- if ($gBitInstaller->mDb->mType == 'firebird' ) $def = preg_replace("/\\\'/","''", $def );
- $gBitInstaller->mDb->query( $def );
- }
- }
- } else {
- // This is where any links to clear data not in the current package will be processed
- }
- // this is to list any processed packages
- $packageList[$method][] = $package;
- }
- }
- }
$gBitSmarty->assign( 'next_step', $step + 1 );
asort( $packageList );