File hooks/pre-receive changed (mode: 100755) (index 322b781..fba7673) |
... |
... |
umask(0077); |
40 |
40 |
if ($show_info) { |
if ($show_info) { |
41 |
41 |
rg_git_info('', '== Welcome to RocketGit! =='); |
rg_git_info('', '== Welcome to RocketGit! =='); |
42 |
42 |
rg_git_info('', 'you are connecting from IP ' . $ip . '.'); |
rg_git_info('', 'you are connecting from IP ' . $ip . '.'); |
|
43 |
|
rg_git_info('', 'debug id ' . $rg_log_sid . '.'); |
43 |
44 |
} |
} |
44 |
45 |
|
|
45 |
46 |
// If user does not correct to the correct URL, correct them |
// If user does not correct to the correct URL, correct them |
File inc/user.inc.php changed (mode: 100644) (index 7ed8a5e..3fa5824) |
... |
... |
function rg_user_http_git($db, $rg, $paras) |
2449 |
2449 |
rg_git_info_pack("\x02", '== Welcome to RocketGit! =='); |
rg_git_info_pack("\x02", '== Welcome to RocketGit! =='); |
2450 |
2450 |
rg_git_info_pack("\x02", 'you are connecting from IP ' |
rg_git_info_pack("\x02", 'you are connecting from IP ' |
2451 |
2451 |
. $rg['ip'] . '.'); |
. $rg['ip'] . '.'); |
|
2452 |
|
rg_git_info_pack("\x02", 'debug id ' . $rg_log_sid . '.'); |
2452 |
2453 |
// If user does not connect to the correct URL, correct them |
// If user does not connect to the correct URL, correct them |
2453 |
2454 |
if (!empty($host) && (strcasecmp($host, $rg['hostname']) != 0)) |
if (!empty($host) && (strcasecmp($host, $rg['hostname']) != 0)) |
2454 |
2455 |
rg_git_info_pack("\x02", 'Please use ' . $rg['hostname'] |
rg_git_info_pack("\x02", 'Please use ' . $rg['hostname'] |
|
... |
... |
function rg_user_http_git($db, $rg, $paras) |
2476 |
2477 |
rg_git_info_pack("\x02", '== Welcome to RocketGit! =='); |
rg_git_info_pack("\x02", '== Welcome to RocketGit! =='); |
2477 |
2478 |
rg_git_info_pack("\x02", 'you are connecting from IP ' |
rg_git_info_pack("\x02", 'you are connecting from IP ' |
2478 |
2479 |
. $rg['ip'] . '.'); |
. $rg['ip'] . '.'); |
|
2480 |
|
rg_git_info_pack("\x02", 'debug id ' . $rg_log_sid . '.'); |
2479 |
2481 |
// If user does not connect to the correct URL, correct them |
// If user does not connect to the correct URL, correct them |
2480 |
2482 |
if (!empty($host) && (strcasecmp($host, $rg['hostname']) != 0)) |
if (!empty($host) && (strcasecmp($host, $rg['hostname']) != 0)) |
2481 |
2483 |
rg_git_info_pack("\x02", 'Please use ' . $rg['hostname'] |
rg_git_info_pack("\x02", 'Please use ' . $rg['hostname'] |
File scripts/remote.php changed (mode: 100644) (index b665448..94c82cc) |
... |
... |
if (isset($_SERVER['SSH_CONNECTION'])) { |
119 |
119 |
|
|
120 |
120 |
info('== Welcome to RocketGit! =='); |
info('== Welcome to RocketGit! =='); |
121 |
121 |
info('you are connecting from IP ' . $ip . '.'); |
info('you are connecting from IP ' . $ip . '.'); |
|
122 |
|
info('debug id ' . $rg_log_sid . '.'); |
122 |
123 |
|
|
123 |
124 |
if (strstr($flags, 'N')) { |
if (strstr($flags, 'N')) { |
124 |
125 |
$login_ui = rg_user_info($db, $login_uid, '', ''); |
$login_ui = rg_user_info($db, $login_uid, '', ''); |