Feature #1337 check javascript and cookies before login

skala
Juan Carlos Raña 14 years ago
parent 4bbd074156
commit e866b596e2
  1. 14
      index.php

@ -152,6 +152,20 @@ Display::display_header($header_title);
echo '<div id="content" class="maincontent">';
//check if javascript is enabled
echo '<noscript>';
echo Display::display_error_message(get_lang("NoJavascript"));
echo '</noscript>';
//check if cookies are enabled
?>
<script language="JavaScript">
if(navigator.cookieEnabled==false){
document.writeln('<?php Display::display_error_message(get_lang("NoCookies")); ?>');
}
</script>
<?php
// Plugins for loginpage_main AND campushomepage_main.
if (!api_get_user_id()) {
api_plugin('loginpage_main');

Loading…
Cancel
Save