added user view file to repo
authorPaul J R <me@pjr.cc>
Wed, 19 Sep 2012 01:17:02 +0000 (11:17 +1000)
committerPaul J R <me@pjr.cc>
Wed, 19 Sep 2012 01:17:02 +0000 (11:17 +1000)
gwvpmini/gwvpmini_user.php [new file with mode: 0644]

diff --git a/gwvpmini/gwvpmini_user.php b/gwvpmini/gwvpmini_user.php
new file mode 100644 (file)
index 0000000..4b1cd47
--- /dev/null
@@ -0,0 +1,51 @@
+<?php
+$CALL_ME_FUNCTIONS["userview"] = "gwvpmini_UserViewCallMe";
+
+
+
+function gwvpmini_UserViewCallMe()
+{
+       global $user_view_call;
+       
+       error_log("in admin callme");
+       if(isset($_REQUEST["q"])) {
+               $query = $_REQUEST["q"];
+               $qspl = explode("/", $query);
+               if(isset($qspl[0])) {
+                       if($qspl[0] == "user") {
+                               if(isset($qspl[1])) {
+                                       $user_view_call = $qspl[1];
+                                       if(!gwvpmini_GetUserId($user_view_call)) {
+                                               gwvpmini_SendMessage("error", "No such user, $user_view_call");
+                                               return false;
+                                       }
+                                       return "gwvpmini_UserViewPage";
+                               } else return false;
+                       } else return false;
+               }
+               else return false;
+       }
+
+       return false;
+       
+       
+}
+
+function gwvpmini_UserViewPage()
+{
+       global $user_view_call, $MENU_ITEMS, $BASE_URL;
+       
+       $MENU_ITEMS["40thisuser"]["text"] = "$user_view_call";
+       $MENU_ITEMS["40thisuser"]["link"] = "$BASE_URL/user/$user_view_call";
+       
+       gwvpmini_goMainPage("gwvpmini_UserViewPageBody");
+}
+
+function gwvpmini_UserViewPageBody()
+{
+       global $user_view_call;
+       
+       echo "Want to see $user_view_call eh?";
+}
+
+?>
\ No newline at end of file