packages/ssoinabox-webui/root/usr/local/share/ssoinabox/htdocs/includes/starthere.php
changeset 0 3906ca745819
child 3 a044870a9d3d
equal deleted inserted replaced
-1:000000000000 0:3906ca745819
       
     1 <?php
       
     2 
       
     3 // fix up REMOTE_USER for PHP FPM (FCGI) environment
       
     4 if ( isset($_SERVER['REDIRECT_REMOTE_USER']) && !isset($_SERVER['REMOTE_USER']) )
       
     5 	$_SERVER['REMOTE_USER'] =& $_SERVER['REDIRECT_REMOTE_USER'];
       
     6 
       
     7 // define root directory
       
     8 define('ACCOUNTS', dirname(dirname(__FILE__)) . '/');
       
     9 
       
    10 // include required files
       
    11 require_once(ACCOUNTS . 'includes/functions.php');
       
    12 load_credentials();
       
    13 require_once(ACCOUNTS . 'includes/smarty/Smarty.class.php');
       
    14 require_once(ACCOUNTS . 'includes/template-wrapper.php');
       
    15 require_once(ACCOUNTS . 'includes/ldap.php');
       
    16 require_once(ACCOUNTS . 'includes/kadm5.php');
       
    17 require_once(ACCOUNTS . 'includes/users.php');
       
    18 
       
    19 session_start();
       
    20 
       
    21 if ( !isset($_SESSION['messages']) )
       
    22 	$_SESSION['messages'] = array();