replace stripos by preg_match and fix logic for flash detection

skala
asus 13 years ago
parent 6102cba636
commit 7bc80f9d17
  1. 6
      user_portal.php

@ -229,11 +229,11 @@ else{
//check for flash and message
$sniff_notification = '';
if (stripos($_SESSION['sniff_check_some_activex'],"flash_yes")===0 || stripos($_SESSION['sniff_check_some_plugins'],"flash_yes")===0){
$sniff_notification = Display::return_message(get_lang('NoFlash'), 'warning', true);
if (! preg_match("/flash_yes/", $_SESSION['sniff_check_some_activex']) && ! preg_match("/flash_yes/", $_SESSION['sniff_check_some_plugins'])) {
$sniff_notification = Display::return_message(get_lang('NoFlash'), 'warning', true);
//js verification - To annoying of redirecting every time the page
$controller->tpl->assign('sniff_notification', $sniff_notification);
}
}
//$controller->tpl->assign('hot_courses', $controller->return_hot_courses());

Loading…
Cancel
Save