made it so nobody can register anymore
This commit is contained in:
		@@ -1,11 +1,13 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
<!--PAGENAME=Register-->
 | 
					<!--PAGENAME=Register-->
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<h2>Register</h2>
 | 
					<!--<h2>Register</h2>
 | 
				
			||||||
<form action="register.php" method="post">
 | 
					<form action="register.php" method="post">
 | 
				
			||||||
    <input type="text" name="username" id="username-field" pattern=".{3,32}" placeholder="Username" required>
 | 
					    <input type="text" name="username" id="username-field" pattern=".{3,32}" placeholder="Username" required>
 | 
				
			||||||
    <input type="email" name="email" id="email-field" placeholder="E-Mail" required>
 | 
					    <input type="email" name="email" id="email-field" placeholder="E-Mail" required>
 | 
				
			||||||
    <input type="password" name="password" id="password-field" pattern=".{8,128}" placeholder="Password" required>
 | 
					    <input type="password" name="password" id="password-field" pattern=".{8,128}" placeholder="Password" required>
 | 
				
			||||||
    <input type="submit" value="Register">
 | 
					    <input type="submit" value="Register">
 | 
				
			||||||
    <a href="/login">Already have an account?</a>
 | 
					    <a href="/login">Already have an account?</a>
 | 
				
			||||||
</form>
 | 
					</form>-->
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					<h1>We're sorry but this website is currently not public.</h1>
 | 
				
			||||||
@@ -1,7 +1,7 @@
 | 
				
			|||||||
<?php
 | 
					<?php
 | 
				
			||||||
session_start();
 | 
					session_start();
 | 
				
			||||||
require_once 'config.php';
 | 
					require_once 'config.php';
 | 
				
			||||||
 | 
					/*
 | 
				
			||||||
// Handle registration form submission
 | 
					// Handle registration form submission
 | 
				
			||||||
if ($_SERVER["REQUEST_METHOD"] == "POST") {
 | 
					if ($_SERVER["REQUEST_METHOD"] == "POST") {
 | 
				
			||||||
    // Validate that required fields are provided
 | 
					    // Validate that required fields are provided
 | 
				
			||||||
@@ -59,5 +59,5 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") {
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
?>
 | 
					?>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user