mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-21 13:54:26 -07:00
Updated and improved API respones.
This commit is contained in:
parent
387e6c8e0a
commit
859e65647f
33 changed files with 254 additions and 18 deletions
|
@ -123,13 +123,13 @@ unset($output);
|
|||
unset($db_hosts_tmp1);
|
||||
unset($db_hosts_tmp2);
|
||||
|
||||
$prefixI18N = __('Prefix will be automaticaly added to database name and database user', "<b>".$_SESSION['user']."_</b>");
|
||||
$prefixI18N = __('Prefix will be automaticaly added to database name and database user', "<b>".$user."_</b>");
|
||||
$maxCharLength = __('maximum characters length, including prefix', 16);
|
||||
|
||||
$result = array(
|
||||
'dbHosts' => $db_hosts,
|
||||
'dbTypes' => $db_types,
|
||||
'user' => $_SESSION['user'],
|
||||
'user' => $user,
|
||||
'prefixI18N' => $prefixI18N,
|
||||
'maxCharLength' => $maxCharLength,
|
||||
'error_msg' => $_SESSION['error_msg'],
|
||||
|
|
|
@ -165,8 +165,13 @@ if (empty($_GET['domain'])) {
|
|||
$v_ns8 = str_replace("'", "", $nameservers[7]);
|
||||
unset($output);
|
||||
}
|
||||
|
||||
// render_page($user, $TAB, 'add_dns');
|
||||
} else {
|
||||
// Display body for dns record
|
||||
|
||||
$v_domain = $_GET['domain'];
|
||||
// render_page($user, $TAB, 'add_dns_rec');
|
||||
}
|
||||
|
||||
$result = array(
|
||||
|
|
|
@ -63,6 +63,8 @@ if (!empty($_POST['ok'])) {
|
|||
}
|
||||
}
|
||||
|
||||
// Render
|
||||
// render_page($user, $TAB, 'add_firewall');
|
||||
$result = array(
|
||||
'ok_msg' => $_SESSION['ok_msg'],
|
||||
'error_msg' => $_SESSION['error_msg']
|
||||
|
|
|
@ -195,6 +195,18 @@ if (!empty($_POST['ok_acc'])) {
|
|||
}
|
||||
}
|
||||
|
||||
// Render page
|
||||
if (empty($_GET['domain'])) {
|
||||
// Display body for mail domain
|
||||
|
||||
// render_page($user, $TAB, 'add_mail');
|
||||
} else {
|
||||
// Display body for mail account
|
||||
|
||||
$v_domain = $_GET['domain'];
|
||||
// render_page($user, $TAB, 'add_mail_acc');
|
||||
}
|
||||
|
||||
$result = array(
|
||||
'error_msg' => $_SESSION['error_msg'],
|
||||
'ok_msg' => $_SESSION['ok_msg']
|
||||
|
|
|
@ -200,6 +200,9 @@ if (empty($v_bandwidth)) $v_bandwidth = "'1000'";
|
|||
if (empty($v_ns1)) $v_ns1 = 'ns1.example.ltd';
|
||||
if (empty($v_ns2)) $v_ns2 = 'ns2.example.ltd';
|
||||
|
||||
// Render page
|
||||
// render_page($user, $TAB, 'add_package');
|
||||
|
||||
$result = array(
|
||||
'web_system' => $_SESSION['WEB_SYSTEM'],
|
||||
'web_templates' => $web_templates,
|
||||
|
|
|
@ -360,6 +360,12 @@ $stats = json_decode(implode('', $output), true);
|
|||
unset($output);
|
||||
|
||||
$result = array(
|
||||
'prefix' => __('Prefix will be automaticaly added to username',$user."_"),
|
||||
'ftp_pre_path' => $v_ftp_user_prepath,
|
||||
'ftp_email' => $v_ftp_email,
|
||||
'stats' => $stats,
|
||||
'proxy_ext' => 'jpeg, jpg, png, gif, bmp, ico, svg, tif, tiff, css, js, htm, html, ttf, otf, webp, woff, txt, csv, rtf, doc, docx, xls, xlsx, ppt, pptx, odf, odp, ods, odt, pdf, psd, ai, eot, eps, ps, zip, tar, tgz, gz, rar, bz2, 7z, aac, m4a, mp3, mp4, ogg, wav, wma, 3gp, avi, flv, m4v, mkv, mov, mp4, mpeg, mpg, wmv, exe, iso, dmg, swf',
|
||||
'ips' => $ips,
|
||||
'error_msg' => $_SESSION['error_msg'],
|
||||
'ok_msg' => $_SESSION['ok_msg']
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue