added an auth component to allow permission checking and rejection for
[gwvp.git] / gwvplib / gwvpauth.php
index 09be32d..8aa0533 100644 (file)
@@ -45,6 +45,16 @@ function gwvp_CheckAuthLevel($levels)
        return false;
 }
 
+function gwvp_AuthNoPerms()
+{
+       gwvp_goMainPage("gwvp_AuthNoPermsBody");
+}
+
+function gwvp_AuthNoPermsBody()
+{
+       echo "You have no permissions for this page, do you need to login?";
+}
+
 function gwvp_AuthHandleLogout()
 {
        global $BASE_URL;