public static function show($console, $result, $data) { $text = ''; $text .= Design::erstelleBeschreibung($console, Language::Get('createSuperAdmin', 'description')); if (!$console) { $text .= Design::erstelleZeile($console, Language::Get('createSuperAdmin', 'db_user_insert'), 'e', Design::erstelleEingabezeile($console, $data['DB']['db_user_insert'], 'data[DB][db_user_insert]', 'root'), 'v'); $text .= Design::erstelleZeile($console, Language::Get('createSuperAdmin', 'db_passwd_insert'), 'e', Design::erstellePasswortzeile($console, $data['DB']['db_passwd_insert'], 'data[DB][db_passwd_insert]', ''), 'v'); $text .= Design::erstelleZeile($console, Language::Get('createSuperAdmin', 'db_first_name_insert'), 'e', Design::erstelleEingabezeile($console, $data['DB']['db_first_name_insert'], 'data[DB][db_first_name_insert]', ''), 'v'); $text .= Design::erstelleZeile($console, Language::Get('createSuperAdmin', 'db_last_name_insert'), 'e', Design::erstelleEingabezeile($console, $data['DB']['db_last_name_insert'], 'data[DB][db_last_name_insert]', ''), 'v'); $text .= Design::erstelleZeile($console, Language::Get('createSuperAdmin', 'db_email_insert'), 'e', Design::erstelleEingabezeile($console, $data['DB']['db_email_insert'], 'data[DB][db_email_insert]', ''), 'v', Design::erstelleSubmitButton(self::$onEvents['install']['event'][0], Language::Get('main', 'create')), 'h'); } if (isset($result[self::$onEvents['install']['name']]) && $result[self::$onEvents['install']['name']] != null) { $result = $result[self::$onEvents['install']['name']]; } else { $result = array('content' => null, 'fail' => false, 'errno' => null, 'error' => null); } $fail = $result['fail']; $error = $result['error']; $errno = $result['errno']; $content = $result['content']; if (self::$installed) { $text .= Design::erstelleInstallationszeile($console, $fail, $errno, $error); } echo Design::erstelleBlock($console, Language::Get('createSuperAdmin', 'title'), $text); }
public static function show($console, $result, $data) { $text = ''; if (!$console) { $text .= Design::erstelleBeschreibung($console, Language::Get('database_informations', 'description')); $text .= Design::erstelleZeile($console, Language::Get('database_informations', 'db_path'), 'e', Design::erstelleEingabezeile($console, $data['DB']['db_path'], 'data[DB][db_path]', 'localhost', true), 'v'); $text .= Design::erstelleZeile($console, Language::Get('database_informations', 'db_name'), 'e', Design::erstelleEingabezeile($console, $data['DB']['db_name'], 'data[DB][db_name]', 'uebungsplattform', true), 'v'); echo Design::erstelleBlock($console, Language::Get('database_informations', 'title'), $text); } $text = ''; if (!$console) { $text .= "<tr><td colspan='2'>" . Language::Get('databaseAdmin', 'description') . "</td></tr>"; $text .= Design::erstelleZeile($console, Language::Get('databaseAdmin', 'db_user'), 'e', Design::erstelleEingabezeile($console, $data['DB']['db_user'], 'data[DB][db_user]', 'root', true), 'v'); $text .= Design::erstelleZeile($console, Language::Get('databaseAdmin', 'db_passwd'), 'e', Design::erstellePasswortzeile($console, $data['DB']['db_passwd'], 'data[DB][db_passwd]', '', true), 'v'); echo Design::erstelleBlock($console, Language::Get('databaseAdmin', 'title'), $text); } $text = ''; if (!$console) { $text .= "<tr><td colspan='2'>" . Language::Get('databasePlatformUser', 'description') . "</td></tr>"; $text .= Design::erstelleZeile($console, Language::Get('databasePlatformUser', 'db_user_operator'), 'e', Design::erstelleEingabezeile($console, $data['DB']['db_user_operator'], 'data[DB][db_user_operator]', 'DBOperator', true), 'v'); $text .= Design::erstelleZeile($console, Language::Get('databasePlatformUser', 'db_passwd_operator'), 'e', Design::erstellePasswortzeile($console, $data['DB']['db_passwd_operator'], 'data[DB][db_passwd_operator]', '', true), 'v'); echo Design::erstelleBlock($console, Language::Get('databasePlatformUser', 'title'), $text); } return null; }
public static function showInfoBar(&$data) { // master-Passwort abfragen echo "<tr><td class='e'>" . Language::Get('main', 'masterPassword') . "</td></tr>"; $serverHash = md5(Einstellungen::$selected_server); echo "<tr><td class='v'>" . Design::erstellePasswortzeile(false, Einstellungen::$masterPassword[$serverHash], 'tmp[' . $serverHash . '][masterPassword]', Einstellungen::$masterPassword[$serverHash]) . "</td></tr>"; if (!Einstellungen::$accessAllowed) { echo "<tr><td class='v'>" . Design::erstelleSubmitButtonFlach('login', '1', Language::Get('main', 'getAccess')) . "</td></tr>"; } else { if (trim(Einstellungen::$masterPassword[$serverHash]) == '') { echo "<tr><td class='error_light'>" . Language::Get('main', 'emptyMasterPassword') . "</td></tr>"; } echo "<tr><td class='v'>" . Design::erstelleSubmitButtonFlach('changeMasterPassword', '1', Language::Get('main', 'changeMasterPassword') . ">") . "</td></tr>"; } }
public static function show($console, $result, $data) { $text = ''; if (!$console) { $text .= Design::erstelleBeschreibung($console, Language::Get('access', 'description')); $text .= Design::erstelleZeile($console, Language::Get('access', 'local'), 'e', Design::erstelleGruppenAuswahl($console, $data['ZV']['zv_type'], 'data[ZV][zv_type]', 'local', 'local', true), 'v'); $text .= Design::erstelleZeile($console, ' ', '', '', ''); $text .= Design::erstelleZeile($console, Language::Get('access', 'ssh'), 'e', Design::erstelleGruppenAuswahl($console, $data['ZV']['zv_type'], 'data[ZV][zv_type]', 'ssh', null, true), 'v'); $text .= Design::erstelleZeile($console, Language::Get('access', 'username'), 'e', Design::erstelleEingabezeile($console, $data['ZV']['zv_ssh_login'], 'data[ZV][zv_ssh_login]', 'root'), 'v'); $text .= Design::erstelleZeile($console, Language::Get('access', 'address'), 'e', Design::erstelleEingabezeile($console, $data['ZV']['zv_ssh_address'], 'data[ZV][zv_ssh_address]', 'localhost'), 'v'); $text .= Design::erstelleZeile($console, Language::Get('access', 'password'), 'e', Design::erstellePasswortzeile($console, $data['ZV']['zv_ssh_password'], 'data[ZV][zv_ssh_password]', ''), 'v', Design::erstelleGruppenAuswahl($console, $data['ZV']['zv_ssh_auth_type'], 'data[ZV][zv_ssh_auth_type]', 'passwd', 'passwd', true), 'h'); $text .= Design::erstelleZeile($console, Language::Get('access', 'keyFile'), 'e', Design::erstelleEingabezeile($console, $data['ZV']['zv_ssh_key_file'], 'data[ZV][zv_ssh_key_file]', '/var/public.ppk'), 'v', Design::erstelleGruppenAuswahl($console, $data['ZV']['zv_ssh_auth_type'], 'data[ZV][zv_ssh_auth_type]', 'keyFile', null, true), 'h'); echo Design::erstelleBlock($console, Language::Get('access', 'title'), $text); } return null; }