Obey "forcelogin"
This commit is contained in:
+4
-1
@@ -5,11 +5,14 @@
|
||||
require_once("../config.php");
|
||||
require_once("lib.php");
|
||||
|
||||
|
||||
if (!$site = get_site()) {
|
||||
error("Site isn't defined!");
|
||||
}
|
||||
|
||||
if ($CFG->forcelogin) {
|
||||
require_login();
|
||||
}
|
||||
|
||||
if (isadmin()) {
|
||||
if (isset($_GET['edit'])) {
|
||||
if ($edit == "on") {
|
||||
|
||||
Reference in New Issue
Block a user