public static function init($console, &$data, &$fail, &$errno, &$error)
 {
     $def = self::getDefaults();
     $text = '';
     $text .= Design::erstelleVersteckteEingabezeile($console, $data['DB']['db_user_override_operator'], 'data[DB][db_user_override_operator]', $def['db_user_override_operator'][1], true);
     echo $text;
     self::$initialized = true;
 }
Esempio n. 2
0
 public static function init($console, &$data, &$fail, &$errno, &$error)
 {
     $def = self::getDefaults();
     $text = '';
     $text .= Design::erstelleVersteckteEingabezeile($console, $data['PL']['pl_details'], 'data[PL][pl_details]', $def['pl_details'][1], true);
     echo $text;
     self::$initialized = true;
 }
Esempio n. 3
0
 public static function init($console, &$data, &$fail, &$errno, &$error)
 {
     foreach (Einstellungen::$masterPassword as $key => $tm) {
         if (trim($tm) != '') {
             echo Design::erstelleVersteckteEingabezeile($console, $tm, 'tmp[' . $key . '][oldMasterPassword]', '', false);
         }
     }
     self::$initialized = true;
 }
 public static function init($console, &$data, &$fail, &$errno, &$error)
 {
     $def = self::getDefaults();
     $text = '';
     $text .= Design::erstelleVersteckteEingabezeile($console, $data['UI']['conf'], 'data[UI][conf]', $def['conf'][1], true);
     $text .= Design::erstelleVersteckteEingabezeile($console, $data['UI']['siteKey'], 'data[UI][siteKey]', $def['siteKey'][1], true);
     echo $text;
     self::$initialized = true;
 }
Esempio n. 5
0
 public static function init($console, &$data, &$fail, &$errno, &$error)
 {
     $def = self::getDefaults();
     $text = '';
     $text .= Design::erstelleVersteckteEingabezeile($console, $data['DB']['db_user_insert'], 'data[DB][db_user_insert]', $def['db_user_insert'][1], true);
     $text .= Design::erstelleVersteckteEingabezeile($console, $data['DB']['db_first_name_insert'], 'data[DB][db_first_name_insert]', $def['db_first_name_insert'][1], true);
     $text .= Design::erstelleVersteckteEingabezeile($console, $data['DB']['db_last_name_insert'], 'data[DB][db_last_name_insert]', $def['db_last_name_insert'][1], true);
     $text .= Design::erstelleVersteckteEingabezeile($console, $data['DB']['db_email_insert'], 'data[DB][db_email_insert]', $def['db_email_insert'][1], true);
     $text .= Design::erstelleVersteckteEingabezeile($console, $data['DB']['db_passwd_insert'], 'data[DB][db_passwd_insert]', $def['db_passwd_insert'][1], true);
     echo $text;
     self::$initialized = true;
 }
Esempio n. 6
0
 public static function showInfoBar(&$data)
 {
     echo "<tr><td class='e'>" . Language::Get('main', 'serverList') . "</td></tr>";
     foreach (Einstellungen::$serverFiles as $serverFile) {
         $file = pathinfo($serverFile)['filename'];
         echo "<tr><td class='v'>" . Design::erstelleSubmitButtonFlach('server', $file, Einstellungen::$selected_server == $file ? '<font color="maroon">' . $file . '</font>' : $file) . "</td></tr>";
     }
     if (Einstellungen::$accessAllowed) {
         echo "<tr><td class='v'>" . Design::erstelleSubmitButtonFlach('actionAddServer', 'OK', Language::Get('main', 'addServer') . ">") . "</td></tr>";
     }
     echo Design::erstelleVersteckteEingabezeile(false, Einstellungen::$selected_server, 'selected_server', null);
 }
Esempio n. 7
0
 public static function init($console, &$data, &$fail, &$errno, &$error)
 {
     $def = self::getDefaults();
     $text = '';
     $text .= Design::erstelleVersteckteEingabezeile($console, $data['PLUG']['plug_install_CORE'], 'data[PLUG][plug_install_CORE]', $def['plug_install_CORE'][1], true);
     $text .= Design::erstelleVersteckteEingabezeile($console, $data['PLUG']['plug_install_OSTEPU-UI'], 'data[PLUG][plug_install_OSTEPU-UI]', $def['plug_install_OSTEPU-UI'][1], true);
     $text .= Design::erstelleVersteckteEingabezeile($console, $data['PLUG']['plug_install_OSTEPU-DB'], 'data[PLUG][plug_install_OSTEPU-DB]', $def['plug_install_OSTEPU-DB'][1], true);
     $text .= Design::erstelleVersteckteEingabezeile($console, $data['PLUG']['plug_install_OSTEPU-FS'], 'data[PLUG][plug_install_OSTEPU-FS]', $def['plug_install_OSTEPU-FS'][1], true);
     $text .= Design::erstelleVersteckteEingabezeile($console, $data['PLUG']['plug_install_OSTEPU-LOGIC'], 'data[PLUG][plug_install_OSTEPU-LOGIC]', $def['plug_install_OSTEPU-LOGIC'][1], true);
     $text .= Design::erstelleVersteckteEingabezeile($console, $data['PLUG']['plug_install_INSTALL'], 'data[PLUG][plug_install_INSTALL]', $def['plug_install_INSTALL'][1], true);
     echo $text;
     self::$initialized = true;
 }
Esempio n. 8
0
 public static function init($console, &$data, &$fail, &$errno, &$error)
 {
     $def = self::getDefaults();
     $text = '';
     $text .= Design::erstelleVersteckteEingabezeile($console, $data['SV']['name'], 'data[SV][name]', $def['name'][1], true);
     $text .= Design::erstelleVersteckteEingabezeile($console, $data['PL']['url'], 'data[PL][url]', $def['url'][1], true);
     $text .= Design::erstelleVersteckteEingabezeile($console, $data['PL']['localPath'], 'data[PL][localPath]', $def['localPath'][1], true);
     $text .= Design::erstelleVersteckteEingabezeile($console, $data['PL']['urlExtern'], 'data[PL][urlExtern]', $def['urlExtern'][1], true);
     $text .= Design::erstelleVersteckteEingabezeile($console, $data['PL']['temp'], 'data[PL][temp]', $def['temp'][1], true);
     $text .= Design::erstelleVersteckteEingabezeile($console, $data['PL']['files'], 'data[PL][files]', $def['files'][1], true);
     echo $text;
     self::$initialized = true;
 }
Esempio n. 9
0
 /**
  * Erzeugt eine Auswahlbox
  *
  * @param bool $console true = Konsolendarstellung, false = HTML
  * @param mixed $variable Der aktuelle Wert des Feldes (null = nicht zugewiesen)
  * @param string $variablenName Der Name des Feldes
  * @param mixed $default Der Standartwert (wenn $variable = null)
  * @param bool $save true = speichere $variable in den Server Einstellungen, false = sonst
  * @return string Der Text der Auswahl
  */
 public static function erstelleAuswahl($console, &$variable, $variablenName, $value, $default, $save = false)
 {
     if ($save == true && $variable == null) {
         $variable = Einstellungen::Get($variablenName, $default);
     }
     if ($save == true && $variable != null) {
         Einstellungen::Set($variablenName, $variable);
     }
     if ($variable == null) {
         $variable = $default;
     }
     $empty = '_';
     $result = Design::erstelleVersteckteEingabezeile($console, $empty, $variablenName, $default, $save);
     $result .= "<input style='width:100%' type='checkbox' name='{$variablenName}' value='" . $value . "'" . ($variable == $value && $variable != null ? "checked" : ($default === null ? '' : ($default === $value ? "checked" : ''))) . ">";
     return $result;
 }