Alternc  3.2
Alternc logiel libre pour l'h├ębergement
 All Data Structures Namespaces Files Functions Variables Pages
sql_users_list.php
Go to the documentation of this file.
1 <?php
2 /*
3  $Id: sql_users_list.php,v 1.8 2006/02/16 16:26:28 nahuel Exp $
4  ----------------------------------------------------------------------
5  AlternC - Web Hosting System
6  Copyright (C) 2002 by the AlternC Development Team.
7  http://alternc.org/
8  ----------------------------------------------------------------------
9  Based on:
10  Valentin Lacambre's web hosting softwares: http://altern.org/
11  ----------------------------------------------------------------------
12  LICENSE
13 
14  This program is free software; you can redistribute it and/or
15  modify it under the terms of the GNU General Public License (GPL)
16  as published by the Free Software Foundation; either version 2
17  of the License, or (at your option) any later version.
18 
19  This program is distributed in the hope that it will be useful,
20  but WITHOUT ANY WARRANTY; without even the implied warranty of
21  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22  GNU General Public License for more details.
23 
24  To read the license please visit http://www.gnu.org/copyleft/gpl.html
25  ----------------------------------------------------------------------
26  Original Author of file: Nahuel ANGELINETTI
27  Purpose of file: Manage the MySQL users of a member
28  ----------------------------------------------------------------------
29 */
30 require_once("../class/config.php");
31 include_once("head.php");
32 
33 $r=$mysql->get_userslist();
34 $rdb=$mysql->get_dblist();
35 
36 ?>
37 <h3><?php __("MySQL Users"); ?></h3>
38 <hr id="topbar"/>
39 <br />
40 <?php
41 if (isset($error) && $error) {
42  echo "<p class=\"alert alert-danger\">$error</p><p>&nbsp;</p>";
43 }
44  if($r){ // if there is some userlist
45 ?>
46 <form method="post" action="sql_users_del.php">
47 <table cellspacing="0" cellpadding="4" class="tlist">
48  <tr><th>&nbsp;</th><th><?php __("User"); ?></th><th><?php __("Rights"); ?></th><th><?php __("Password");?></th></tr>
49 <?php
50 for($i=0;$i<count($r);$i++) {
51  $val=$r[$i];
52 ?>
53  <tr class="lst">
54  <td align="center">
55  <input type="checkbox" class="inc" id="del_<?php echo $val["name"]; ?>" name="del_<?php echo $val["name"]; ?>" value="<?php echo $val["name"]; ?>" />
56  </td>
57  <td><label for="del_<?php echo $val["name"]; ?>"><?php echo $val["name"]; ?></label></td>
58  <td><span class="ina configure"><a href="sql_users_rights.php?id=<?php echo $val["name"] ?>"><?php __("Manage the rights"); ?></a></span></td>
59  <td><span class="ina lock"><a href="sql_users_password.php?id=<?php echo $val["name"] ?>"><?php __("Password change"); ?></a></span></td>
60  </tr>
61 <?php
62 
63 
64  }
65 ?>
66 
67 </table>
68 
69 <br/>
70 <input type="submit" name="sub" value="<?php __("Delete the checked users"); ?>" class="inb delete" />
71 </form>
72 
73 <br/>
74 <br/>
75 
76 <?php
77  } // if $r
78 ?>
79  <span class="ina add"><a href="sql_users_add.php"><?php __("Create a new MySQL user"); ?></a></span>
80 <?php include_once("foot.php"); ?>