File tree Expand file tree Collapse file tree 8 files changed +21
-7
lines changed
Expand file tree Collapse file tree 8 files changed +21
-7
lines changed Original file line number Diff line number Diff line change 8080 send_email ($ to , $ subject , $ mailtext , $ from );
8181 }
8282 if (empty ($ _SESSION ['error_msg ' ])) {
83+ exec (VESTA_CMD ."v-list-sys-config json " , $ output , $ return_var );
84+ $ sys = json_decode (implode ('' , $ output ), true );
85+ unset($ output );
86+
87+ list ($ http_host , $ port ) = explode (': ' , $ _SERVER ["HTTP_HOST " ] . ": " );
88+ if ($ _POST ['v_host ' ] != 'localhost ' ) $ http_host = $ _POST ['v_host ' ];
89+ if ($ _POST ['v_type ' ] == 'mysql ' ) $ db_admin = "phpMyAdmin " ;
90+ if ($ _POST ['v_type ' ] == 'mysql ' ) $ db_admin_link = "http:// " .$ http_host ."/phpmyadmin/ " ;
91+ if (($ _POST ['v_type ' ] == 'mysql ' ) && (!empty ($ sys ['config ' ]['DB_PMA_URL ' ]))) $ db_admin_link = $ sys ['config ' ]['DB_PMA_URL ' ];
92+ if ($ _POST ['v_type ' ] == 'pgsql ' ) $ db_admin = "phpPgAdmin " ;
93+ if ($ _POST ['v_type ' ] == 'pgsql ' ) $ db_admin_link = "http:// " .$ http_host ."/phppgadmin/ " ;
94+ if (($ _POST ['v_type ' ] == 'pgsql ' ) && (!empty ($ sys ['config ' ]['DB_PGA_URL ' ]))) $ db_admin_link = $ sys ['config ' ]['DB_PGA_URL ' ];
95+
8396 $ _SESSION ['ok_msg ' ] = __ ('DATABASE_CREATED_OK ' ,$ user ."_ " .$ _POST ['v_database ' ],$ user ."_ " .$ _POST ['v_database ' ]);
97+ $ _SESSION ['ok_msg ' ] .= " / <a href= " .$ db_admin_link ."> " . __ ('open %s ' ,$ db_admin ) . "</a> " ;
8498 unset($ v_database );
8599 unset($ v_dbuser );
86100 unset($ v_password );
Original file line number Diff line number Diff line change 347347 'DNS_RECORD_CREATED_OK ' => 'Záznam <b>%s.%s</b> byl úspěšně vytvořen. ' ,
348348 'MAIL_DOMAIN_CREATED_OK ' => 'Mail doména <a href="/list/mail/?domain=%s"><b>%s</b></a> byla úspěšně vytvořena. ' ,
349349 'MAIL_ACCOUNT_CREATED_OK ' => 'Mail účet <a href="/edit/mail/?account=%s&domain=%s"><b>%s@%s</b></a> byl úspěšně vytvořen ' ,
350- 'DATABASE_CREATED_OK ' => 'Databáze <a href="/edit/db/?database=%s"><b>%s</b></a> byla úspěšně vytvořena. ' ,
350+ 'DATABASE_CREATED_OK ' => 'Databáze <a href="/edit/db/?database=%s"><b>%s</b></a> byla úspěšně vytvořena ' ,
351351 'CRON_CREATED_OK ' => 'Cron job byl úspěšně vytvořen. ' ,
352352 'IP_CREATED_OK ' => 'IP adresa <a href="/edit/ip/?ip=%s"><b>%s</b></a> byla úspěšně vytvořena. ' ,
353353 'PACKAGE_CREATED_OK ' => 'Package <a href="/edit/package/?package=%s"><b>%s</b></a> byl úspěšně vytvořen. ' ,
Original file line number Diff line number Diff line change 347347 'DNS_RECORD_CREATED_OK ' => 'Record <b>%s.%s</b> has been created successfully. ' ,
348348 'MAIL_DOMAIN_CREATED_OK ' => 'Mail domain <a href="/list/mail/?domain=%s"><b>%s</b></a> has been created successfully. ' ,
349349 'MAIL_ACCOUNT_CREATED_OK ' => 'Mail account <a href="/edit/mail/?account=%s&domain=%s"><b>%s@%s</b></a> has been created successfully ' ,
350- 'DATABASE_CREATED_OK ' => 'Database <a href="/edit/db/?database=%s"><b>%s</b></a> has been created successfully. ' ,
350+ 'DATABASE_CREATED_OK ' => 'Database <a href="/edit/db/?database=%s"><b>%s</b></a> has been created successfully ' ,
351351 'CRON_CREATED_OK ' => 'Cron job has been created successfully. ' ,
352352 'IP_CREATED_OK ' => 'IP address <a href="/edit/ip/?ip=%s"><b>%s</b></a> has been created successfully. ' ,
353353 'PACKAGE_CREATED_OK ' => 'Package <a href="/edit/package/?package=%s"><b>%s</b></a> has been created successfully. ' ,
Original file line number Diff line number Diff line change 346346 'DNS_RECORD_CREATED_OK ' => 'Registro <b>%s.%s</b> ha sido creado correctamente. ' ,
347347 'MAIL_DOMAIN_CREATED_OK ' => 'Dominio de correo <a href="/list/mail/?domain=%s"><b>%s</b></a> ha sido creado correctamente. ' ,
348348 'MAIL_ACCOUNT_CREATED_OK ' => 'Cuenta de correo <a href="/edit/mail/?account=%s&domain=%s"><b>%s@%s</b></a> ha sido creada correctamente ' ,
349- 'DATABASE_CREATED_OK ' => 'Base de datos <a href="/edit/db/?database=%s"><b>%s</b></a> ha sido creada correctamente. ' ,
349+ 'DATABASE_CREATED_OK ' => 'Base de datos <a href="/edit/db/?database=%s"><b>%s</b></a> ha sido creada correctamente ' ,
350350 'CRON_CREATED_OK ' => 'Trabajo en Cron ha sido creado correctamente. ' ,
351351 'IP_CREATED_OK ' => 'Dirección IP <a href="/edit/ip/?ip=%s"><b>%s</b></a> ha sido creada correctamente. ' ,
352352 'PACKAGE_CREATED_OK ' => 'Plan <a href="/edit/package/?package=%s"><b>%s</b></a> ha sido creado correctamente. ' ,
Original file line number Diff line number Diff line change 346346 'DNS_RECORD_CREATED_OK ' => 'Registro <b>%s.%s</b> criado com sucesso. ' ,
347347 'MAIL_DOMAIN_CREATED_OK ' => 'Domínio de Email <a href="/list/mail/?domain=%s"><b>%s</b></a> criado com sucesso. ' ,
348348 'MAIL_ACCOUNT_CREATED_OK ' => 'Conta de Email <a href="/edit/mail/?account=%s&domain=%s"><b>%s@%s</b></a> criado com sucesso ' ,
349- 'DATABASE_CREATED_OK ' => 'Banco de dados <a href="/edit/db/?database=%s"><b>%s</b></a> criado com sucesso. ' ,
349+ 'DATABASE_CREATED_OK ' => 'Banco de dados <a href="/edit/db/?database=%s"><b>%s</b></a> criado com sucesso ' ,
350350 'CRON_CREATED_OK ' => 'Tarefa do Cron adicionada com sucesso. ' ,
351351 'IP_CREATED_OK ' => 'Endereço IP <a href="/edit/ip/?ip=%s"><b>%s</b></a> criado com sucesso. ' ,
352352 'PACKAGE_CREATED_OK ' => 'Pacote <a href="/edit/package/?package=%s"><b>%s</b></a> criado com sucesso. ' ,
Original file line number Diff line number Diff line change 348348 'DNS_RECORD_CREATED_OK ' => 'Înregistrare <b>%s.%s</b> a fost creată cu succes. ' ,
349349 'MAIL_DOMAIN_CREATED_OK ' => 'Domeniu <a href="/list/mail/?domain=%s"><b>%s</b></a> a fost creat cu succes. ' ,
350350 'MAIL_ACCOUNT_CREATED_OK ' => 'Contul de poștă <a href="/edit/mail/?account=%s&domain=%s"><b>%s@%s</b></a> a fost creat cu succes ' ,
351- 'DATABASE_CREATED_OK ' => 'Baza de date <a href="/edit/db/?database=%s"><b>%s</b></a> a fost creată cu succes. ' ,
351+ 'DATABASE_CREATED_OK ' => 'Baza de date <a href="/edit/db/?database=%s"><b>%s</b></a> a fost creată cu succes ' ,
352352 'CRON_CREATED_OK ' => 'Sarcina a fost creată cu succes. ' ,
353353 'IP_CREATED_OK ' => '"IP adresa <a href="/edit/ip/?ip=%s"><b>%s</b></a> a fost creată cu succes. ' ,
354354 'PACKAGE_CREATED_OK ' => 'Pachet <a href="/edit/package/?package=%s"><b>%s</b></a> a fost creat cu succes. ' ,
Original file line number Diff line number Diff line change 348348 'DNS_RECORD_CREATED_OK ' => 'Запись <b>%s.%s</b> успешно создана. ' ,
349349 'MAIL_DOMAIN_CREATED_OK ' => 'Домен <a href="/list/mail/?domain=%s"><b>%s</b></a> успешно создан. ' ,
350350 'MAIL_ACCOUNT_CREATED_OK ' => 'Аккаунт <a href="/edit/mail/?account=%s&domain=%s"><b>%s@%s</b></a> успешно создан ' ,
351- 'DATABASE_CREATED_OK ' => 'База данных <a href="/edit/db/?database=%s"><b>%s</b></a> успешно создана. ' ,
351+ 'DATABASE_CREATED_OK ' => 'База данных <a href="/edit/db/?database=%s"><b>%s</b></a> успешно создана ' ,
352352 'CRON_CREATED_OK ' => 'Задание успешно создано ' ,
353353 'IP_CREATED_OK ' => '"IP адрес <a href="/edit/ip/?ip=%s"><b>%s</b></a> успешно создан. ' ,
354354 'PACKAGE_CREATED_OK ' => 'Пакет <a href="/edit/package/?package=%s"><b>%s</b></a> успешно создан. ' ,
Original file line number Diff line number Diff line change 348348 'DNS_RECORD_CREATED_OK ' => 'запис <b>%s.%s</b> успішно створено. ' ,
349349 'MAIL_DOMAIN_CREATED_OK ' => 'Домен <a href="/list/mail/?domain=%s"><b>%s</b></a> успішно створено. ' ,
350350 'MAIL_ACCOUNT_CREATED_OK ' => 'Аккаунт <a href="/edit/mail/?account=%s&domain=%s"><b>%s@%s</b></a> успішно створено ' ,
351- 'DATABASE_CREATED_OK ' => 'База даних <a href="/edit/db/?database=%s"><b>%s</b></a> успішно створена. ' ,
351+ 'DATABASE_CREATED_OK ' => 'База даних <a href="/edit/db/?database=%s"><b>%s</b></a> успішно створена ' ,
352352 'CRON_CREATED_OK ' => 'Завдання успішно додано ' ,
353353 'IP_CREATED_OK ' => '"IP адреса <a href="/edit/ip/?ip=%s"><b>%s</b></a> успішно створена. ' ,
354354 'PACKAGE_CREATED_OK ' => 'Пакет <a href="/edit/package/?package=%s"><b>%s</b></a> успішно створений. ' ,
You can’t perform that action at this time.
0 commit comments