-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathedit_account.php
59 lines (50 loc) · 1.54 KB
/
edit_account.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
<?php
$forLoggedIn = true;
$selected = 'account';
$cur = 'odd';
include("./includes/header.php");
$links = array(
array('name'=>'edit profile', 'url'=>"edit_account.php"),
array('name'=>'change password', 'url'=>"edit_account.php?view=password"),
array('name'=>'upgrade account', 'url'=>"edit_account.php?view=upgrade"),
array('name'=>'migrate account', 'url'=>"edit_account.php?view=migrate"),
array('name'=>'go on vacation', 'url'=>"edit_account.php?view=vacation"),
);
drawMenuTop('edit your account', $links);
$view = '';
if(isset($_GET['view'])) { $view = $_GET['view']; }
if($view == 'migrate') {
include('./migrate_account.php');
}
if($view == 'password') {
include('./change_password.php');
}
if($view == 'upgrade') {
include('./upgrade_account.php');
}
if($view == 'vacation') {
include('./start_vacation.php');
}
?>
</td></tr></table>
<?php /*
if(!isset($_POST['migrate'])){ ?>
<div class='text-center width100p'><h1>Profile</h1></div>
<h1> Migrate Old Account </h1>
<form action="" method="post">
<br><label id="loginLabel">Login Name: </label><input name="login" type="text"></br>
<br><label id="passwordLabel">Password: </label><input name="password" type="password"></br>
<br><input name="migrate" type="submit" value="Migrate Old Account" class="margin-top-small submit-input"></br>
</form>
<?php }else{
$migrated = $user->migrateAccount($_POST['login'], $_POST['password']);
if($migrated){
?>
<h1> Old Account Migrated! </h1>
<?php }else{
?><h1> Migration Failed </h1> <?php
}
}
*/
include('./includes/footer.php');
?>