Browse code

prevention undefined constant is_MEMBER

Jimako authored on 2024/04/09 08:18:11
Showing 1 changed files
... ...
@@ -93,7 +93,10 @@
93 93
 		}
94 94
 		$debug = $tempdebug;
95 95
 	}
96
-	else if(!isMEMBER) {
96
+	else {
97
+		require_once("header.php");
98
+		if(!isMEMBER) {
99
+		
97 100
 		$output .= "<div id=\"pagetitle\">"._MEMBERLOGIN."</div>";
98 101
 		$output .= "<div style=\"width: 250px; margin: 0 auto; text-align: center;\"><form method=\"POST\" enctype=\"multipart/form-data\" action=\"user.php?action=login".(isset($_GET['sid']) && isNumber($_GET['sid']) ? "&amp;sid=".$_GET['sid'] : "")."\">
99 102
 		<div class=\"label\" style=\"float: left;  width: 30%; text-align: right;\"><label for=\"penname\">"._PENNAME.":</label></div><INPUT type=\"text\" class=\"textbox\" name=\"penname\" id=\"penname\"><br />
... ...
@@ -109,4 +112,5 @@
109 112
 		}
110 113
 		$output .= "<div style='text-align: center;'>".$pagelinks['register']['link']." | ".$pagelinks['lostpassword']['link']."</div>";
111 114
 	}
112
-?>
113 115
\ No newline at end of file
116
+}
117
+?>