Backend changes & some templates' translation

This commit is contained in:
ZonD Eighty 2012-12-27 17:28:16 +04:00
commit dcf849263d
24 changed files with 1136 additions and 1085 deletions

View file

@ -71,7 +71,7 @@ top_panel($user,$TAB);
$v_cmd = $_POST['v_cmd'];
}
if (empty($_SESSION['error_msg'])) {
$_SESSION['ok_msg'] = "OK: changes has been saved.";
$_SESSION['ok_msg'] = _("OK: changes has been saved.");
}
}
}

View file

@ -65,7 +65,7 @@ top_panel($user,$TAB);
unset($output);
}
if (empty($_SESSION['error_msg'])) {
$_SESSION['ok_msg'] = "OK: changes has been saved.";
$_SESSION['ok_msg'] = _('OK: changes has been saved.');
}
}
}

View file

@ -137,7 +137,7 @@ top_panel($user,$TAB);
}
if (empty($_SESSION['error_msg'])) {
$_SESSION['ok_msg'] = "OK: changes has been saved.";
$_SESSION['ok_msg'] = _('OK: changes has been saved.');
}
}
@ -196,7 +196,7 @@ top_panel($user,$TAB);
}
if (empty($_SESSION['error_msg'])) {
$_SESSION['ok_msg'] = "OK: changes has been saved.";
$_SESSION['ok_msg'] = _('OK: changes has been saved.');
}
}

View file

@ -105,7 +105,7 @@ if ($_SESSION['user'] == 'admin') {
}
if (empty($_SESSION['error_msg'])) {
$_SESSION['ok_msg'] = "OK: changes has been saved.";
$_SESSION['ok_msg'] = _('OK: changes has been saved.');
}
}
}

View file

@ -100,7 +100,7 @@ top_panel($user,$TAB);
}
if (empty($_SESSION['error_msg'])) {
$_SESSION['ok_msg'] = "OK: changes has been saved.";
$_SESSION['ok_msg'] = _('OK: changes has been saved.');
}
// DKIM
@ -162,7 +162,7 @@ top_panel($user,$TAB);
}
if (empty($_SESSION['error_msg'])) {
$_SESSION['ok_msg'] = "OK: changes has been saved.";
$_SESSION['ok_msg'] = _('OK: changes has been saved.');
}
}
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/edit_mail.html');
@ -356,7 +356,7 @@ top_panel($user,$TAB);
if (empty($_SESSION['error_msg'])) {
$_SESSION['ok_msg'] = "OK: changes has been saved.";
$_SESSION['ok_msg'] = _('OK: changes has been saved.');
}
}

View file

@ -70,22 +70,22 @@ if ($_SESSION['user'] == 'admin') {
// Action
if (!empty($_POST['save'])) {
// Check input
if (empty($_POST['v_package'])) $errors[] = 'package';
if (empty($_POST['v_template'])) $errors[] = 'template';
if (empty($_POST['v_shell'])) $errrors[] = 'shell';
if (!isset($_POST['v_web_domains'])) $errors[] = 'web domains';
if (!isset($_POST['v_web_aliases'])) $errors[] = 'web aliases';
if (!isset($_POST['v_dns_domains'])) $errors[] = 'dns domains';
if (!isset($_POST['v_dns_records'])) $errors[] = 'dns records';
if (!isset($_POST['v_mail_domains'])) $errors[] = 'mail domains';
if (!isset($_POST['v_mail_accounts'])) $errors[] = 'mail accounts';
if (!isset($_POST['v_databases'])) $errors[] = 'databases';
if (!isset($_POST['v_cron_jobs'])) $errors[] = 'cron jobs';
if (!isset($_POST['v_backups'])) $errors[] = 'backups';
if (!isset($_POST['v_disk_quota'])) $errors[] = 'quota';
if (!isset($_POST['v_bandwidth'])) $errors[] = 'bandwidth';
if (empty($_POST['v_ns1'])) $errors[] = 'ns1';
if (empty($_POST['v_ns2'])) $errors[] = 'ns2';
if (empty($_POST['v_package'])) $errors[] = _('package');
if (empty($_POST['v_template'])) $errors[] = _('template');
if (empty($_POST['v_shell'])) $errrors[] = _('shell');
if (!isset($_POST['v_web_domains'])) $errors[] = _('web domains');
if (!isset($_POST['v_web_aliases'])) $errors[] = _('web aliases');
if (!isset($_POST['v_dns_domains'])) $errors[] = _('dns domains');
if (!isset($_POST['v_dns_records'])) $errors[] = _('dns records');
if (!isset($_POST['v_mail_domains'])) $errors[] = _('mail domains');
if (!isset($_POST['v_mail_accounts'])) $errors[] = _('mail accounts');
if (!isset($_POST['v_databases'])) $errors[] = _('databases');
if (!isset($_POST['v_cron_jobs'])) $errors[] = _('cron jobs');
if (!isset($_POST['v_backups'])) $errors[] = _('backups');
if (!isset($_POST['v_disk_quota'])) $errors[] = _('quota');
if (!isset($_POST['v_bandwidth'])) $errors[] = _('bandwidth');
if (empty($_POST['v_ns1'])) $errors[] = _('ns1');
if (empty($_POST['v_ns2'])) $errors[] = _('ns2');
// Protect input
$v_package = escapeshellarg($_POST['v_package']);
@ -175,7 +175,7 @@ if ($_SESSION['user'] == 'admin') {
}
if (empty($_SESSION['error_msg'])) {
$_SESSION['ok_msg'] = "OK: changes has been saved.";
$_SESSION['ok_msg'] = _('OK: changes has been saved.');
}
}
}

View file

@ -170,7 +170,7 @@ if ($_SESSION['user'] == 'admin') {
}
if (empty($_SESSION['error_msg'])) {
$_SESSION['ok_msg'] = "OK: changes has been saved.";
$_SESSION['ok_msg'] = _('OK: changes has been saved.');
}
}
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/edit_user.html');
@ -263,7 +263,7 @@ if ($_SESSION['user'] == 'admin') {
}
if (empty($_SESSION['error_msg'])) {
$_SESSION['ok_msg'] = "OK: changes has been saved.";
$_SESSION['ok_msg'] = _('OK: changes has been saved.');
}
}
include($_SERVER['DOCUMENT_ROOT'].'/templates/user/edit_user.html');

View file

@ -417,8 +417,8 @@ top_panel($user,$TAB);
$v_stats_password = '';
}
if ((empty($v_stats_user)) && (!empty($_POST['v_stats_auth'])) && (empty($_SESSION['error_msg']))) {
if (empty($_POST['v_stats_user'])) $errors[] = 'stats username';
if (empty($_POST['v_stats_password'])) $errors[] = 'stats password';
if (empty($_POST['v_stats_user'])) $errors[] = _('stats username');
if (empty($_POST['v_stats_password'])) $errors[] = _('stats password');
if (!empty($errors[0])) {
foreach ($errors as $i => $error) {
if ( $i == 0 ) {
@ -442,8 +442,8 @@ top_panel($user,$TAB);
}
}
if ((!empty($v_stats_user)) && (!empty($_POST['v_stats_auth'])) && (empty($_SESSION['error_msg']))) {
if (empty($_POST['v_stats_user'])) $errors[] = 'stats user';
if (empty($_POST['v_stats_password'])) $errors[] = 'stats password';
if (empty($_POST['v_stats_user'])) $errors[] = _('stats user');
if (empty($_POST['v_stats_password'])) $errors[] = _('stats password');
if (!empty($errors[0])) {
foreach ($errors as $i => $error) {
if ( $i == 0 ) {
@ -482,8 +482,8 @@ top_panel($user,$TAB);
$v_ftp_password = '';
}
if ((!empty($v_ftp_user)) && (!empty($_POST['v_ftp'])) && (empty($_SESSION['error_msg']))) {
if (empty($_POST['v_ftp_user'])) $errors[] = 'ftp user';
if (empty($_POST['v_ftp_password'])) $errors[] = 'ftp password';
if (empty($_POST['v_ftp_user'])) $errors[] = _('ftp user');
if (empty($_POST['v_ftp_password'])) $errors[] = _('ftp user password');
if (!empty($errors[0])) {
foreach ($errors as $i => $error) {
if ( $i == 0 ) {
@ -512,8 +512,8 @@ top_panel($user,$TAB);
if ((empty($v_ftp_user)) && (!empty($_POST['v_ftp'])) && (empty($_SESSION['error_msg']))) {
if ((!empty($_POST['v_ftp_email'])) && (!filter_var($_POST['v_ftp_email'], FILTER_VALIDATE_EMAIL))) $_SESSION['error_msg'] = _('Please enter valid email address.');
if (empty($_POST['v_ftp_user'])) $errors[] = 'ftp username';
if (empty($_POST['v_ftp_password'])) $errors[] = 'ftp password';
if (empty($_POST['v_ftp_user'])) $errors[] = 'ftp user';
if (empty($_POST['v_ftp_password'])) $errors[] = 'ftp user password';
if (!empty($errors[0])) {
foreach ($errors as $i => $error) {
if ( $i == 0 ) {
@ -535,14 +535,10 @@ top_panel($user,$TAB);
} else {
if (!empty($_POST['v_ftp_email'])) {
$to = $_POST['v_ftp_email'];
$subject = "FTP login credentials";
$subject = _("FTP login credentials");
$hostname = exec('hostname');
$from = "Vesta Control Panel <noreply@".$hostname.">";
$mailtext .= "Your ftp account has been created successfully and is ready to use.\n\n";
$mailtext .= "hostname: ".$_GET['domain']."\n";
$mailtext .= "username: ".$user."_".$_POST['v_ftp_user']."\n";
$mailtext .= "password: ".$_POST['v_ftp_password']."\n\n";
$mailtext .= "--\nVesta Control Panel\n";
$from = _('MAIL_FROM',$hostname);
$mailtext .= _('FTP_ACCOUNT_READY',$_GET['domain'],$user,$_POST['v_ftp_user'],$_POST['v_ftp_password']);
send_email($to, $subject, $mailtext, $from);
unset($v_ftp_email);
}
@ -574,7 +570,7 @@ top_panel($user,$TAB);
}
if (empty($_SESSION['error_msg'])) {
$_SESSION['ok_msg'] = "OK: changes has been saved.";
$_SESSION['ok_msg'] = _('OK: changes has been saved.');
}
}

View file

@ -1,8 +1,8 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head>
<title>505 &mdash; internal error</title>
<title><?php print _('505');?></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="description" content="internal error"/>
<meta name="description" content="<?php print _('505');?>"/>
<style type="text/css">
body {font-size:14px; color:#777777; font-family:arial; text-align:center; background: black;}
h1 {font-size:180px; color:#99A7AF; margin: 70px 0 0 0;}
@ -17,10 +17,10 @@
</head>
<body>
<h2>An internal error occurred</h2>
<h2><?php print _('An internal error occurred');?></h2>
<img src="/error/vesta.jpg">
<div>
Try start again from <a href="/">home page</a> or go back to <a href="javascript:%20history.go(-1)">previous page</a>.
<?php print _('GO_BACK_LINK');?>
</div>
</body>
</html>

View file

@ -72,11 +72,78 @@ $LANG = array(
'ssl certificate'=>'SSL сертификат',
'ssl key'=>'ключ SSL сертификата',
'stats user password'=>'пароль для доступа к статистике',
'stats username'=>'имя пользователя статистики',
'stats password'=>'пароль пользователя статистики',
'ftp user password'=>'пароль для доступа к FTP',
'ftp user'=>'пользователь FTP',
'FTP login credentials'=>'Данные для доступа к FTP',
'FTP_ACCOUNT_READY'=>"Ваш FTP аккаунт успешно создан и готов к использованию.\n\nХост: %s\nИмя пользователя: %s_%s\nПароль: %s\n\n--\nПанель управления Vesta\n",
'HOSTING_DOMAIN_CREATED_OK'=>'Успешно: хостинг для домена <a href="/edit/web/?domain=%s"><b>%s</b></a> был успешно создан.',
'OK: changes has been saved.'=>'Успешно: изменения были сохранены.',
'FTP login credentials'=>'Данные для доступа к FTP',
'505'=>'505 &mdash; внутренняя ошибка',
'An internal error occurred'=>'Произошла внутренняя ошибка',
'GO_BACK_LINK'=>'Попробуйте вернуться на <a href="/">главную страницу</a> или вернитесь на <a href="javascript:history.go(-1)">предыдущую страницу</a>',
'ERROR: Invalid username or password'=>'Ошибка: Неверный логин или пароль',
'ERROR: Invalid username or code'=>'Ошибка: Неверный логин или код сброса пароля',
'MAIL_RESET_SUBJECT'=>'Password Reset at %s',
'PASSWORD_RESET_REQUEST'=>"Вы недавно запросили смену пароля.\nЧтобы произвести смену пароля, пройдите по этой ссылки:\nhttps://%s/reset/?action=confirm&user=%s&code=%s\n\nВы также можете пойти по ссылке https://%s/reset/?action=code&user=%s и ввести следующий код для сброса пароля:\n%s\n\nЕсли вы не создавали запрос на сброс пароля, пожалуйста проигнорируйте это письмо и примите наши извиниения.\n\n--\nПанель управления Vesta\n",
'ERROR: Passwords not match'=>'Ошибка: Пароли не совпадают',
'Adding Cron Job'=>'Добавление cron задания',
'Minute'=>'Минута',
'Day'=>'День',
'Month'=>'Месяц',
'Day of week'=>'День недели',
'Command'=>'Команда',
'Add'=>'Добавить',
'Back'=>'Назад',
'Adding database'=>'Добавление базы данных',
'DB_PREFIX_WILL_BE_ADDED'=>'Префикс %s будет автоматически добавлен к БД и пользователю БД',
'Database'=>'База данных',
'Username'=>'Имя пользователя',
'Password'=>'Пароль',
'generate'=>'сгенерировать',
'Type'=>'Тип',
'Charset'=>'Кодировка',
'Adding DNS Domain'=>'Добавление доменного имени',
'Domain'=>'Домен',
'IP-Address'=>'IP-адрес',
'Advanced options'=>'Расширенные опции',
'Template'=>'Шаблон',
'Expiration date'=>'Дата окончания делегирования',
'Name servers'=>'Сервера имен',
'Powered by Vesta Control Panel'=>'Работает на Панели Управления Vesta',
'Vesta Control Panel'=>'Панель Управления Vesta',
'Translation by ZonD80'=>'Перевод ZonD80',
'Forgot Password?'=>'Забыли пароль?',
'Log in'=>'Войти',
'Log out'=>'Выйти',
"RESET_NOTICE"=>"Для сброса пароля введите ваше имя пользователя, и мы расскажем, что нужно делать дальше.",
'Submit'=>'Отправить',
'RESET_CODE_SENT'=>'Код сброса пароля выслан на ваш email<br/>Пожалуйста, введите код в располженное ниже поле для продолжения',
'Confirm'=>'Подтвердить',
'New Password'=>'Новый Пароль',
'Confirm Password'=>'Подтверждение Пароля',
'Reset'=>'Сбросить',
'Statistics'=>'Статистика',
'History Log'=>'История изменений',
'Vesta logo'=>'Логотип Vesta',
'USER'=>'ПОЛЬЗОВАТЕЛИ',
'users'=>'пользователи',
'suspended'=>'заблокировано',
'WEB'=>'ХОСТИНГ',
'domains'=>'домены',
'aliases'=>'редиректы',
'DNS'=>'DNS',
'records'=>'записи',
'MAIL'=>'ПОЧТА',
'DB'=>'БД',
'CRON'=>'CRON',
'BACKUP'=>'БЭКАПЫ',
'Packages'=>'Пакеты',
'IP Addresses'=>'IP адреса',
'RRD Graphics'=>'Графики',
'jobs'=>'Задания',
'Reset Code'=>'Код сброса'
);

View file

@ -21,7 +21,7 @@ function _() {
}
// Check user session
if (!isset($_SESSION['user'])) {
if (!isset($_SESSION['user'])&&!defined('NO_AUTH_REQUIRED')) {
$_SESSION['request_uri'] = $_SERVER['REQUEST_URI'];
header("Location: /login/");
exit;

View file

@ -1,6 +1,11 @@
<?php
session_start();
define('NO_AUTH_REQUIRED',true);
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
if (isset($_GET['logout'])) {
session_destroy();
}
@ -26,7 +31,7 @@ if (isset($_SESSION['user'])) {
$command="$cmd"."v-check-user-password ".$v_user." ".$v_password." '".$_SERVER["REMOTE_ADDR"]."'";
exec ($command, $output, $return_var);
if ( $return_var > 0 ) {
$ERROR = "<a class=\"error\">ERROR: Invalid username or password</a>";
$ERROR = "<a class=\"error\">"._('ERROR: Invalid username or password')."</a>";
} else {
$_SESSION['user'] = $_POST['user'];
if ($_POST['user'] == 'root') $_SESSION['user'] = 'admin';

View file

@ -1,4 +1,5 @@
<?php
session_start();
if (!empty($_SESSION['look'])) {

View file

@ -1,23 +1,12 @@
<?php
session_start();
define('NO_AUTH_REQUIRED',true);
$TAB = 'RESET PASSWORD';
//
function send_email($to,$subject,$mailtext,$from) {
$charset = "utf-8";
$to = '<'.$to.'>';
$boundary='--' . md5( uniqid("myboundary") );
$priorities = array( '1 (Highest)', '2 (High)', '3 (Normal)', '4 (Low)', '5 (Lowest)' );
$priority = $priorities[2];
$ctencoding = "8bit";
$sep = chr(13) . chr(10);
$disposition = "inline";
$subject = "=?$charset?B?".base64_encode($subject)."?=";
$header.="From: $from \nX-Priority: $priority\nCC: $cc\n";
$header.="Mime-Version: 1.0\nContent-Type: text/plain; charset=$charset \n";
$header.="Content-Transfer-Encoding: $ctencoding\nX-Mailer: Php/libMailv1.3\n";
$message .= $mailtext;
mail($to, $subject, $message, $header);
}
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
if ((!empty($_POST['user'])) && (empty($_POST['code']))) {
$v_user = escapeshellarg($_POST['user']);
@ -31,21 +20,15 @@ if ((!empty($_POST['user'])) && (empty($_POST['code']))) {
$lname = $data[$user]['LNAME'];
$contact = $data[$user]['CONTACT'];
$to = $data[$user]['CONTACT'];
$subject = 'Password Reset '.date("Y-m-d H:i:s");
$subject = _('MAIL_RESET_SUBJECT',date("Y-m-d H:i:s"));
$hostname = exec('hostname');
$from = "Vesta Control Panel <noreply@".$hostname.">";
$from = _('MAIL_FROM',$hostname);
if (!empty($fname)) {
$mailtext = "Hello ".$fname." ".$lname.",\n";
$mailtext = _('GREETINGS_GORDON_FREEMAN',$fname,$lname);
} else {
$mailtext = "Hello,\n";
$mailtext = _('GREETINGS');
}
$mailtext .= "You recently asked to reset your control panel password. ";
$mailtext .= "To complete your request, please follow this link:\n";
$mailtext .= "https://".$_SERVER['HTTP_HOST']."/reset/?action=confirm&user=".$user."&code=".$rkey."\n\n";
$mailtext .= "Alternately, you may go to https://".$_SERVER['HTTP_HOST']."/reset/?action=code&user=".$user." and enter the following password reset code:\n";
$mailtext .= $rkey."\n\n";
$mailtext .= "If you did not request a new password please ignore this letter and accept our apologies — we didn't intend to disturb you.\n\n";
$mailtext .= "--\nVesta Control Panel\n";
$mailtext .= _('PASSWORD_RESET_REQUEST',$_SERVER['HTTP_HOST'],$user,$rkey,$_SERVER['HTTP_HOST'],$user,$rkey);
if (!empty($rkey)) send_email($to, $subject, $mailtext, $from);
unset($output);
}
@ -68,20 +51,20 @@ if ((!empty($_POST['user'])) && (!empty($_POST['code'])) && (!empty($_POST['pass
$cmd="/usr/bin/sudo /usr/local/vesta/bin/v-change-user-password";
exec ($cmd." ".$v_user." ".$v_password, $output, $return_var);
if ( $return_var > 0 ) {
$ERROR = "<a class=\"error\">ERROR: Internal error</a>";
$ERROR = "<a class=\"error\">"._('An internal error occurred')."</a>";
} else {
$_SESSION['user'] = $_POST['user'];
header("Location: /");
exit;
}
} else {
$ERROR = "<a class=\"error\">ERROR: Invalid username or code</a>";
$ERROR = "<a class=\"error\">"._('ERROR: Invalid username or code')."</a>";
}
} else {
$ERROR = "<a class=\"error\">ERROR: Invalid username or code</a>";
$ERROR = "<a class=\"error\">"._('ERROR: Invalid username or code')."</a>";
}
} else {
$ERROR = "<a class=\"error\">ERROR: Passwords not match</a>";
$ERROR = "<a class=\"error\">"._('ERROR: Passwords not match')."</a>";
}
}

View file

@ -10,7 +10,7 @@
<table class="sub-menu" style="background: white;">
<tr>
<td style="padding: 10px 2px 10px 0;" ><a class="name"><b>Adding Cron Job</b></a>
<td style="padding: 10px 2px 10px 0;" ><a class="name"><b><?php print _('Adding Cron Job');?></b></a>
<?php
if (!empty($_SESSION['error_msg'])) {
echo "<span class=\"vst-error\"> → ".$_SESSION['error_msg']."</span>";
@ -44,7 +44,7 @@
<table class="data-col2" width="600px">
<tr>
<td class="vst-text" style="padding: 10 0 0 2px;">
Minute
<?php print _('Minute');?>
</td>
</tr>
<tr>
@ -54,7 +54,7 @@
</tr>
<tr>
<td class="vst-text" style="padding: 10px 0 0 2px;">
Hour
<?php print _('Hour');?>
</td>
</tr>
<tr>
@ -64,7 +64,7 @@
</tr>
<tr>
<td class="vst-text" style="padding: 10px 0 0 2px;">
Day
<?php print _('Day');?>
</td>
</tr>
<tr>
@ -74,7 +74,7 @@
</tr>
<tr>
<td class="vst-text" style="padding: 10px 0 0 2px;">
Month
<?php print _('Month');?>
</td>
</tr>
<tr>
@ -84,7 +84,7 @@
</tr>
<tr>
<td class="vst-text" style="padding: 10px 0 0 2px;">
Day of Week
<?php print _('Day of week');?>
</td>
</tr>
<tr>
@ -94,7 +94,7 @@
</tr>
<tr>
<td class="vst-text" style="padding: 10px 0 0 2px;">
Command
<?php print _('Command');?>
</td>
</tr>
<tr>
@ -104,8 +104,8 @@
</tr>
<tr>
<td style="padding: 24px 0 0 0;">
<input type="submit" name="ok" value="Add" class="button">
<input type="button" class="button" value="Back" onclick="<?php echo $back ?>">
<input type="submit" name="ok" value="<?php print _('Add');?>" class="button">
<input type="button" class="button" value="<?php print _('Back');?>" onclick="<?php echo $back ?>">
</td>
</tr>
</table>

View file

@ -10,7 +10,7 @@
<table class="sub-menu" style="background: white;">
<tr>
<td style="padding: 10px 2px 10px 0;" ><a class="name"><b>Adding Database</b></a>
<td style="padding: 10px 2px 10px 0;" ><a class="name"><b><?php print _('Adding database');?></b></a>
<?php
if (!empty($_SESSION['error_msg'])) {
echo "<span class=\"vst-error\"> → ".$_SESSION['error_msg']."</span>";
@ -65,12 +65,12 @@
<table class="data-col2" width="600px">
<tr>
<td style="padding: 10 0 0 2px; color:99a7af;" >
Prefix "<?php echo $user."_"; ?>" will be automaticaly added to database name and database user
<?php print _('DB_PREFIX_WILL_BE_ADDED',$user."_");?>
</td>
</tr>
<tr>
<td class="vst-text" style="padding: 10 0 0 2px;">
Database
<?php print _('Database');?>
</td>
</tr>
<tr>
@ -80,7 +80,7 @@
</tr>
<tr>
<td class="vst-text" style="padding: 10px 0 0 2px;">
Username
<?php print _('Username');?>
</td>
</tr>
<tr>
@ -90,7 +90,7 @@
</tr>
<tr>
<td class="vst-text" style="padding: 10px 0 0 2px;">
Password <a href="javascript:randomString();" class="genpass">generate</a>
<?php print _('Password');?> <a href="javascript:randomString();" class="genpass"><?php print _('generate');?></a>
</td>
</tr>
<tr>
@ -100,7 +100,7 @@
</tr>
<tr>
<td class="vst-text" style="padding: 10 0 0 2px;">
Type
<?php print _('Type');?>
</td>
</tr>
<tr>
@ -118,7 +118,7 @@
</tr>
<tr>
<td class="vst-text" style="padding: 10 0 0 2px;">
Charset
<?php print _('Кодировка');?>
</td>
</tr>
<tr>
@ -165,8 +165,8 @@
</tr>
<tr>
<td style="padding: 24px 0 0 0;">
<input type="submit" name="ok" value="Add" class="button">
<input type="button" class="button" value="Back" onclick="<?php echo $back ?>">
<input type="submit" name="ok" value="<?php print _('Add');?>" class="button">
<input type="button" class="button" value="<?php print _('Back');?>" onclick="<?php echo $back ?>">
</td>
</tr>
</table>

View file

@ -10,7 +10,7 @@
<table class="sub-menu" style="background: white;">
<tr>
<td style="padding: 10px 2px 10px 0;" ><a class="name"><b>Adding DNS Domain</b></a>
<td style="padding: 10px 2px 10px 0;" ><a class="name"><b><?php print _('Adding DNS Domain');?></b></a>
<?php
if (!empty($_SESSION['error_msg'])) {
echo "<span class=\"vst-error\"> → ".$_SESSION['error_msg']."</span>";
@ -55,7 +55,7 @@
<table class="data-col2" width="600px">
<tr>
<td class="vst-text" style="padding: 10 0 0 2px;">
Domain
<?php print _('Domain');?>
</td>
</tr>
<tr>
@ -65,7 +65,7 @@
</tr>
<tr>
<td class="vst-text" style="padding: 10px 0 0 2px;">
IP address
<?php print _('IP-address');?>
</td>
</tr>
<tr>
@ -75,7 +75,7 @@
</tr>
<tr>
<td class="vst-text" style="padding: 10px 0 0 2px;">
<a href="javascript:elementHideShow('advtable');" class="vst-advanced">Advanced Options</a>
<a href="javascript:elementHideShow('advtable');" class="vst-advanced"><?php print _('Advanced options');?></a>
</td>
</tr>
<tr>
@ -83,7 +83,7 @@
<table style="display:<?php if (empty($v_adv)) echo 'none';?> ;" id="advtable">
<tr>
<td class="vst-text" style="padding: 10px 0 0 2px;">
Template
<?php print _('Template');?>
</td>
</tr>
<tr>
@ -106,7 +106,7 @@
</tr>
<tr>
<td class="vst-text" style="padding: 10px 0 0 2px;">
Domain Expiriation <span style="padding:0 0 0 6px; font-size: 10pt; color:#555;">(YYYY-MM-DD)</span>
<?php print _('Expiration date');?> <span style="padding:0 0 0 6px; font-size: 10pt; color:#555;">(YYYY-MM-DD)</span>
</td>
</tr>
<tr>
@ -126,7 +126,7 @@
</tr>
<tr>
<td class="vst-text" style="padding: 10px 0 0 2px;">
Name Servers
<?php print _('Name servers');?>
</td>
</tr>
<tr>
@ -154,8 +154,8 @@
</tr>
<tr>
<td style="padding: 24px 0 0 0;">
<input type="submit" name="ok" value="Add" class="button">
<input type="button" class="button" value="Back" onclick="<?php echo $back ?>">
<input type="submit" name="ok" value="<?php print _('Add');?>" class="button">
<input type="button" class="button" value="<?php print _('Back');?>" onclick="<?php echo $back ?>">
</td>
</tr>
</table>

View file

@ -8,68 +8,68 @@
<table class="top">
<tr>
<td width="179px"></td>
<td width="120px"><a class="top-<?php if($TAB == 'PACKAGE' ) echo 's' ?>link" href="/list/package/"><b>Packages</a></b></td>
<td width="120px"><a class="top-<?php if($TAB == 'IP' ) echo 's' ?>link" href="/list/ip/"><b>IP Adresses</a></b></td>
<td width="120px"><a class="top-<?php if($TAB == 'RRD' ) echo 's' ?>link" href="/list/rrd/"><b>RRD Graphics</a></b></td>
<td width="120px"><a class="top-<?php if($TAB == 'STATS' ) echo 's' ?>link" href="/list/stats/"><b>Statistics</a></b></td>
<td width="120px"><a class="top-<?php if($TAB == 'LOG' ) echo 's' ?>link" href="/list/log/"><b>History Log</a></b></td>
<td width="227px" style="padding: 0 24px 0 0; text-align: right;"><b><?php if($user != $_SESSION['user']) echo 'admin / ' ?><?php echo $user ?></b><a class="top-link" style="padding: 0 0 0 6" href="/logout/">Log out</a></td>
<td width="120px"><a class="top-<?php if($TAB == 'PACKAGE' ) echo 's' ?>link" href="/list/package/"><b><?php print _('Packages');?></a></b></td>
<td width="120px"><a class="top-<?php if($TAB == 'IP' ) echo 's' ?>link" href="/list/ip/"><b><?php print _('IP Addresses');?></a></b></td>
<td width="120px"><a class="top-<?php if($TAB == 'RRD' ) echo 's' ?>link" href="/list/rrd/"><b><?php print _('RRD Graphics');?></a></b></td>
<td width="120px"><a class="top-<?php if($TAB == 'STATS' ) echo 's' ?>link" href="/list/stats/"><b><?php print _('Statistics');?></a></b></td>
<td width="120px"><a class="top-<?php if($TAB == 'LOG' ) echo 's' ?>link" href="/list/log/"><b><?php print _('History Log');?></a></b></td>
<td width="227px" style="padding: 0 24px 0 0; text-align: right;"><b><?php if($user != $_SESSION['user']) echo 'admin / ' ?><?php echo $user ?></b><a class="top-link" style="padding: 0 0 0 6" href="/logout/"><?php print _('Log out');?></a></td>
</tr>
</table>
<table class="nav">
<tr>
<td class="logo">
<img src="/images/logo.png" width="124px" height="46px" alt="Vesta logo">
<img src="/images/logo.png" width="124px" height="46px" alt="<?php print _('Vesta logo');?>">
</td>
<td class="nav-<?php if($TAB == 'USER' ) echo 's' ?>block">
<a class="nav-<?php if($TAB == 'USER' ) echo 's' ?>link" href="/list/user/"><b>USER</b></a>
<a class="nav-<?php if($TAB == 'USER' ) echo 's' ?>link" href="/list/user/"><b><?php print _('USER');?></b></a>
<p class="counters">
users: <? echo $panel[$user]['U_USERS'] ?><br>
suspended: <? echo $panel[$user]['SUSPENDED_USERS']?>
<?php print _('users');?>: <? echo $panel[$user]['U_USERS'] ?><br>
<?php print _('suspended');?>: <? echo $panel[$user]['SUSPENDED_USERS']?>
</p>
</td>
<td class="nav-<?php if($TAB == 'WEB' ) echo 's' ?>block">
<a class="nav-<?php if($TAB == 'WEB' ) echo 's' ?>link" href="/list/web/"><b>WEB</b></a>
<a class="nav-<?php if($TAB == 'WEB' ) echo 's' ?>link" href="/list/web/"><b><?php print _('WEB');?></b></a>
<p class="counters">
domains: <? echo $panel[$user]['U_WEB_DOMAINS']?><br>
aliases: <? echo $panel[$user]['U_WEB_ALIASES']?><br>
suspended: <? echo $panel[$user]['SUSPENDED_WEB']?>
<?php print _('domains');?>: <? echo $panel[$user]['U_WEB_DOMAINS']?><br>
<?php print _('aliases');?>: <? echo $panel[$user]['U_WEB_ALIASES']?><br>
<?php print _('suspended');?>: <? echo $panel[$user]['SUSPENDED_WEB']?>
</p>
</td>
<td class="nav-<?php if($TAB == 'DNS' ) echo 's' ?>block">
<a class="nav-<?php if($TAB == 'DNS' ) echo 's' ?>link" href="/list/dns/"><b>DNS</b></a>
<a class="nav-<?php if($TAB == 'DNS' ) echo 's' ?>link" href="/list/dns/"><b><?php print _('DNS');?></b></a>
<p class="counters">
domains: <? echo $panel[$user]['U_DNS_DOMAINS']?><br>
records: <? echo $panel[$user]['U_DNS_RECORDS']?><br>
suspended: <? echo $panel[$user]['SUSPENDED_DNS']?>
<?php print _('domains');?>: <? echo $panel[$user]['U_DNS_DOMAINS']?><br>
<?php print _('records');?>: <? echo $panel[$user]['U_DNS_RECORDS']?><br>
<?php print _('suspended');?>: <? echo $panel[$user]['SUSPENDED_DNS']?>
</p>
</td>
<td class="nav-<?php if($TAB == 'MAIL' ) echo 's' ?>block">
<a class="nav-<?php if($TAB == 'MAIL' ) echo 's' ?>link" href="/list/mail/"><b>MAIL</b></a>
<a class="nav-<?php if($TAB == 'MAIL' ) echo 's' ?>link" href="/list/mail/"><b><?php print _('MAIL');?></b></a>
<p class="counters">
domains: <? echo $panel[$user]['U_MAIL_DOMAINS']?><br>
accounts: <? echo $panel[$user]['U_MAIL_ACCOUNTS']?><br>
suspended: <? echo $panel[$user]['SUSPENDED_MAIL']?>
<?php print _('domains');?>: <? echo $panel[$user]['U_MAIL_DOMAINS']?><br>
<?php print _('accounts');?>: <? echo $panel[$user]['U_MAIL_ACCOUNTS']?><br>
<?php print _('suspended');?>: <? echo $panel[$user]['SUSPENDED_MAIL']?>
</p>
</td>
<td class="nav-<?php if($TAB == 'DB' ) echo 's' ?>block">
<a class="nav-<?php if($TAB == 'DB' ) echo 's' ?>link" href="/list/db/"><b>DB</b></a>
<a class="nav-<?php if($TAB == 'DB' ) echo 's' ?>link" href="/list/db/"><b><?php print _('DB');?></b></a>
<p class="counters">
databases: <? echo $panel[$user]['U_DATABASES']?><br>
suspended: <? echo $panel[$user]['SUSPENDED_DB']?>
<?php print _('databases');?>: <? echo $panel[$user]['U_DATABASES']?><br>
<?php print _('suspended');?>: <? echo $panel[$user]['SUSPENDED_DB']?>
</p>
</td>
<td class="nav-<?php if($TAB == 'CRON' ) echo 's' ?>block">
<a class="nav-<?php if($TAB == 'CRON' ) echo 's' ?>link" href="/list/cron/"><b>CRON</b></a>
<a class="nav-<?php if($TAB == 'CRON' ) echo 's' ?>link" href="/list/cron/"><b><?php print _('CRON');?></b></a>
<p class="counters">
jobs: <? echo $panel[$user]['U_CRON_JOBS']?><br>
suspended: <? echo $panel[$user]['SUSPENDED_CRON']?>
<?php print _('jobs');?>: <? echo $panel[$user]['U_CRON_JOBS']?><br>
<?php print _('suspended');?>: <? echo $panel[$user]['SUSPENDED_CRON']?>
</p>
</td>
<td class="nav-<?php if($TAB == 'BACKUP' ) echo 's' ?>block">
<a class="nav-<?php if($TAB == 'BACKUP' ) echo 's' ?>link" href="/list/backup/"><b>BACKUP</b></a>
<a class="nav-<?php if($TAB == 'BACKUP' ) echo 's' ?>link" href="/list/backup/"><b><?php print _('BACKUP');?></b></a>
<p class="counters">
backups: <? echo $panel[$user]['U_BACKUPS']?><br>
<?php print _('backups');?>: <? echo $panel[$user]['U_BACKUPS']?><br>
</p>
</td>
</tr>

View file

@ -1,10 +1,10 @@
<table class="bottom">
<tr>
<td>Powered by Vesta Control Panel</td>
<td><?php print _('Powered by Vesta Control Panel');?></td>
</tr>
<tr>
<td><a href="http://vestacp.com">vestacp.com</a></td>
<td><a href="http://vestacp.com">vestacp.com</a> | <a href="http://chto.su"><?php print _('Translation by ZonD80');?></a></td>
</tr>
</table>
</td>

View file

@ -5,14 +5,14 @@
<table>
<tr>
<td style="padding: 0 10 0 42;">
<a href="/"><img border=0 src="/images/logo.png" width="124px" height="46px" alt="Vesta Control Panel" /></a>
<a href="/"><img border=0 src="/images/logo.png" width="124px" height="46px" alt="<?php print _('Vesta Control Panel');?>" /></a>
</td>
<td style="padding: 20px 0 0 0;">
<form method="post" action="/login/" >
<table class="login-box">
<tr>
<td style="padding: 12px 0 0 2px;">
Username
<?php print _('Username');?>
</td>
</tr>
<tr>
@ -22,7 +22,7 @@
</tr>
<tr>
<td style="padding: 12px 0 0 2px;">
Password <a tabindex="5" class="genpass" href="/reset/" style="padding: 0 0 0 14px;" >forgot password</a>
<?php print _('Password');?> <a tabindex="5" class="genpass" href="/reset/" style="padding: 0 0 0 14px;" ><?php print _('Forgot Password?');?></a>
</td>
</tr>
<tr>
@ -36,7 +36,7 @@
</tr>
<tr>
<td style="padding: 0 0 12px 0;">
<input tabindex="3" type="submit" value="Log In" class="button">
<input tabindex="3" type="submit" value="<?php print _('Log in');?>" class="button">
</td>
</tr>
</table>
@ -47,7 +47,7 @@
<td colspan=2>
<table class="login-bottom">
<tr><td>.<?php if (isset($ERROR)) echo $ERROR ?></td></tr>
<tr><td> <a tabindex="6" class="vestacp" href="http://vestacp.com" >vestacp.com</a></td></tr>
<tr><td> <a tabindex="6" class="vestacp" href="http://vestacp.com" >vestacp.com</a> | <a tabindex="6" class="vestacp" href="http://chto.su"><?php print _('Translation by ZonD80');?></a></td></tr>
</table>
</td>
</tr>

View file

@ -5,19 +5,19 @@
<table>
<tr>
<td style="padding: 0 10px 0 42px;">
<a href="/"><img border=0 src="/images/logo.png" width="124px" height="46px" alt="Vesta Control Panel" /></a>
<a href="/"><img border=0 src="/images/logo.png" width="124px" height="46px" alt="<?php print _('Vesta Control Panel');?>" /></a>
</td>
<td style="padding: 10px 0 0 0;">
<form method="post" action="/reset/" >
<table class="login-box">
<tr>
<td style="padding: 12px 0 0 2px;">
To reset your password, enter your username and we'll send you instructions on how to create a new password.
<?php print _('RESET_NOTICE');?>
</td>
</tr>
<tr>
<td style="padding: 12px 0 0 2px;">
Username
<?php print _('Username');?>
</td>
</tr>
<tr>
@ -27,7 +27,7 @@
</tr>
<tr>
<td style="padding: 20px 0 12px 0;">
<input tabindex="2" type="submit" value="Submit" class="button">
<input tabindex="2" type="submit" value="<?php print _('Submit');?>" class="button">
</td>
</tr>
</table>
@ -38,7 +38,7 @@
<td colspan=2>
<table class="login-bottom">
<tr><td>.<?php if (isset($ERROR)) echo $ERROR ?></td></tr>
<tr><td><a tabindex="6" class="vestacp" href="http://vestacp.com" >vestacp.com</a></td></tr>
<tr><td><a tabindex="6" class="vestacp" href="http://vestacp.com" >vestacp.com</a> | <a tabindex="6" class="vestacp" href="http://chto.su"><?php print _('Translation by ZonD80');?></a></td></tr>
</table>
</td>
</tr>

View file

@ -5,19 +5,18 @@
<table>
<tr>
<td style="padding: 0 10px 0 42px;">
<a href="/"><img border=0 src="/images/logo.png" width="124px" height="46px" alt="Vesta Control Panel" /></a>
<a href="/"><img border=0 src="/images/logo.png" width="124px" height="46px" alt="<?php print _('Vesta Control Panel');?>" /></a>
</td>
<td style="padding: 30px 0 0 0;">
<form method="get" action="/reset/" >
<table class="login-box">
<tr>
<td style="padding: 12px 0 0 2px;">
Reset code has been sent to your email address.
Please copy and paste that code in the verification box below.
<?php print _('RESET_CODE_SENT');?>
</td>
</tr>
<tr>
<td style="padding: 12px 0 0 2px;">Reset Code</td>
<td style="padding: 12px 0 0 2px;"><?php print _('Reset Code');?></td>
</tr>
<tr>
<td>
@ -28,7 +27,7 @@
</tr>
<tr>
<td style="padding: 20px 0 12px 0;">
<input tabindex="2" type="submit" value="Confirm" class="button">
<input tabindex="2" type="submit" value="<?php print _('Confirm');?>" class="button">
</td>
</tr>
</table>
@ -39,7 +38,7 @@
<td colspan=2>
<table class="login-bottom">
<tr><td>.<?php if (isset($ERROR)) echo $ERROR ?></td></tr>
<tr><td><a tabindex="6" class="vestacp" href="http://vestacp.com" >vestacp.com</a></td></tr>
<tr><td><a tabindex="6" class="vestacp" href="http://vestacp.com" >vestacp.com</a> | <a tabindex="6" class="vestacp" href="http://chto.su"><?php print _('Translation by ZonD80');?></a></td></tr>
</table>
</td>
</tr>

View file

@ -5,7 +5,7 @@
<table>
<tr>
<td style="padding: 0 10 0 42;">
<a href="/"><img border=0 src="/images/logo.png" width="124px" height="46px" alt="Vesta Control Panel" /></a>
<a href="/"><img border=0 src="/images/logo.png" width="124px" height="46px" alt="<?php print _('Vesta Control Panel');?>" /></a>
</td>
<td style="padding: 20px 0 0 0;">
<form method="post">
@ -15,7 +15,7 @@
<input type="hidden" name="action" value="confirm" >
<input type="hidden" name="user" value="<?php echo $_GET['user'];?>" >
<input type="hidden" name="code" value="<?php echo $_GET['code'];?>" >
New Password
<?php print _('New Password');?>
</td>
</tr>
<tr>
@ -25,7 +25,7 @@
</tr>
<tr>
<td style="padding: 12px 0 0 2px;">
Confirm Password
<?php print _('Confirm Password');?>
</td>
</tr>
<tr>
@ -39,7 +39,7 @@
</tr>
<tr>
<td style="padding: 0 0 12px 0;">
<input tabindex="3" type="submit" value="Reset" class="button">
<input tabindex="3" type="submit" value="<?php print _('Reset');?>" class="button">
</td>
</tr>
</table>
@ -50,7 +50,7 @@
<td colspan=2>
<table class="login-bottom">
<tr><td>.<?php if (isset($ERROR)) echo $ERROR ?></td></tr>
<tr><td> <a tabindex="6" class="vestacp" href="http://vestacp.com" >vestacp.com</a></td></tr>
<tr><td> <a tabindex="6" class="vestacp" href="http://vestacp.com" >vestacp.com</a> | <a tabindex="6" class="vestacp" href="http://chto.su"><?php print _('Translation by ZonD80');?></a></td></tr>
</table>
</td>
</tr>

View file

@ -8,67 +8,67 @@
<table class="top">
<tr>
<td width="174px"></td>
<td width="118px"><a class="top-<?php if($TAB == 'STATS' ) echo 's' ?>link" href="/list/stats/"><b>Statistics</a></b></td>
<td width="120px"><a class="top-<?php if($TAB == 'LOG' ) echo 's' ?>link" href="/list/log/"><b>History Log</a></b></td>
<td width="118px"><a class="top-<?php if($TAB == 'STATS' ) echo 's' ?>link" href="/list/stats/"><b><?php print _('Statistics');?></a></b></td>
<td width="120px"><a class="top-<?php if($TAB == 'LOG' ) echo 's' ?>link" href="/list/log/"><b><?php print _('History Log');?></a></b></td>
<td width="120px"></td>
<td width="120px"></td>
<td width="120px"></td>
<td width="228px" style="padding: 0 26px 0 0; text-align: right;"><b><?php if($user != $_SESSION['user']) echo 'admin / ' ?><?php echo $user ?></b><a class="top-link" style="padding: 0 0 0 6" href="/logout/">Log out</a></td>
<td width="228px" style="padding: 0 26px 0 0; text-align: right;"><b><?php if($user != $_SESSION['user']) echo 'admin / ' ?><?php echo $user ?></b><a class="top-link" style="padding: 0 0 0 6" href="/logout/"><?php print _('Log out');?></a></td>
</tr>
</table>
<table class="nav">
<td class="logo">
<img src="/images/logo.png" width="124px" height="46px" alt="Vesta logo">
<img src="/images/logo.png" width="124px" height="46px" alt="<?php _('Vesta Logo');?>">
</td>
<td class="nav-<?php if($TAB == 'USER' ) echo 's' ?>block">
<a class="nav-<?php if($TAB == 'USER' ) echo 's' ?>link" href="/list/user/"><b>USER</b></a>
<a class="nav-<?php if($TAB == 'USER' ) echo 's' ?>link" href="/list/user/"><b><?php print _('USER');?></b></a>
<p class="counters">
users: <? echo $panel[$user]['U_USERS'] ?><br>
suspended: <? echo $panel[$user]['SUSPENDED_USERS']?>
<?php print _('users');?>: <? echo $panel[$user]['U_USERS'] ?><br>
<?php print _('suspended');?>: <? echo $panel[$user]['SUSPENDED_USERS']?>
</p>
</td>
<td class="nav-<?php if($TAB == 'WEB' ) echo 's' ?>block">
<a class="nav-<?php if($TAB == 'WEB' ) echo 's' ?>link" href="/list/web/"><b>WEB</b></a>
<a class="nav-<?php if($TAB == 'WEB' ) echo 's' ?>link" href="/list/web/"><b><?php print _('WEB');?></b></a>
<p class="counters">
domains: <? echo $panel[$user]['U_WEB_DOMAINS']?><br>
aliases: <? echo $panel[$user]['U_WEB_ALIASES']?><br>
suspended: <? echo $panel[$user]['SUSPENDED_WEB']?>
<?php print _('domains');?>: <? echo $panel[$user]['U_WEB_DOMAINS']?><br>
<?php print _('aliases');?>: <? echo $panel[$user]['U_WEB_ALIASES']?><br>
<?php print _('suspended');?>: <? echo $panel[$user]['SUSPENDED_WEB']?>
</p>
</td>
<td class="nav-<?php if($TAB == 'DNS' ) echo 's' ?>block">
<a class="nav-<?php if($TAB == 'DNS' ) echo 's' ?>link" href="/list/dns/"><b>DNS</b></a>
<a class="nav-<?php if($TAB == 'DNS' ) echo 's' ?>link" href="/list/dns/"><b><?php print _('DNS');?></b></a>
<p class="counters">
domains: <? echo $panel[$user]['U_DNS_DOMAINS']?><br>
records: <? echo $panel[$user]['U_DNS_RECORDS']?><br>
suspended: <? echo $panel[$user]['SUSPENDED_DNS']?>
<?php print _('domains');?>: <? echo $panel[$user]['U_DNS_DOMAINS']?><br>
<?php print _('records');?>: <? echo $panel[$user]['U_DNS_RECORDS']?><br>
<?php print _('suspended');?>: <? echo $panel[$user]['SUSPENDED_DNS']?>
</p>
</td>
<td class="nav-<?php if($TAB == 'MAIL' ) echo 's' ?>block">
<a class="nav-<?php if($TAB == 'MAIL' ) echo 's' ?>link" href="/list/mail/"><b>MAIL</b></a>
<a class="nav-<?php if($TAB == 'MAIL' ) echo 's' ?>link" href="/list/mail/"><b><?php print _('MAIL');?></b></a>
<p class="counters">
domains: <? echo $panel[$user]['U_MAIL_DOMAINS']?><br>
accounts: <? echo $panel[$user]['U_MAIL_ACCOUNTS']?><br>
suspended: <? echo $panel[$user]['SUSPENDED_MAIL']?>
<?php print _('domains');?>: <? echo $panel[$user]['U_MAIL_DOMAINS']?><br>
<?php print _('accouns');?>: <? echo $panel[$user]['U_MAIL_ACCOUNTS']?><br>
<?php print _('suspended');?>: <? echo $panel[$user]['SUSPENDED_MAIL']?>
</p>
</td>
<td class="nav-<?php if($TAB == 'DB' ) echo 's' ?>block">
<a class="nav-<?php if($TAB == 'DB' ) echo 's' ?>link" href="/list/db/"><b>DB</b></a>
<a class="nav-<?php if($TAB == 'DB' ) echo 's' ?>link" href="/list/db/"><b><?php print _('DB');?></b></a>
<p class="counters">
databases: <? echo $panel[$user]['U_DATABASES']?><br>
suspended: <? echo $panel[$user]['SUSPENDED_DB']?>
<?php print _('databases');?>: <? echo $panel[$user]['U_DATABASES']?><br>
<?php print _('suspended');?>: <? echo $panel[$user]['SUSPENDED_DB']?>
</p>
</td>
<td class="nav-<?php if($TAB == 'CRON' ) echo 's' ?>block">
<a class="nav-<?php if($TAB == 'CRON' ) echo 's' ?>link" href="/list/cron/"><b>CRON</b></a>
<a class="nav-<?php if($TAB == 'CRON' ) echo 's' ?>link" href="/list/cron/"><b><?php print _('CRON');?></b></a>
<p class="counters">
jobs: <? echo $panel[$user]['U_CRON_JOBS']?><br>
suspended: <? echo $panel[$user]['SUSPENDED_CRON']?>
<?php print _('jobs');?>: <? echo $panel[$user]['U_CRON_JOBS']?><br>
<?php print _('suspended');?>: <? echo $panel[$user]['SUSPENDED_CRON']?>
</p>
</td>
<td class="nav-<?php if($TAB == 'BACKUP' ) echo 's' ?>block">
<a class="nav-<?php if($TAB == 'BACKUP' ) echo 's' ?>link" href="/list/backup/"><b>BACKUP</b></a>
<a class="nav-<?php if($TAB == 'BACKUP' ) echo 's' ?>link" href="/list/backup/"><b><?php print _('BACKUP');?></b></a>
<p class="counters">
backups: <? echo $panel[$user]['U_BACKUPS']?><br>
<?php print _('backups');?>: <? echo $panel[$user]['U_BACKUPS']?><br>
</p>
</td>
</tr>