This commit is contained in:
Alan Garcia 2014-03-20 10:13:54 +00:00
parent c564af24db
commit 31d2e980c3
1 changed files with 5 additions and 1 deletions

View File

@ -95,7 +95,11 @@ for($i=0;$i<count($rdb);$i++) {
<tr>
<th><label for="dbn"><?php __("MySQL Database"); ?></label></th>
<td>
<span class="int" id="dbnpfx"><?php echo $mem->user["login"]; ?>_</span><input type="text" class="int" name="dbn" id="dbn" value="" size="20" maxlength="30" />
<?php
// Max 16 caracters for the database name if we want the mysql user to be automatically created.
$max_dbsufix_size=(16-strlen($mem->user["login"].'_'));
?>
<span class="int" id="dbnpfx"><?php echo $mem->user["login"]; ?>_</span><input type="text" class="int" name="dbn" id="dbn" value="" size="20" maxlength="<?php echo $max_dbsufix_size ;?>" />
</td>
</tr>
</table>