mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 01:03:31 +02:00
- errors and informations boxes : management centralized in admin.php,
$errors and $infos arrays replaced by $page['errors'] and $page['infos'], special management for admin/update.php (more complex management) git-svn-id: http://piwigo.org/svn/trunk@792 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
+5
-7
@@ -45,18 +45,16 @@ include_once(PHPWG_ROOT_PATH.'admin/include/isadmin.inc.php');
|
||||
|
||||
if (isset($_POST['submit_add']))
|
||||
{
|
||||
$errors = register_user($_POST['login'],
|
||||
$_POST['password'],
|
||||
$_POST['password'],
|
||||
'');
|
||||
$page['errors'] = register_user($_POST['login'],
|
||||
$_POST['password'],
|
||||
$_POST['password'],
|
||||
'');
|
||||
}
|
||||
|
||||
// +-----------------------------------------------------------------------+
|
||||
// | preferences form submission |
|
||||
// +-----------------------------------------------------------------------+
|
||||
|
||||
$errors = array();
|
||||
|
||||
if (isset($_POST['pref_submit']))
|
||||
{
|
||||
$collection = array();
|
||||
@@ -193,7 +191,7 @@ $template->set_filenames(array('user_list'=>'admin/user_list.tpl'));
|
||||
|
||||
$base_url = add_session_id(PHPWG_ROOT_PATH.'admin.php?page=user_list');
|
||||
|
||||
$conf['users_page'] = 20;
|
||||
$conf['users_page'] = 10;
|
||||
|
||||
if (isset($_GET['start']) and is_numeric($_GET['start']))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user