forked from Alanaktion/MCHostPanel
/
userProfile.php
90 lines (77 loc) · 2.28 KB
/
userProfile.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<?php
require_once 'inc/lib.php';
if ($_POST['action'] == 'user-update')
{
user_modify($_POST['user'], $_POST['pass'], $_POST['role'], $_POST['dir'], $_POST['ram'], $_POST['port']);
}
?>
<!doctype html>
<html>
<head>
<title>User Profile | MCHostPanel</title>
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/bootstrap-responsive.min.css">
<link rel="stylesheet" href="css/smooth.css" id="smooth-css">
<link rel="stylesheet" href="css/style.css">
<meta name="author" content="James Pollock [jamesplanet.net]">
<script src="js/jquery-1.7.2.min.js"></script>
<script src="js/bootstrap.min.js"></script>
</head>
<body>
<?php require 'inc/top.php'; ?>
<div class="tab-content">
<div class="tab-pane active">
<div class="container-fluid">
<div class="row-fluid">
<legend>User Profile</legend>
<div id="profileArea">
<form action="userProfile.php" method="post">
<input type="hidden" name="action" value="user-update">
<div id="nameArea">
<h3>Username:
<input type="hidden" name="user" value=<?php echo $user['user'];?>>
<?php
echo $user['user'];
?>
</h3>
</div>
</br>
<div id="roleArea">
<h3>Role:
<input type="hidden" name="role" value=<?php echo $user['role'];?>>
<?php
echo $user['role'];
?>
</h3>
</div>
</br>
<div id="homeArea">
<h3>Home Directory:
<input type="hidden" name="dir" id="dir" value=<?php echo $user['home'];?>>
<?php echo $user['home'];?>
</h3>
</div>
</br>
<div id="ramArea">
<h3>RAM Allocated:</h3>
<div class="controls">
<input class="span10" type="text" name="ram" id="ram" value=<?php echo $user['ram'];?>>
</div>
</div>
</br>
<div id="portArea">
<h2>Port:</h2>
<div class="controls">
<input class="span3" type="number" name="port" id="port" value=<?php echo $user['port'];?>>
</div>
</div>
</br></br></br>
<button type="submit" class="btn btn-primary">Save Changes</button>
</form>
</div>
</div>
</div>
</div>
</div>
</body>
</html>