This repository has been archived by the owner on Oct 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathdel_user.php
73 lines (72 loc) · 2.87 KB
/
del_user.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php
$master = "del_user.php";
include ("blocks/lock.php");
include ("blocks/db_connect.php"); /*Подлкючаемся к базе*/
$user = $_SERVER['PHP_AUTH_USER'];
$info = '';
$get_user_language = FALSE;
$get_user_language = mysql_query("SELECT language FROM userlist WHERE user='$user';");
if (!$get_user_language) {
if (($err = mysql_errno()) == 1054) {
$info = "<p align=\"center\" class=\"table_error\">Your version of Pure-FTPd WebUI users table is not currently supported by current version, please upgrade your database to use miltilanguage support.</p>";
}
$language = "english";
include("lang/english.php");
}
else {
$language_row = mysql_fetch_array ($get_user_language);
$language = $language_row['language'];
if ($language == '') {
$language = "english";
}
include("lang/$language.php");
}
echo("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"");
echo("\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">");
echo("<html xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en-US\" xml:lang=\"en-US\">");
echo("<head>");
echo("<title>$del_title</title>");
echo("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />");
?>
<link rel='shortcut icon' href='img/favicon.ico' />
<link href="media/css/stile.css" rel="StyleSheet" type="text/css">
<link href="media/css/demo_page.css" rel="StyleSheet" type="text/css">
<link href="media/css/demo_table_jui.css" rel="StyleSheet" type="text/css">
<link href="media/css/jquery-ui-1.7.2.custom.css" rel="StyleSheet" type="text/css">
</head>
<body id="dt_example" class="ex_highlight_row">
<table width="80%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="main_border">
<tbody>
<?php include("blocks/header.php"); ?>
<tr>
<td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td valign="top">
<table width="100%" align="center" border="0" cellpadding="0" cellspacing="0">
<tr>
<?php include("blocks/menu.php"); ?>
</tr>
</table></br><?php echo("$info"); ?></br>
<?php echo("<p class=\"text_title\">$del_selecttitle</p>"); ?>
<form action="drop_user.php" method="post">
<?php
$result = mysql_query ("SELECT User,id FROM ftpd");
$myrow = mysql_fetch_array ($result);
do
{
printf ("<p><input name='id' type='radio' value='%s'><label> %s</label></p>", $myrow["id"], $myrow["User"]);
}
while ($myrow = mysql_fetch_array ($result));
?>
<?php echo("<p><input name=\"submit\" type=\"submit\" value=\"$del_button\"></p>"); ?>
</form></br></br>
</td>
</tr>
</table>
</td>
</tr>
<?php include("blocks/footer.php"); ?>
</tbody>
</table>
</body>
</html>