packages/ssoinabox-webui/root/usr/local/share/ssoinabox/htdocs/includes/starthere.php
changeset 0 3906ca745819
child 3 a044870a9d3d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/packages/ssoinabox-webui/root/usr/local/share/ssoinabox/htdocs/includes/starthere.php	Tue Jan 08 23:13:29 2013 -0500
@@ -0,0 +1,22 @@
+<?php
+
+// fix up REMOTE_USER for PHP FPM (FCGI) environment
+if ( isset($_SERVER['REDIRECT_REMOTE_USER']) && !isset($_SERVER['REMOTE_USER']) )
+	$_SERVER['REMOTE_USER'] =& $_SERVER['REDIRECT_REMOTE_USER'];
+
+// define root directory
+define('ACCOUNTS', dirname(dirname(__FILE__)) . '/');
+
+// include required files
+require_once(ACCOUNTS . 'includes/functions.php');
+load_credentials();
+require_once(ACCOUNTS . 'includes/smarty/Smarty.class.php');
+require_once(ACCOUNTS . 'includes/template-wrapper.php');
+require_once(ACCOUNTS . 'includes/ldap.php');
+require_once(ACCOUNTS . 'includes/kadm5.php');
+require_once(ACCOUNTS . 'includes/users.php');
+
+session_start();
+
+if ( !isset($_SESSION['messages']) )
+	$_SESSION['messages'] = array();