- 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:
plegall
2005-06-11 14:10:04 +00:00
parent 4fedaac43a
commit e851f504ac
27 changed files with 150 additions and 241 deletions
+5 -7
View File
@@ -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']))
{