diff --git a/www/setup/setup.php b/www/setup/setup.php index 00bbf201..be15305e 100644 --- a/www/setup/setup.php +++ b/www/setup/setup.php @@ -136,18 +136,16 @@ { mysqli_set_charset($db,"utf8"); mysqli_query($db,"SET SESSION SQL_MODE :=''"); - //mysql_real_escape_string($import); - $import = explode (";", $import); + //mysqli_real_escape_string($db,$import); + + $import = explode (";\n", $import); foreach ($import as $imp){ if ($imp != '' && $imp != ' ' && trim($imp) != ''){ - mysqli_query($db,$imp); - - - } } + if(isset($_POST['BeispielTpl']) && $_POST['BeispielTpl']) mysqli_query($db, "INSERT INTO `user` (`id`, `username`, `password`, `repassword`, `description`, `settings`, `parentuser`, `activ`, `type`, `adresse`, `fehllogins`, `standarddrucker`, `firma`, `logdatei`, `startseite`, `hwtoken`, `hwkey`, `hwcounter`, `motppin`, `motpsecret`, `passwordmd5`, `externlogin`, `projekt_bevorzugen`, `email_bevorzugen`, `projekt`, `rfidtag`, `vorlage`, `kalender_passwort`, `kalender_ausblenden`, `kalender_aktiv`, `gpsstechuhr`, `standardetikett`, `standardfax`, `internebezeichnung`, `hwdatablock`) VALUES (3, 'demomitarbeiter', 'pllIX0pw7JU9c', 0, '', 'a:6:{s:16:\"pos_list_projekt\";s:1:\"0\";s:18:\"pos_list_kassierer\";s:1:\"0\";s:22:\"pos_list_kassierername\";s:1:\"0\";s:18:\"pos_list_lkadresse\";s:1:\"0\";s:18:\"lohnabrechnung_von\";s:0:\"\";s:18:\"lohnabrechnung_bis\";s:0:\"\";}', 0, 1, 'standard', 6, 0, 0, 1, '2015-10-26 16:01:23', '', 0, '', 0, '', '', '2ad71933e4b074c4671425c8e6b48021', 0, 0, 1, 0, '', '', '', 0, 0, 0, 0, 0, NULL, ''); @@ -350,13 +348,14 @@ " -xentral Installer -

xentral Installer

+Xenomporio Installer +

Xenomporio Installer

{$html}
+

Xenomporio is free open source software under AGPL-3.0 license, based on Xentral® by Xentral ERP Software GmbH.

"; }