-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added iF.SVNAdmin stable-1.6.2 Fixing mfreiholz/iF.SVNAdmin#118
- Loading branch information
Showing
274 changed files
with
20,868 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.github | ||
.git | ||
.DS_Store | ||
example | ||
iF.SVNAdmin/data | ||
README.md | ||
LICENSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
data | ||
.DS_Store | ||
/*.svn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
version: '3' | ||
|
||
services: | ||
nginx0: | ||
image: nginx:1.16 | ||
volumes: | ||
- "./nginx_data/html/:/usr/share/nginx/html" | ||
- "./nginx_data/conf_d:/etc/nginx/conf.d" | ||
- "./nginx_data/logs:/var/log/nginx/" | ||
- "./ssl:/etc/nginx/ssl" | ||
restart: always | ||
ports: | ||
- "2234:80" # test port like a 2234 | ||
# - "443:443" | ||
networks: | ||
- example_svn_server_net | ||
svn_server: | ||
image: elleflorio/svn-server | ||
environment: | ||
- SVN_SERVER_REPOSITORIES_URL: /source/svn | ||
ports: | ||
- "8011:80" # test web port | ||
- "3690:3690" # svn protocol! | ||
volumes: | ||
- "./svn/svnadmin_data:/opt/svnadmin/data:rw" | ||
- "./svn/repo:/home/svn" | ||
- "./svn/subversion-access-control:/etc/subversion/subversion-access-control" | ||
- "./svn/passwd:/etc/subversion/passwd" | ||
restart: always | ||
networks: | ||
- example_svn_server_net | ||
networks: | ||
example_svn_server_net: | ||
driver: bridge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
server { | ||
listen 80; | ||
server_name localhost; | ||
|
||
# fix security restricts | ||
location /sources/svnadmin/data/ { | ||
deny all; | ||
return 403; | ||
} | ||
|
||
location /sources/svnadmin/ { | ||
proxy_pass http://svn_server:80/svnadmin/; | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
} | ||
|
||
# location ^~ /sources/svn { | ||
location /sources/ { | ||
proxy_pass http://svn_server:80/sources/; | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
client_max_body_size 1024m; | ||
} | ||
|
||
#error_page 404 /404.html; | ||
# redirect server error pages to the static page /50x.html | ||
error_page 500 502 503 504 /50x.html; | ||
location = /50x.html { | ||
root /usr/share/nginx/html; | ||
} | ||
} | ||
|
||
server { | ||
listen 443 ssl; | ||
server_name localhost; | ||
ssl_certificate /etc/nginx/ssl/public.crt; | ||
ssl_certificate_key /etc/nginx/ssl/private.key; | ||
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | ||
ssl_ciphers HIGH:!aNULL:!MD5; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<h1>Hello</h1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/nbproject/ | ||
.buildpath | ||
.project |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<Files cli.php> | ||
deny from all | ||
</Files> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?php | ||
/** | ||
* iF.SVNAdmin | ||
* Copyright (c) 2010 by Manuel Freiholz | ||
* http://www.insanefactory.com/ | ||
* | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public License | ||
* as published by the Free Software Foundation; version 2 | ||
* of the License. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. | ||
*/ | ||
include("include/config.inc.php"); | ||
$appEngine->forwardInvalidModule(!$appEngine->isAccessPathEditActive()); | ||
$appEngine->checkUserAuthentication(true, ACL_MOD_ACCESSPATH, ACL_ACTION_ADD); | ||
$appTR->loadModule("accesspathcreate"); | ||
|
||
// Form request to create the user | ||
$create = check_request_var('create'); | ||
if( $create ) | ||
{ | ||
$appEngine->handleAction('create_accesspath'); | ||
} | ||
|
||
// HTTP request parameters. | ||
$varRepoEnc = get_request_var("r"); | ||
$varPathEnc = get_request_var("p"); | ||
$varRepo = rawurldecode($varRepoEnc); | ||
$varPath = rawurldecode($varPathEnc); | ||
|
||
// Stick together the pre-value of the input field. | ||
$preFill = ""; | ||
if( $varRepo != NULL ) | ||
{ | ||
$preFill = $varRepo . ":/"; | ||
if( $varPath != NULL ) | ||
$preFill.= $varPath; | ||
} | ||
|
||
SetValue("DefaultAccessPath", $preFill); | ||
ProcessTemplate("accesspath/accesspathcreate.html.php"); | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
<?php | ||
/** | ||
* iF.SVNAdmin | ||
* Copyright (c) 2010 by Manuel Freiholz | ||
* http://www.insanefactory.com/ | ||
* | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public License | ||
* as published by the Free Software Foundation; version 2 | ||
* of the License. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. | ||
*/ | ||
include("include/config.inc.php"); | ||
|
||
// | ||
// Authentication | ||
// | ||
|
||
if (!$appEngine->isProviderActive(PROVIDER_ACCESSPATH_VIEW)) | ||
{ | ||
$appEngine->forwardError(ERROR_INVALID_MODULE); | ||
} | ||
|
||
$appEngine->checkUserAuthentication(true, ACL_MOD_ACCESSPATH, ACL_ACTION_VIEW); | ||
$appTR->loadModule("accesspathslist"); | ||
|
||
// | ||
// Actions | ||
// | ||
|
||
// Form 'delete' request. | ||
if (check_request_var("delete")) | ||
{ | ||
$appEngine->handleAction("delete_accesspath"); | ||
} | ||
else if (check_request_var("assign_projectmanager")) | ||
{ | ||
$appEngine->handleAction("assign_projectmanager"); | ||
} | ||
|
||
// | ||
// View Data | ||
// | ||
|
||
$list = array(); | ||
$users = array(); | ||
|
||
try { | ||
// All AccessPaths. | ||
$list = $appEngine->getAccessPathViewProvider()->getPaths(); | ||
usort($list, array('\svnadmin\core\entities\AccessPath', "compare")); | ||
|
||
|
||
// Filter access-paths for project-managers. | ||
if ($appEngine->isAuthenticationActive()) | ||
{ | ||
$currentUsername = $appEngine->getSessionUsername(); | ||
if ($appEngine->getAclManager()->isUserAccessPathManager($currentUsername)) | ||
{ | ||
$list = $appEngine->getAclManager()->filterAccessPathsList($currentUsername, $list); | ||
} | ||
|
||
// Load list of users to create a combobox and assign them as project managers to paths. | ||
if ($appEngine->isUserViewActive() && $appEngine->checkUserAuthentication(false, ACL_MOD_PROJECTMANAGER, ACL_ACTION_ASSIGN)) | ||
{ | ||
$users = $appEngine->getUserViewProvider()->getUsers(false); | ||
usort($users, array('\svnadmin\core\entities\User', "compare")); | ||
} | ||
|
||
// Get the project managers of each path. | ||
$listCount = count($list); | ||
for ($i=0; $i<$listCount; $i++) | ||
{ | ||
$managers = $appEngine->getAclManager()->getUsersOfAccessPath($list[$i]->path); | ||
$list[$i]->managers = $managers; | ||
} | ||
} | ||
|
||
} | ||
catch (Exception $ex) { | ||
$appEngine->addException($ex); | ||
} | ||
|
||
SetValue("UserList", $users); | ||
SetValue("AccessPathList", $list); | ||
ProcessTemplate("accesspath/accesspathlist.html.php"); | ||
?> |
Oops, something went wrong.