Current
=======
-1) implement repo permissions
+1) implement repo permissions - DONE
2) add a page after repo creation to explain how to populate (via git remote add, git push name master)
-3) remove initial repo bit via bundle - going to leave this here for now
-4) fix up the gitbackend function once and for all
-5) add a config var and initial setup var for website name (i.e. hostname)
+3) remove initial repo bit via bundle - going to leave this here for now - DONE
+4) fix up the gitbackend function once and for all - DONE
+5) finish setup
6) sort gwvpdatabase.php functions into alpha order
+7) registration page
+8) home page content
Alpha Release
function gwvp_AskForBasicAuth()
{
- error_log("AUTH: asking for basic auth");
- if(!isset($_SERVER["PHP_AUTH_USER"])) {
- header('WWW-Authenticate: Basic realm="GIT Repo"');
- header('HTTP/1.1 401 Unauthorized');
- } else return;
+ header('WWW-Authenticate: Basic realm="GIT Repo"');
+ header('HTTP/1.1 401 Unauthorized');
}
// $levels is checked against $LOGIN_TYPE, levels can be either just "admin" or admin,user anon,user anon, etc.
return;
} else {
$perms = gwvp_resolvRepoPerms(gwvp_getUserId(null, $person), $repoid);
- if($perms < 3) {
+ if($perms < 2) {
$dump = print_r($person, true);
error_log("in basic read, called 403 for $perms $dump");
gwvp_fourZeroThree();
function gwvp_PostSetupPageBody()
{
- echo "GWVP Is now setup, login at the top of the page and you should in control!";
+ echo "GWVP Is now setup, login at the top of the page and you should be in control!";
}
// TODO: need to do this bit