Browse code

Better setreg behavior - Registration page shows up through Page Links from the Admin Panel while disabled for testing

Clarissa Walker authored on 2026/09/07 14:45:20
Showing 1 changed files
... ...
@@ -24,8 +24,15 @@
24 24
 
25 25
 if(!defined("_CHARSET")) exit( );
26 26
 
27
-if(isset($setreg) && $setreg == 0) {
28
-$output .= "<div align='center' style='margin-top: 1em;'>"._REGDISABLED."</div>";
27
+// This is to show the registration page as admin regardless of the registration setting
28
+// for the Page Links section in the Admin Panel
29
+
30
+if((isADMIN && uLEVEL == 1) && (isset($setreg) && $setreg == 0)) {
31
+    include ("user/editbio.php");
32
+}
33
+
34
+else if ((!isADMIN && uLEVEL != 1) && (isset($setreg) && $setreg == 0)) {
35
+    $output .= "<div align='center' style='margin-top: 1em;'>"._REGDISABLED."</div>";
29 36
 }
30 37
 
31 38
 else include("user/editbio.php");