linea21-externals
[ class tree: linea21-externals ] [ index: linea21-externals ] [ all elements ]

Source for file install.php

Documentation is available at install.php

  1. <?php
  2. /**
  3.  * @package linea21.externals
  4.  * @subpackage Class Installer
  5.  * @author Vadim V. Gabriel <vadimg88@gmail.com> http://www.vadimg.co.il/ - modified by Simon Georget <simon@linea21.com>
  6.  * @link http://absynthe.is.free.fr/aFiles/
  7.  * @version 1.0.0a
  8.  * @license GNU Lesser General Public License
  9.  */
  10. $installation_process true// necessary for test in /config/define.php
  11. include_once("../config/define.php");
  12. include_once('../lib/input_helpers.php');
  13.  
  14. # Define root path
  15. define('ROOT_PATH'dirname(__FILE__));
  16.  
  17. define('INSTALLER_PATH'dirname(__FILE__DIRECTORY_SEPARATOR 'installer');
  18.  
  19. # Define templates path
  20. if(!defined('TMPL_PATH'))
  21. {
  22.   define('TMPL_PATH'INSTALLER_PATH DIRECTORY_SEPARATOR 'data' DIRECTORY_SEPARATOR 'templates' DIRECTORY_SEPARATOR);
  23. }
  24.  
  25. # Define base url
  26. define('BASE_URL''http://'$_SERVER['HTTP_HOST'$_SERVER['SCRIPT_NAME']);
  27.  
  28. # Default step
  29. $_POST['step'= isset($_POST['step']$_POST['step''index';
  30. require_once(INSTALLER_PATH '/Installer.php');
  31. $installer new Installer();
  32. $installer->display();
  33.  
  34. # Done!

Documentation generated on Thu, 20 Mar 2014 16:48:08 +0100 by phpDocumentor 1.4.1