xaizek / rocketgit (License: AGPLv3+) (since 2018-12-09)
Light and fast Git hosting solution suitable to serve both as a hub or as a personal code storage with its tickets, pull requests, API and much more.
<root> / inc / dispatch / dispatch.php (da9dcbd89a894887b12eaaca7da98674a74bf45c) (1,361B) (mode 100644) [raw]
<?php
rg_log("/inc/dispatch/dispatch");

switch ($op) {
case 'home':
	include($INC . "/home/home.php");
	$body .= $_home;
	break;

case 'login':
	include($INC . "/login/login.php");
	$body .= $_login;
	break;

case 'logout':
	if (rg_sess_destroy($db, $sid, $rg_ui)) {
		$redispatch = 1;
		$op = "bye";
	} else {
		$body .= "Not OK!";
	}
	break;

case 'repo':
	include($INC . "/repo/repo.php");
	$body .= $_repo;
	break;

case 'repopage':
	include($INC . "/repo/repo_page.php");
	$body .= $_repo;
	break;

case 'admin':
	include($INC . "/admin/admin.php");
	$body .= $_admin;
	break;

case 'keys':
	include($INC . "/keys/keys.php");
	$body .= $_keys;
	break;

case 'forgot_link': // forgot pass link
	include($INC . "/user/forgot.php");
	$body .= $_forgot;
	break;

case 'forgot_send': // forgot pass - send mail
	include($INC . "/user/forgot_send.php");
	$body .= $_forgot;
	break;

case 'bye':
	include($INC . "/bye/bye.php");
	$body .= $_bye;
	break;

case 'personal':
	include($INC . "/personal/personal.php");
	$body .= $_personal;
	break;

case 'create_account':
	include($INC . "/user/create.php");
	$body .= $_create;
	break;

case 'confirm':
	include($INC . "/user/confirm.php");
	$body .= $_confirm;
	break;

case 'suggestion':
	include($INC . "/feedback/suggestion.php");
	$body .= $_suggestion;
	break;

default:
	rg_log("Invalid operation!");
}

?>
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/rocketgit

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/rocketgit

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master