Whats special about module_exec.inc

first we take a look at module_exec.inc:

// Authentication of User according his session (its not the main auth)
        if($myEnv["auth"] !== false) checkLogin();
        
        // Connect to database and return $db object
        if($myEnv["connectdb"] !== false) $db = connect_database();
        
        // do module translation and give back a hashmap with all keys and values
        if($myEnv["translate"] !== false) $hashmap = setLocaledText($MGW->spkz, $myEnv["module"]);
        
        // get user settingw and return them in $settings hashmap
        if($myEnv["getsettings"] !== false) $settings = get_settings($myEnv["module"]);
        
        // call standard module submenu (smenu.inc) and integrate it
        if($myEnv["stdsmenu"] !== false) 
        if(file_exists(ROOTPATH . "/" . $myEnv["module"]. "/inc/smenu.inc"))
        include(ROOTPATH . "/" . $myEnv["module"] . "/inc/smenu.inc");
        else
        echo "<b>Error: </b>Program cannot find Submenu-Definition File (smenu.inc) in module \"inc\" folder. Please create this file or set \$myEnv[stdsmenu] to false in your program and define it there.";
      

As you can see, this include does 5 important tasks

TO BE CONTINUED....