Trying to fix the js cookie validation sorry Juan Carlos if this is broken need your validation... see #3874

skala
Julio Montoya 14 years ago
parent 10121db000
commit 29a6a9c2de
  1. 19
      index.php

@ -38,16 +38,29 @@ $(document).ready(function(){
pause : 10000 pause : 10000
}); });
}); });
</script>'; alert(navigator.cookieEnabled);
if(navigator.cookieEnabled==false){
document.writeln("'.addslashes(Display::display_error_message(get_lang("NoCookies"))).'");
}
</script>
<noscript>
'.addslashes(Display::display_error_message(get_lang("NoJavascript"))).'
</noscript>
';
//@todo add this in the template //@todo add this in the template
//check if javascript is enabled //check if javascript is enabled
/*
echo '<noscript>'; echo '<noscript>';
echo Display::display_error_message(get_lang("NoJavascript")); echo Display::display_error_message(get_lang("NoJavascript"));
echo '</noscript>'; echo '</noscript>';
*/
//check if cookies are enabled //check if cookies are enabled
/*
?> ?>
<script language="JavaScript"> <script language="JavaScript">
if(navigator.cookieEnabled==false){ if(navigator.cookieEnabled==false){
@ -55,7 +68,7 @@ if(navigator.cookieEnabled==false){
} }
</script> </script>
<?php <?php
*/
$controller = new IndexManager($header_title); $controller = new IndexManager($header_title);
//Actions //Actions

Loading…
Cancel
Save