Indefero

Indefero Commit Details


Date:2011-08-21 00:53:21 (13 years 4 months ago)
Author:Patrick Georgi
Branch:feature.webrepos
Commit:5043c4e845b792a9c2a22c6cb479efc5a988f31a
Parents: dacbf0707b9222ad724c03bec03186103bf58a9e
Message:Stylistic fixes

Changes:

File differences

src/IDF/Scm/Git.php
928928
929929
930930
931
931
932932
933933
934
934
935935
936936
937
937
938938
939939
940940
......
961961
962962
963963
964
965
966
964
965
967966
968967
969968
public function repository($request, $match)
{
// authenticate: authenticate connection through "extra" password
if (isset($_SERVER['HTTP_AUTHORIZATION']) && $_SERVER['HTTP_AUTHORIZATION'] != '')
if (!empty($_SERVER['HTTP_AUTHORIZATION']))
list($_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW']) = explode(':' , base64_decode(substr($_SERVER['HTTP_AUTHORIZATION'], 6)));
if (isset($_SERVER['PHP_AUTH_USER'])) {
if (!empty($_SERVER['PHP_AUTH_USER'])) {
$sql = new Pluf_SQL('login=%s', array($_SERVER['PHP_AUTH_USER']));
$users = Pluf::factory('Pluf_User')->getList(array('filter'=>$sql->gen()));
if ((count($users) == 1) && ($users[0]->active)) {
if (count($users) == 1 && $users[0]->active) {
$user = $users[0];
$realkey = substr(sha1($user->password.Pluf::f('secret_key')), 0, 8);
if ($_SERVER['PHP_AUTH_PW'] == $realkey) {
}
// smart HTTP discovery
if (($path == 'info/refs') &&
(array_key_exists('service', $request->GET))){
$service = $request->GET["service"];
if ($path == 'info/refs' && !empty($request->GET['service'])){
$service = $request->GET['service'];
switch ($service) {
case 'git-upload-pack':
case 'git-receive-pack':

Archive Download the corresponding diff file

Page rendered in 0.08442s using 13 queries.