echo "<h2>Repo Management</h2>";
echo "<a href=\"$BASE_URL/admin/repos/create\">Create a Repo</a><br>";
+ if(isset($_SESSION["isloggedin"])) {
+ echo "<h3>Your Repo's</h3>";
+ $ownreps = gwvp_getOwnedRepos($_SESSION["id"]);
+ if($ownreps != false) {
+ echo "<table>";
+ echo "<tr><th>Repo Name</th></tr>";
+ foreach($ownreps as $repos) {
+ $mjay = print_r($repos, true);
+ error_log("snafu: $mjay");
+ $reponame = $repos["name"];
+ echo "<tr><td>$reponame</td></tr>";
+ }
+ echo "</table>";
+ } else {
+ echo "You own no repositories";
+ }
+ echo "<hr>";
+ }
+
// next we need a repo list - with perms checking - ug
// i must also remember that the home page will also contain a list of repos and that this page is solely for maintance
return;
}
+// this funciton returns one of three things
+function gwvp_resolvRepoPerms($userid, $repoid)
+{
+
+}
+
?>
\ No newline at end of file