Skip to content
Snippets Groups Projects
index.php 2.23 KiB
Newer Older
  • Learn to ignore specific revisions
  • SNA's avatar
    SNA committed
    <?php
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
    /*
    
    lgi's avatar
    lgi committed
    *   Copyright 2012-2017 Maarch
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
    *
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
    *   This file is part of Maarch Framework.
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
    *
    *   Maarch Framework is free software: you can redistribute it and/or modify
    *   it under the terms of the GNU General Public License as published by
    *   the Free Software Foundation, either version 3 of the License, or
    *   (at your option) any later version.
    *
    *   Maarch Framework is distributed in the hope that it will be useful,
    *   but WITHOUT ANY WARRANTY; without even the implied warranty of
    *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    *   GNU General Public License for more details.
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
    *   You should have received a copy of the GNU General Public License
    *   along with Maarch Framework.  If not, see <http://www.gnu.org/licenses/>.
    */
    
    
    /****************************************************************************/
    /*                                                                          */
    /*                                                                          */
    /*               THIS PAGE CAN NOT BE OVERWRITTEN IN A CUSTOM         	    */
    /*                                                                          */
    /*                                                                          */
    /* **************************************************************************/
    
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
    /**
    * @brief Maarch root file
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
    * @file
    * @author Laurent Giovannoni <dev@maarch.org>
    * @date $date$
    * @version $Revision$
    * @ingroup core
    
    SNA's avatar
    SNA committed
    
    
    require_once('core/class/class_functions.php');
    include_once('core/init.php');
    require_once('core/class/class_core_tools.php');
    
    $func = new functions();
    
    SNA's avatar
    SNA committed
    $core = new core_tools();
    $_SESSION['custom_override_id'] = $core->get_custom_id();
    
    /**** retrieve HTTP_REQUEST FROM SSO ****/
    $_SESSION['HTTP_REQUEST'] = $_REQUEST;
    
    if (!file_exists('installed.lck') && is_dir('install')) {
    
        header('location: install/index.php');
        exit;
    }
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
    if (isset($_GET['origin']) && $_GET['origin'] == 'scan') {
    
        header('location: apps/'.$_SESSION['businessapps'][0]['appid'].'/reopen.php');
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
    } else {
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
        $_SESSION['config']['app_id'] = $_SESSION['businessapps'][0]['appid'];
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
        header('location: apps/'.$_SESSION['config']['app_id']
            . '/index.php?display=true&page=login');
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed