Adding note about max length of mysql username

This commit is contained in:
dpeca 2016-10-07 17:41:27 +00:00
commit 8cabb5414a
31 changed files with 49 additions and 2 deletions

View file

@ -746,6 +746,8 @@ $LANG['ar'] = array(
'No encryption' => 'No encryption',
'Do not use encryption' => 'Do not use encryption',
'maximum 16 characters length, including prefix' => 'maximum 16 characters length, including prefix',
// Texts below doesn't exist in en.php
'%s rule' => 'قواعد %s',
'MainDomain' => 'النطاق الرئيسي',

View file

@ -745,4 +745,5 @@ $LANG['bs'] = array(
'No encryption' => 'Bez enkripcije',
'Do not use encryption' => 'Nemoj koristiti enkripciju',
'maximum 16 characters length, including prefix' => 'maximum 16 characters length, including prefix',
);

View file

@ -746,4 +746,5 @@ $LANG['cn'] = array(
'No encryption' => 'No encryption',
'Do not use encryption' => 'Do not use encryption',
'maximum 16 characters length, including prefix' => 'maximum 16 characters length, including prefix',
);

View file

@ -747,4 +747,5 @@ $LANG['cz'] = array(
'No encryption' => 'No encryption',
'Do not use encryption' => 'Do not use encryption',
'maximum 16 characters length, including prefix' => 'maximum 16 characters length, including prefix',
);

View file

@ -748,4 +748,5 @@ $LANG['da'] = array(
'No encryption' => 'No encryption',
'Do not use encryption' => 'Do not use encryption',
'maximum 16 characters length, including prefix' => 'maximum 16 characters length, including prefix',
);

View file

@ -746,4 +746,5 @@ $LANG['de'] = array(
'No encryption' => 'No encryption',
'Do not use encryption' => 'Do not use encryption',
'maximum 16 characters length, including prefix' => 'maximum 16 characters length, including prefix',
);

View file

@ -747,4 +747,5 @@ $LANG['el'] = array(
'No encryption' => 'No encryption',
'Do not use encryption' => 'Do not use encryption',
'maximum 16 characters length, including prefix' => 'maximum 16 characters length, including prefix',
);

View file

@ -747,4 +747,6 @@ $LANG['en'] = array(
'No encryption' => 'No encryption',
'Do not use encryption' => 'Do not use encryption',
'maximum 16 characters length, including prefix' => 'maximum 16 characters length, including prefix',
);

View file

@ -744,4 +744,5 @@ $LANG['es'] = array(
'No encryption' => 'No encryption',
'Do not use encryption' => 'Do not use encryption',
'maximum 16 characters length, including prefix' => 'maximum 16 characters length, including prefix',
);

View file

@ -749,6 +749,8 @@ $LANG['fa'] = [
'No encryption' => 'No encryption',
'Do not use encryption' => 'Do not use encryption',
'maximum 16 characters length, including prefix' => 'maximum 16 characters length, including prefix',
// Texts below doesn't exist in en.php
'70 خط اخر %s.%s.log' => 'هفتاد خط انتهايي از %s.%s.log',
];

View file

@ -748,6 +748,8 @@ $LANG['fi'] = array(
'No encryption' => 'No encryption',
'Do not use encryption' => 'Do not use encryption',
'maximum 16 characters length, including prefix' => 'maximum 16 characters length, including prefix',
// Texts below doesn't exist in en.php
'traffic' => 'tiedonsiirto',
'disk' => 'levytila',

View file

@ -746,6 +746,8 @@ $LANG['fr'] = array(
'No encryption' => 'No encryption',
'Do not use encryption' => 'Do not use encryption',
'maximum 16 characters length, including prefix' => 'maximum 16 characters length, including prefix',
// Texts below doesn't exist in en.php
'disk' => 'disque',
'traffic' => 'traffic',

View file

@ -750,6 +750,8 @@ $LANG['hu'] = array(
'No encryption' => 'No encryption',
'Do not use encryption' => 'Do not use encryption',
'maximum 16 characters length, including prefix' => 'maximum 16 characters length, including prefix',
// Texts below doesn't exist in en.php
'Bandwidth Usage eth1' => 'eth1 sávszélesség használat',
);

View file

@ -749,4 +749,5 @@ $LANG['id'] = array(
'No encryption' => 'No encryption',
'Do not use encryption' => 'Do not use encryption',
'maximum 16 characters length, including prefix' => 'maximum 16 characters length, including prefix',
);

View file

@ -747,4 +747,5 @@ $LANG['it'] = array(
'No encryption' => 'No encryption',
'Do not use encryption' => 'Do not use encryption',
'maximum 16 characters length, including prefix' => 'maximum 16 characters length, including prefix',
);

View file

@ -746,4 +746,5 @@ $LANG['ja'] = array(
'No encryption' => 'No encryption',
'Do not use encryption' => 'Do not use encryption',
'maximum 16 characters length, including prefix' => 'maximum 16 characters length, including prefix',
);

View file

@ -746,4 +746,5 @@ $LANG['ka'] = array(
'No encryption' => 'No encryption',
'Do not use encryption' => 'Do not use encryption',
'maximum 16 characters length, including prefix' => 'maximum 16 characters length, including prefix',
);

View file

@ -747,4 +747,5 @@ $LANG['nl'] = array(
'No encryption' => 'No encryption',
'Do not use encryption' => 'Do not use encryption',
'maximum 16 characters length, including prefix' => 'maximum 16 characters length, including prefix',
);

View file

@ -747,4 +747,5 @@ $LANG['no'] = array(
'No encryption' => 'No encryption',
'Do not use encryption' => 'Do not use encryption',
'maximum 16 characters length, including prefix' => 'maximum 16 characters length, including prefix',
);

View file

@ -746,4 +746,5 @@ $LANG['pl'] = array(
'No encryption' => 'No encryption',
'Do not use encryption' => 'Do not use encryption',
'maximum 16 characters length, including prefix' => 'maximum 16 characters length, including prefix',
);

View file

@ -746,4 +746,5 @@ $LANG['pt-BR'] = array(
'No encryption' => 'No encryption',
'Do not use encryption' => 'Do not use encryption',
'maximum 16 characters length, including prefix' => 'maximum 16 characters length, including prefix',
);

View file

@ -746,4 +746,5 @@ $LANG['pt'] = array(
'No encryption' => 'No encryption',
'Do not use encryption' => 'Do not use encryption',
'maximum 16 characters length, including prefix' => 'maximum 16 characters length, including prefix',
);

View file

@ -747,4 +747,5 @@ $LANG['ro'] = array(
'No encryption' => 'No encryption',
'Do not use encryption' => 'Do not use encryption',
'maximum 16 characters length, including prefix' => 'maximum 16 characters length, including prefix',
);

View file

@ -747,4 +747,5 @@ $LANG['ru'] = array(
'No encryption' => 'No encryption',
'Do not use encryption' => 'Do not use encryption',
'maximum 16 characters length, including prefix' => 'maximum 16 characters length, including prefix',
);

View file

@ -746,4 +746,5 @@ $LANG['se'] = array(
'No encryption' => 'No encryption',
'Do not use encryption' => 'Do not use encryption',
'maximum 16 characters length, including prefix' => 'maximum 16 characters length, including prefix',
);

View file

@ -747,4 +747,5 @@ $LANG['tr'] = array(
'No encryption' => 'No encryption',
'Do not use encryption' => 'Do not use encryption',
'maximum 16 characters length, including prefix' => 'maximum 16 characters length, including prefix',
);

View file

@ -769,4 +769,5 @@ $LANG['tw'] = array(
'No encryption' => 'No encryption',
'Do not use encryption' => 'Do not use encryption',
'maximum 16 characters length, including prefix' => 'maximum 16 characters length, including prefix',
);

View file

@ -747,4 +747,5 @@ $LANG['ua'] = array(
'No encryption' => 'No encryption',
'Do not use encryption' => 'Do not use encryption',
'maximum 16 characters length, including prefix' => 'maximum 16 characters length, including prefix',
);

View file

@ -745,4 +745,5 @@ $LANG['vi'] = array(
'No encryption' => 'No encryption',
'Do not use encryption' => 'Do not use encryption',
'maximum 16 characters length, including prefix' => 'maximum 16 characters length, including prefix',
);

View file

@ -345,3 +345,12 @@ function list_timezones() {
}
return $timezone_list;
}
function is_it_mysql_or_mariadb() {
exec (VESTA_CMD."v-list-sys-services json", $output, $return_var);
$data = json_decode(implode('', $output), true);
unset($output);
$mysqltype='mysql';
if (isset($data['mariadb'])) $mysqltype='mariadb';
return $mysqltype;
}

View file

@ -42,7 +42,7 @@
<table class="data-col2" width="600px">
<tr>
<td class="step-top hint" style="color:#777;" >
<?php print __('Prefix will be automaticaly added to database name and database user',$user."_");?>
<?php print __('Prefix will be automaticaly added to database name and database user',"<b>".$user."_</b>");?>
</td>
</tr>
<tr>
@ -58,7 +58,10 @@
</tr>
<tr>
<td class="vst-text input-label">
<?php print __('User');?>
<?php
print __('User');
if (is_it_mysql_or_mariadb()=='mysql') echo "&nbsp;&nbsp;&nbsp;&nbsp;<em><small>(".__('maximum 16 characters length, including prefix').")</small></em>";
?>
</td>
</tr>
<tr>