File inc/repo.inc.php changed (mode: 100644) (index bf1c8d8..9aa4eff) |
... |
... |
function rg_repo_admin($db, &$rg, $paras) |
1973 |
1973 |
$rg['allow_delete_repo'] = 1; |
$rg['allow_delete_repo'] = 1; |
1974 |
1974 |
|
|
1975 |
1975 |
$rg['menu']['repo'][$_op] = 1; |
$rg['menu']['repo'][$_op] = 1; |
1976 |
|
$ret .= rg_template("user/repo/menu.html", $rg, TRUE /* xss */); |
|
|
1976 |
|
$rg['HTML:menu_repo_level2'] = rg_template("user/repo/menu.html", $rg, TRUE /* xss */); |
1977 |
1977 |
|
|
1978 |
1978 |
switch ($_op) { |
switch ($_op) { |
1979 |
1979 |
case 'repo_rights': |
case 'repo_rights': |
|
... |
... |
function rg_repo_search_high_level($db, $rg, $ui, $url) |
2017 |
2017 |
|
|
2018 |
2018 |
$errmsg = array(); |
$errmsg = array(); |
2019 |
2019 |
|
|
|
2020 |
|
$rg['q'] = $q; |
|
2021 |
|
$rg['HTML:errmsg'] = rg_template_errmsg($errmsg); |
|
2022 |
|
$rg['search_url'] = $url; |
|
2023 |
|
$ret .= rg_template("repo/search.html", $rg, TRUE /* xss */); |
|
2024 |
|
|
2020 |
2025 |
while ($rg['doit'] == 1) { |
while ($rg['doit'] == 1) { |
2021 |
2026 |
$_t = rg_repo_search($db, $ui, $q); |
$_t = rg_repo_search($db, $ui, $q); |
2022 |
2027 |
if ($_t === FALSE) { |
if ($_t === FALSE) { |
|
... |
... |
function rg_repo_search_high_level($db, $rg, $ui, $url) |
2028 |
2033 |
break; |
break; |
2029 |
2034 |
} |
} |
2030 |
2035 |
|
|
2031 |
|
$rg['q'] = $q; |
|
2032 |
|
$rg['HTML:errmsg'] = rg_template_errmsg($errmsg); |
|
2033 |
|
$rg['search_url'] = $url; |
|
2034 |
|
$ret .= rg_template("repo/search.html", $rg, TRUE /* xss */); |
|
2035 |
|
|
|
2036 |
2036 |
return $ret; |
return $ret; |
2037 |
2037 |
} |
} |
2038 |
2038 |
|
|
|
... |
... |
function rg_repo_discover($db, $op, $rg, $ui) |
2061 |
2061 |
|
|
2062 |
2062 |
$rg['discover_menu_' . $op] = 1; |
$rg['discover_menu_' . $op] = 1; |
2063 |
2063 |
$ret .= rg_template('repo/discover.html', $rg, TRUE /* xss */); |
$ret .= rg_template('repo/discover.html', $rg, TRUE /* xss */); |
|
2064 |
|
$ret .= '<div class="generic_body">' . "\n"; |
2064 |
2065 |
$ret .= $x; |
$ret .= $x; |
|
2066 |
|
$ret .= '</div>' . "\n"; |
2065 |
2067 |
|
|
2066 |
2068 |
return $ret; |
return $ret; |
2067 |
2069 |
} |
} |
File inc/repo/repo.php changed (mode: 100644) (index a420c89..9adb817) |
... |
... |
if (empty($paras)) { |
16 |
16 |
|
|
17 |
17 |
$rg['repo_menu'][$_subop] = 1; |
$rg['repo_menu'][$_subop] = 1; |
18 |
18 |
$_repo = rg_template("repo/menu.html", $rg, TRUE /* xss */); |
$_repo = rg_template("repo/menu.html", $rg, TRUE /* xss */); |
|
19 |
|
$_repo .= '<div class="generic_body">' . "\n"; |
19 |
20 |
|
|
20 |
21 |
switch ($_subop) { |
switch ($_subop) { |
21 |
22 |
case 'create': |
case 'create': |
|
... |
... |
case 'list': |
33 |
34 |
break; |
break; |
34 |
35 |
} |
} |
35 |
36 |
|
|
|
37 |
|
$_repo .= '</div>' . "\n"; |
36 |
38 |
?> |
?> |
File inc/totp.inc.php changed (mode: 100644) (index 2dbebcd..23a1338) |
... |
... |
function rg_totp_enroll_high_level($db, $rg, $paras) |
1336 |
1336 |
/* |
/* |
1337 |
1337 |
* Main HL function for TOTP login token |
* Main HL function for TOTP login token |
1338 |
1338 |
*/ |
*/ |
1339 |
|
function rg_totp_high_level($db, $rg, $paras) |
|
|
1339 |
|
function rg_totp_high_level($db, &$rg, $paras) |
1340 |
1340 |
{ |
{ |
1341 |
1341 |
rg_prof_start('totp_high_level'); |
rg_prof_start('totp_high_level'); |
1342 |
1342 |
rg_log_enter('totp_high_level'); |
rg_log_enter('totp_high_level'); |
|
... |
... |
function rg_totp_high_level($db, $rg, $paras) |
1348 |
1348 |
$op = empty($paras) ? 'info' : array_shift($paras); |
$op = empty($paras) ? 'info' : array_shift($paras); |
1349 |
1349 |
$rg['menu']['totp'][$op] = 1; |
$rg['menu']['totp'][$op] = 1; |
1350 |
1350 |
|
|
1351 |
|
$ret .= rg_template('user/settings/totp/menu.html', $rg, TRUE /*xss*/); |
|
|
1351 |
|
$rg['HTML:menu_set_level2'] = |
|
1352 |
|
rg_template('user/settings/totp/menu.html', $rg, TRUE /*xss*/); |
1352 |
1353 |
|
|
1353 |
1354 |
switch ($op) { |
switch ($op) { |
1354 |
1355 |
case 'info': // we show only the hints |
case 'info': // we show only the hints |
File inc/user/repo-page.php changed (mode: 100644) (index a8061b9..9f52d9c) |
... |
... |
$repo_path = rg_repo_path_by_id($rg['ri']['uid'], $rg['ri']['repo_id']); |
69 |
69 |
rg_log("repo_path=$repo_path"); |
rg_log("repo_path=$repo_path"); |
70 |
70 |
putenv("GIT_DIR=$repo_path"); // TODO: this will be removed after all functios will got a path para |
putenv("GIT_DIR=$repo_path"); // TODO: this will be removed after all functios will got a path para |
71 |
71 |
|
|
|
72 |
|
$rg['HTML:menu_repo_level2'] = ''; |
72 |
73 |
$rg['HTML:branches_and_tags'] = ''; |
$rg['HTML:branches_and_tags'] = ''; |
73 |
74 |
$_repo_body = ""; |
$_repo_body = ""; |
74 |
75 |
|
|
File inc/user/settings.php changed (mode: 100644) (index 3890c4a..76c7313) |
... |
... |
$errmsg = array(); |
15 |
15 |
|
|
16 |
16 |
$_subop = empty($paras) ? "edit_info" : array_shift($paras); |
$_subop = empty($paras) ? "edit_info" : array_shift($paras); |
17 |
17 |
|
|
18 |
|
$rg['set_menu'][$_subop] = 1; |
|
19 |
|
$_settings = rg_template("user/settings/menu.html", $rg, TRUE /* xss */); |
|
|
18 |
|
$rg['HTML:menu_set_level2'] = ''; |
20 |
19 |
|
|
21 |
20 |
switch ($_subop) { |
switch ($_subop) { |
22 |
|
case 'edit_info': |
|
23 |
|
$rg['ask_for_pass'] = 0; |
|
24 |
|
$rg['no_tos'] = 1; // we ask for only for account creation |
|
25 |
|
$_settings .= rg_user_edit_high_level($db, $rg); |
|
26 |
|
break; |
|
27 |
|
|
|
28 |
21 |
case 'change_pass': |
case 'change_pass': |
29 |
22 |
include($INC . "/user/pass/pass.php"); |
include($INC . "/user/pass/pass.php"); |
30 |
|
$_settings .= $_pass; |
|
|
23 |
|
$_settings_body = $_pass; |
31 |
24 |
break; |
break; |
32 |
25 |
|
|
33 |
26 |
case 'keys': |
case 'keys': |
34 |
27 |
include($INC . "/user/keys/keys.php"); |
include($INC . "/user/keys/keys.php"); |
35 |
|
$_settings .= $_keys; |
|
|
28 |
|
$_settings_body = $_keys; |
36 |
29 |
break; |
break; |
37 |
30 |
|
|
38 |
31 |
case 'totp': |
case 'totp': |
39 |
|
$_settings .= rg_totp_high_level($db, $rg, $paras); |
|
|
32 |
|
$_settings_body = rg_totp_high_level($db, $rg, $paras); |
40 |
33 |
break; |
break; |
41 |
34 |
|
|
42 |
35 |
case 'wh': |
case 'wh': |
43 |
|
$_settings .= rg_wh_high_level($db, $rg, $paras); |
|
|
36 |
|
$_settings_body = rg_wh_high_level($db, $rg, $paras); |
|
37 |
|
break; |
|
38 |
|
|
|
39 |
|
default: |
|
40 |
|
$rg['ask_for_pass'] = 0; |
|
41 |
|
$rg['no_tos'] = 1; // we ask for only for account creation |
|
42 |
|
$_settings_body = rg_user_edit_high_level($db, $rg); |
44 |
43 |
break; |
break; |
45 |
44 |
} |
} |
46 |
45 |
|
|
|
46 |
|
$rg['set_menu'][$_subop] = 1; |
|
47 |
|
$_settings = rg_template("user/settings/menu.html", $rg, TRUE /* xss */); |
|
48 |
|
$_settings .= '<div class="generic_body">' . "\n"; |
|
49 |
|
$_settings .= $_settings_body; |
|
50 |
|
$_settings .= '</div>' . "\n"; |
47 |
51 |
?> |
?> |
File inc/webhooks.inc.php changed (mode: 100644) (index 20c6972..e26df57) |
... |
... |
function rg_wh_add_high_level($db, $rg, $op, $paras) |
203 |
203 |
/* |
/* |
204 |
204 |
* Main HL function for webhooks |
* Main HL function for webhooks |
205 |
205 |
*/ |
*/ |
206 |
|
function rg_wh_high_level($db, $rg, $paras) |
|
|
206 |
|
function rg_wh_high_level($db, &$rg, $paras) |
207 |
207 |
{ |
{ |
208 |
208 |
rg_prof_start('wh_high_level'); |
rg_prof_start('wh_high_level'); |
209 |
209 |
rg_log_enter('wh_high_level'); |
rg_log_enter('wh_high_level'); |
|
... |
... |
function rg_wh_high_level($db, $rg, $paras) |
213 |
213 |
$op = empty($paras) ? 'list' : array_shift($paras); |
$op = empty($paras) ? 'list' : array_shift($paras); |
214 |
214 |
$rg['menu']['wh'][$op] = 1; |
$rg['menu']['wh'][$op] = 1; |
215 |
215 |
|
|
216 |
|
$ret .= rg_template('user/settings/wh/menu.html', |
|
217 |
|
$rg, TRUE /*xss*/); |
|
|
216 |
|
$rg['HTML:menu_set_level2'] = |
|
217 |
|
rg_template('user/settings/wh/menu.html', $rg, TRUE /*xss*/); |
218 |
218 |
|
|
219 |
219 |
switch ($op) { |
switch ($op) { |
220 |
220 |
case 'add': |
case 'add': |
File root/themes/default/main.css changed (mode: 100644) (index 2f1f667..f73e7b1) |
... |
... |
a { |
44 |
44 |
font-family: monospace; |
font-family: monospace; |
45 |
45 |
} |
} |
46 |
46 |
|
|
47 |
|
form { margin-top: 5pt } |
|
48 |
|
form p { margin-top: 5pt } |
|
|
47 |
|
form { } |
|
48 |
|
form p { margin-top: 8pt } |
49 |
49 |
form input[type="text"], form input[type="password"], |
form input[type="text"], form input[type="password"], |
50 |
50 |
form input[type="radio"], form input[type="checkbox"], |
form input[type="radio"], form input[type="checkbox"], |
51 |
51 |
form textarea, form select { |
form textarea, form select { |
|
... |
... |
legend { padding: 0px 2pt; } |
247 |
247 |
|
|
248 |
248 |
.formarea { |
.formarea { |
249 |
249 |
text-align: left; |
text-align: left; |
250 |
|
margin-top: 5pt; |
|
251 |
250 |
border: 1px solid #999998; |
border: 1px solid #999998; |
252 |
251 |
padding: 5pt; |
padding: 5pt; |
253 |
252 |
border-radius: 4px 4px 4px 4px; |
border-radius: 4px 4px 4px 4px; |
254 |
253 |
align-self: center; |
align-self: center; |
255 |
254 |
} |
} |
|
255 |
|
.formarea:not(:first-child) { |
|
256 |
|
margin-top: 8pt; |
|
257 |
|
} |
256 |
258 |
|
|
257 |
259 |
.formarea_title { |
.formarea_title { |
258 |
260 |
font-weight: bold; |
font-weight: bold; |
|
... |
... |
legend { padding: 0px 2pt; } |
261 |
263 |
border-bottom: 2px solid #999998; |
border-bottom: 2px solid #999998; |
262 |
264 |
} |
} |
263 |
265 |
|
|
264 |
|
.rg_keys_list { |
|
265 |
|
margin-top: 20px; |
|
|
266 |
|
.keys_list { |
|
267 |
|
margin-top: 8pt; |
266 |
268 |
} |
} |
267 |
269 |
|
|
268 |
270 |
.rg_plans_list {} |
.rg_plans_list {} |
269 |
271 |
|
|
270 |
|
.rg_totp_list { |
|
271 |
|
margin-top: 20px; |
|
|
272 |
|
.totp_list { |
|
273 |
|
margin-top: 8pt; |
|
274 |
|
} |
|
275 |
|
|
|
276 |
|
.sc_list { |
|
277 |
|
margin-top: 8pt; |
272 |
278 |
} |
} |
273 |
279 |
|
|
274 |
280 |
.wh_list {} |
.wh_list {} |
275 |
281 |
|
|
276 |
|
.wh_plugins_list { |
|
277 |
|
margin-top: 5pt; |
|
278 |
|
} |
|
|
282 |
|
.wh_plugins_list {} |
279 |
283 |
|
|
280 |
284 |
.blob_title { |
.blob_title { |
281 |
285 |
margin-top: 5pt; |
margin-top: 5pt; |
|
... |
... |
legend { padding: 0px 2pt; } |
346 |
350 |
} |
} |
347 |
351 |
|
|
348 |
352 |
.repo_body { |
.repo_body { |
|
353 |
|
margin-top: 8pt; |
349 |
354 |
display: flex; |
display: flex; |
350 |
355 |
flex-flow: column nowrap; |
flex-flow: column nowrap; |
351 |
356 |
} |
} |
|
... |
... |
legend { padding: 0px 2pt; } |
398 |
403 |
|
|
399 |
404 |
.hints { |
.hints { |
400 |
405 |
text-align: left; |
text-align: left; |
401 |
|
margin-top: 10pt; |
|
402 |
406 |
background-color: #FFFFFF; |
background-color: #FFFFFF; |
403 |
407 |
padding: 4pt; |
padding: 4pt; |
404 |
408 |
border-radius: 4px 4px 4px 4px; |
border-radius: 4px 4px 4px 4px; |
|
... |
... |
legend { padding: 0px 2pt; } |
406 |
410 |
line-height: 120%; |
line-height: 120%; |
407 |
411 |
font-size: 9pt; |
font-size: 9pt; |
408 |
412 |
box-shadow: 0px 2px 3px #666666; |
box-shadow: 0px 2px 3px #666666; |
|
413 |
|
align-self: stretch; |
409 |
414 |
} |
} |
|
415 |
|
.hints:not(:first-child) { margin-top: 8pt } |
410 |
416 |
.hints ul { list-style-type: square; margin-left: 9pt; } |
.hints ul { list-style-type: square; margin-left: 9pt; } |
411 |
417 |
.hints ul li { } |
.hints ul li { } |
412 |
418 |
.hints ul li a { } |
.hints ul li a { } |
|
... |
... |
legend { padding: 0px 2pt; } |
546 |
552 |
line-height: 8pt; |
line-height: 8pt; |
547 |
553 |
} |
} |
548 |
554 |
|
|
|
555 |
|
.generic_body { |
|
556 |
|
margin-top: 8pt; |
|
557 |
|
display: flex; |
|
558 |
|
flex-flow: column nowrap; |
|
559 |
|
align-content: space-between; |
|
560 |
|
align-items: stretch; |
|
561 |
|
} |