forked from science-ation/science-ation
Additional fixes
This commit is contained in:
parent
0655aa8edd
commit
655972636b
@ -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 "</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>";
|
||||
echo "</table>";
|
||||
|
Loading…
x
Reference in New Issue
Block a user