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. include_once("../config/define.php");
  11. include_once('../lib/input_helpers.php');
  12.  
  13. include_once('../class/class.culture.php');
  14.  
  15. # Define root path
  16. define('ROOT_PATH'dirname(__FILE__));
  17.  
  18. define('INSTALLER_PATH'dirname(__FILE__DIRECTORY_SEPARATOR 'installer');
  19.  
  20. # Define templates path
  21. if(!defined('TMPL_PATH'))
  22. {
  23.   define('TMPL_PATH'INSTALLER_PATH DIRECTORY_SEPARATOR 'data' DIRECTORY_SEPARATOR 'templates' DIRECTORY_SEPARATOR);
  24. }
  25.  
  26. # Define base url
  27. define('BASE_URL''http://'$_SERVER['HTTP_HOST'$_SERVER['SCRIPT_NAME']);
  28.  
  29. # Default step
  30. $_POST['step'= isset($_POST['step']$_POST['step''index';
  31. require_once(INSTALLER_PATH '/Installer.php');
  32. $installer new Installer();
  33. $installer->display();
  34.  
  35. # Done!

Documentation generated on Thu, 03 May 2012 15:05:12 +0200 by phpDocumentor 1.4.1