Skip to content

Commit

Permalink
Don't allow new users when NO_LOGIN is set
Browse files Browse the repository at this point in the history
  • Loading branch information
dlangille committed Aug 23, 2018
1 parent 8ae8d62 commit 1b2764e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions www/new-user.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@
require_once($_SERVER['DOCUMENT_ROOT'] . '/../include/freshports.php');
require_once($_SERVER['DOCUMENT_ROOT'] . '/../include/databaselogin.php');
require_once($_SERVER['DOCUMENT_ROOT'] . '/../include/htmlify.php');
require_once($_SERVER['DOCUMENT_ROOT'] . '/../include/constants.php');

if (defined('NO_LOGIN')) {
ob_start();
header( 'Location: /' );
ob_end_flush();
exit;
}

if (IsSet($_REQUEST['origin'])) $origin = $_REQUEST['origin'];
if (IsSet($_REQUEST['submit'])) $submit = $_REQUEST['submit'];
Expand Down

0 comments on commit 1b2764e

Please sign in to comment.