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");
Browse code

General cleanup - layout and consistency changes

Clarissa Walker authored on 2026/08/18 18:02:49
Showing 1 changed files
... ...
@@ -25,7 +25,7 @@
25 25
 if(!defined("_CHARSET")) exit( );
26 26
 
27 27
 if(isset($setreg) && $setreg == 0) {
28
-$output .= "<div align='center'>"._REGDISABLED."</div>";
28
+$output .= "<div align='center' style='margin-top: 1em;'>"._REGDISABLED."</div>";
29 29
 }
30 30
 
31 31
 else include("user/editbio.php");
Browse code

Add site setting to enable or disable new user registrations

Clarissa Walker authored on 2026/08/18 01:56:03
Showing 1 changed files
... ...
@@ -24,5 +24,9 @@
24 24
 
25 25
 if(!defined("_CHARSET")) exit( );
26 26
 
27
-include("user/editbio.php");
28
-?>
29 27
\ No newline at end of file
28
+if(isset($setreg) && $setreg == 0) {
29
+$output .= "<div align='center'>"._REGDISABLED."</div>";
30
+}
31
+
32
+else include("user/editbio.php");
33
+?>
Browse code

3.5.6 efiction version

Jimako authored on 2024/03/09 16:09:42
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,28 @@
1
+<?php
2
+// ----------------------------------------------------------------------
3
+// eFiction 3.2
4
+// Copyright (c) 2007 by Tammy Keefer
5
+// Valid HTML 4.01 Transitional
6
+// Based on eFiction 1.1
7
+// Copyright (C) 2003 by Rebecca Smallwood.
8
+// http://efiction.sourceforge.net/
9
+// ----------------------------------------------------------------------
10
+// LICENSE
11
+//
12
+// This program is free software; you can redistribute it and/or
13
+// modify it under the terms of the GNU General Public License (GPL)
14
+// as published by the Free Software Foundation; either version 2
15
+// of the License, or (at your option) any later version.
16
+//
17
+// This program is distributed in the hope that it will be useful,
18
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
19
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20
+// GNU General Public License for more details.
21
+//
22
+// To read the license please visit http://www.gnu.org/copyleft/gpl.html
23
+// ----------------------------------------------------------------------
24
+
25
+if(!defined("_CHARSET")) exit( );
26
+
27
+include("user/editbio.php");
28
+?>
0 29
\ No newline at end of file