Code

Updated todo
[gosa.git] / html / setup.php
index 200edac1a4d413cf6d34b1730260686479109cef..787d709dfd5de0fa7832cda4f74e80aa401bdcc7 100644 (file)
 session_start();
 $_SESSION['DEBUGLEVEL']= 1;
 
+
+if (!isset($_GET['js']) && !isset($_SESSION['js'])){
+  echo '<script language="JavaScript" type="text/javascript">';
+  echo '  location = "index.php?js=true";';
+  echo '</script>';
+
+  $_SESSION['js']= FALSE;
+} else {
+  $_SESSION['js']= TRUE;
+}
+
 /* Load required includes */
 require_once ("../include/php_setup.inc");
 require_once ("functions.inc");
@@ -72,7 +83,7 @@ $smarty->compile_dir= '/var/spool/gosa';
 
 /* Check for compile directory */
 if (!(is_dir($smarty->compile_dir) && is_writable($smarty->compile_dir))){
-  print_red(_("Directory '%s' specified as smarty compile directory is not accessable, check existence and rigths of this directory!"), $smarty->compile_dir);
+  print_red(_("Directory '%s' specified as smarty compile directory is not accessible, please check existence and rights of this directory!"), $smarty->compile_dir);
   echo $_SESSION['errors'];
   exit();
 }