forked from BrightGamePanel/bgpanel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
myaccount.php
112 lines (94 loc) · 3.69 KB
/
myaccount.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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<?php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
/**
* LICENSE:
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 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.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*
* @categories Games/Entertainment, Systems Administration
* @package Bright Game Panel
* @author warhawk3407 <warhawk3407@gmail.com> @NOSPAM
* @copyleft 2013
* @license GNU General Public License version 3.0 (GPLv3)
* @version (Release 0) DEVELOPER BETA 8
* @link http://www.bgpanel.net/
*/
$page = 'myaccount';
$tab = 9;
$isSummary = TRUE;
$return = 'myaccount.php';
require("configuration.php");
require("include.php");
$title = T_('My Account');
$rows = query_fetch_assoc( "SELECT * FROM `".DBPREFIX."client` WHERE `clientid` = '".$_SESSION['clientid']."' LIMIT 1" );
include("./bootstrap/header.php");
/**
* Notifications
*/
include("./bootstrap/notifications.php");
?>
<ul class="nav nav-tabs">
<li class="active"><a href="#"><?php echo T_('Profile'); ?></a></li>
</ul>
<div class="well">
<form method="post" action="process.php">
<input type="hidden" name="task" value="myaccount" />
<input type="hidden" name="clientid" value="<?php echo $_SESSION['clientid']; ?>" />
<label><?php echo T_('First Name'); ?></label>
<input type="text" name="firstname" class="span4" value="<?php echo htmlspecialchars($rows['firstname'], ENT_QUOTES); ?>">
<label><?php echo T_('Last Name'); ?></label>
<input type="text" name="lastname" class="span4" value="<?php echo htmlspecialchars($rows['lastname'], ENT_QUOTES); ?>">
<label><?php echo T_('Email'); ?></label>
<input type="text" name="email" class="span3" value="<?php echo htmlspecialchars($rows['email'], ENT_QUOTES); ?>">
<label><?php echo T_('Username'); ?></label>
<input type="text" name="username" class="span4" value="<?php echo htmlspecialchars($rows['username'], ENT_QUOTES); ?>">
<label><?php echo T_('Password'); ?></label>
<input type="password" name="password" class="span3" placeholder="">
<span class="help-inline"><?php echo T_('Leave blank for no change'); ?></span>
<label><?php echo T_('Password'); ?></label>
<input type="password" name="password2" class="span3" placeholder="">
<label><?php echo T_('Language'); ?></label>
<select class="span2" name="language">
<?php
//---------------------------------------------------------+
foreach ($languages as $key => $value)
{
if ($value == htmlspecialchars($rows['lang'], ENT_QUOTES))
{
$output = "\t\t\t\t\t\t\t<option value=\"".$value."\" selected=\"selected\">".$key."</option>\r\n";
echo $output;
}
else
{
$output = "\t\t\t\t\t\t\t<option value=\"".$value."\">".$key."</option>\r\n";
echo $output;
}
}
//---------------------------------------------------------+
?> </select>
<div style="text-align: center;">
<ul class="pager">
<li>
<button type="submit" class="btn btn-primary"><?php echo T_('Save Changes'); ?></button>
</li>
<li>
<button type="reset" class="btn"><?php echo T_('Cancel Changes'); ?></button>
</li>
</ul>
</div>
</form>
</div>
<?php
include("./bootstrap/footer.php");
?>