diff --git a/common.inc.php b/common.inc.php index e76316df..ede669ce 100644 --- a/common.inc.php +++ b/common.inc.php @@ -208,7 +208,7 @@ session_start(); //detect the browser first, so we know what icons to use - we store this in the config array as well //even though its not configurable by the fair -if(stristr(get_value_from_array($_SERVER, 'HTTP_USER_AGENT', ""),"MSIE")) +if(stristr($_SERVER['HTTP_USER_AGENT'],"MSIE")) $config['icon_extension']="gif"; else $config['icon_extension']="png"; @@ -375,7 +375,7 @@ function happy($str,$type="normal") function display_messages() { /* Dump any messages in the queue */ - if(is_array(get_value_from_array($_SESSION, 'messages'))) { + if(is_array($_SESSION['messages'])) { foreach($_SESSION['messages'] as $m) echo $m; } $_SESSION['messages'] = array(); @@ -632,7 +632,7 @@ if(substr(getcwd(),-6)=="/admin" || substr(getcwd(),-7)=="/config" || substr(get $fname=substr($_SERVER['REDIRECT_SCRIPT_URL'],strlen($config['SFIABDIRECTORY'])+1); else $fname=substr($_SERVER['PHP_SELF'],strlen($config['SFIABDIRECTORY'])+1); - echo "