File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 3131require_once ('../lib/config.inc.php ' );
3232require_once ('../lib/app.inc.php ' );
3333
34- // importiere Modul
34+ //* Import module variable
3535$ mod = $ _REQUEST ["mod " ];
3636
37- // Checke ob User eingeloggt
37+ //* Check if user is logged in
3838if ($ _SESSION ["s " ]["user " ]['active ' ] != 1 ) {
3939 header ("Location: index.php?phpsessid= " .$ _SESSION ["s " ]["id " ]);
4040 die ();
4141}
4242
43- // checke ob User Modul verwenden darf
43+ //* Check if user may use the module.
4444$ user_modules = explode (", " ,$ _SESSION ["s " ]["user " ]["modules " ]);
4545
4646if (!in_array ($ mod ,$ user_modules )) $ app ->error ($ app ->lng (301 ));
4747
48- // lade Moduldaten in Session
48+ //* Load module configuration into the session.
4949if (is_file ($ mod ."/lib/module.conf.php " )) {
5050 include_once ($ mod ."/lib/module.conf.php " );
5151 $ _SESSION ["s " ]["module " ] = $ module ;
You can’t perform that action at this time.
0 commit comments