First commit
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
// +-----------------------------------------------------------------------+
|
||||
// | This file is part of Piwigo. |
|
||||
// | |
|
||||
// | For copyright and license information, please view the COPYING.txt |
|
||||
// | file that was distributed with this source code. |
|
||||
// +-----------------------------------------------------------------------+
|
||||
|
||||
if( !defined("PHPWG_ROOT_PATH") ) die ("Hacking attempt!");
|
||||
|
||||
check_input_parameter('user_id', $_GET, false, PATTERN_ID);
|
||||
|
||||
$edit_user = build_user( $_GET['user_id'], false );
|
||||
|
||||
if (!empty($_POST))
|
||||
{
|
||||
check_pwg_token();
|
||||
}
|
||||
|
||||
include_once(PHPWG_ROOT_PATH.'profile.php');
|
||||
|
||||
$errors = array();
|
||||
save_profile_from_post($edit_user, $errors);
|
||||
|
||||
load_profile_in_template(
|
||||
get_root_url().'admin.php?page=profile&user_id='.$edit_user['id'],
|
||||
get_root_url().'admin.php?page=user_list',
|
||||
$edit_user
|
||||
);
|
||||
$page['errors'] = array_merge($page['errors'], $errors);
|
||||
|
||||
$template->set_filename('profile', 'profile.tpl');
|
||||
$template->assign_var_from_handle('ADMIN_CONTENT', 'profile');
|
||||
?>
|
||||
Reference in New Issue
Block a user