removing all the error logging for now
[gwvp-mini.git] / gwvpmini / gwvpmini_view.php
index 165a3c1..642a9bc 100644 (file)
@@ -10,7 +10,7 @@ function gwvpmini_RepoViewCallMe()
 {
        global $repo_view_call;
        
-       error_log("in admin callme");\r
+       // error_log("in admin callme");\r
        if(isset($_REQUEST["q"])) {\r
                $query = $_REQUEST["q"];\r
                $qspl = explode("/", $query);\r
@@ -102,7 +102,7 @@ function gwvpmini_RepoViewPageBody()
        }
        
        
-       error_log("STUFF:".print_r($owner,true));
+       // error_log("STUFF:".print_r($owner,true));
        if($bperms != "a") $login = $_SESSION["username"].":password@";
        else $login = "";
        $cloneurl = "git clone $proto$login$sname$BASE_URL/git/$repo_view_call.git";
@@ -129,7 +129,7 @@ function gwvpmini_RepoViewPageBody()
                if($bperms == "r") $regd = " selected";\r
                if($bperms == "x") $expl = " selected";\r
                
-               error_log("BPERMS: $bperms");
+               // error_log("BPERMS: $bperms");
                
                if($bperms == "x") $cspan = 3;
                else $cspan = 2;
@@ -230,12 +230,12 @@ function gwvpmini_UpdateRepoBasePerms()
        if(isset($_REQUEST["q"])) {\r
                $query = $_REQUEST["q"];\r
                $qspl = explode("/", $query);
-               error_log("PLOOP:qview".print_r($qspl, true));\r
+               // error_log("PLOOP:qview".print_r($qspl, true));\r
        }
        
        if(isset($qspl[1])) $repo_view_call = $qspl[1];
        else {
-               error_log("PLOOP: no repo name");
+               // error_log("PLOOP: no repo name");
                header("Location: $BASE_URL/view/$repo_view_call");
                return;
        }
@@ -258,9 +258,9 @@ function gwvpmini_UpdateRepoBasePerms()
        
        if(!$owner_view) {
                gwvpmini_SendMessage("error", "failure updating permission for repo");
-               error_log("PLOOP: attempt to update from non-owner");
+               // error_log("PLOOP: attempt to update from non-owner");
        } else {
-               error_log("PLOOP: updateds: ".print_r($_REQUEST, true));
+               // error_log("PLOOP: updateds: ".print_r($_REQUEST, true));
                gwvpmini_ChangeRepoPerm($rid, "b", $_REQUEST["base_perms"]);
                gwvpmini_SendMessage("info", "Base permissions for repo updated");
        }\r
@@ -275,12 +275,12 @@ function gwvpmini_AddRepoReader()
        if(isset($_REQUEST["q"])) {\r
                $query = $_REQUEST["q"];\r
                $qspl = explode("/", $query);\r
-               error_log("PLOOP:qview".print_r($qspl, true));\r
+               // error_log("PLOOP:qview".print_r($qspl, true));\r
        }\r
        \r
        if(isset($qspl[1])) $repo_view_call = $qspl[1];\r
        else {\r
-               error_log("PLOOP: no repo name");
+               // error_log("PLOOP: no repo name");
                // TODO: btw, this makes no sense\r
                header("Location: $BASE_URL/view/$repo_view_call");\r
                return;\r
@@ -301,7 +301,7 @@ function gwvpmini_AddRepoReader()
        }
        if(!$owner_view) {
                gwvpmini_SendMessage("error", "failure updating permission for repo");\r
-               error_log("PLOOP: attempt to update from non-owner");
+               // error_log("PLOOP: attempt to update from non-owner");
                header("Location: $BASE_URL/view/$repo_view_call");
                return;
        }\r
@@ -337,12 +337,12 @@ function gwvpmini_AddRepoContributor()
        if(isset($_REQUEST["q"])) {\r
                $query = $_REQUEST["q"];\r
                $qspl = explode("/", $query);\r
-               error_log("PLOOP:qview".print_r($qspl, true));\r
+               // error_log("PLOOP:qview".print_r($qspl, true));\r
        }\r
        \r
        if(isset($qspl[1])) $repo_view_call = $qspl[1];\r
        else {\r
-               error_log("PLOOP: no repo name");\r
+               // error_log("PLOOP: no repo name");\r
                // TODO: btw, this makes no sense\r
                header("Location: $BASE_URL/view/$repo_view_call");\r
                return;\r
@@ -363,7 +363,7 @@ function gwvpmini_AddRepoContributor()
        }\r
        if(!$owner_view) {\r
                gwvpmini_SendMessage("error", "failure updating permission for repo");\r
-               error_log("PLOOP: attempt to update from non-owner");\r
+               // error_log("PLOOP: attempt to update from non-owner");\r
                header("Location: $BASE_URL/view/$repo_view_call");\r
                return;\r
        }\r
@@ -398,12 +398,12 @@ function gwvpmini_RemoveRepoContributor()
        if(isset($_REQUEST["q"])) {\r
                $query = $_REQUEST["q"];\r
                $qspl = explode("/", $query);\r
-               error_log("PLOOP:qview".print_r($qspl, true));\r
+               // error_log("PLOOP:qview".print_r($qspl, true));\r
        }\r
        \r
        if(isset($qspl[1])) $repo_view_call = $qspl[1];\r
        else {\r
-               error_log("PLOOP: no repo name");\r
+               // error_log("PLOOP: no repo name");\r
                // TODO: btw, this makes no sense\r
                header("Location: $BASE_URL/view/$repo_view_call");\r
                return;\r
@@ -423,7 +423,7 @@ function gwvpmini_RemoveRepoContributor()
        }\r
        if(!$owner_view) {\r
                gwvpmini_SendMessage("error", "failure updating permission for repo");\r
-               error_log("PLOOP: attempt to update from non-owner");\r
+               // error_log("PLOOP: attempt to update from non-owner");\r
                header("Location: $BASE_URL/view/$repo_view_call");\r
                return;\r
        }
@@ -455,12 +455,12 @@ function gwvpmini_RemoveRepoReader()
        if(isset($_REQUEST["q"])) {\r
                $query = $_REQUEST["q"];\r
                $qspl = explode("/", $query);\r
-               error_log("PLOOP:qview".print_r($qspl, true));\r
+               // error_log("PLOOP:qview".print_r($qspl, true));\r
        }\r
 \r
        if(isset($qspl[1])) $repo_view_call = $qspl[1];\r
        else {\r
-               error_log("PLOOP: no repo name");\r
+               // error_log("PLOOP: no repo name");\r
                // TODO: btw, this makes no sense\r
                header("Location: $BASE_URL/view/$repo_view_call");\r
                return;\r
@@ -480,7 +480,7 @@ function gwvpmini_RemoveRepoReader()
        }\r
        if(!$owner_view) {\r
                gwvpmini_SendMessage("error", "failure updating permission for repo");\r
-               error_log("PLOOP: attempt to update from non-owner");\r
+               // error_log("PLOOP: attempt to update from non-owner");\r
                header("Location: $BASE_URL/view/$repo_view_call");\r
                return;\r
        }\r
@@ -510,12 +510,12 @@ function gwvpmini_RepoUpdateDescription()
        if(isset($_REQUEST["q"])) {\r
                $query = $_REQUEST["q"];\r
                $qspl = explode("/", $query);\r
-               error_log("PLOOP:qview".print_r($qspl, true));\r
+               // error_log("PLOOP:qview".print_r($qspl, true));\r
        }\r
        \r
        if(isset($qspl[1])) $repo_view_call = $qspl[1];\r
        else {\r
-               error_log("PLOOP: no repo name");\r
+               // error_log("PLOOP: no repo name");\r
                // TODO: btw, this makes no sense\r
                header("Location: $BASE_URL/view/$repo_view_call");\r
                return;\r
@@ -535,7 +535,7 @@ function gwvpmini_RepoUpdateDescription()
        }\r
        if(!$owner_view) {\r
                gwvpmini_SendMessage("error", "failure updating description for repo");\r
-               error_log("PLOOP: attempt to update from non-owner");\r
+               // error_log("PLOOP: attempt to update from non-owner");\r
                header("Location: $BASE_URL/view/$repo_view_call");\r
                return;\r
        }\r