mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
- User control panel update (user side)
- User control panel update (admin side) - Add of registration link on the main page - Minor bug correction for group management git-svn-id: http://piwigo.org/svn/trunk@631 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -34,10 +34,18 @@ include_once( PHPWG_ROOT_PATH.'admin/include/isadmin.inc.php' );
|
||||
$error = array();
|
||||
if ( isset( $_POST['delete'] ) && isset( $_POST['confirm_delete'] ) )
|
||||
{
|
||||
// destruction of the access linked to the group
|
||||
$query = 'DELETE FROM '.GROUP_ACCESS_TABLE;
|
||||
$query.= ' WHERE group_id = '.$_POST['group_id'];
|
||||
$query.= ';';
|
||||
pwg_query( $query );
|
||||
|
||||
// destruction of the users links for this group
|
||||
$query = 'DELETE FROM ' . USER_GROUP_TABLE;
|
||||
$query.= ' WHERE group_id = '.$_POST['group_id'];
|
||||
pwg_query( $query );
|
||||
|
||||
// destruction of the group
|
||||
$query = 'DELETE FROM ' . GROUPS_TABLE;
|
||||
$query.= ' WHERE id = '.$_POST['group_id'];
|
||||
$query.= ';';
|
||||
|
||||
Reference in New Issue
Block a user