2006-04-26 14:59:28 +00:00
|
|
|
<?php
|
|
|
|
/*
|
|
|
|
$Id: sql_users_list.php,v 1.8 2006/02/16 16:26:28 nahuel Exp $
|
|
|
|
----------------------------------------------------------------------
|
|
|
|
AlternC - Web Hosting System
|
|
|
|
Copyright (C) 2002 by the AlternC Development Team.
|
|
|
|
http://alternc.org/
|
|
|
|
----------------------------------------------------------------------
|
|
|
|
Based on:
|
|
|
|
Valentin Lacambre's web hosting softwares: http://altern.org/
|
|
|
|
----------------------------------------------------------------------
|
|
|
|
LICENSE
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU General Public License (GPL)
|
|
|
|
as published by the Free Software Foundation; either version 2
|
|
|
|
of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
|
|
|
----------------------------------------------------------------------
|
|
|
|
Original Author of file: Nahuel ANGELINETTI
|
|
|
|
Purpose of file: Manage the MySQL users of a member
|
|
|
|
----------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
require_once("../class/config.php");
|
2009-09-08 05:29:38 +00:00
|
|
|
include_once("head.php");
|
2006-04-26 14:59:28 +00:00
|
|
|
|
|
|
|
$r=$mysql->get_userslist();
|
|
|
|
$rdb=$mysql->get_dblist();
|
|
|
|
|
|
|
|
?>
|
|
|
|
<h3><?php __("MySQL Users"); ?></h3>
|
2010-05-27 15:10:45 +00:00
|
|
|
<hr id="topbar"/>
|
|
|
|
<br />
|
2006-04-26 14:59:28 +00:00
|
|
|
<?php
|
2012-04-06 10:10:36 +00:00
|
|
|
if (isset($error) && $error) {
|
|
|
|
echo "<p class=\"error\">$error</p><p> </p>";
|
|
|
|
}
|
2006-04-26 14:59:28 +00:00
|
|
|
if($r){
|
|
|
|
?>
|
|
|
|
<form method="post" action="sql_users_del.php">
|
|
|
|
<table cellspacing="0" cellpadding="4">
|
2010-12-20 20:21:43 +00:00
|
|
|
<tr><th> </th><th><?php __("User"); ?></th><th><?php __("Rights"); ?></th><th><?php __("Password");?></th></tr>
|
2006-04-26 14:59:28 +00:00
|
|
|
<?php
|
|
|
|
$col=1;
|
|
|
|
for($i=0;$i<count($r);$i++) {
|
|
|
|
$val=$r[$i];
|
|
|
|
$col=3-$col;
|
|
|
|
?>
|
|
|
|
<tr class="lst<?php echo $col; ?>">
|
|
|
|
<td align="center">
|
|
|
|
<input type="checkbox" class="inc" id="del_<?php echo $val["name"]; ?>" name="del_<?php echo $val["name"]; ?>" value="<?php echo $val["name"]; ?>" />
|
|
|
|
</td>
|
2012-08-25 17:05:38 +00:00
|
|
|
<td><label for="del_<?php echo $val["name"]; ?>"><?php echo $val["name"]; ?></label></td>
|
2010-05-27 15:42:06 +00:00
|
|
|
<td><span class="ina"><a href="sql_users_rights.php?id=<?php echo $val["name"] ?>"><?php __("Manage the rights"); ?></a></span></td>
|
2010-12-20 20:21:43 +00:00
|
|
|
<td><span class="ina"><a href="sql_users_password.php?id=<?php echo $val["name"] ?>"><?php __("Password change"); ?></a></span></td>
|
2006-04-26 14:59:28 +00:00
|
|
|
</tr>
|
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
|
|
|
|
<tr><td colspan="5">
|
|
|
|
<input type="submit" name="sub" value="<?php __("Delete the checked users"); ?>" class="inb" />
|
|
|
|
</td></tr>
|
|
|
|
</table>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<p> </p>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
?>
|
2010-04-29 10:07:15 +00:00
|
|
|
<p>
|
|
|
|
<span class="ina"><a href="sql_users_add.php"><?php __("Create a new MySQL user"); ?></a><br /></span>
|
|
|
|
</p>
|
2006-04-26 14:59:28 +00:00
|
|
|
<?php
|
|
|
|
?>
|
2009-09-08 05:29:38 +00:00
|
|
|
<?php include_once("foot.php"); ?>
|