mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
- in picture.php, $user['maxwidth'] and $user['maxheight'] can be unset if
NULL in database
- new table user_forbidden {user_id,need_update,forbidden_categories} and
deletion of field users.forbidden_categories
- new function calculate_permissions to update table user_forbidden when
needed
- simplification of include/user.inc.php
- in footer of each page, use "-" instead of "::" to separate page
information
git-svn-id: http://piwigo.org/svn/trunk@648 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -197,6 +197,18 @@ CREATE TABLE phpwebgallery_user_access (
|
||||
PRIMARY KEY (user_id,cat_id)
|
||||
) TYPE=MyISAM;
|
||||
|
||||
--
|
||||
-- Table structure for table 'phpwebgallery_user_forbidden'
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS phpwebgallery_user_forbidden;
|
||||
CREATE TABLE phpwebgallery_user_forbidden (
|
||||
user_id smallint(5) unsigned NOT NULL default '0',
|
||||
need_update enum('true','false') NOT NULL default 'true',
|
||||
forbidden_categories text,
|
||||
PRIMARY KEY (user_id)
|
||||
) TYPE=MyISAM;
|
||||
|
||||
--
|
||||
-- Table structure for table 'phpwebgallery_user_group'
|
||||
--
|
||||
@@ -228,7 +240,6 @@ CREATE TABLE phpwebgallery_users (
|
||||
show_nb_comments enum('true','false') NOT NULL default 'false',
|
||||
recent_period tinyint(3) unsigned NOT NULL default '7',
|
||||
template varchar(255) NOT NULL default 'default',
|
||||
forbidden_categories text,
|
||||
PRIMARY KEY (id),
|
||||
UNIQUE KEY users_ui1 (username)
|
||||
) TYPE=MyISAM;
|
||||
|
||||
Reference in New Issue
Block a user