File inc/admin/users/user.form.php changed (mode: 100644) (index a3d4124..2c24d86) |
... |
... |
if ($admin_mode == 1) { |
6 |
6 |
$sel_is_admin[$is_admin] = " selected=\"selected\""; |
$sel_is_admin[$is_admin] = " selected=\"selected\""; |
7 |
7 |
} |
} |
8 |
8 |
|
|
|
9 |
|
$_form .= '<div class="formarea">'; |
|
10 |
|
|
9 |
11 |
if (count($errmsg) > 0) |
if (count($errmsg) > 0) |
10 |
|
$_form .= "<font color=red>" . implode("<br />\n", $errmsg) . "</font><br />\n"; |
|
|
12 |
|
$_form .= '<span class="error">' . implode("<br />\n", $error) . '</span><br /><br />' . "\n"; |
11 |
13 |
|
|
12 |
14 |
$_form .= ' |
$_form .= ' |
13 |
15 |
<form method="post" action="' . $_SERVER['PHP_SELF'] . '"> |
<form method="post" action="' . $_SERVER['PHP_SELF'] . '"> |
|
... |
... |
$_form .= ' |
18 |
20 |
<input type="hidden" name="token" value="' . rg_token_get($db, $sid) . '"> |
<input type="hidden" name="token" value="' . rg_token_get($db, $sid) . '"> |
19 |
21 |
<input type="hidden" name="uid" value="' . $uid . '"> |
<input type="hidden" name="uid" value="' . $uid . '"> |
20 |
22 |
|
|
21 |
|
<table> |
|
22 |
|
<tr> |
|
23 |
|
<td>User name:</td> |
|
24 |
|
<td><input type="text" name="xuser" value="' . $xuser . '"/></td> |
|
25 |
|
</tr> |
|
|
23 |
|
<label for="xuser"> |
|
24 |
|
User name<br /> |
|
25 |
|
<input type="text" name="xuser" value="' . $xuser . '"/> |
|
26 |
|
</label> |
|
27 |
|
<br /> |
|
28 |
|
<br /> |
26 |
29 |
|
|
27 |
|
<tr> |
|
28 |
|
<td>E-mail:</td> |
|
29 |
|
<td><input type="text" name="email" value="' . $email . '"/></td> |
|
30 |
|
</tr> |
|
|
30 |
|
<label for="email"> |
|
31 |
|
E-mail<br /> |
|
32 |
|
<input type="text" name="email" value="' . $email . '"/> |
|
33 |
|
</label> |
|
34 |
|
<br /> |
|
35 |
|
<br /> |
31 |
36 |
'; |
'; |
32 |
37 |
|
|
33 |
38 |
if ($pass_mode > 0) { |
if ($pass_mode > 0) { |
34 |
39 |
$_form .= ' |
$_form .= ' |
35 |
|
<tr> |
|
36 |
|
<td>Password:</td> |
|
37 |
|
<td><input type="password" name="xpass" value="' . $xpass . '"/></td> |
|
38 |
|
</tr> |
|
|
40 |
|
<label for="xpass"> |
|
41 |
|
Password<br /> |
|
42 |
|
<input type="password" name="xpass" value="' . $xpass . '"/> |
|
43 |
|
</label> |
|
44 |
|
<br /> |
|
45 |
|
<br /> |
39 |
46 |
'; |
'; |
40 |
47 |
} |
} |
41 |
48 |
|
|
42 |
49 |
if ($pass_mode > 1) { |
if ($pass_mode > 1) { |
43 |
50 |
$_form .= ' |
$_form .= ' |
44 |
|
<tr> |
|
45 |
|
<td>Password (confirmation):</td> |
|
46 |
|
<td><input type="password" name="xpass2" value="' . $xpass2 . '"/></td> |
|
47 |
|
</tr> |
|
|
51 |
|
<label for="xpass2"> |
|
52 |
|
Password (confirmation)<br /> |
|
53 |
|
<input type="password" name="xpass2" value="' . $xpass2 . '"/> |
|
54 |
|
</label> |
|
55 |
|
<br /> |
|
56 |
|
<br /> |
48 |
57 |
'; |
'; |
49 |
58 |
} |
} |
50 |
59 |
|
|
51 |
60 |
if ($admin_mode == 1) { |
if ($admin_mode == 1) { |
52 |
61 |
$_form .= ' |
$_form .= ' |
53 |
|
<tr> |
|
54 |
|
<td>Admin?</td> |
|
55 |
|
<td> |
|
56 |
|
<select name="is_admin"> |
|
57 |
|
<option value="0"' . $sel_is_admin[0] . '>No</option> |
|
58 |
|
<option value="1"' . $sel_is_admin[1] . '>Yes</option> |
|
59 |
|
</select> |
|
60 |
|
</td> |
|
61 |
|
</tr> |
|
|
62 |
|
<label for="is_admin"> |
|
63 |
|
Admin?<br /> |
|
64 |
|
<select name="is_admin"> |
|
65 |
|
<option value="0"' . $sel_is_admin[0] . '>No</option> |
|
66 |
|
<option value="1"' . $sel_is_admin[1] . '>Yes</option> |
|
67 |
|
</select> |
|
68 |
|
</label> |
|
69 |
|
<br /> |
|
70 |
|
<br /> |
62 |
71 |
|
|
63 |
|
<tr> |
|
64 |
|
<td>Disk quota (MiB):</td> |
|
65 |
|
<td><input type="text" name="disk_quota_mb" value="' . $disk_quota_mb . '"/></td> |
|
66 |
|
</tr> |
|
|
72 |
|
<label for="disk_quota_mb"> |
|
73 |
|
Disk quota (MiB)<br /> |
|
74 |
|
<input type="text" name="disk_quota_mb" value="' . $disk_quota_mb . '"/> |
|
75 |
|
</label> |
|
76 |
|
<br /> |
|
77 |
|
<br /> |
67 |
78 |
|
|
68 |
|
<tr> |
|
69 |
|
<td>Rights:</td> |
|
70 |
|
<td>' . rg_rights_checkboxes("user", $rights) . '</td> |
|
71 |
|
</tr> |
|
|
79 |
|
<label for="rights"> |
|
80 |
|
Rights<br /> |
|
81 |
|
' . rg_rights_checkboxes("user", $rights) . ' |
|
82 |
|
</label> |
|
83 |
|
<br /> |
|
84 |
|
<br /> |
72 |
85 |
'; |
'; |
73 |
86 |
} |
} |
74 |
87 |
|
|
75 |
88 |
$_form .= ' |
$_form .= ' |
76 |
|
<tr> |
|
77 |
|
<td>Preferred session time (in seconds):</td> |
|
78 |
|
<td><input type="text" name="session_time" value="' . $session_time . '"/></td> |
|
79 |
|
</tr> |
|
|
89 |
|
<label for="session_time"> |
|
90 |
|
Preferred session time (in seconds)<br /> |
|
91 |
|
<input type="text" name="session_time" value="' . $session_time . '"/> |
|
92 |
|
</label> |
|
93 |
|
<br /> |
|
94 |
|
<br /> |
80 |
95 |
|
|
81 |
|
<tr> |
|
82 |
|
<td colspan="2" align="center"><input type="submit" value="Go!"/></td> |
|
83 |
|
</tr> |
|
84 |
|
</table> |
|
|
96 |
|
<label for="button"> |
|
97 |
|
<input type="submit" value="Go!"/> |
|
98 |
|
</label> |
85 |
99 |
</form> |
</form> |
|
100 |
|
</div> |
86 |
101 |
'; |
'; |
87 |
102 |
?> |
?> |
File inc/feedback/suggestion.form.php changed (mode: 100644) (index ea65116..b6935e0) |
2 |
2 |
|
|
3 |
3 |
$_form = ""; |
$_form = ""; |
4 |
4 |
|
|
|
5 |
|
$_form .= '<div class="formarea">'; |
|
6 |
|
|
5 |
7 |
if (count($errmsg) > 0) |
if (count($errmsg) > 0) |
6 |
|
$_form .= "<font color=red>" . implode("<br />\n", $errmsg) . "</font><br />\n"; |
|
|
8 |
|
$_form .= '<span class="error">' . implode("<br />\n", $error) . '</span><br /><br />' . "\n"; |
7 |
9 |
|
|
8 |
10 |
$_form .= ' |
$_form .= ' |
9 |
11 |
<form method="post" action="' . rg_re_post("suggestion") . '"> |
<form method="post" action="' . rg_re_post("suggestion") . '"> |
|
... |
... |
$_form .= ' |
11 |
13 |
<input type="hidden" name="doit" value="1"> |
<input type="hidden" name="doit" value="1"> |
12 |
14 |
<input type="hidden" name="token" value="' . rg_token_get($db, $sid) . '"> |
<input type="hidden" name="token" value="' . rg_token_get($db, $sid) . '"> |
13 |
15 |
|
|
14 |
|
<table> |
|
15 |
|
<tr> |
|
16 |
|
<td>E-mail:</td> |
|
17 |
|
<td> |
|
18 |
|
<input type="text" name="email" value="' . $email . '"><br /> |
|
19 |
|
</td> |
|
20 |
|
</tr> |
|
21 |
|
|
|
22 |
|
<tr> |
|
23 |
|
<td>Suggection:</td> |
|
24 |
|
<td> |
|
25 |
|
<textarea name="suggestion" rows="6" cols="40">' . $suggestion . '</textarea><br /> |
|
26 |
|
</td> |
|
27 |
|
</tr> |
|
28 |
|
|
|
29 |
|
<tr> |
|
30 |
|
<td colspan="2"><input type="submit" value="Send"></td> |
|
31 |
|
</tr> |
|
32 |
|
|
|
33 |
|
</table> |
|
|
16 |
|
<label for="email"> |
|
17 |
|
<span class="form_item_title">E-mail</span><br /> |
|
18 |
|
<input type="text" name="email" value="' . $email . '"> |
|
19 |
|
</label> |
|
20 |
|
<br /> |
|
21 |
|
<br /> |
|
22 |
|
|
|
23 |
|
<label for="suggestion"> |
|
24 |
|
<span class="form_item_title">Suggestion</span><br /> |
|
25 |
|
<textarea name="suggestion" rows="6" cols="50">' . $suggestion . '</textarea> |
|
26 |
|
</label> |
|
27 |
|
<br /> |
|
28 |
|
<br /> |
|
29 |
|
|
|
30 |
|
<label for="button"> |
|
31 |
|
<input type="submit" value="Send"> |
|
32 |
|
</label> |
|
33 |
|
|
34 |
34 |
</form> |
</form> |
|
35 |
|
</div> |
35 |
36 |
'; |
'; |
36 |
37 |
|
|
37 |
38 |
?> |
?> |
File inc/keys/add.form.php changed (mode: 100644) (index a5cd233..744d24b) |
1 |
1 |
<?php |
<?php |
2 |
2 |
|
|
3 |
|
$_form = ' |
|
|
3 |
|
$_form = '<div class="formarea">'; |
|
4 |
|
|
|
5 |
|
if (count($errmsg) > 0) |
|
6 |
|
$_form .= '<span class="error">' . implode("<br />\n", $error) . '</span><br /><br />' . "\n"; |
|
7 |
|
|
|
8 |
|
$_form .= ' |
4 |
9 |
<form method="post" action="' . $_SERVER['PHP_SELF'] . '"> |
<form method="post" action="' . $_SERVER['PHP_SELF'] . '"> |
5 |
10 |
<input type="hidden" name="op" value="' . $op . '"> |
<input type="hidden" name="op" value="' . $op . '"> |
6 |
11 |
<input type="hidden" name="subop" value="' . $subop . '"> |
<input type="hidden" name="subop" value="' . $subop . '"> |
7 |
12 |
<input type="hidden" name="doit" value="1"> |
<input type="hidden" name="doit" value="1"> |
8 |
13 |
<input type="hidden" name="token" value="' . rg_token_get($db, $sid) . '"> |
<input type="hidden" name="token" value="' . rg_token_get($db, $sid) . '"> |
9 |
14 |
|
|
10 |
|
<table> |
|
11 |
|
<td>Key (starts with ssh-...):</td> |
|
12 |
|
<td> |
|
13 |
|
<textarea name="key" value="' . $key . '" rows="4" cols="30"></textarea><br /> |
|
14 |
|
</td> |
|
15 |
|
</tr> |
|
|
15 |
|
<label for="key"> |
|
16 |
|
<span class="form_item_title">Key (starts with ssh-...)</span><br /> |
|
17 |
|
<textarea name="key" value="' . $key . '" rows="4" cols="50"></textarea> |
|
18 |
|
</label> |
|
19 |
|
<br /> |
|
20 |
|
<br /> |
16 |
21 |
|
|
17 |
|
<tr> |
|
18 |
|
<td colspan="2"><input type="submit" value="Add!"></td> |
|
19 |
|
</tr> |
|
|
22 |
|
<label for="button"> |
|
23 |
|
<input type="submit" value="Add!" /> |
|
24 |
|
</label> |
20 |
25 |
|
|
21 |
|
</table> |
|
22 |
26 |
</form> |
</form> |
|
27 |
|
</viv> |
23 |
28 |
'; |
'; |
24 |
29 |
|
|
25 |
30 |
|
|
File inc/login/login.form.php changed (mode: 100644) (index dd81c57..4897d66) |
1 |
1 |
<?php |
<?php |
2 |
|
$_form = ''; |
|
|
2 |
|
$_form = '<div class="formarea">'; |
3 |
3 |
|
|
4 |
4 |
if (count($errmsg) > 0) |
if (count($errmsg) > 0) |
5 |
|
$_form .= "<font color=red>" . implode("<br />\n", $errmsg) . "</font><br />\n"; |
|
|
5 |
|
$_form .= '<span class="error">' . implode("<br />\n", $error) . '</span><br /><br />' . "\n"; |
6 |
6 |
|
|
7 |
7 |
$_form .= ' |
$_form .= ' |
8 |
8 |
<form method="post" action="' . $_SERVER['PHP_SELF'] . '"> |
<form method="post" action="' . $_SERVER['PHP_SELF'] . '"> |
|
... |
... |
$_form .= ' |
10 |
10 |
<input type="hidden" name="subop" value="1"> |
<input type="hidden" name="subop" value="1"> |
11 |
11 |
<input type="hidden" name="doit" value="1"> |
<input type="hidden" name="doit" value="1"> |
12 |
12 |
|
|
13 |
|
Username: <input type="text" name="user" value="' . $user . '"><br /> |
|
14 |
|
Password: <input type="password" name="pass" value="' . $pass . '"><br /> |
|
|
13 |
|
<label for="username"> |
|
14 |
|
Username<br /> |
|
15 |
|
<input type="text" name="user" value="' . $user . '"> |
|
16 |
|
</label> |
|
17 |
|
<br /> |
|
18 |
|
<br /> |
|
19 |
|
|
|
20 |
|
<label for="password"> |
|
21 |
|
Password<br /> |
|
22 |
|
<input type="password" name="pass" value="' . $pass . '"> |
|
23 |
|
</label> |
|
24 |
|
<br /> |
|
25 |
|
<br /> |
|
26 |
|
|
|
27 |
|
<label for="button"> |
15 |
28 |
<input type="submit" value="Login"> |
<input type="submit" value="Login"> |
|
29 |
|
</label> |
16 |
30 |
</form> |
</form> |
17 |
31 |
<br /> |
<br /> |
18 |
32 |
<a href="' . rg_re_url("forgot_send") . '">Forgot your password?</a> |
<a href="' . rg_re_url("forgot_send") . '">Forgot your password?</a> |
|
... |
... |
$_form .= ' |
25 |
39 |
'; |
'; |
26 |
40 |
} |
} |
27 |
41 |
|
|
28 |
|
?> |
|
|
42 |
|
$_form .= ' |
|
43 |
|
</div> |
|
44 |
|
'; |
|
45 |
|
|
|
46 |
|
?> |
File inc/personal/pass.form.php changed (mode: 100644) (index 697b24c..ad63df0) |
1 |
1 |
<?php |
<?php |
2 |
2 |
|
|
3 |
|
$_chpass_form = ""; |
|
|
3 |
|
$_chpass_form = '<div class="formarea">' . "\n"; |
4 |
4 |
|
|
5 |
5 |
if (count($error) > 0) |
if (count($error) > 0) |
6 |
|
$_chpass_form .= "<font color=red>" . implode("<br />\n", $error) . "</font><br />\n"; |
|
|
6 |
|
$_chpass_form .= '<span class="error">' . implode("<br />\n", $error) . '</span><br /><br />' . "\n"; |
7 |
7 |
|
|
8 |
8 |
$_chpass_form .= ' |
$_chpass_form .= ' |
9 |
9 |
<form method="post" action="' . $_SERVER['PHP_SELF'] . '"> |
<form method="post" action="' . $_SERVER['PHP_SELF'] . '"> |
|
... |
... |
$_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 |
|
<table> |
|
15 |
|
<tr> |
|
16 |
|
<td>Old password:</td> |
|
17 |
|
<td> |
|
18 |
|
<input type="password" name="old_pass" value=""><br /> |
|
19 |
|
</td> |
|
20 |
|
</tr> |
|
21 |
|
|
|
22 |
|
<tr> |
|
23 |
|
<td>New password:</td> |
|
24 |
|
<td> |
|
25 |
|
<input type="password" name="pass1" value=""><br /> |
|
26 |
|
</td> |
|
27 |
|
</tr> |
|
28 |
|
|
|
29 |
|
<tr> |
|
30 |
|
<td>New password (retype):</td> |
|
31 |
|
<td> |
|
32 |
|
<input type="password" name="pass2" value=""><br /> |
|
33 |
|
</td> |
|
34 |
|
</tr> |
|
35 |
|
|
|
36 |
|
<tr> |
|
37 |
|
<td colspan="2"><input type="submit" value="Change password"></td> |
|
38 |
|
</tr> |
|
39 |
|
|
|
40 |
|
</table> |
|
|
14 |
|
<label for="pldpass"> |
|
15 |
|
<span class="form_item_title">Old password</span><br /> |
|
16 |
|
<input type="password" name="old_pass" value=""> |
|
17 |
|
</label> |
|
18 |
|
<br /> |
|
19 |
|
<br /> |
|
20 |
|
|
|
21 |
|
<label for="pass1"> |
|
22 |
|
<span class="form_item_title">New password</span><br /> |
|
23 |
|
<input type="password" name="pass1" value=""> |
|
24 |
|
</label> |
|
25 |
|
<br /> |
|
26 |
|
<br /> |
|
27 |
|
|
|
28 |
|
<label for="pass2"> |
|
29 |
|
<span class="form_item_title">New password (re-type)</span><br /> |
|
30 |
|
<input type="password" name="pass2" value=""> |
|
31 |
|
</label> |
|
32 |
|
<br /> |
|
33 |
|
<br /> |
|
34 |
|
|
|
35 |
|
<label for="button"> |
|
36 |
|
<input type="submit" value="Change password"> |
|
37 |
|
</label> |
|
38 |
|
|
41 |
39 |
</form> |
</form> |
|
40 |
|
</div> |
42 |
41 |
'; |
'; |
43 |
42 |
|
|
44 |
43 |
?> |
?> |
File inc/personal/personal.php changed (mode: 100644) (index 510a6c1..518b7d4) |
... |
... |
$_menu .= " [<a href=\"$_url&subop=2\">Change pass</a>]"; |
16 |
16 |
$_menu .= "<br />\n"; |
$_menu .= "<br />\n"; |
17 |
17 |
$_menu .= "<br />\n"; |
$_menu .= "<br />\n"; |
18 |
18 |
|
|
|
19 |
|
$errmsg = array(); |
19 |
20 |
$_body = ""; |
$_body = ""; |
20 |
21 |
|
|
21 |
22 |
switch ($subop) { |
switch ($subop) { |
22 |
23 |
case 1: // edit info |
case 1: // edit info |
23 |
24 |
$uid = $rg_ui['uid']; |
$uid = $rg_ui['uid']; |
24 |
25 |
|
|
25 |
|
$errmsg = array(); |
|
26 |
26 |
if ($doit == 1) { |
if ($doit == 1) { |
27 |
27 |
// TODO: Check if user has the right to edit this info! |
// TODO: Check if user has the right to edit this info! |
28 |
28 |
if (!rg_token_valid($db, $sid, $token)) { |
if (!rg_token_valid($db, $sid, $token)) { |
|
... |
... |
case 1: // edit info |
65 |
65 |
|
|
66 |
66 |
case 2: // change password |
case 2: // change password |
67 |
67 |
$show_form = 1; |
$show_form = 1; |
68 |
|
$error = array(); |
|
69 |
68 |
if ($doit == 1) { |
if ($doit == 1) { |
70 |
69 |
$old_pass = rg_var_str("old_pass"); |
$old_pass = rg_var_str("old_pass"); |
71 |
70 |
$pass1 = rg_var_str("pass1"); |
$pass1 = rg_var_str("pass1"); |
File inc/repo/repo.form.php changed (mode: 100644) (index f8a751c..c836302) |
1 |
1 |
<?php |
<?php |
2 |
2 |
|
|
3 |
|
$_form = ' |
|
|
3 |
|
$_form = '<div class="formarea">'; |
|
4 |
|
|
|
5 |
|
if (count($errmsg) > 0) |
|
6 |
|
$_form .= '<span class="error">' . implode("<br />\n", $error) . '</span><br /><br />' . "\n"; |
|
7 |
|
|
|
8 |
|
$_form .= ' |
4 |
9 |
<form method="post" action="' . $_SERVER['PHP_SELF'] . '"> |
<form method="post" action="' . $_SERVER['PHP_SELF'] . '"> |
5 |
10 |
<input type="hidden" name="op" value="' . $op . '"> |
<input type="hidden" name="op" value="' . $op . '"> |
6 |
11 |
<input type="hidden" name="subop" value="' . $subop . '"> |
<input type="hidden" name="subop" value="' . $subop . '"> |
|
... |
... |
$_form = ' |
9 |
14 |
<input type="hidden" name="doit" value="1"> |
<input type="hidden" name="doit" value="1"> |
10 |
15 |
<input type="hidden" name="token" value="' . rg_token_get($db, $sid) . '"> |
<input type="hidden" name="token" value="' . rg_token_get($db, $sid) . '"> |
11 |
16 |
|
|
12 |
|
<table> |
|
13 |
17 |
'; |
'; |
14 |
18 |
|
|
15 |
19 |
if ($master_repo_id > 0) { |
if ($master_repo_id > 0) { |
|
... |
... |
if ($master_repo_id > 0) { |
17 |
21 |
$_mi = repo_info($db, $master_repo_id, ""); |
$_mi = repo_info($db, $master_repo_id, ""); |
18 |
22 |
if ($_mi['exists'] == 1) |
if ($_mi['exists'] == 1) |
19 |
23 |
$master_name = $_mi['name']; |
$master_name = $_mi['name']; |
20 |
|
$_form .= '<tr><td>Master repo:</td><td>' . $master_name . '</td></tr>'; |
|
|
24 |
|
$_form .= 'Master repo:' . $master_name . '<br />'; |
21 |
25 |
} |
} |
22 |
26 |
|
|
23 |
27 |
$_form .= ' |
$_form .= ' |
24 |
|
<tr> |
|
25 |
|
<td>Name:</td> |
|
26 |
|
<td> |
|
27 |
|
<input type="text" name="name" value="' . $name . '" /><br /> |
|
28 |
|
</td> |
|
29 |
|
</tr> |
|
|
28 |
|
<label for="name"> |
|
29 |
|
<span class="form_item_title">Name</span><br /> |
|
30 |
|
<input type="text" name="name" value="' . $name . '" /> |
|
31 |
|
</label> |
|
32 |
|
<br /> |
|
33 |
|
<br /> |
30 |
34 |
|
|
31 |
|
<tr> |
|
32 |
|
<td>Max commit size (bytes):</td> |
|
33 |
|
<td> |
|
34 |
|
<input type="text" name="max_commit_size" value="' . $max_commit_size . '" /><br /> |
|
35 |
|
</td> |
|
36 |
|
</tr> |
|
|
35 |
|
<label for="max_commit_size"> |
|
36 |
|
<span class="form_item_title">Max commit size (bytes)</span><br /> |
|
37 |
|
<input type="text" name="max_commit_size" value="' . $max_commit_size . '" /> |
|
38 |
|
</label> |
|
39 |
|
<br /> |
|
40 |
|
<br /> |
37 |
41 |
|
|
38 |
|
<tr> |
|
39 |
|
<td>Max number of users:</td> |
|
40 |
|
<td> |
|
41 |
|
<input type="text" name="max_users" value="' . $max_users . '" /><br /> |
|
42 |
|
</td> |
|
43 |
|
</tr> |
|
|
42 |
|
<label for="max_users"> |
|
43 |
|
<span class="form_item_title">Max number of users</span><br /> |
|
44 |
|
<input type="text" name="max_users" value="' . $max_users . '" /> |
|
45 |
|
</label> |
|
46 |
|
<br /> |
|
47 |
|
<br /> |
44 |
48 |
|
|
45 |
|
<tr> |
|
46 |
|
<td>Description:</td> |
|
47 |
|
<td> |
|
48 |
|
<textarea name="description" value="' . $description . '" rows="4" cols="30">' . $description . '</textarea><br /> |
|
49 |
|
</td> |
|
50 |
|
</tr> |
|
|
49 |
|
<label for="description"> |
|
50 |
|
<span class="form_item_title">Description</span><br /> |
|
51 |
|
<textarea name="description" value="' . $description . '" rows="4" cols="30">' . $description . '</textarea> |
|
52 |
|
</label> |
|
53 |
|
<br /> |
|
54 |
|
<br /> |
51 |
55 |
|
|
52 |
|
<tr> |
|
53 |
|
<td>Default rights (for anonymous access, un-select all for private repositories):</td> |
|
54 |
|
<td> |
|
55 |
|
' . rg_rights_checkboxes("repo", $rights) . ' |
|
56 |
|
</td> |
|
57 |
|
</tr> |
|
58 |
56 |
|
|
59 |
|
<tr> |
|
60 |
|
<td colspan="2"><input type="submit" value="' . $_action . '" /></td> |
|
61 |
|
</tr> |
|
|
57 |
|
<label for="default_rights"> |
|
58 |
|
<span class="form_item_title">Default rights</span><br /> |
|
59 |
|
(for anonymous access, un-select all for private repositories)<br /> |
|
60 |
|
' . rg_rights_checkboxes("repo", $rights) . ' |
|
61 |
|
</label> |
|
62 |
|
<br /> |
|
63 |
|
<br /> |
|
64 |
|
|
|
65 |
|
<label for="button"> |
|
66 |
|
<input type="submit" value="' . $_action . '" /> |
|
67 |
|
</label> |
62 |
68 |
|
|
63 |
|
</table> |
|
64 |
69 |
</form> |
</form> |
|
70 |
|
</div> |
65 |
71 |
'; |
'; |
66 |
72 |
|
|
67 |
|
|
|
68 |
73 |
?> |
?> |
File inc/repo/repo_page.php changed (mode: 100644) (index 4eb37eb..253a3fa) |
... |
... |
if ($repo_ok !== TRUE) { |
37 |
37 |
$repo_id = $ri['repo_id']; |
$repo_id = $ri['repo_id']; |
38 |
38 |
|
|
39 |
39 |
$show_repo_info = 1; |
$show_repo_info = 1; |
|
40 |
|
$errmsg = array(); |
|
41 |
|
|
40 |
42 |
switch ($subop) { |
switch ($subop) { |
41 |
43 |
case 1: // edit |
case 1: // edit |
42 |
44 |
if ($doit == 1) { |
if ($doit == 1) { |
|
... |
... |
case 1: // edit |
75 |
77 |
break; |
break; |
76 |
78 |
|
|
77 |
79 |
case 2: // rights |
case 2: // rights |
78 |
|
$errmsg = array(); |
|
79 |
|
|
|
80 |
80 |
$remove_uid = rg_var_uint("remove_uid"); |
$remove_uid = rg_var_uint("remove_uid"); |
81 |
81 |
rg_log("\tDEBUG remove_uid=$remove_uid"); |
rg_log("\tDEBUG remove_uid=$remove_uid"); |
82 |
82 |
|
|
|
... |
... |
case 2: // rights |
127 |
127 |
break; |
break; |
128 |
128 |
|
|
129 |
129 |
case 3: // delete |
case 3: // delete |
130 |
|
$errmsg = array(); |
|
131 |
|
|
|
132 |
130 |
while (1) { |
while (1) { |
133 |
131 |
if (rg_repo_allow($db, $ri, $rg_ui, "A") === FALSE) { |
if (rg_repo_allow($db, $ri, $rg_ui, "A") === FALSE) { |
134 |
132 |
$errmsg[] = "Not allowed!"; |
$errmsg[] = "Not allowed!"; |
|
... |
... |
if ($show_repo_info == 1) { |
165 |
163 |
$_rt .= "Default rights: " . implode(", ", $_dr) . "<br />\n"; |
$_rt .= "Default rights: " . implode(", ", $_dr) . "<br />\n"; |
166 |
164 |
$_rt .= "Maxim commit size: " . rg_1024($ri['max_commit_size']) . "<br />\n"; |
$_rt .= "Maxim commit size: " . rg_1024($ri['max_commit_size']) . "<br />\n"; |
167 |
165 |
$_rt .= "Maxim number of users: " . $ri['max_users'] . "<br />\n"; |
$_rt .= "Maxim number of users: " . $ri['max_users'] . "<br />\n"; |
168 |
|
$_url = "git://" . $_SERVER['HTTP_HOST'] . "/" . $ri['name'] . ".git"; |
|
|
166 |
|
$_url = "git://" . $_SERVER['SERVER_NAME'] . "/" . $ri['name'] . ".git"; |
169 |
167 |
if (!empty($_dr)) |
if (!empty($_dr)) |
170 |
168 |
$_rt .= "Git URL: <a href=\"$_url\">$_url</a><br />\n"; |
$_rt .= "Git URL: <a href=\"$_url\">$_url</a><br />\n"; |
171 |
|
$_url = "ssh://rocketgit@" . $_SERVER['HTTP_HOST'] . "/" . $ri['name'] . ".git"; |
|
|
169 |
|
$_url = "ssh://rocketgit@" . $_SERVER['SERVER_NAME'] . "/" . $ri['name'] . ".git"; |
172 |
170 |
$_rt .= "Git over SSH URL: <a href=\"$_url\">$_url</a><br />\n"; |
$_rt .= "Git over SSH URL: <a href=\"$_url\">$_url</a><br />\n"; |
173 |
171 |
$_rt .= "<br />\n"; |
$_rt .= "<br />\n"; |
174 |
172 |
} |
} |
File inc/repo/rights.form.php changed (mode: 100644) (index 160ce44..9028216) |
1 |
1 |
<?php |
<?php |
2 |
2 |
|
|
3 |
|
$_form = ' |
|
4 |
|
<font color="red">' . implode("<br />\n", $errmsg) . '</font><br /> |
|
|
3 |
|
$_form = '<div class="formarea">'; |
|
4 |
|
|
|
5 |
|
if (count($errmsg) > 0) |
|
6 |
|
$_form .= '<span class="error">' . implode("<br />\n", $error) . '</span><br /><br />' . "\n"; |
|
7 |
|
|
5 |
8 |
<form method="post" action="' . $_SERVER['PHP_SELF'] . '"> |
<form method="post" action="' . $_SERVER['PHP_SELF'] . '"> |
6 |
9 |
<input type="hidden" name="op" value="' . $op . '"> |
<input type="hidden" name="op" value="' . $op . '"> |
7 |
10 |
<input type="hidden" name="subop" value="' . $subop . '"> |
<input type="hidden" name="subop" value="' . $subop . '"> |
|
... |
... |
$_form = ' |
9 |
12 |
<input type="hidden" name="doit" value="1"> |
<input type="hidden" name="doit" value="1"> |
10 |
13 |
<input type="hidden" name="token" value="' . rg_token_get($db, $sid) . '"> |
<input type="hidden" name="token" value="' . rg_token_get($db, $sid) . '"> |
11 |
14 |
|
|
12 |
|
<table> |
|
13 |
|
<tr> |
|
14 |
|
<td>User:</td> |
|
15 |
|
<td> |
|
16 |
|
<input type="text" name="user" value="' . $user . '" /> |
|
17 |
|
</td> |
|
18 |
|
</tr> |
|
19 |
|
|
|
20 |
|
<tr> |
|
21 |
|
<td>Rights:</td> |
|
22 |
|
<td> |
|
23 |
|
' . rg_rights_checkboxes("repo", $rights) . ' |
|
24 |
|
</td> |
|
25 |
|
</tr> |
|
26 |
|
|
|
27 |
|
<tr> |
|
28 |
|
<td colspan="2"><input type="submit" value="Give"></td> |
|
29 |
|
</tr> |
|
30 |
|
|
|
31 |
|
</table> |
|
|
15 |
|
<label for="user"> |
|
16 |
|
<span class="form_item_title">User</span><br/> |
|
17 |
|
<input type="text" name="user" value="' . $user . '" /> |
|
18 |
|
</label> |
|
19 |
|
<br /> |
|
20 |
|
<br /> |
|
21 |
|
|
|
22 |
|
<label for="rights"> |
|
23 |
|
<span class="form_item_title">Rights</span><br /> |
|
24 |
|
' . rg_rights_checkboxes("repo", $rights) . ' |
|
25 |
|
</label> |
|
26 |
|
<br /> |
|
27 |
|
<br /> |
|
28 |
|
|
|
29 |
|
<label for="button"> |
|
30 |
|
<input type="submit" value="Grant"> |
|
31 |
|
</label> |
|
32 |
|
|
32 |
33 |
</form> |
</form> |
|
34 |
|
</div> |
33 |
35 |
'; |
'; |
34 |
36 |
|
|
35 |
|
|
|
36 |
37 |
?> |
?> |
File inc/repo/search.form.php changed (mode: 100644) (index cec795a..79d1fb8) |
1 |
1 |
<?php |
<?php |
2 |
2 |
|
|
3 |
|
$_form = ' |
|
|
3 |
|
$_form = '<div class="formarea">'; |
|
4 |
|
|
|
5 |
|
if (count($errmsg) > 0) |
|
6 |
|
$_form .= '<span class="error">' . implode("<br />\n", $error) . '</span><br /><br />' . "\n"; |
|
7 |
|
|
|
8 |
|
$_form .= ' |
4 |
9 |
<form method="post" action="' . $_SERVER['PHP_SELF'] . '"> |
<form method="post" action="' . $_SERVER['PHP_SELF'] . '"> |
5 |
10 |
<input type="hidden" name="op" value="' . $op . '"> |
<input type="hidden" name="op" value="' . $op . '"> |
6 |
11 |
<input type="hidden" name="subop" value="' . $subop . '"> |
<input type="hidden" name="subop" value="' . $subop . '"> |
7 |
12 |
<input type="hidden" name="doit" value="1"> |
<input type="hidden" name="doit" value="1"> |
8 |
13 |
|
|
9 |
|
<table> |
|
10 |
|
<tr> |
|
11 |
|
<td>Name:</td> |
|
12 |
|
<td> |
|
13 |
|
<input type="text" name="q" value=""><br /> |
|
14 |
|
</td> |
|
15 |
|
</tr> |
|
16 |
|
|
|
17 |
|
<tr> |
|
18 |
|
<td>Only masters?</td> |
|
19 |
|
<td> |
|
20 |
|
<select name="masters"> |
|
21 |
|
<option value="1">Yes</option> |
|
22 |
|
<option value="0">No</option> |
|
23 |
|
</select> |
|
24 |
|
</td> |
|
25 |
|
</tr> |
|
26 |
|
|
|
27 |
|
<tr> |
|
28 |
|
<td colspan="2"><input type="submit" value="Search!"></td> |
|
29 |
|
</tr> |
|
30 |
|
|
|
31 |
|
</table> |
|
|
14 |
|
<label for="q"> |
|
15 |
|
<span class="form_item_title">Name</span><br /> |
|
16 |
|
<input type="text" name="q" value=""> |
|
17 |
|
</label> |
|
18 |
|
<br /> |
|
19 |
|
<br /> |
|
20 |
|
|
|
21 |
|
<label for="masters"> |
|
22 |
|
<span class="form_item_title">Only masters?</span><br /> |
|
23 |
|
<select name="masters"> |
|
24 |
|
<option value="1">Yes</option> |
|
25 |
|
<option value="0">No</option> |
|
26 |
|
</select> |
|
27 |
|
</label> |
|
28 |
|
<br /> |
|
29 |
|
<br /> |
|
30 |
|
|
|
31 |
|
<label="button"> |
|
32 |
|
<input type="submit" value="Search!"> |
|
33 |
|
</label> |
|
34 |
|
|
32 |
35 |
</form> |
</form> |
|
36 |
|
</div> |
33 |
37 |
'; |
'; |
34 |
38 |
|
|
35 |
|
|
|
36 |
39 |
?> |
?> |
File inc/user/forgot.form.php changed (mode: 100644) (index 5baca36..874474f) |
1 |
1 |
<?php |
<?php |
2 |
2 |
|
|
3 |
|
$_forgot_form = ""; |
|
|
3 |
|
$_forgot_form = '<div class="formarea">'; |
4 |
4 |
|
|
5 |
5 |
if (count($errmsg) > 0) |
if (count($errmsg) > 0) |
6 |
|
$_forgot_form .= "<font color=red>" . implode("<br />\n", $errmsg) . "</font><br />\n"; |
|
|
6 |
|
$_forgot_form .= '<span class="error">' . implode("<br />\n", $error) . '</span><br /><br />' . "\n"; |
7 |
7 |
|
|
8 |
8 |
$_forgot_form .= ' |
$_forgot_form .= ' |
9 |
9 |
<form method="post" action="' . $_SERVER['PHP_SELF'] . '"> |
<form method="post" action="' . $_SERVER['PHP_SELF'] . '"> |
|
... |
... |
$_forgot_form .= ' |
12 |
12 |
<input type="hidden" name="doit" value="1"> |
<input type="hidden" name="doit" 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 |
|
<table> |
|
16 |
|
<tr> |
|
17 |
|
<td>New password:</td> |
|
18 |
|
<td> |
|
19 |
|
<input type="password" name="pass1" value=""><br /> |
|
20 |
|
</td> |
|
21 |
|
</tr> |
|
22 |
|
|
|
23 |
|
<tr> |
|
24 |
|
<td>New password (retype):</td> |
|
25 |
|
<td> |
|
26 |
|
<input type="password" name="pass2" value=""><br /> |
|
27 |
|
</td> |
|
28 |
|
</tr> |
|
29 |
|
|
|
30 |
|
<tr> |
|
31 |
|
<td colspan="2"><input type="submit" value="Change password"></td> |
|
32 |
|
</tr> |
|
33 |
|
|
|
34 |
|
</table> |
|
|
15 |
|
<label for="pass1"> |
|
16 |
|
<span class="form_item_title">New password</span<br /> |
|
17 |
|
<input type="password" name="pass1" value=""> |
|
18 |
|
</label> |
|
19 |
|
<br /> |
|
20 |
|
<br /> |
|
21 |
|
|
|
22 |
|
<label for="pass2"> |
|
23 |
|
<span class="form_item_title">New password (retype)</span><br /> |
|
24 |
|
<input type="password" name="pass2" value=""> |
|
25 |
|
</label> |
|
26 |
|
<br /> |
|
27 |
|
<br /> |
|
28 |
|
|
|
29 |
|
<label for="button"> |
|
30 |
|
<input type="submit" value="Change password"> |
|
31 |
|
</label> |
|
32 |
|
|
35 |
33 |
</form> |
</form> |
|
34 |
|
</div> |
36 |
35 |
'; |
'; |
37 |
36 |
|
|
38 |
37 |
?> |
?> |
File inc/user/forgot_send.form.php changed (mode: 100644) (index ff806d6..7fa194b) |
1 |
1 |
<?php |
<?php |
2 |
|
$_form = ''; |
|
|
2 |
|
$_form = '<div class="formarea">'; |
3 |
3 |
|
|
4 |
4 |
if (count($errmsg) > 0) |
if (count($errmsg) > 0) |
5 |
|
$_form .= "<font color=red>" . implode("<br />\n", $errmsg) . "</font>\n"; |
|
|
5 |
|
$_form .= '<span class="error">' . implode("<br />\n", $error) . '</span><br /><br />' . "\n"; |
6 |
6 |
|
|
7 |
7 |
$_form .= ' |
$_form .= ' |
8 |
8 |
<form method="post" action="' . $_SERVER['PHP_SELF'] . '"> |
<form method="post" action="' . $_SERVER['PHP_SELF'] . '"> |
|
... |
... |
$_form .= ' |
10 |
10 |
<input type="hidden" name="subop" value="2"> |
<input type="hidden" name="subop" value="2"> |
11 |
11 |
<input type="hidden" name="doit" value="1"> |
<input type="hidden" name="doit" value="1"> |
12 |
12 |
|
|
13 |
|
E-mail: <input type="text" name="email" value=""><br /> |
|
|
13 |
|
<label for="email"> |
|
14 |
|
<span class="form_item_title">E-mail</span><br /> |
|
15 |
|
<input type="text" name="email" value=""> |
|
16 |
|
</label> |
|
17 |
|
<br /> |
|
18 |
|
<br /> |
|
19 |
|
|
|
20 |
|
<label for="button"> |
14 |
21 |
<input type="submit" value="Recover password"> |
<input type="submit" value="Recover password"> |
|
22 |
|
</label> |
|
23 |
|
|
15 |
24 |
</form> |
</form> |
|
25 |
|
</div> |
16 |
26 |
'; |
'; |
17 |
27 |
|
|
18 |
28 |
?> |
?> |
File root/index.php changed (mode: 100644) (index f81dc1a..df569f9) |
... |
... |
$_s = microtime(TRUE); |
7 |
7 |
$INC = dirname(__FILE__) . "/../inc"; |
$INC = dirname(__FILE__) . "/../inc"; |
8 |
8 |
$ROOT = dirname(__FILE__); |
$ROOT = dirname(__FILE__); |
9 |
9 |
|
|
10 |
|
$THEME = $ROOT . "/themes/default"; |
|
|
10 |
|
$THEME_NAME = "default"; |
|
11 |
|
$THEME = $ROOT . "/themes/" . $THEME_NAME; |
|
12 |
|
$THEME_URL = "themes/" . $THEME_NAME; |
11 |
13 |
$THEME_COMMON = "themes/common"; |
$THEME_COMMON = "themes/common"; |
12 |
14 |
|
|
13 |
15 |
require_once("/etc/rocketgit/config.php"); |
require_once("/etc/rocketgit/config.php"); |
|
... |
... |
foreach ($amenu as $_op => $_info) { |
73 |
75 |
continue; |
continue; |
74 |
76 |
|
|
75 |
77 |
$_text = $_info['text']; |
$_text = $_info['text']; |
76 |
|
if (strcmp($_op, $op) == 0) { |
|
77 |
|
$menu .= $add . "[$_text]\n"; |
|
78 |
|
} else { |
|
79 |
|
$menu .= $add . "<a class=\"menu\" href=\"" |
|
80 |
|
. rg_re_url($_op) . "\">$_text</a>\n"; |
|
81 |
|
} |
|
82 |
|
$add = " "; |
|
|
78 |
|
$menu .= $add . "<a class=\"menu\" href=\"" |
|
79 |
|
. rg_re_url($_op) . "\">$_text</a>\n"; |
|
80 |
|
$add = "\t "; |
83 |
81 |
} |
} |
84 |
82 |
|
|
85 |
83 |
if ($rg_ui['uid'] > 0) |
if ($rg_ui['uid'] > 0) |
File root/themes/default/index.php changed (mode: 100644) (index 1320dc5..2e3f034) |
1 |
|
<?php |
|
2 |
|
$css = preg_replace("/\n\t/", " ", @file_get_contents($THEME . "/main.css")); |
|
3 |
|
?> |
|
4 |
|
|
|
5 |
1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
6 |
2 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
<html xmlns="http://www.w3.org/1999/xhtml"> |
7 |
3 |
<head> |
<head> |
8 |
4 |
<title>RocketGit</title> |
<title>RocketGit</title> |
9 |
5 |
<meta http-equiv="content-type" content="text/html; charset=UTF-8" /> |
<meta http-equiv="content-type" content="text/html; charset=UTF-8" /> |
10 |
|
<style type="text/css"><?php echo $css; ?></style> |
|
|
6 |
|
<link rel="stylesheet" type="text/css" href="<?php echo $THEME_URL;?>/main.css" /> |
11 |
7 |
</head> |
</head> |
12 |
8 |
|
|
13 |
9 |
<body> |
<body> |
14 |
10 |
|
|
15 |
|
<table width="800" class="main_table" align="center"> |
|
16 |
|
<tr width="800"> |
|
17 |
|
<td class="white_border"> |
|
18 |
|
<div style="float: left"><img src="<?php echo $THEME_COMMON; ?>/../common/rg16x16.png" /> <b><i>RocketGit</i></b></div> |
|
19 |
|
<div style="padding-left: 120px"><?php echo $menu; ?></div> |
|
20 |
|
<div style="float: right"><?php echo $rg_username; ?></div> |
|
21 |
|
</td> |
|
22 |
|
</tr> |
|
|
11 |
|
<div class="header"> |
|
12 |
|
<div style="float: left; padding: 3px"><img src="<?php echo $THEME_COMMON; ?>/rg16x16.png" /></div> |
|
13 |
|
<div style="float: left"><b><i>RocketGit</i></b></div> |
|
14 |
|
<div style="float: right; padding: 3px"><b><?php echo $rg_username; ?></b></div> |
|
15 |
|
<div style="padding-left: 120px"> |
|
16 |
|
<?php echo $menu; ?> |
|
17 |
|
</div> |
|
18 |
|
</div> |
23 |
19 |
|
|
24 |
|
<tr> |
|
25 |
|
<td class="white_border" colspan="3"> |
|
|
20 |
|
<div class="main"> |
26 |
21 |
<?php echo $body; ?> |
<?php echo $body; ?> |
27 |
|
</td> |
|
28 |
|
</tr> |
|
|
22 |
|
</div> |
29 |
23 |
|
|
30 |
|
<tr> |
|
31 |
|
<td class="white_border" colspan="3"><small>Copyright: <a href="http://kernel.embedromix.ro" target="_new">Catalin(ux) M. BOIE</a></small></td> |
|
32 |
|
</tr> |
|
33 |
|
</table> |
|
|
24 |
|
<div class="footer"> |
|
25 |
|
<small>Copyright: <a href="http://kernel.embedromix.ro" target="_new">Catalin(ux) M. BOIE</a></small> |
|
26 |
|
</div> |
34 |
27 |
|
|
35 |
28 |
</body> |
</body> |
36 |
29 |
</html> |
</html> |
File root/themes/default/main.css changed (mode: 100644) (index 839b416..04591f7) |
... |
... |
body { |
4 |
4 |
font-size: 14px; |
font-size: 14px; |
5 |
5 |
} |
} |
6 |
6 |
|
|
7 |
|
.main_table { |
|
8 |
|
border-collapse: collapse; |
|
9 |
|
background: #ffffcc; |
|
10 |
|
color: #000; |
|
11 |
|
border-spacing: 1px; |
|
12 |
|
padding: 1px; |
|
13 |
|
} |
|
14 |
|
|
|
15 |
7 |
table { |
table { |
16 |
8 |
border-collapse: collapse; |
border-collapse: collapse; |
17 |
9 |
border: 1px solid #000; |
border: 1px solid #000; |
18 |
|
background: #fff; |
|
|
10 |
|
background: #ffffcc; |
19 |
11 |
color: #000; |
color: #000; |
20 |
12 |
border-spacing: 1px; |
border-spacing: 1px; |
21 |
13 |
padding: 1px; |
padding: 1px; |
|
... |
... |
th, td { |
25 |
17 |
vertical-align: top; |
vertical-align: top; |
26 |
18 |
text-align: left; |
text-align: left; |
27 |
19 |
padding: 3px; |
padding: 3px; |
28 |
|
border: 1px solid #000; |
|
|
20 |
|
border: 1px solid #aaaaaa; |
29 |
21 |
} |
} |
30 |
22 |
|
|
31 |
23 |
.white_border { |
.white_border { |
32 |
24 |
border: 1px solid #ffffcc; |
border: 1px solid #ffffcc; |
33 |
|
border: 1px solid #000; |
|
34 |
25 |
} |
} |
35 |
26 |
|
|
36 |
27 |
.menu { |
.menu { |
|
... |
... |
th, td { |
40 |
31 |
text-decoration: none; |
text-decoration: none; |
41 |
32 |
color: red; |
color: red; |
42 |
33 |
background-color: yellow; |
background-color: yellow; |
43 |
|
padding: 5px 20px; |
|
|
34 |
|
padding: 3px 20px; |
|
35 |
|
border-radius: 5px 5px 5px 5px; |
|
36 |
|
border: 1px solid #cccccc; |
|
37 |
|
margin: 1px; |
|
38 |
|
box-shadow: 2px 2px 3px #aaa; |
44 |
39 |
} |
} |
45 |
40 |
|
|
46 |
41 |
.menu:hover { |
.menu:hover { |
47 |
|
color: green; |
|
|
42 |
|
border: 1px solid #555555; |
|
43 |
|
} |
|
44 |
|
|
|
45 |
|
.formarea { |
|
46 |
|
margin: 20px auto; |
|
47 |
|
background-color: yellow; |
|
48 |
|
padding: 5px; |
|
49 |
|
width: 400px; |
|
50 |
|
border-radius: 5px 5px 5px 5px; |
|
51 |
|
border: 1px solid #cccccc; |
|
52 |
|
box-shadow: 2px 2px 3px #aaa; |
|
53 |
|
} |
|
54 |
|
|
|
55 |
|
.header { |
|
56 |
|
width: 900px; |
|
57 |
|
margin: 0 auto; |
|
58 |
|
border: 1px solid #ffffcc; |
|
59 |
|
background-color: #ffffcc; |
|
60 |
|
padding: 5px 5px; |
|
61 |
|
} |
|
62 |
|
|
|
63 |
|
.main { |
|
64 |
|
width: 900px; |
|
65 |
|
margin: 0 auto; |
|
66 |
|
background-color: #ffffcc; |
|
67 |
|
padding: 20px 5px; |
|
68 |
|
} |
|
69 |
|
|
|
70 |
|
.footer { |
|
71 |
|
width: 900px; |
|
72 |
|
border-top: 2px solid #cccccc; |
|
73 |
|
margin: 0 auto; |
|
74 |
|
background-color: #ffffcc; |
|
75 |
|
padding: 5px 5px; |
|
76 |
|
} |
|
77 |
|
|
|
78 |
|
.error { |
|
79 |
|
font-weight: bold; |
|
80 |
|
color: red; |
48 |
81 |
} |
} |
|
82 |
|
|
|
83 |
|
.form_item_title { |
|
84 |
|
font-weight: bold; |
|
85 |
|
} |
|
86 |
|
|