26 require_once(
"../class/config.php");
27 include_once(
"head.php");
30 $r=$mysql->get_userslist();
33 <h3><?php
__(
"MySQL Databases"); ?></h3>
39 $msg->raise(
"INFO",
"mysql", _(
"You have no database at the moment."));
40 }
else if(!
$r || empty(
$r)){
41 $msg->raise(
"INFO",
"mysql", _(
"You have no sql user at the moment."));
44 echo
$msg->msg_html_all();
50 <form method=
"post" action=
"sql_del.php" name=
"main" id=
"main">
53 <tr><th> </th><th><?php
__(
"Database"); ?></th><?php
if (
variable_get(
'sql_allow_users_backups') ) { ?><th><?php
__(
"Backup"); ?></th><?php } ?><th><?php
__(
"Restore"); ?></th><th><?php
__(
"Show Settings"); ?></th><th><?php
__(
"Size"); ?></th></tr>
58 $val[
'size'] = $mysql->get_db_size(
$val[
'db']);
61 <td align=
"center"><input type=
"checkbox" class=
"inc" id=
"del_<?php echo $val["db
"]; ?>" name=
"del_<?php echo $val["db
"]; ?>" value=
"<?php echo ($val["db
"]); ?>" /></td>
62 <td><label
for=
"del_<?php echo $val["db
"]; ?>"><?php echo
$val[
"db"]; ?></label></td>
63 <?php
if (
variable_get(
'sql_allow_users_backups') ) { ?>
64 <td><div
class=
"ina backup"><a href=
"sql_bck.php?id=<?php echo $val["db
"] ?>"><?php
__(
"Backup"); ?></a></div></td>
66 <td><div
class=
"ina restore"><a href=
"sql_restore.php?id=<?php echo $val["db
"] ?>"><?php
__(
"Restore"); ?></a></div></td>
67 <td><div
class=
"ina settings"><a href=
"sql_getparam.php?dbname=<?php echo $val["db
"] ?>"><?php
__(
"Show Settings"); ?></a></div></td>
76 <button type=
"submit" name=
"sub" class=
"inb delete"><?php
__(
"Delete the checked databases"); ?></button>
85 <?php
if ($quota->cancreate(
"mysql")) {
86 $q=$quota->getquota(
"mysql");
89 <p> <span
class=
"ina"><a href=
"sql_doadd.php"><?php
__(
"Create a new MySQL database"); ?></a></span> </p>
92 <form method=
"post" action=
"sql_doadd.php" id=
"main2" name=
"main2">
96 <th><label
for=
"dbn"><?php
__(
"MySQL Database"); ?></label></th>
100 $max_dbsufix_size=(
variable_get(
"sql_max_database_length", 16)-strlen(
$mem->user[
"login"].
'_'));
102 <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 ;?>" />
107 <input type=
"submit" class=
"inb add" name=
"submit" value=
"<?php __("Create
this new MySQL database.
"); ?>" onClick=
"return false_if_empty('dbn', '<?php echo addslashes(_("Can
't have empty MySQL suffix"));?>');
" />
113 <?php include_once("foot.php
"); ?>
variable_get($name, $default=null, $createit_comment=null)
Return a persistent variable.
format_size($size, $html=0)
csrf_get($return=false)
Give a new CSRF uniq token for a form the session must be up since the CSRF is linked to the session ...
$rdb
List and manage the MySQL databases of an account.