root/EMS/deluser.php

Revision 2, 0.9 kB (checked in by evilbunny, 2 years ago)

Initial import

Line 
1 <?
2     require_once("common.php");
3
4     if($_SESSION['_config']['access'] < 90)
5     {
6         header("location: login.php");
7         exit;
8     }
9
10     $user = trim($_REQUEST['user']);
11
12     if($_POST['process'] == "Yes")
13     {
14         $fp = @fsockopen($hostname, $hostport);
15         if(!$fp)
16             die("Please contact your system administrator as the server has gone missing.");
17         fputs($fp, "deluser|$user\n");
18         fclose($fp);
19     }
20
21     if($_POST['process'])
22     {
23         header("location: users.php");
24         exit;
25     }
26
27     include_once("header.php");
28 ?>
29 <div class="bodytext" style="padding:12px;" align="justify">
30     <p>Please enter the new alias for <?=$user?>.</p>
31     <form method="post" action="<?=$_SERVER['REQUEST_URI']?>">
32         <p>Are you sure you want to delete the user <?=$user?>?<br /><br />
33         <input type="submit" name="process" value="Yes"> <input type="submit" name="process" value="No">
34         <input type="hidden" name="user" value="<?=$user?>">
35     </form>
36 </div>
37 <? include_once("footer.php"); ?>
38
Note: See TracBrowser for help on using the browser.