Additional fixes

This commit is contained in:
Armanveer Gill 2025-01-16 21:57:22 -05:00
parent 0655aa8edd
commit 655972636b

View File

@ -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 //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 //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"; $config['icon_extension']="gif";
else else
$config['icon_extension']="png"; $config['icon_extension']="png";
@ -375,7 +375,7 @@ function happy($str,$type="normal")
function display_messages() function display_messages()
{ {
/* Dump any messages in the queue */ /* 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; foreach($_SESSION['messages'] as $m) echo $m;
} }
$_SESSION['messages'] = array(); $_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); $fname=substr($_SERVER['REDIRECT_SCRIPT_URL'],strlen($config['SFIABDIRECTORY'])+1);
else else
$fname=substr($_SERVER['PHP_SELF'],strlen($config['SFIABDIRECTORY'])+1); $fname=substr($_SERVER['PHP_SELF'],strlen($config['SFIABDIRECTORY'])+1);
echo "</td><td align=\"right\"><a target=\"_sfiabhelp\" href=\"http://www.sfiab.ca/wiki/index.php/Help_$fname\"><img border=\"0\" src=\"".$config['SFIABDIRECTORY']."/images/32/help_science_ation.".$config['icon_extension']."\"></a>"; echo "</td><td align=\"right\"><a target=\"_sfiabhelp\" href=\"http://www.sfiab.ca/wiki/index.php/Help_$fname\"><img border=\"0\" src=\"".$config['SFIABDIRECTORY']."/images/32/help.".$config['icon_extension']."\"></a>";
} }
"</td></tr>"; "</td></tr>";
echo "</table>"; echo "</table>";