File TODO changed (mode: 100644) (index 10dcefb..6716da8) |
22 |
22 |
[ ] 'cop' variable is not good - I do not remember what it means! |
[ ] 'cop' variable is not good - I do not remember what it means! |
23 |
23 |
[ ] Why is not working to access a user page ("invalid repo")?! |
[ ] Why is not working to access a user page ("invalid repo")?! |
24 |
24 |
[ ] Delay connection to database. |
[ ] Delay connection to database. |
25 |
|
[ ] Fix <label></label> and set class form_item_title! |
|
26 |
25 |
[ ] Get memory statistics from /proc. |
[ ] Get memory statistics from /proc. |
27 |
26 |
[ ] CSRF token is not used in admin page for an ordinary user! |
[ ] CSRF token is not used in admin page for an ordinary user! |
28 |
27 |
[ ] Differentiate between owner of a repository, currently logged in user and admin. |
[ ] Differentiate between owner of a repository, currently logged in user and admin. |
File inc/admin/users/user.form.php changed (mode: 100644) (index 0cbe6c6..47f82d4) |
... |
... |
if ($admin_mode == 1) |
21 |
21 |
$_form .= '<input type="hidden" name="uid" value="' . $uid . '" />'; |
$_form .= '<input type="hidden" name="uid" value="' . $uid . '" />'; |
22 |
22 |
|
|
23 |
23 |
$_form .= ' |
$_form .= ' |
24 |
|
<label for="xuser">User name</label><br /> |
|
|
24 |
|
<label for="xuser" class="form_item_title">User name</label><br /> |
25 |
25 |
<input type="text" name="xuser" value="' . $xuser . '" /> |
<input type="text" name="xuser" value="' . $xuser . '" /> |
26 |
26 |
<br /> |
<br /> |
27 |
27 |
<br /> |
<br /> |
28 |
28 |
|
|
29 |
|
<label for="email">E-mail</label><br /> |
|
|
29 |
|
<label for="email" class="form_item_title">E-mail</label><br /> |
30 |
30 |
<input type="text" name="email" value="' . $email . '" /> |
<input type="text" name="email" value="' . $email . '" /> |
31 |
31 |
<br /> |
<br /> |
32 |
32 |
<br /> |
<br /> |
|
... |
... |
$_form .= ' |
34 |
34 |
|
|
35 |
35 |
if ($pass_mode > 0) { |
if ($pass_mode > 0) { |
36 |
36 |
$_form .= ' |
$_form .= ' |
37 |
|
<label for="xpass">Password</label><br /> |
|
|
37 |
|
<label for="xpass" class="form_item_title">Password</label><br /> |
38 |
38 |
<input type="password" name="xpass" value="' . $xpass . '" /> |
<input type="password" name="xpass" value="' . $xpass . '" /> |
39 |
39 |
<br /> |
<br /> |
40 |
40 |
<br /> |
<br /> |
|
... |
... |
$_form .= ' |
43 |
43 |
|
|
44 |
44 |
if ($pass_mode > 1) { |
if ($pass_mode > 1) { |
45 |
45 |
$_form .= ' |
$_form .= ' |
46 |
|
<label for="xpass2">Password (confirmation)</label><br /> |
|
|
46 |
|
<label for="xpass2" class="form_item_title">Password (confirmation)</label><br /> |
47 |
47 |
<input type="password" name="xpass2" value="' . $xpass2 . '" /> |
<input type="password" name="xpass2" value="' . $xpass2 . '" /> |
48 |
48 |
<br /> |
<br /> |
49 |
49 |
<br /> |
<br /> |
|
... |
... |
$_form .= ' |
52 |
52 |
|
|
53 |
53 |
if ($admin_mode == 1) { |
if ($admin_mode == 1) { |
54 |
54 |
$_form .= ' |
$_form .= ' |
55 |
|
<label for="is_admin">Admin?</label><br /> |
|
|
55 |
|
<label for="is_admin" class="form_item_title">Admin?</label><br /> |
56 |
56 |
<select name="is_admin"> |
<select name="is_admin"> |
57 |
57 |
<option value="0"' . $sel_is_admin[0] . '>No</option> |
<option value="0"' . $sel_is_admin[0] . '>No</option> |
58 |
58 |
<option value="1"' . $sel_is_admin[1] . '>Yes</option> |
<option value="1"' . $sel_is_admin[1] . '>Yes</option> |
|
... |
... |
$_form .= ' |
60 |
60 |
<br /> |
<br /> |
61 |
61 |
<br /> |
<br /> |
62 |
62 |
|
|
63 |
|
<label for="disk_quota_mb">Disk quota (MiB)</label><br /> |
|
|
63 |
|
<label for="disk_quota_mb" class="form_item_title">Disk quota (MiB)</label><br /> |
64 |
64 |
<input type="text" name="disk_quota_mb" value="' . $disk_quota_mb . '" /> |
<input type="text" name="disk_quota_mb" value="' . $disk_quota_mb . '" /> |
65 |
65 |
<br /> |
<br /> |
66 |
66 |
<br /> |
<br /> |
67 |
67 |
|
|
68 |
|
<label for="rights">Rights</label><br /> |
|
|
68 |
|
<label for="rights" class="form_item_title">Rights</label><br /> |
69 |
69 |
' . rg_rights_checkboxes("user", $rights) . ' |
' . rg_rights_checkboxes("user", $rights) . ' |
70 |
70 |
<br /> |
<br /> |
71 |
71 |
<br /> |
<br /> |
|
... |
... |
$_form .= ' |
73 |
73 |
} |
} |
74 |
74 |
|
|
75 |
75 |
$_form .= ' |
$_form .= ' |
76 |
|
<label for="session_time">Preferred session time (in seconds)</label><br /> |
|
|
76 |
|
<label for="session_time" class="form_item_title">Preferred session time (in seconds)</label><br /> |
77 |
77 |
<input type="text" name="session_time" value="' . $session_time . '" /> |
<input type="text" name="session_time" value="' . $session_time . '" /> |
78 |
78 |
<br /> |
<br /> |
79 |
79 |
<br /> |
<br /> |
File inc/feedback/suggestion.form.php changed (mode: 100644) (index d6475c2..cb8c765) |
... |
... |
$_form .= ' |
11 |
11 |
<input type="hidden" name="doit" value="1" /> |
<input type="hidden" name="doit" value="1" /> |
12 |
12 |
<input type="hidden" name="token" value="' . rg_token_get($db, $sid) . '" /> |
<input type="hidden" name="token" value="' . rg_token_get($db, $sid) . '" /> |
13 |
13 |
|
|
14 |
|
<label for="email">Your e-mail</label><br /> |
|
|
14 |
|
<label for="email" class="form_item_title">Your e-mail</label><br /> |
15 |
15 |
<input type="text" name="email" value="' . $email . '" /> |
<input type="text" name="email" value="' . $email . '" /> |
16 |
16 |
<br /> |
<br /> |
17 |
17 |
<br /> |
<br /> |
18 |
18 |
|
|
19 |
|
<label for="suggestion">Suggestion</label><br /> |
|
|
19 |
|
<label for="suggestion" class="form_item_title">Suggestion</label><br /> |
20 |
20 |
<textarea name="suggestion" rows="6" cols="50">' . $suggestion . '</textarea> |
<textarea name="suggestion" rows="6" cols="50">' . $suggestion . '</textarea> |
21 |
21 |
<br /> |
<br /> |
22 |
22 |
<br /> |
<br /> |
File inc/login/login.form.php changed (mode: 100644) (index dc32f70..e9fa7cf) |
... |
... |
$_form .= ' |
9 |
9 |
<input type="hidden" name="subop" value="1" /> |
<input type="hidden" name="subop" value="1" /> |
10 |
10 |
<input type="hidden" name="doit" value="1" /> |
<input type="hidden" name="doit" value="1" /> |
11 |
11 |
|
|
12 |
|
<label for="username">Username</label><br /> |
|
|
12 |
|
<label for="username" class="form_item_title">Username</label><br /> |
13 |
13 |
<input type="text" name="user" value="' . $user . '" /> |
<input type="text" name="user" value="' . $user . '" /> |
14 |
14 |
<br /> |
<br /> |
15 |
15 |
<br /> |
<br /> |
16 |
16 |
|
|
17 |
|
<label for="password">Password</label><br /> |
|
|
17 |
|
<label for="password" class="form_item_title">Password</label><br /> |
18 |
18 |
<input type="password" name="pass" value="' . $pass . '" /> |
<input type="password" name="pass" value="' . $pass . '" /> |
19 |
19 |
<br /> |
<br /> |
20 |
20 |
<br /> |
<br /> |
File inc/repo/repo.form.php changed (mode: 100644) (index bb7d48a..4511afa) |
... |
... |
if ($master_repo_id > 0) { |
22 |
22 |
} |
} |
23 |
23 |
|
|
24 |
24 |
$_form .= ' |
$_form .= ' |
25 |
|
<label for="name"> |
|
26 |
|
<span class="form_item_title">Name</span><br /> |
|
|
25 |
|
<label for="name" class="form_item_title">Name</label><br /> |
27 |
26 |
<input type="text" name="name" value="' . $name . '" /> |
<input type="text" name="name" value="' . $name . '" /> |
28 |
|
</label> |
|
29 |
27 |
<br /> |
<br /> |
30 |
28 |
<br /> |
<br /> |
31 |
29 |
|
|
32 |
|
<label for="max_commit_size"> |
|
33 |
|
<span class="form_item_title">Max commit size (bytes)</span><br /> |
|
|
30 |
|
<label for="max_commit_size" class="form_item_title">Max commit size (bytes)</label><br /> |
34 |
31 |
<input type="text" name="max_commit_size" value="' . $max_commit_size . '" /> |
<input type="text" name="max_commit_size" value="' . $max_commit_size . '" /> |
35 |
|
</label> |
|
36 |
32 |
<br /> |
<br /> |
37 |
33 |
<br /> |
<br /> |
38 |
34 |
|
|
39 |
|
<label for="max_users"> |
|
40 |
|
<span class="form_item_title">Max number of users</span><br /> |
|
|
35 |
|
<label for="max_users" class="form_item_title">Max number of users</label><br /> |
41 |
36 |
<input type="text" name="max_users" value="' . $max_users . '" /> |
<input type="text" name="max_users" value="' . $max_users . '" /> |
42 |
|
</label> |
|
43 |
37 |
<br /> |
<br /> |
44 |
38 |
<br /> |
<br /> |
45 |
39 |
|
|
46 |
|
<label for="description"> |
|
47 |
|
<span class="form_item_title">Description</span><br /> |
|
|
40 |
|
<label for="description" class="form_item_title">Description</label><br /> |
48 |
41 |
<textarea name="description" value="' . $description . '" rows="4" cols="30">' . $description . '</textarea> |
<textarea name="description" value="' . $description . '" rows="4" cols="30">' . $description . '</textarea> |
49 |
|
</label> |
|
50 |
42 |
<br /> |
<br /> |
51 |
43 |
<br /> |
<br /> |
52 |
44 |
|
|
53 |
45 |
|
|
54 |
|
<label for="default_rights"> |
|
55 |
|
<span class="form_item_title">Default rights</span><br /> |
|
56 |
|
(for anonymous access, un-select all for private repositories)<br /> |
|
|
46 |
|
<label for="default_rights" class="form_item_title">Default rights for anonymous access</label><br /> |
|
47 |
|
(un-check all for private repositories)<br /> |
57 |
48 |
' . rg_rights_checkboxes("repo", $rights) . ' |
' . rg_rights_checkboxes("repo", $rights) . ' |
58 |
|
</label> |
|
59 |
49 |
<br /> |
<br /> |
60 |
50 |
<br /> |
<br /> |
61 |
51 |
|
|
62 |
|
<label for="button"> |
|
63 |
52 |
<input type="submit" name="button" value="' . $_action . '" /> |
<input type="submit" name="button" value="' . $_action . '" /> |
64 |
|
</label> |
|
65 |
53 |
|
|
66 |
54 |
</form> |
</form> |
67 |
55 |
</div> |
</div> |
File inc/repo/search.form.php changed (mode: 100644) (index b458786..f91f189) |
... |
... |
$_form .= ' |
8 |
8 |
<form method="post" action="' . rg_re_post($cop) . '"> |
<form method="post" action="' . rg_re_post($cop) . '"> |
9 |
9 |
<input type="hidden" name="doit" value="1" /> |
<input type="hidden" name="doit" value="1" /> |
10 |
10 |
|
|
11 |
|
<label for="q">Name</label><br /> |
|
|
11 |
|
<label for="q" class="form_item_title">Name</label><br /> |
12 |
12 |
<input type="text" name="q" value="" /> |
<input type="text" name="q" value="" /> |
13 |
13 |
<br /> |
<br /> |
14 |
14 |
<br /> |
<br /> |
15 |
15 |
|
|
16 |
|
<label for="masters">Only masters?</label><br /> |
|
|
16 |
|
<label for="masters" class="form_item_title">Only masters?</label><br /> |
17 |
17 |
<select name="masters"> |
<select name="masters"> |
18 |
18 |
<option value="1">Yes</option> |
<option value="1">Yes</option> |
19 |
19 |
<option value="0">No</option> |
<option value="0">No</option> |
|
... |
... |
$_form .= ' |
21 |
21 |
<br /> |
<br /> |
22 |
22 |
<br /> |
<br /> |
23 |
23 |
|
|
24 |
|
<label for="button"> |
|
25 |
24 |
<input type="submit" name="button" value="Search!" /> |
<input type="submit" name="button" value="Search!" /> |
26 |
|
</label> |
|
27 |
25 |
|
|
28 |
26 |
</form> |
</form> |
29 |
27 |
</div> |
</div> |
File inc/user/forgot.form.php changed (mode: 100644) (index f9bae34..76aa4f7) |
... |
... |
$_forgot_form .= ' |
10 |
10 |
<input type="hidden" name="doit" value="1" /> |
<input type="hidden" name="doit" value="1" /> |
11 |
11 |
<input type="hidden" name="token" value="' . rg_token_get($db, $sid) . '" /> |
<input type="hidden" name="token" value="' . rg_token_get($db, $sid) . '" /> |
12 |
12 |
|
|
13 |
|
<label for="pass1"> |
|
14 |
|
<span class="form_item_title">New password</span<br /> |
|
|
13 |
|
<label for="pass1" class="form_item_title">New password</label><br /> |
15 |
14 |
<input type="password" name="pass1" value="" /> |
<input type="password" name="pass1" value="" /> |
16 |
|
</label> |
|
17 |
15 |
<br /> |
<br /> |
18 |
16 |
<br /> |
<br /> |
19 |
17 |
|
|
20 |
|
<label for="pass2"> |
|
21 |
|
<span class="form_item_title">New password (re-type)</span><br /> |
|
|
18 |
|
<label for="pass2" class="form_item_title">New password (re-type)</label><br /> |
22 |
19 |
<input type="password" name="pass2" value="" /> |
<input type="password" name="pass2" value="" /> |
23 |
|
</label> |
|
24 |
20 |
<br /> |
<br /> |
25 |
21 |
<br /> |
<br /> |
26 |
22 |
|
|
27 |
|
<label for="button"> |
|
28 |
23 |
<input type="submit" name="button" value="Change password" /> |
<input type="submit" name="button" value="Change password" /> |
29 |
|
</label> |
|
30 |
24 |
|
|
31 |
25 |
</form> |
</form> |
32 |
26 |
</div> |
</div> |
File inc/user/forgot_send.form.php changed (mode: 100644) (index e75894a..1a25042) |
... |
... |
$_form .= ' |
8 |
8 |
<form method="post" action="' . rg_re_post($cop . "/forgot_send") . '"> |
<form method="post" action="' . rg_re_post($cop . "/forgot_send") . '"> |
9 |
9 |
<input type="hidden" name="doit" value="1" /> |
<input type="hidden" name="doit" value="1" /> |
10 |
10 |
|
|
11 |
|
<label for="email"> |
|
12 |
|
<span class="form_item_title">E-mail</span><br /> |
|
|
11 |
|
<label for="email" class="form_item_title">E-mail</label><br /> |
13 |
12 |
<input type="text" name="email" value="' . $email . '" /> |
<input type="text" name="email" value="' . $email . '" /> |
14 |
|
</label> |
|
15 |
13 |
<br /> |
<br /> |
16 |
14 |
<br /> |
<br /> |
17 |
15 |
|
|
18 |
|
<label for="button"> |
|
19 |
16 |
<input type="submit" name="button" value="Recover password" /> |
<input type="submit" name="button" value="Recover password" /> |
20 |
|
</label> |
|
21 |
17 |
|
|
22 |
18 |
</form> |
</form> |
23 |
19 |
</div> |
</div> |
File inc/user/keys/add.form.php changed (mode: 100644) (index c270760..9fbb6ea) |
... |
... |
$_form .= ' |
12 |
12 |
<input type="hidden" name="add" value="1" /> |
<input type="hidden" name="add" value="1" /> |
13 |
13 |
<input type="hidden" name="token" value="' . rg_token_get($db, $sid) . '" /> |
<input type="hidden" name="token" value="' . rg_token_get($db, $sid) . '" /> |
14 |
14 |
|
|
15 |
|
<label for="key">Key string (starts with ssh-...)</label><br /> |
|
|
15 |
|
<label for="key" class="form_item_title">Key string (starts with ssh-...)</label><br /> |
16 |
16 |
<textarea name="key" value="' . $key . '" rows="4" cols="50"></textarea> |
<textarea name="key" value="' . $key . '" rows="4" cols="50"></textarea> |
17 |
17 |
<br /> |
<br /> |
18 |
18 |
<br /> |
<br /> |
19 |
19 |
|
|
20 |
|
<label for="button"> |
|
21 |
20 |
<input type="submit" name="button" value="Add!" /> |
<input type="submit" name="button" value="Add!" /> |
22 |
|
</label> |
|
23 |
21 |
|
|
24 |
22 |
</form> |
</form> |
25 |
23 |
</div> |
</div> |
26 |
24 |
'; |
'; |
27 |
25 |
|
|
28 |
|
|
|
29 |
26 |
?> |
?> |
File inc/user/pass/pass.form.php changed (mode: 100644) (index 7fa0b75..0e4b71b) |
... |
... |
$_chpass_form .= ' |
11 |
11 |
<input type="hidden" name="doit" value="1" /> |
<input type="hidden" name="doit" value="1" /> |
12 |
12 |
<input type="hidden" name="token" value="' . rg_token_get($db, $sid) . '" /> |
<input type="hidden" name="token" value="' . rg_token_get($db, $sid) . '" /> |
13 |
13 |
|
|
14 |
|
<label for="old_pass"> |
|
15 |
|
<span class="form_item_title">Old password</span><br /> |
|
|
14 |
|
<label for="old_pass" class="form_item_title">Old password</label><br /> |
16 |
15 |
<input type="password" name="old_pass" value="" /> |
<input type="password" name="old_pass" value="" /> |
17 |
|
</label> |
|
18 |
16 |
<br /> |
<br /> |
19 |
17 |
<br /> |
<br /> |
20 |
18 |
|
|
21 |
|
<label for="pass1"> |
|
22 |
|
<span class="form_item_title">New password</span><br /> |
|
|
19 |
|
<label for="pass1" class="form_item_title">New password</label><br /> |
23 |
20 |
<input type="password" name="pass1" value="" /> |
<input type="password" name="pass1" value="" /> |
24 |
|
</label> |
|
25 |
21 |
<br /> |
<br /> |
26 |
22 |
<br /> |
<br /> |
27 |
23 |
|
|
28 |
|
<label for="pass2"> |
|
29 |
|
<span class="form_item_title">New password (re-type)</span><br /> |
|
|
24 |
|
<label for="pass2" class="form_item_title">New password (re-type)</label><br /> |
30 |
25 |
<input type="password" name="pass2" value="" /> |
<input type="password" name="pass2" value="" /> |
31 |
|
</label> |
|
32 |
26 |
<br /> |
<br /> |
33 |
27 |
<br /> |
<br /> |
34 |
28 |
|
|
35 |
|
<label for="button"> |
|
36 |
29 |
<input type="submit" name="button" value="Change password" /> |
<input type="submit" name="button" value="Change password" /> |
37 |
|
</label> |
|
38 |
30 |
|
|
39 |
31 |
</form> |
</form> |
40 |
32 |
</div> |
</div> |