]> git.mxchange.org Git - mailer.git/blobdiff - 0.2.1/inc/modules/member/what-wernis.php
Code rewritings, load base config improved and many minor fixes...
[mailer.git] / 0.2.1 / inc / modules / member / what-wernis.php
index ef3eb7b6bb84f9cc7040c975e0004d41940c9798..4c5d7c70132475c005e97ccac2b99d96ff20b1c0 100644 (file)
 \r
 // Some security stuff...\r
 if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) {\r
-       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php";\r
+       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";\r
        require($INC);\r
-} elseif (!IS_LOGGED_IN()) {\r
+} elseif (!IS_LOGGED_IN()) {
+       // User is not logged in\r
        LOAD_URL(URL."/modules.php?module=index");\r
-} elseif ((!EXT_IS_ACTIVE("wernis")) && (!IS_ADMIN())) {\r
+} elseif ((!EXT_IS_ACTIVE("wernis")) && (!IS_ADMIN())) {
+       // Extension "wernis" is not activated\r
        ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "wernis");\r
        return;\r
 }\r
 \r
 // Add description as navigation point\r
 ADD_DESCR("member", basename(__FILE__));\r
+
+// Is the mode set (withdraw or payout)
+if (!isset($_GET['mode'])) {
+       // Let the user choose what he wants to do
+       LOAD_TEMPLATE("member_wernis_mode_choose");
+}
 \r
 //\r
 ?>\r