blob: d9a834b6d7a017aaada895c43cdf4f7781cc664b (
plain) (
blame)
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
|
<div id="settingModal" class="modal fade" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">
<span aria-hidden="true">×</span>
</button>
<h4 class="modal-title"><span class="glyphicon glyphicon-cog"></span> Settings</h4>
</div>
<div class="modal-body">
<ul class="nav nav-tabs" role="tablist">
<li class="active"><a href="#settUserTab" aria-controls="settUserTab" data-toggle="tab">
<span class="glyphicon glyphicon-user"></span> <?=$mod->getCurrentUser()->getDisplayName()?>
</a></li>
<?php if ($mod->getCurrentUser()->admin == 1) { ?>
<li><a href="#settAdminTab" aria-controls="settAdminTab" data-toggle="tab"><span class="glyphicon glyphicon-sunglasses"></span> Admin</a></li>
<li><a href="#settUsersTab" aria-controls="settUsersTab" data-toggle="tab"><span class="glyphicon glyphicon-th"></span> All Users</a></li>
<?php } ?>
</ul>
<div class="tab-content">
<div class="tab-pane fade in active" id="settUserTab">
<p> </p>
<?php if ($mod->getCurrentUser()->admin == 1) { ?>
<p class="pull-right"><span class="glyphicon glyphicon-sunglasses"></span> <?=$mod->getCurrentUser()->getDisplayName()?> is a Scrott Administrator</p>
<?php } ?>
<form method="post" action="<?=$mod->ap()?>">
<input type="hidden" name="input[action]" value="common-setting-user" />
<div class="form-group">
<label for="inputUserUsername">Username</label>
<input type="text" id="inputUserUsername" class="form-control" value="<?=$mod->getCurrentUser()->name?>" disabled />
</div>
<div class="checkbox">
<label data-toggle="collapse" data-target="#inputUserPasswdCollapse">
<input type="checkbox" name="input[setPasswd]" value="1" /> Change Password
</label>
</div>
<div class="collapse" id="inputUserPasswdCollapse">
<div class="form-group">
<label for="inputUserCurPasswd">Current Password</label>
<input type="password" name="input[curPasswd]" id="inputUserCurPasswd" class="form-control" />
</div>
<div class="form-group">
<label for="inputUserNewPasswd">New Password</label>
<input type="password" name="input[newPasswd]" id="inputUserNewPasswd" class="form-control" />
</div>
<div class="form-group">
<label for="inputUserConfPasswd">Confirm Password</label>
<input type="password" name="input[confPasswd]" id="inputUserConfPasswd" class="form-control" />
</div>
</div>
<div class="form-group">
<label for="inputUserAlias">Alias</label>
<input type="text" name="input[alias]" id="inputUserAlias" class="form-control" value="<?=$mod->getCurrentUser()->alias?>" />
</div>
<div class="form-group">
<label for="inputUserEmail">Email</label>
<input type="text" name="input[email]" id="inputUserEmail" class="form-control" value="<?=$mod->getCurrentUser()->email?>" />
</div>
<?php if ($mod->getCurrentUser()->email != "" && $mod->getCurrentUser()->emailConf == 0) { ?>
<div class="form-group has-warning">
<label class="control-label" for="inputUserEmailConfKey">Email Confirmation Key</label>
<input type="text" name="input[emailConfKey]" id="inputUserEmailConfKey" class="form-control" />
<span class="help-block">You have not yet confirmed ownership of your saved email address</span>
</div>
<?php } ?>
<button type="submit" class="btn btn-success pull-right">Save</button>
</form>
<p> </p>
</div>
<?php if ($mod->getCurrentUser()->admin == 1) { ?>
<div class="tab-pane fade" id="settAdminTab">
<p> </p>
<form method="post" action="<?=$mod->ap()?>">
<input type="hidden" name="input[action]" value="common-setting-admin" />
<div class="form-group">
<label>HTTP(S)</label>
<div class="radio">
<label>
<input type="radio" name="input[settSSL]" value="force" <?=$mod->common_settingAdminSettSSLChecked['force']?> <?=$mod->common_settingAdminSettSSLDisabled?> />
Always Force SSL
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="input[settSSL]" value="neither" <?=$mod->common_settingAdminSettSSLChecked['neither']?> <?=$mod->common_settingAdminSettSSLDisabled?> />
Neither
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="input[settSSL]" value="forbid" <?=$mod->common_settingAdminSettSSLChecked['forbid']?> <?=$mod->common_settingAdminSettSSLDisabled?> />
Always Forbid SSL
</label>
</div>
</div>
<label>Access</label>
<div class="checkbox">
<label>
<input type="checkbox" name="input[allowPublicSignup]" value="1" <?=$mod->common_settingAdminAllowPublicSignupChecked?> /> Allow anyone to create an account
</label>
</div>
<button type="submit" class="btn btn-success pull-right">Save</button>
</form>
<p> </p>
</div>
<div class="tab-pane fade" id="settUsersTab">
all users' schings
</div>
<?php } ?>
</div>
</div>
</div>
</div>
</div>
|