コード例 #1
0
ファイル: config.php プロジェクト: biggtfish/magixcms
 /**
  * Constructor
  */
 function __construct()
 {
     /**
      * path for reading file config.php.in
      */
     self::$config_in = self::dirConfig() . 'config.php.in';
     /*
      * path for create file config.php
      */
     self::$configfile = self::dirConfig() . 'config.php';
     //
     if (magixcjquery_filter_request::isPost('M_DBDRIVER')) {
         $this->M_DBDRIVER = $_POST['M_DBDRIVER'];
     }
     if (magixcjquery_filter_request::isPost('M_DBHOST')) {
         $this->M_DBHOST = $_POST['M_DBHOST'];
     }
     if (magixcjquery_filter_request::isPost('M_DBUSER')) {
         $this->M_DBUSER = $_POST['M_DBUSER'];
     }
     if (magixcjquery_filter_request::isPost('M_DBPASSWORD')) {
         $this->M_DBPASSWORD = $_POST['M_DBPASSWORD'];
     }
     if (magixcjquery_filter_request::isPost('M_DBNAME')) {
         $this->M_DBNAME = $_POST['M_DBNAME'];
     }
     if (magixcjquery_filter_request::isPost('M_LOG')) {
         $this->M_LOG = $_POST['M_LOG'];
     }
     if (magixcjquery_filter_request::isPost('M_FIREPHP')) {
         $this->M_FIREPHP = $_POST['M_FIREPHP'];
     }
     if (magixcjquery_filter_request::isGet('action')) {
         $this->action = magixcjquery_form_helpersforms::inputClean($_GET['action']);
     }
 }
コード例 #2
0
ファイル: config.php プロジェクト: biggtfish/magixcms
# DISCLAIMER

# Do not edit or add to this file if you wish to upgrade MAGIX CMS to newer
# versions in the future. If you wish to customize MAGIX CMS for your
# needs please refer to http://www.magix-cms.com for more information.
*/
/**
 * MAGIX CMS
 * @category   exec 
 * @package    INSTALL
 * @copyright  MAGIX CMS Copyright (c) 2010 Gerits Aurelien, 
 * http://www.magix-cms.com, magix-cms.com http://www.magix-cjquery.com
 * @license    Dual licensed under the MIT or GPL Version 3 licenses.
 * @version    1.2
 * @author Gérits Aurélien <*****@*****.**>
 * @name install
 *
 */
/**
 * Charge toutes les Classes de l'application
 */
/**
 * Charge toutes les Classes de l'application
 */
require '../lib/mcinstall.php';
/**
 * Autoload Exec install
 */
app_Autoloader::register();
$init = new app_controller_config();
$init->run();