index d513ec88449c5bc5daec1d80cbc952056f37310b..e4be820b13353faaa4034969c3d5317e1f5c3a7e 100644 (file)
--- a/gosa-core/html/setup.php
+++ b/gosa-core/html/setup.php
<?php
-
-/*
- This code is part of GOsa (https://gosa.gonicus.de)
- Copyright (C) 2007 Fabian Hickert
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-*/
-
-
+/*
+ * This code is part of GOsa (http://www.gosa-project.org)
+ * Copyright (C) 2003-2008 GONICUS GmbH
+ *
+ * ID: $$Id$$
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
/* Get standard functions */
require_once ("../include/php_setup.inc");
session::set('DEBUGLEVEL',1);
session::set('errorsAlreadyPosted',array());
-/* Check for js */
-if (!isset($_GET['js']) && !session::is_set('js')){
- echo '<script language="JavaScript" type="text/javascript">';
- echo ' location = "setup.php?js=true";';
- echo '</script>';
-
- session::set('js',FALSE);
-} elseif(isset($_GET['js'])) {
- session::set('js',TRUE);
-}
-
/* Attribute initialization, reset errors */
session::set('errors',"");
session::set('errorsAlreadyPosted',array());
}
}
+/* Check for js */
+if (!isset($_GET['js']) && !session::is_set('js')){
+ echo '<script language="JavaScript" type="text/javascript">';
+ echo ' location = "setup.php?js=true";';
+ echo '</script>';
+
+ session::set('js',FALSE);
+} elseif(isset($_GET['js'])) {
+ session::set('js',TRUE);
+}
+
+
$lang = session::get('lang');
/* Append .UTF-8 to language string if necessary */
if(!preg_match("/utf(-)8$/i",$lang)){