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

Source for file migrate.php

Documentation is available at migrate.php

  1. <?php
  2. /**
  3.  * @version $Header$
  4.  * @package install
  5.  * @subpackage migrate
  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. /**
  13.  * required setup
  14.  */
  15. require_once'install_inc.php' );
  16.  
  17. // this variable will be appended to the template file called - useful for displaying messages after data input
  18. $app '';
  19.  
  20. // work out where in the installation process we are
  21. if!isset$_REQUEST['step') ) {
  22.     $_REQUEST['step'0;
  23. }
  24. $step $_REQUEST['step'];
  25.  
  26. // updating $install_file name
  27. $i 0;
  28. $install_file[$i]['file''welcome';
  29. $install_file[$i++]['name''Welcome';
  30. $install_file[$i]['file''database';
  31. $install_file[$i++]['name''Migration Options';
  32. $install_file[$i]['file''final';
  33. $install_file[$i]['name''Migration Complete';
  34.  
  35. // currently i can't think of a better way to secure the migrate pages
  36. // redirect to the installer if we aren't sent here by the installer and the migrate session variable hasn't been set
  37. if!isset$_SESSION['migrate'|| $_SESSION['migrate'!= TRUE ||
  38.     !isset$_SERVER['HTTP_REFERER'|| 
  39.     isset$_SERVER['HTTP_REFERER'&&
  40.     ( ( !strpos$_SERVER['HTTP_REFERER'],'install/install.php' ) ) && !strpos$_SERVER['HTTP_REFERER'],'install/upgrade.php' ) ) && !strpos$_SERVER['HTTP_REFERER'],'install/migrate.php' ) ) ) 
  41. {
  42.     header'Location: '.INSTALL_PKG_URL.'install.php' );
  43.     die;
  44. }
  45.  
  46. //echo 'migrate_'.$install_file[$step]['file'].'.php' . "\n";
  47. // finally we are ready to include the actual php file
  48. include_once'migrate_'.$install_file[$step]['file'].'.php' );
  49.  
  50. $install_file set_menu$install_file$step );
  51.  
  52. $gBitSmarty->assign'menu_file''migrate.php' );
  53. $gBitSmarty->assign'section''Upgrade' );
  54.  
  55. $gBitSmarty->assign'install_file'INSTALL_PKG_PATH."templates/migrate_".$install_file[$step]['file'].$app.".tpl" );
  56. $gBitInstaller->in_display$install_file[$step]['name']INSTALL_PKG_PATH.'templates/install.tpl' );
  57.  
  58. ?>

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