From: paulr Date: Fri, 4 Nov 2011 07:58:02 +0000 (+1100) Subject: removed the permissions bit on the repo creation - will happen later, X-Git-Url: http://git.pjr.cc/?a=commitdiff_plain;h=c1987fad28f920a3a90943c8cae1dbdf267e5454;p=gwvp.git removed the permissions bit on the repo creation - will happen later, we'll use "sensible" defaults like read-only to everyone, write to the creator only --- diff --git a/gwvplib/gwvpgitcontrol.php b/gwvplib/gwvpgitcontrol.php index 55f9bd5..d78fcde 100644 --- a/gwvplib/gwvpgitcontrol.php +++ b/gwvplib/gwvpgitcontrol.php @@ -1,5 +1,13 @@ \"$reponame\" already exists"); + header("Location: $BASE_URL/admin/repos/create?reponameobv=$reponame&repodescobv=$repodesc"); + } else if(gwvp_createGitRepo($reponame)) { gwvp_SendMessage("info", "Repo, $reponame, created"); header("Location: $BASE_URL/admin/repos"); } @@ -61,34 +65,19 @@ function gwvp_CreateRepoPageBody() { global $BASE_URL, $repo_base; + $reponameobv = ""; + $repodescobv = ""; + + if(isset($_REQUEST["reponameobv"])) $reponameobv = $_REQUEST["reponameobv"]; + if(isset($_REQUEST["repodescobv"])) $repodescobv = $_REQUEST["repodescobv"]; + echo "

Create a Repo

"; echo "
"; echo ""; - echo ""; - echo ""; - echo "
Repository Name
Repository Description
"; - echo "

Permissions

"; - - // no, this bit is wrong, need to come up with something better - echo ""; - echo ""; - echo ""; + echo ""; + echo ""; echo "
AnonymousAuthenticatedGroup
"; - // anon permission dialog - echo " Can anonymous users see the repo?
"; - echo " Can anonymous user clone from the repo (read-only)?
"; - echo "
"; - // authed permission dialog - echo " Can any authenticated user see the repo?
"; - echo " Can any authenticated user clone from the repo (read-only)?
"; - echo " Can any authenticated user clone *TO* the repo (read/write)?
"; - echo "
"; - // group permissions dialog - echo " Can any authenticated user see the repo?
"; - echo " Can any authenticated user clone from the repo (read-only)?
"; - echo " Can any authenticated user clone *TO* the repo (read/write)?
"; - - echo "
Repository Name
Repository Description
"; + echo "
"; echo "
"; }