mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-12 03:33:01 +02:00
- feature 599: option to forbid user registration
- 1 language cleanup - added page_forbidden function (sends 403) git-svn-id: http://piwigo.org/svn/trunk@1652 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -29,6 +29,12 @@
|
||||
define('PHPWG_ROOT_PATH','./');
|
||||
include_once( PHPWG_ROOT_PATH.'include/common.inc.php' );
|
||||
//----------------------------------------------------------- user registration
|
||||
|
||||
if (!$conf['allow_user_registration'])
|
||||
{
|
||||
page_forbidden('User registration closed');
|
||||
}
|
||||
|
||||
$errors = array();
|
||||
if (isset($_POST['submit']))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user