diff --git a/committee.inc.php b/committee.inc.php
index 74578d5..0368f02 100644
--- a/committee.inc.php
+++ b/committee.inc.php
@@ -1,12 +1,14 @@
+include_once("helper.inc.php");
+
function committee_auth_has_access($access="")
{
switch($access) {
- case 'config': return ($_SESSION['access_config'] == 'yes') ? true : false;
- case 'admin': return ($_SESSION['access_admin'] == 'yes') ? true : false;
- case 'super': return ($_SESSION['access_super'] == 'yes') ? true : false;
+ case 'config': return (get_value_from_array($_SESSION, 'access_config') == 'yes') ? true : false;
+ case 'admin': return (get_value_from_array($_SESSION, 'access_admin') == 'yes') ? true : false;
+ case 'super': return (get_value_from_array($_SESSION, 'access_super') == 'yes') ? true : false;
}
return false;
diff --git a/common.inc.php b/common.inc.php
index 5ec4de9..0838359 100644
--- a/common.inc.php
+++ b/common.inc.php
@@ -22,6 +22,7 @@
*/
?>
+include_once("helper.inc.php");
//////echo phpinfo();
header("Content-Type: text/html; charset=utf8");
@@ -195,8 +196,6 @@ require_once("theme/{$config['theme_icons']}/icons.php");
require_once("committee.inc.php");
-
-
if($config['SFIABDIRECTORY'] == '') {
session_name("SFIABSESSID");
session_set_cookie_params(0,'/');
@@ -244,10 +243,10 @@ if(!$_SESSION['lang'])
//only allow debug to get set if we're using a development version (odd numbered ending)
if(substr($config['version'], -1) % 2 != 0)
- if($_GET['debug']) $_SESSION['debug']=$_GET['debug'];
+ if(get_value_from_array($_GET, 'debug')) $_SESSION['debug']=$_GET['debug'];
//if the user has switched languages, go ahead and switch the session variable
-if($_GET['switchlanguage'])
+if(get_value_from_array($_GET, 'switchlanguage'))
{
//first, make sure its a valid language:
if($config['languages'][$_GET['switchlanguage']])
@@ -518,7 +517,7 @@ if(is_array($nav)) {