26 require_once(
"../class/config.php");
27 include_once(
"head.php");
30 "id" => array (
"request",
"string",
""),
34 <h3><?php printf(_(
"Manage MySQL rights for user '%s'"),
$id) ?></h3>
38 $r=$mysql->get_user_dblist(
$id);
40 if (
$msg->has_msgs(
"ERROR")) {
41 require_once(
'sql_users_list.php');
49 <form method=
"post" action=
"sql_users_dorights.php">
51 <input type=
"hidden" name=
"id" value=
"<?php ehe($id); ?>" />
52 <table cellspacing=
"0" cellpadding=
"4" class=
"tlist ombrage">
54 <th colspan=
"2"><?php
__(
"Database"); ?></th>
64 <th>CREATE_TMP_TABLE</th>
68 <th>CREATE ROUTINE</th>
69 <th>ALTER ROUTINE</th>
76 $sql_right=$mysql->available_sql_rights();
81 <td><strong><?php echo
$val[
"db"] ?></strong></td>
82 <td><a href=
"javascript:inverse_sql_right('<?php echo htmlentities($val["db
"]);?>');"><?php
__(
'Reverse selection');?></a></td>
83 <?php
foreach($sql_right as
$sr) { ?>
85 <input type=
"checkbox" class=
"inc" id=
"<?php echo $val["db
"]."_
$sr"; ?>" name=
"<?php echo $val["db
"]."_
$sr"; ?>"<?php
if(
$val[
$sr]==
"Y") echo
" checked=\"checked\""; ?> />
96 <input type=
"submit" class=
"inb ok" value=
"<?php __("Apply
"); ?>"/>
97 <input type=
"button" class=
"inb cancel" name=
"cancel" value=
"<?php __("Cancel
"); ?>" onclick=
"document.location='sql_users_list.php'"/>
101 <script type=
"text/javascript">
102 function inverse_sql_right(db) {
103 <?php
foreach($sql_right as
$sr) { ?>
104 if ( document.getElementById(db+
'_<?php echo $sr;?>').checked ) {
105 document.getElementById(db+
'_<?php echo $sr;?>').checked=
false;
107 document.getElementById(db+
'_<?php echo $sr;?>').checked=
true;
114 <?php include_once(
"foot.php"); ?>
if(!($ds=ldap_connect($L_LDAP_HOST))) if(!(ldap_bind($ds, $L_LDAP_ROOT, $L_LDAP_ROOTPWD))) if(!mysql_connect($L_MYSQL_HOST, $L_MYSQL_LOGIN, $L_MYSQL_PWD)) if(!mysql_select_db($L_MYSQL_DATABASE)) $sr
getFields($fields, $requestOnly=false)
Get the Fields of the posted form from $_REQUEST or POST or GET and check their type.
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 ...
$fields
Manages MySQL users granted rights.
if(!isset($is_include)) if(! $key &&! $crt) $id