diff --git a/conf/config.inc.php b/conf/config.inc.php new file mode 100644 index 0000000..eb92335 --- /dev/null +++ b/conf/config.inc.php @@ -0,0 +1,8 @@ + diff --git a/conf/config.sql~ b/conf/config.sql~ deleted file mode 100644 index 3783d01..0000000 --- a/conf/config.sql~ +++ /dev/null @@ -1,66 +0,0 @@ --- initial configuration for Piwigo - -INSERT INTO piwigo_config (param,value,comment) VALUES ('activate_comments','true','Global parameter for usage of comments system'); -INSERT INTO piwigo_config (param,value,comment) VALUES ('nb_comment_page','10','number of comments to display on each page'); -INSERT INTO piwigo_config (param,value,comment) VALUES ('log','true','keep an history of visits on your website'); -INSERT INTO piwigo_config (param,value,comment) VALUES ('comments_validation','false','administrators validate users comments before becoming visible'); -INSERT INTO piwigo_config (param,value,comment) VALUES ('comments_forall','false','even guest not registered can post comments'); -INSERT INTO piwigo_config (param,value,comment) VALUES ('comments_order','ASC','comments order on picture page and cie'); -INSERT INTO piwigo_config (param,value,comment) VALUES ('comments_author_mandatory','false','Comment author is mandatory'); -INSERT INTO piwigo_config (param,value,comment) VALUES ('comments_email_mandatory','false','Comment email is mandatory'); -INSERT INTO piwigo_config (param,value,comment) VALUES ('user_can_delete_comment','false','administrators can allow user delete their own comments'); -INSERT INTO piwigo_config (param,value,comment) VALUES ('user_can_edit_comment','false','administrators can allow user edit their own comments'); -INSERT INTO piwigo_config (param,value,comment) VALUES ('email_admin_on_comment_edition','false','Send an email to the administrators when a comment is modified'); -INSERT INTO piwigo_config (param,value,comment) VALUES ('email_admin_on_comment_deletion','false','Send an email to the administrators when a comment is deleted'); -INSERT INTO piwigo_config (param,value,comment) VALUES ('gallery_locked','false','Lock your gallery temporary for non admin users'); -INSERT INTO piwigo_config (param,value,comment) VALUES ('gallery_title','','Title at top of each page and for RSS feed'); -INSERT INTO piwigo_config (param,value,comment) VALUES ('rate','true','Rating pictures feature is enabled'); -INSERT INTO piwigo_config (param,value,comment) VALUES ('rate_anonymous','true','Rating pictures feature is also enabled for visitors'); -INSERT INTO piwigo_config (param,value,comment) VALUES ('page_banner','','html displayed on the top each page of your gallery'); -INSERT INTO piwigo_config (param,value,comment) VALUES ('history_admin','false','keep a history of administrator visits on your website'); -INSERT INTO piwigo_config (param,value,comment) VALUES ('history_guest','true','keep a history of guest visits on your website'); -INSERT INTO piwigo_config (param,value,comment) VALUES ('allow_user_registration','true','allow visitors to register?'); -INSERT INTO piwigo_config (param,value,comment) VALUES ('allow_user_customization','true','allow users to customize their gallery?'); -INSERT INTO piwigo_config (param,value,comment) VALUES ('nb_categories_page','12','Param for categories pagination'); -INSERT INTO piwigo_config (param,value,comment) VALUES ('nbm_send_html_mail','true','Send mail on HTML format for notification by mail'); -INSERT INTO piwigo_config (param,value,comment) VALUES ('nbm_send_mail_as','','Send mail as param value for notification by mail'); -INSERT INTO piwigo_config (param,value,comment) VALUES ('nbm_send_detailed_content','true','Send detailed content for notification by mail'); -INSERT INTO piwigo_config (param,value,comment) VALUES ('nbm_complementary_mail_content','','Complementary mail content for notification by mail'); -INSERT INTO piwigo_config (param,value,comment) VALUES ('nbm_send_recent_post_dates','true','Send recent post by dates for notification by mail'); -INSERT INTO piwigo_config (param,value,comment) VALUES ('email_admin_on_new_user','false','Send an email to theadministrators when a user registers'); -INSERT INTO piwigo_config (param,value,comment) VALUES ('email_admin_on_comment','false','Send an email to the administrators when a valid comment is entered'); -INSERT INTO piwigo_config (param,value,comment) VALUES ('email_admin_on_comment_validation','true','Send an email to the administrators when a comment requires validation'); -INSERT INTO piwigo_config (param,value,comment) VALUES ('obligatory_user_mail_address','false','Mail address is obligatory for users'); -INSERT INTO piwigo_config (param,value,comment) VALUES ('c13y_ignore',null,'List of ignored anomalies'); -INSERT INTO piwigo_config (param,value,comment) VALUES ('extents_for_templates','a:0:{}','Actived template-extension(s)'); -INSERT INTO piwigo_config (param,value,comment) VALUES ('blk_menubar','','Menubar options'); -INSERT INTO piwigo_config (param,value,comment) VALUES ('menubar_filter_icon','false','Display filter icon'); -INSERT INTO piwigo_config (param,value,comment) VALUES ('index_sort_order_input','true','Display image order selection list'); -INSERT INTO piwigo_config (param,value,comment) VALUES ('index_flat_icon','false','Display flat icon'); -INSERT INTO piwigo_config (param,value,comment) VALUES ('index_posted_date_icon','true','Display calendar by posted date'); -INSERT INTO piwigo_config (param,value,comment) VALUES ('index_created_date_icon','true','Display calendar by creation date icon'); -INSERT INTO piwigo_config (param,value,comment) VALUES ('index_slideshow_icon','true','Display slideshow icon'); -INSERT INTO piwigo_config (param,value,comment) VALUES ('index_new_icon','true','Display new icons next albums and pictures'); -INSERT INTO piwigo_config (param,value,comment) VALUES ('picture_metadata_icon','true','Display metadata icon on picture page'); -INSERT INTO piwigo_config (param,value,comment) VALUES ('picture_slideshow_icon','true','Display slideshow icon on picture page'); -INSERT INTO piwigo_config (param,value,comment) VALUES ('picture_favorite_icon','true','Display favorite icon on picture page'); -INSERT INTO piwigo_config (param,value,comment) VALUES ('picture_download_icon','true','Display download icon on picture page'); -INSERT INTO piwigo_config (param,value,comment) VALUES ('picture_navigation_icons','true','Display navigation icons on picture page'); -INSERT INTO piwigo_config (param,value,comment) VALUES ('picture_navigation_thumb','true','Display navigation thumbnails on picture page'); -INSERT INTO piwigo_config (param,value,comment) VALUES ('picture_menu','false','Show menubar on picture page'); -INSERT INTO piwigo_config (param,value,comment) - VALUES ( - 'picture_informations', - 'a:11:{s:6:"author";b:1;s:10:"created_on";b:1;s:9:"posted_on";b:1;s:10:"dimensions";b:0;s:4:"file";b:0;s:8:"filesize";b:0;s:4:"tags";b:1;s:10:"categories";b:1;s:6:"visits";b:1;s:12:"rating_score";b:1;s:13:"privacy_level";b:1;}', - 'Information displayed on picture page' - ); -INSERT INTO piwigo_config (param,value,comment) VALUES ('week_starts_on','monday','Monday may not be the first day of the week'); -INSERT INTO piwigo_config (param,value,comment) VALUES ('updates_ignored','a:3:{s:7:"plugins";a:0:{}s:6:"themes";a:0:{}s:9:"languages";a:0:{}}','Extensions ignored for update'); -INSERT INTO piwigo_config (param,value,comment) VALUES ('order_by','ORDER BY date_available DESC, file ASC, id ASC','default photo order'); -INSERT INTO piwigo_config (param,value,comment) VALUES ('order_by_inside_category','ORDER BY date_available DESC, file ASC, id ASC','default photo order inside category'); -INSERT INTO piwigo_config (param,value) VALUES ('original_resize','false'); -INSERT INTO piwigo_config (param,value) VALUES ('original_resize_maxwidth','2016'); -INSERT INTO piwigo_config (param,value) VALUES ('original_resize_maxheight','2016'); -INSERT INTO piwigo_config (param,value) VALUES ('original_resize_quality','95'); -INSERT INTO piwigo_config (param,value) VALUES ('mobile_theme',null); -INSERT INTO piwigo_config (param,value) VALUES ('mail_theme','clear'); diff --git a/conf/database.inc.php~ b/conf/database.inc.php~ deleted file mode 100644 index b3e055f..0000000 --- a/conf/database.inc.php~ +++ /dev/null @@ -1,15 +0,0 @@ - diff --git a/conf/nginx.conf~ b/conf/nginx.conf~ deleted file mode 100644 index f0d478a..0000000 --- a/conf/nginx.conf~ +++ /dev/null @@ -1,18 +0,0 @@ -location PATHTOCHANGE { - alias ALIASTOCHANGE; - client_max_body_size 10G; - index index.php; - default_type text/html; - location ~ [^/]\.php(/|$) { - fastcgi_split_path_info ^(.+?\.php)(/.*)$; - fastcgi_pass unix:/var/run/php5-fpm.sock; - fastcgi_index index.php; - include fastcgi_params; - fastcgi_param REMOTE_USER $remote_user; - fastcgi_param PATH_INFO $fastcgi_path_info; - } - - - # Include SSOWAT user panel. - #include conf.d/yunohost_panel.conf.inc; -} diff --git a/conf/php-fpm.conf~ b/conf/php-fpm.conf~ deleted file mode 100644 index e69de29..0000000 diff --git a/conf/php-fpm.ini~ b/conf/php-fpm.ini~ deleted file mode 100644 index e69de29..0000000 diff --git a/conf/piwigo.sql~ b/conf/piwigo.sql~ deleted file mode 100644 index 3916f7f..0000000 --- a/conf/piwigo.sql~ +++ /dev/null @@ -1,977 +0,0 @@ --- phpMyAdmin SQL Dump --- version 4.2.0 --- http://www.phpmyadmin.net --- --- Client : localhost --- Généré le : Sam 28 Juin 2014 à 23:02 --- Version du serveur : 5.5.37-0+wheezy1 --- Version de PHP : 5.4.4-14+deb7u11 -USE piwigo; -SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; -SET time_zone = "+00:00"; - - -/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; -/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; -/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; -/*!40101 SET NAMES utf8 */; - --- --- Base de données : `piwigo` --- - --- -------------------------------------------------------- - --- --- Structure de la table `piwigo_caddie` --- - -CREATE TABLE IF NOT EXISTS `piwigo_caddie` ( - `user_id` smallint(5) NOT NULL DEFAULT '0', - `element_id` mediumint(8) NOT NULL DEFAULT '0' -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - --- -------------------------------------------------------- - --- --- Structure de la table `piwigo_categories` --- - -CREATE TABLE IF NOT EXISTS `piwigo_categories` ( -`id` smallint(5) unsigned NOT NULL, - `name` varchar(255) NOT NULL DEFAULT '', - `id_uppercat` smallint(5) unsigned DEFAULT NULL, - `comment` text, - `dir` varchar(255) DEFAULT NULL, - `rank` smallint(5) unsigned DEFAULT NULL, - `status` enum('public','private') NOT NULL DEFAULT 'public', - `site_id` tinyint(4) unsigned DEFAULT NULL, - `visible` enum('true','false') NOT NULL DEFAULT 'true', - `representative_picture_id` mediumint(8) unsigned DEFAULT NULL, - `uppercats` varchar(255) NOT NULL DEFAULT '', - `commentable` enum('true','false') NOT NULL DEFAULT 'true', - `global_rank` varchar(255) DEFAULT NULL, - `image_order` varchar(128) DEFAULT NULL, - `permalink` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL -) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; - --- -------------------------------------------------------- - --- --- Structure de la table `piwigo_comments` --- - -CREATE TABLE IF NOT EXISTS `piwigo_comments` ( -`id` int(11) unsigned NOT NULL, - `image_id` mediumint(8) unsigned NOT NULL DEFAULT '0', - `date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', - `author` varchar(255) DEFAULT NULL, - `email` varchar(255) DEFAULT NULL, - `author_id` smallint(5) DEFAULT NULL, - `anonymous_id` varchar(45) NOT NULL, - `website_url` varchar(255) DEFAULT NULL, - `content` longtext, - `validated` enum('true','false') NOT NULL DEFAULT 'false', - `validation_date` datetime DEFAULT NULL -) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; - --- -------------------------------------------------------- - --- --- Structure de la table `piwigo_config` --- - -CREATE TABLE IF NOT EXISTS `piwigo_config` ( - `param` varchar(40) NOT NULL DEFAULT '', - `value` text, - `comment` varchar(255) DEFAULT NULL -) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='configuration table'; - --- --- Contenu de la table `piwigo_config` --- - -INSERT INTO `piwigo_config` (`param`, `value`, `comment`) VALUES -('activate_comments', 'true', 'Global parameter for usage of comments system'), -('nb_comment_page', '10', 'number of comments to display on each page'), -('log', 'true', 'keep an history of visits on your website'), -('comments_validation', 'false', 'administrators validate users comments before becoming visible'), -('comments_forall', 'false', 'even guest not registered can post comments'), -('comments_order', 'ASC', 'comments order on picture page and cie'), -('comments_author_mandatory', 'false', 'Comment author is mandatory'), -('comments_email_mandatory', 'false', 'Comment email is mandatory'), -('user_can_delete_comment', 'false', 'administrators can allow user delete their own comments'), -('user_can_edit_comment', 'false', 'administrators can allow user edit their own comments'), -('email_admin_on_comment_edition', 'false', 'Send an email to the administrators when a comment is modified'), -('email_admin_on_comment_deletion', 'false', 'Send an email to the administrators when a comment is deleted'), -('gallery_locked', 'false', 'Lock your gallery temporary for non admin users'), -('gallery_title', 'Une galerie Piwigo de plus', 'Title at top of each page and for RSS feed'), -('rate', 'true', 'Rating pictures feature is enabled'), -('rate_anonymous', 'true', 'Rating pictures feature is also enabled for visitors'), -('page_banner', '

%gallery_title%

\n\n

Bienvenue sur ma galerie photo

', 'html displayed on the top each page of your gallery'), -('history_admin', 'false', 'keep a history of administrator visits on your website'), -('history_guest', 'true', 'keep a history of guest visits on your website'), -('allow_user_registration', 'true', 'allow visitors to register?'), -('allow_user_customization', 'true', 'allow users to customize their gallery?'), -('nb_categories_page', '12', 'Param for categories pagination'), -('nbm_send_html_mail', 'true', 'Send mail on HTML format for notification by mail'), -('nbm_send_mail_as', '', 'Send mail as param value for notification by mail'), -('nbm_send_detailed_content', 'true', 'Send detailed content for notification by mail'), -('nbm_complementary_mail_content', '', 'Complementary mail content for notification by mail'), -('nbm_send_recent_post_dates', 'true', 'Send recent post by dates for notification by mail'), -('email_admin_on_new_user', 'false', 'Send an email to theadministrators when a user registers'), -('email_admin_on_comment', 'false', 'Send an email to the administrators when a valid comment is entered'), -('email_admin_on_comment_validation', 'true', 'Send an email to the administrators when a comment requires validation'), -('obligatory_user_mail_address', 'false', 'Mail address is obligatory for users'), -('c13y_ignore', 'a:2:{s:7:"version";s:5:"2.6.3";s:4:"list";a:0:{}}', 'List of ignored anomalies'), -('extents_for_templates', 'a:0:{}', 'Actived template-extension(s)'), -('blk_menubar', '', 'Menubar options'), -('menubar_filter_icon', 'false', 'Display filter icon'), -('index_sort_order_input', 'true', 'Display image order selection list'), -('index_flat_icon', 'false', 'Display flat icon'), -('index_posted_date_icon', 'true', 'Display calendar by posted date'), -('index_created_date_icon', 'true', 'Display calendar by creation date icon'), -('index_slideshow_icon', 'true', 'Display slideshow icon'), -('index_new_icon', 'true', 'Display new icons next albums and pictures'), -('picture_metadata_icon', 'true', 'Display metadata icon on picture page'), -('picture_slideshow_icon', 'true', 'Display slideshow icon on picture page'), -('picture_favorite_icon', 'true', 'Display favorite icon on picture page'), -('picture_download_icon', 'true', 'Display download icon on picture page'), -('picture_navigation_icons', 'true', 'Display navigation icons on picture page'), -('picture_navigation_thumb', 'true', 'Display navigation thumbnails on picture page'), -('picture_menu', 'false', 'Show menubar on picture page'), -('picture_informations', 'a:11:{s:6:"author";b:1;s:10:"created_on";b:1;s:9:"posted_on";b:1;s:10:"dimensions";b:0;s:4:"file";b:0;s:8:"filesize";b:0;s:4:"tags";b:1;s:10:"categories";b:1;s:6:"visits";b:1;s:12:"rating_score";b:1;s:13:"privacy_level";b:1;}', 'Information displayed on picture page'), -('week_starts_on', 'monday', 'Monday may not be the first day of the week'), -('updates_ignored', 'a:3:{s:7:"plugins";a:0:{}s:6:"themes";a:0:{}s:9:"languages";a:0:{}}', 'Extensions ignored for update'), -('order_by', 'ORDER BY date_available DESC, file ASC, id ASC', 'default photo order'), -('order_by_inside_category', 'ORDER BY date_available DESC, file ASC, id ASC', 'default photo order inside category'), -('original_resize', 'false', NULL), -('original_resize_maxwidth', '2016', NULL), -('original_resize_maxheight', '2016', NULL), -('original_resize_quality', '95', NULL), -('mobile_theme', 'smartpocket', NULL), -('mail_theme', 'clear', NULL), -('secret_key', '8c52ac66f4b2bb51a8e2a850990e900d', 'a secret key specific to the gallery for internal use'), -('piwigo_db_version', '2.6', NULL), -('smartpocket', 'a:2:{s:4:"loop";b:1;s:8:"autohide";i:5000;}', 'loop#autohide'), -('derivatives', 'a:4:{s:1:"d";a:9:{s:6:"square";O:16:"DerivativeParams":3:{s:13:"last_mod_time";i:1403987679;s:6:"sizing";O:12:"SizingParams":3:{s:10:"ideal_size";a:2:{i:0;i:120;i:1;i:120;}s:8:"max_crop";i:1;s:8:"min_size";a:2:{i:0;i:120;i:1;i:120;}}s:7:"sharpen";i:0;}s:5:"thumb";O:16:"DerivativeParams":3:{s:13:"last_mod_time";i:1403987679;s:6:"sizing";O:12:"SizingParams":3:{s:10:"ideal_size";a:2:{i:0;i:144;i:1;i:144;}s:8:"max_crop";i:0;s:8:"min_size";N;}s:7:"sharpen";i:0;}s:6:"2small";O:16:"DerivativeParams":3:{s:13:"last_mod_time";i:1403987679;s:6:"sizing";O:12:"SizingParams":3:{s:10:"ideal_size";a:2:{i:0;i:240;i:1;i:240;}s:8:"max_crop";i:0;s:8:"min_size";N;}s:7:"sharpen";i:0;}s:6:"xsmall";O:16:"DerivativeParams":3:{s:13:"last_mod_time";i:1403987679;s:6:"sizing";O:12:"SizingParams":3:{s:10:"ideal_size";a:2:{i:0;i:432;i:1;i:324;}s:8:"max_crop";i:0;s:8:"min_size";N;}s:7:"sharpen";i:0;}s:5:"small";O:16:"DerivativeParams":3:{s:13:"last_mod_time";i:1403987679;s:6:"sizing";O:12:"SizingParams":3:{s:10:"ideal_size";a:2:{i:0;i:576;i:1;i:432;}s:8:"max_crop";i:0;s:8:"min_size";N;}s:7:"sharpen";i:0;}s:6:"medium";O:16:"DerivativeParams":3:{s:13:"last_mod_time";i:1403987679;s:6:"sizing";O:12:"SizingParams":3:{s:10:"ideal_size";a:2:{i:0;i:792;i:1;i:594;}s:8:"max_crop";i:0;s:8:"min_size";N;}s:7:"sharpen";i:0;}s:5:"large";O:16:"DerivativeParams":3:{s:13:"last_mod_time";i:1403987679;s:6:"sizing";O:12:"SizingParams":3:{s:10:"ideal_size";a:2:{i:0;i:1008;i:1;i:756;}s:8:"max_crop";i:0;s:8:"min_size";N;}s:7:"sharpen";i:0;}s:6:"xlarge";O:16:"DerivativeParams":3:{s:13:"last_mod_time";i:1403987679;s:6:"sizing";O:12:"SizingParams":3:{s:10:"ideal_size";a:2:{i:0;i:1224;i:1;i:918;}s:8:"max_crop";i:0;s:8:"min_size";N;}s:7:"sharpen";i:0;}s:7:"xxlarge";O:16:"DerivativeParams":3:{s:13:"last_mod_time";i:1403987679;s:6:"sizing";O:12:"SizingParams":3:{s:10:"ideal_size";a:2:{i:0;i:1656;i:1;i:1242;}s:8:"max_crop";i:0;s:8:"min_size";N;}s:7:"sharpen";i:0;}}s:1:"q";i:95;s:1:"w";O:15:"WatermarkParams":6:{s:4:"file";s:0:"";s:8:"min_size";a:2:{i:0;i:500;i:1;i:500;}s:4:"xpos";i:50;s:4:"ypos";i:50;s:7:"xrepeat";i:0;s:7:"opacity";i:100;}s:1:"c";a:0:{}}', NULL), -('data_dir_checked', '1', NULL), -('elegant', 'a:3:{s:11:"p_main_menu";s:2:"on";s:12:"p_pict_descr";s:2:"on";s:14:"p_pict_comment";s:3:"off";}', 'p_main_menu#'), -('no_photo_yet', 'false', NULL); - --- -------------------------------------------------------- - --- --- Structure de la table `piwigo_favorites` --- - -CREATE TABLE IF NOT EXISTS `piwigo_favorites` ( - `user_id` smallint(5) NOT NULL DEFAULT '0', - `image_id` mediumint(8) unsigned NOT NULL DEFAULT '0' -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - --- -------------------------------------------------------- - --- --- Structure de la table `piwigo_groups` --- - -CREATE TABLE IF NOT EXISTS `piwigo_groups` ( -`id` smallint(5) unsigned NOT NULL, - `name` varchar(255) NOT NULL DEFAULT '', - `is_default` enum('true','false') NOT NULL DEFAULT 'false' -) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; - --- -------------------------------------------------------- - --- --- Structure de la table `piwigo_group_access` --- - -CREATE TABLE IF NOT EXISTS `piwigo_group_access` ( - `group_id` smallint(5) unsigned NOT NULL DEFAULT '0', - `cat_id` smallint(5) unsigned NOT NULL DEFAULT '0' -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - --- -------------------------------------------------------- - --- --- Structure de la table `piwigo_history` --- - -CREATE TABLE IF NOT EXISTS `piwigo_history` ( -`id` int(10) unsigned NOT NULL, - `date` date NOT NULL DEFAULT '0000-00-00', - `time` time NOT NULL DEFAULT '00:00:00', - `user_id` smallint(5) NOT NULL DEFAULT '0', - `IP` varchar(15) NOT NULL DEFAULT '', - `section` enum('categories','tags','search','list','favorites','most_visited','best_rated','recent_pics','recent_cats') DEFAULT NULL, - `category_id` smallint(5) DEFAULT NULL, - `tag_ids` varchar(50) DEFAULT NULL, - `image_id` mediumint(8) DEFAULT NULL, - `summarized` enum('true','false') DEFAULT 'false', - `image_type` enum('picture','high','other') DEFAULT NULL -) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=9 ; - --- --- Contenu de la table `piwigo_history` --- - -INSERT INTO `piwigo_history` (`id`, `date`, `time`, `user_id`, `IP`, `section`, `category_id`, `tag_ids`, `image_id`, `summarized`, `image_type`) VALUES -(1, '2014-06-28', '22:50:57', 2, '192.168.0.13', 'categories', NULL, NULL, NULL, 'false', NULL), -(2, '2014-06-28', '22:54:12', 2, '192.168.0.13', 'categories', NULL, NULL, NULL, 'false', NULL), -(3, '2014-06-28', '22:56:13', 2, '192.168.0.13', 'categories', NULL, NULL, NULL, 'false', NULL), -(4, '2014-06-28', '22:57:03', 2, '192.168.0.13', 'categories', NULL, NULL, NULL, 'false', NULL), -(5, '2014-06-28', '22:57:35', 2, '192.168.0.13', 'categories', NULL, NULL, NULL, 'false', NULL), -(6, '2014-06-28', '22:58:24', 2, '192.168.0.13', 'categories', NULL, NULL, NULL, 'false', NULL), -(7, '2014-06-28', '22:58:59', 3, '192.168.0.13', 'categories', NULL, NULL, NULL, 'false', NULL), -(8, '2014-06-28', '22:59:07', 2, '192.168.0.13', 'categories', NULL, NULL, NULL, 'false', NULL); - --- -------------------------------------------------------- - --- --- Structure de la table `piwigo_history_summary` --- - -CREATE TABLE IF NOT EXISTS `piwigo_history_summary` ( - `year` smallint(4) NOT NULL DEFAULT '0', - `month` tinyint(2) DEFAULT NULL, - `day` tinyint(2) DEFAULT NULL, - `hour` tinyint(2) DEFAULT NULL, - `nb_pages` int(11) DEFAULT NULL -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - --- -------------------------------------------------------- - --- --- Structure de la table `piwigo_images` --- - -CREATE TABLE IF NOT EXISTS `piwigo_images` ( -`id` mediumint(8) unsigned NOT NULL, - `file` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', - `date_available` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', - `date_creation` datetime DEFAULT NULL, - `name` varchar(255) DEFAULT NULL, - `comment` text, - `author` varchar(255) DEFAULT NULL, - `hit` int(10) unsigned NOT NULL DEFAULT '0', - `filesize` mediumint(9) unsigned DEFAULT NULL, - `width` smallint(9) unsigned DEFAULT NULL, - `height` smallint(9) unsigned DEFAULT NULL, - `coi` char(4) DEFAULT NULL COMMENT 'center of interest', - `representative_ext` varchar(4) DEFAULT NULL, - `date_metadata_update` date DEFAULT NULL, - `rating_score` float(5,2) unsigned DEFAULT NULL, - `path` varchar(255) NOT NULL DEFAULT '', - `storage_category_id` smallint(5) unsigned DEFAULT NULL, - `level` tinyint(3) unsigned NOT NULL DEFAULT '0', - `md5sum` char(32) DEFAULT NULL, - `added_by` smallint(5) NOT NULL DEFAULT '0', - `rotation` tinyint(3) unsigned DEFAULT NULL, - `latitude` double(8,6) DEFAULT NULL, - `longitude` double(9,6) DEFAULT NULL -) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; - --- -------------------------------------------------------- - --- --- Structure de la table `piwigo_image_category` --- - -CREATE TABLE IF NOT EXISTS `piwigo_image_category` ( - `image_id` mediumint(8) unsigned NOT NULL DEFAULT '0', - `category_id` smallint(5) unsigned NOT NULL DEFAULT '0', - `rank` mediumint(8) unsigned DEFAULT NULL -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - --- -------------------------------------------------------- - --- --- Structure de la table `piwigo_image_tag` --- - -CREATE TABLE IF NOT EXISTS `piwigo_image_tag` ( - `image_id` mediumint(8) unsigned NOT NULL DEFAULT '0', - `tag_id` smallint(5) unsigned NOT NULL DEFAULT '0' -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - --- -------------------------------------------------------- - --- --- Structure de la table `piwigo_languages` --- - -CREATE TABLE IF NOT EXISTS `piwigo_languages` ( - `id` varchar(64) NOT NULL DEFAULT '', - `version` varchar(64) NOT NULL DEFAULT '0', - `name` varchar(64) DEFAULT NULL -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - --- --- Contenu de la table `piwigo_languages` --- - -INSERT INTO `piwigo_languages` (`id`, `version`, `name`) VALUES -('af_ZA', '2.6.0', 'Afrikaans [ZA]'), -('es_AR', '2.6.0', 'Argentina [AR]'), -('az_AZ', '2.5.0', 'Azərbaycanca [AZ]'), -('id_ID', '2.6.0', 'Bahasa Indonesia [ID]'), -('pt_BR', '2.6.1', 'Brasil [BR]'), -('br_FR', '2.6.2', 'Brezhoneg [FR]'), -('ca_ES', '2.6.1', 'Català [CA]'), -('da_DK', '2.6.0', 'Dansk [DK]'), -('de_DE', '2.6.0', 'Deutsch [DE]'), -('dv_MV', '2.5.0', 'Dhivehi [MV]'), -('en_GB', '2.6.1', 'English [GB]'), -('en_UK', '2.6.0', 'English [UK]'), -('en_US', '2.6.0', 'English [US]'), -('es_ES', '2.6.0', 'Español [ES]'), -('eo_EO', '2.6.0', 'Esperanto [EO]'), -('et_EE', '2.6.0', 'Estonian [EE]'), -('fi_FI', '2.6.0', 'Finnish [FI]'), -('fr_FR', '2.6.0', 'Français [FR]'), -('fr_CA', '2.6.0', 'Français [QC]'), -('ga_IE', '2.5.0', 'Gaeilge [IE]'), -('gl_ES', '2.6.1', 'Galego [ES]'), -('hr_HR', '2.6.0', 'Hrvatski [HR]'), -('it_IT', '2.6.0', 'Italiano [IT]'), -('lv_LV', '2.6.0', 'Latviešu [LV]'), -('lt_LT', '2.6.0', 'Lietuviu [LT]'), -('lb_LU', '2.5.0', 'Lëtzebuergesch [LU]'), -('hu_HU', '2.6.0', 'Magyar [HU]'), -('ms_MY', '2.5.0', 'Malay [MY]'), -('nl_NL', '2.6.0', 'Nederlands [NL]'), -('nb_NO', '2.6.0', 'Norwegian [NO]'), -('nn_NO', '2.6.0', 'Norwegian nynorsk [NO]'), -('pl_PL', '2.6.1', 'Polski [PL]'), -('pt_PT', '2.6.0', 'Português [PT]'), -('ro_RO', '2.6.0', 'Română [RO]'), -('sk_SK', '2.6.0', 'Slovensky [SK]'), -('sl_SI', '2.6.1', 'Slovenšcina [SI]'), -('sh_RS', '2.6.1', 'Srpski [SR]'), -('sv_SE', '2.6.0', 'Svenska [SE]'), -('vi_VN', '2.6.0', 'Tiếng Việt [VN]'), -('tr_TR', '2.6.0', 'Türkçe [TR]'), -('is_IS', '2.6.0', 'Íslenska [IS]'), -('cs_CZ', '2.6.0', 'Česky [CZ]'), -('el_GR', '2.6.0', 'Ελληνικά [GR]'), -('bg_BG', '2.6.0', 'Български [BG]'), -('mk_MK', '2.6.0', 'Македонски [MK]'), -('mn_MN', '2.6.2', 'Монгол [MN]'), -('ru_RU', '2.6.0', 'Русский [RU]'), -('sr_RS', '2.6.1', 'Српски [SR]'), -('uk_UA', '2.6.0', 'Українська [UA]'), -('he_IL', '2.6.2', 'עברית [IL]'), -('ar_SA', '2.6.0', 'العربية [AR]'), -('ar_MA', '2.5.0', 'العربية [MA]'), -('fa_IR', '2.6.0', 'پارسی [IR]'), -('kok_IN', '2.5.0', 'कोंकणी [IN]'), -('bn_IN', '2.5.0', 'বাংলা[IN]'), -('ta_IN', '2.6.1', 'தமிழ் [IN]'), -('kn_IN', '2.6.0', 'ಕನ್ನಡ [IN]'), -('th_TH', '2.6.0', 'ภาษาไทย [TH]'), -('ka_GE', '2.6.0', 'ქართული [GE]'), -('km_KH', '2.6.2', 'ខ្មែរ [KH]'), -('zh_TW', '2.6.0', '中文 (繁體) [TW]'), -('zh_HK', '2.6.0', '中文 (香港) [HK]'), -('ja_JP', '2.6.0', '日本語 [JP]'), -('zh_CN', '2.6.0', '简体中文 [CN]'), -('ko_KR', '2.6.0', '한국어 [KR]'); - --- -------------------------------------------------------- - --- --- Structure de la table `piwigo_old_permalinks` --- - -CREATE TABLE IF NOT EXISTS `piwigo_old_permalinks` ( - `cat_id` smallint(5) unsigned NOT NULL DEFAULT '0', - `permalink` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', - `date_deleted` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', - `last_hit` datetime DEFAULT NULL, - `hit` int(10) unsigned NOT NULL DEFAULT '0' -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - --- -------------------------------------------------------- - --- --- Structure de la table `piwigo_plugins` --- - -CREATE TABLE IF NOT EXISTS `piwigo_plugins` ( - `id` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', - `state` enum('inactive','active') NOT NULL DEFAULT 'inactive', - `version` varchar(64) NOT NULL DEFAULT '0' -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - --- --- Contenu de la table `piwigo_plugins` --- - -INSERT INTO `piwigo_plugins` (`id`, `state`, `version`) VALUES -('Ldap_Login', 'active', '1.1'); - --- -------------------------------------------------------- - --- --- Structure de la table `piwigo_rate` --- - -CREATE TABLE IF NOT EXISTS `piwigo_rate` ( - `user_id` smallint(5) NOT NULL DEFAULT '0', - `element_id` mediumint(8) unsigned NOT NULL DEFAULT '0', - `anonymous_id` varchar(45) NOT NULL DEFAULT '', - `rate` tinyint(2) unsigned NOT NULL DEFAULT '0', - `date` date NOT NULL DEFAULT '0000-00-00' -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - --- -------------------------------------------------------- - --- --- Structure de la table `piwigo_search` --- - -CREATE TABLE IF NOT EXISTS `piwigo_search` ( -`id` int(10) unsigned NOT NULL, - `last_seen` date DEFAULT NULL, - `rules` text -) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; - --- -------------------------------------------------------- - --- --- Structure de la table `piwigo_sessions` --- - -CREATE TABLE IF NOT EXISTS `piwigo_sessions` ( - `id` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', - `data` mediumtext NOT NULL, - `expiration` datetime NOT NULL DEFAULT '0000-00-00 00:00:00' -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - --- --- Contenu de la table `piwigo_sessions` --- - -INSERT INTO `piwigo_sessions` (`id`, `data`, `expiration`) VALUES -('C0A8q02887miht1f856vh8u19emb13', 'pwg_device|s:7:"desktop";pwg_mobile_theme|b:0;', '2014-06-28 22:59:15'); - --- -------------------------------------------------------- - --- --- Structure de la table `piwigo_sites` --- - -CREATE TABLE IF NOT EXISTS `piwigo_sites` ( -`id` tinyint(4) NOT NULL, - `galleries_url` varchar(255) NOT NULL DEFAULT '' -) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ; - --- --- Contenu de la table `piwigo_sites` --- - -INSERT INTO `piwigo_sites` (`id`, `galleries_url`) VALUES -(1, './galleries/'); - --- -------------------------------------------------------- - --- --- Structure de la table `piwigo_tags` --- - -CREATE TABLE IF NOT EXISTS `piwigo_tags` ( -`id` smallint(5) unsigned NOT NULL, - `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', - `url_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '' -) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; - --- -------------------------------------------------------- - --- --- Structure de la table `piwigo_themes` --- - -CREATE TABLE IF NOT EXISTS `piwigo_themes` ( - `id` varchar(64) NOT NULL DEFAULT '', - `version` varchar(64) NOT NULL DEFAULT '0', - `name` varchar(64) DEFAULT NULL -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - --- --- Contenu de la table `piwigo_themes` --- - -INSERT INTO `piwigo_themes` (`id`, `version`, `name`) VALUES -('smartpocket', '2.6.2', 'Smart Pocket'), -('elegant', '2.6.2', 'elegant'); - --- -------------------------------------------------------- - --- --- Structure de la table `piwigo_upgrade` --- - -CREATE TABLE IF NOT EXISTS `piwigo_upgrade` ( - `id` varchar(20) NOT NULL DEFAULT '', - `applied` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', - `description` varchar(255) DEFAULT NULL -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - --- --- Contenu de la table `piwigo_upgrade` --- - -INSERT INTO `piwigo_upgrade` (`id`, `applied`, `description`) VALUES -('61', '2014-06-28 22:33:36', 'upgrade included in installation'), -('62', '2014-06-28 22:33:36', 'upgrade included in installation'), -('63', '2014-06-28 22:33:36', 'upgrade included in installation'), -('64', '2014-06-28 22:33:36', 'upgrade included in installation'), -('65', '2014-06-28 22:33:36', 'upgrade included in installation'), -('66', '2014-06-28 22:33:36', 'upgrade included in installation'), -('67', '2014-06-28 22:33:36', 'upgrade included in installation'), -('68', '2014-06-28 22:33:36', 'upgrade included in installation'), -('69', '2014-06-28 22:33:36', 'upgrade included in installation'), -('70', '2014-06-28 22:33:36', 'upgrade included in installation'), -('71', '2014-06-28 22:33:36', 'upgrade included in installation'), -('72', '2014-06-28 22:33:36', 'upgrade included in installation'), -('73', '2014-06-28 22:33:36', 'upgrade included in installation'), -('74', '2014-06-28 22:33:36', 'upgrade included in installation'), -('75', '2014-06-28 22:33:36', 'upgrade included in installation'), -('76', '2014-06-28 22:33:36', 'upgrade included in installation'), -('77', '2014-06-28 22:33:36', 'upgrade included in installation'), -('78', '2014-06-28 22:33:36', 'upgrade included in installation'), -('79', '2014-06-28 22:33:36', 'upgrade included in installation'), -('80', '2014-06-28 22:33:36', 'upgrade included in installation'), -('81', '2014-06-28 22:33:36', 'upgrade included in installation'), -('82', '2014-06-28 22:33:36', 'upgrade included in installation'), -('83', '2014-06-28 22:33:36', 'upgrade included in installation'), -('84', '2014-06-28 22:33:36', 'upgrade included in installation'), -('85', '2014-06-28 22:33:36', 'upgrade included in installation'), -('86', '2014-06-28 22:33:36', 'upgrade included in installation'), -('87', '2014-06-28 22:33:36', 'upgrade included in installation'), -('88', '2014-06-28 22:33:36', 'upgrade included in installation'), -('89', '2014-06-28 22:33:36', 'upgrade included in installation'), -('90', '2014-06-28 22:33:36', 'upgrade included in installation'), -('91', '2014-06-28 22:33:36', 'upgrade included in installation'), -('92', '2014-06-28 22:33:36', 'upgrade included in installation'), -('93', '2014-06-28 22:33:36', 'upgrade included in installation'), -('94', '2014-06-28 22:33:36', 'upgrade included in installation'), -('95', '2014-06-28 22:33:36', 'upgrade included in installation'), -('96', '2014-06-28 22:33:36', 'upgrade included in installation'), -('97', '2014-06-28 22:33:36', 'upgrade included in installation'), -('98', '2014-06-28 22:33:36', 'upgrade included in installation'), -('99', '2014-06-28 22:33:36', 'upgrade included in installation'), -('100', '2014-06-28 22:33:36', 'upgrade included in installation'), -('101', '2014-06-28 22:33:36', 'upgrade included in installation'), -('102', '2014-06-28 22:33:36', 'upgrade included in installation'), -('103', '2014-06-28 22:33:36', 'upgrade included in installation'), -('104', '2014-06-28 22:33:36', 'upgrade included in installation'), -('105', '2014-06-28 22:33:36', 'upgrade included in installation'), -('106', '2014-06-28 22:33:36', 'upgrade included in installation'), -('107', '2014-06-28 22:33:36', 'upgrade included in installation'), -('108', '2014-06-28 22:33:36', 'upgrade included in installation'), -('109', '2014-06-28 22:33:36', 'upgrade included in installation'), -('110', '2014-06-28 22:33:36', 'upgrade included in installation'), -('111', '2014-06-28 22:33:36', 'upgrade included in installation'), -('112', '2014-06-28 22:33:36', 'upgrade included in installation'), -('113', '2014-06-28 22:33:36', 'upgrade included in installation'), -('114', '2014-06-28 22:33:36', 'upgrade included in installation'), -('115', '2014-06-28 22:33:36', 'upgrade included in installation'), -('116', '2014-06-28 22:33:36', 'upgrade included in installation'), -('117', '2014-06-28 22:33:36', 'upgrade included in installation'), -('118', '2014-06-28 22:33:36', 'upgrade included in installation'), -('119', '2014-06-28 22:33:36', 'upgrade included in installation'), -('120', '2014-06-28 22:33:36', 'upgrade included in installation'), -('121', '2014-06-28 22:33:36', 'upgrade included in installation'), -('122', '2014-06-28 22:33:36', 'upgrade included in installation'), -('123', '2014-06-28 22:33:36', 'upgrade included in installation'), -('124', '2014-06-28 22:33:36', 'upgrade included in installation'), -('125', '2014-06-28 22:33:36', 'upgrade included in installation'), -('126', '2014-06-28 22:33:36', 'upgrade included in installation'), -('127', '2014-06-28 22:33:36', 'upgrade included in installation'), -('128', '2014-06-28 22:33:36', 'upgrade included in installation'), -('129', '2014-06-28 22:33:36', 'upgrade included in installation'), -('130', '2014-06-28 22:33:36', 'upgrade included in installation'), -('131', '2014-06-28 22:33:36', 'upgrade included in installation'), -('132', '2014-06-28 22:33:36', 'upgrade included in installation'), -('133', '2014-06-28 22:33:36', 'upgrade included in installation'), -('134', '2014-06-28 22:33:36', 'upgrade included in installation'), -('135', '2014-06-28 22:33:36', 'upgrade included in installation'), -('136', '2014-06-28 22:33:36', 'upgrade included in installation'), -('137', '2014-06-28 22:33:36', 'upgrade included in installation'), -('138', '2014-06-28 22:33:36', 'upgrade included in installation'), -('139', '2014-06-28 22:33:36', 'upgrade included in installation'); - --- -------------------------------------------------------- - --- --- Structure de la table `piwigo_users` --- - -CREATE TABLE IF NOT EXISTS `piwigo_users` ( -`id` smallint(5) NOT NULL, - `username` varchar(100) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', - `password` varchar(255) DEFAULT NULL, - `mail_address` varchar(255) DEFAULT NULL -) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ; - --- --- Contenu de la table `piwigo_users` --- - -INSERT INTO `piwigo_users` (`id`, `username`, `password`, `mail_address`) VALUES -(1, 'ADMINUSER', '', 'webmaster@monsieur-a.com'), -(2, 'guest', NULL, NULL); - --- -------------------------------------------------------- - --- --- Structure de la table `piwigo_user_access` --- - -CREATE TABLE IF NOT EXISTS `piwigo_user_access` ( - `user_id` smallint(5) NOT NULL DEFAULT '0', - `cat_id` smallint(5) unsigned NOT NULL DEFAULT '0' -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - --- -------------------------------------------------------- - --- --- Structure de la table `piwigo_user_cache` --- - -CREATE TABLE IF NOT EXISTS `piwigo_user_cache` ( - `user_id` smallint(5) NOT NULL DEFAULT '0', - `need_update` enum('true','false') NOT NULL DEFAULT 'true', - `cache_update_time` int(10) unsigned NOT NULL DEFAULT '0', - `forbidden_categories` mediumtext, - `nb_total_images` mediumint(8) unsigned DEFAULT NULL, - `last_photo_date` datetime DEFAULT NULL, - `nb_available_tags` int(5) DEFAULT NULL, - `nb_available_comments` int(5) DEFAULT NULL, - `image_access_type` enum('NOT IN','IN') NOT NULL DEFAULT 'NOT IN', - `image_access_list` mediumtext -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - --- -------------------------------------------------------- - --- --- Structure de la table `piwigo_user_cache_categories` --- - -CREATE TABLE IF NOT EXISTS `piwigo_user_cache_categories` ( - `user_id` smallint(5) NOT NULL DEFAULT '0', - `cat_id` smallint(5) unsigned NOT NULL DEFAULT '0', - `date_last` datetime DEFAULT NULL, - `max_date_last` datetime DEFAULT NULL, - `nb_images` mediumint(8) unsigned NOT NULL DEFAULT '0', - `count_images` mediumint(8) unsigned DEFAULT '0', - `nb_categories` mediumint(8) unsigned DEFAULT '0', - `count_categories` mediumint(8) unsigned DEFAULT '0', - `user_representative_picture_id` mediumint(8) unsigned DEFAULT NULL -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - --- -------------------------------------------------------- - --- --- Structure de la table `piwigo_user_feed` --- - -CREATE TABLE IF NOT EXISTS `piwigo_user_feed` ( - `id` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', - `user_id` smallint(5) NOT NULL DEFAULT '0', - `last_check` datetime DEFAULT NULL -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - --- -------------------------------------------------------- - --- --- Structure de la table `piwigo_user_group` --- - -CREATE TABLE IF NOT EXISTS `piwigo_user_group` ( - `user_id` smallint(5) NOT NULL DEFAULT '0', - `group_id` smallint(5) unsigned NOT NULL DEFAULT '0' -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - --- -------------------------------------------------------- - --- --- Structure de la table `piwigo_user_infos` --- - -CREATE TABLE IF NOT EXISTS `piwigo_user_infos` ( - `user_id` smallint(5) NOT NULL DEFAULT '0', - `nb_image_page` smallint(3) unsigned NOT NULL DEFAULT '15', - `status` enum('webmaster','admin','normal','generic','guest') NOT NULL DEFAULT 'guest', - `language` varchar(50) NOT NULL DEFAULT 'en_UK', - `expand` enum('true','false') NOT NULL DEFAULT 'false', - `show_nb_comments` enum('true','false') NOT NULL DEFAULT 'false', - `show_nb_hits` enum('true','false') NOT NULL DEFAULT 'false', - `recent_period` tinyint(3) unsigned NOT NULL DEFAULT '7', - `theme` varchar(255) NOT NULL DEFAULT 'elegant', - `registration_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', - `enabled_high` enum('true','false') NOT NULL DEFAULT 'true', - `level` tinyint(3) unsigned NOT NULL DEFAULT '0', - `activation_key` char(20) DEFAULT NULL -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - --- --- Contenu de la table `piwigo_user_infos` --- - -INSERT INTO `piwigo_user_infos` (`user_id`, `nb_image_page`, `status`, `language`, `expand`, `show_nb_comments`, `show_nb_hits`, `recent_period`, `theme`, `registration_date`, `enabled_high`, `level`, `activation_key`) VALUES -(1, 15, 'webmaster', 'fr_FR', 'false', 'false', 'false', 7, 'elegant', '2014-06-28 22:33:36', 'true', 8, NULL), -(2, 15, 'guest', 'fr_FR', 'false', 'false', 'false', 7, 'elegant', '2014-06-28 22:33:36', 'true', 0, NULL); - --- -------------------------------------------------------- - --- --- Structure de la table `piwigo_user_mail_notification` --- - -CREATE TABLE IF NOT EXISTS `piwigo_user_mail_notification` ( - `user_id` smallint(5) NOT NULL DEFAULT '0', - `check_key` varchar(16) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', - `enabled` enum('true','false') NOT NULL DEFAULT 'false', - `last_send` datetime DEFAULT NULL -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - --- --- Index pour les tables exportées --- - --- --- Index pour la table `piwigo_caddie` --- -ALTER TABLE `piwigo_caddie` - ADD PRIMARY KEY (`user_id`,`element_id`); - --- --- Index pour la table `piwigo_categories` --- -ALTER TABLE `piwigo_categories` - ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `categories_i3` (`permalink`), ADD KEY `categories_i2` (`id_uppercat`); - --- --- Index pour la table `piwigo_comments` --- -ALTER TABLE `piwigo_comments` - ADD PRIMARY KEY (`id`), ADD KEY `comments_i2` (`validation_date`), ADD KEY `comments_i1` (`image_id`); - --- --- Index pour la table `piwigo_config` --- -ALTER TABLE `piwigo_config` - ADD PRIMARY KEY (`param`); - --- --- Index pour la table `piwigo_favorites` --- -ALTER TABLE `piwigo_favorites` - ADD PRIMARY KEY (`user_id`,`image_id`); - --- --- Index pour la table `piwigo_groups` --- -ALTER TABLE `piwigo_groups` - ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `groups_ui1` (`name`); - --- --- Index pour la table `piwigo_group_access` --- -ALTER TABLE `piwigo_group_access` - ADD PRIMARY KEY (`group_id`,`cat_id`); - --- --- Index pour la table `piwigo_history` --- -ALTER TABLE `piwigo_history` - ADD PRIMARY KEY (`id`), ADD KEY `history_i1` (`summarized`); - --- --- Index pour la table `piwigo_history_summary` --- -ALTER TABLE `piwigo_history_summary` - ADD UNIQUE KEY `history_summary_ymdh` (`year`,`month`,`day`,`hour`); - --- --- Index pour la table `piwigo_images` --- -ALTER TABLE `piwigo_images` - ADD PRIMARY KEY (`id`), ADD KEY `images_i2` (`date_available`), ADD KEY `images_i3` (`rating_score`), ADD KEY `images_i4` (`hit`), ADD KEY `images_i5` (`date_creation`), ADD KEY `images_i1` (`storage_category_id`), ADD KEY `images_i6` (`latitude`); - --- --- Index pour la table `piwigo_image_category` --- -ALTER TABLE `piwigo_image_category` - ADD PRIMARY KEY (`image_id`,`category_id`), ADD KEY `image_category_i1` (`category_id`); - --- --- Index pour la table `piwigo_image_tag` --- -ALTER TABLE `piwigo_image_tag` - ADD PRIMARY KEY (`image_id`,`tag_id`), ADD KEY `image_tag_i1` (`tag_id`); - --- --- Index pour la table `piwigo_languages` --- -ALTER TABLE `piwigo_languages` - ADD PRIMARY KEY (`id`); - --- --- Index pour la table `piwigo_old_permalinks` --- -ALTER TABLE `piwigo_old_permalinks` - ADD PRIMARY KEY (`permalink`); - --- --- Index pour la table `piwigo_plugins` --- -ALTER TABLE `piwigo_plugins` - ADD PRIMARY KEY (`id`); - --- --- Index pour la table `piwigo_rate` --- -ALTER TABLE `piwigo_rate` - ADD PRIMARY KEY (`element_id`,`user_id`,`anonymous_id`); - --- --- Index pour la table `piwigo_search` --- -ALTER TABLE `piwigo_search` - ADD PRIMARY KEY (`id`); - --- --- Index pour la table `piwigo_sessions` --- -ALTER TABLE `piwigo_sessions` - ADD PRIMARY KEY (`id`); - --- --- Index pour la table `piwigo_sites` --- -ALTER TABLE `piwigo_sites` - ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `sites_ui1` (`galleries_url`); - --- --- Index pour la table `piwigo_tags` --- -ALTER TABLE `piwigo_tags` - ADD PRIMARY KEY (`id`), ADD KEY `tags_i1` (`url_name`); - --- --- Index pour la table `piwigo_themes` --- -ALTER TABLE `piwigo_themes` - ADD PRIMARY KEY (`id`); - --- --- Index pour la table `piwigo_upgrade` --- -ALTER TABLE `piwigo_upgrade` - ADD PRIMARY KEY (`id`); - --- --- Index pour la table `piwigo_users` --- -ALTER TABLE `piwigo_users` - ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `users_ui1` (`username`); - --- --- Index pour la table `piwigo_user_access` --- -ALTER TABLE `piwigo_user_access` - ADD PRIMARY KEY (`user_id`,`cat_id`); - --- --- Index pour la table `piwigo_user_cache` --- -ALTER TABLE `piwigo_user_cache` - ADD PRIMARY KEY (`user_id`); - --- --- Index pour la table `piwigo_user_cache_categories` --- -ALTER TABLE `piwigo_user_cache_categories` - ADD PRIMARY KEY (`user_id`,`cat_id`); - --- --- Index pour la table `piwigo_user_feed` --- -ALTER TABLE `piwigo_user_feed` - ADD PRIMARY KEY (`id`); - --- --- Index pour la table `piwigo_user_group` --- -ALTER TABLE `piwigo_user_group` - ADD PRIMARY KEY (`group_id`,`user_id`); - --- --- Index pour la table `piwigo_user_infos` --- -ALTER TABLE `piwigo_user_infos` - ADD PRIMARY KEY (`user_id`); - --- --- Index pour la table `piwigo_user_mail_notification` --- -ALTER TABLE `piwigo_user_mail_notification` - ADD PRIMARY KEY (`user_id`), ADD UNIQUE KEY `user_mail_notification_ui1` (`check_key`); - --- --- AUTO_INCREMENT pour les tables exportées --- - --- --- AUTO_INCREMENT pour la table `piwigo_categories` --- -ALTER TABLE `piwigo_categories` -MODIFY `id` smallint(5) unsigned NOT NULL AUTO_INCREMENT; --- --- AUTO_INCREMENT pour la table `piwigo_comments` --- -ALTER TABLE `piwigo_comments` -MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT; --- --- AUTO_INCREMENT pour la table `piwigo_groups` --- -ALTER TABLE `piwigo_groups` -MODIFY `id` smallint(5) unsigned NOT NULL AUTO_INCREMENT; --- --- AUTO_INCREMENT pour la table `piwigo_history` --- -ALTER TABLE `piwigo_history` -MODIFY `id` int(10) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=9; --- --- AUTO_INCREMENT pour la table `piwigo_images` --- -ALTER TABLE `piwigo_images` -MODIFY `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT; --- --- AUTO_INCREMENT pour la table `piwigo_search` --- -ALTER TABLE `piwigo_search` -MODIFY `id` int(10) unsigned NOT NULL AUTO_INCREMENT; --- --- AUTO_INCREMENT pour la table `piwigo_sites` --- -ALTER TABLE `piwigo_sites` -MODIFY `id` tinyint(4) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2; --- --- AUTO_INCREMENT pour la table `piwigo_tags` --- -ALTER TABLE `piwigo_tags` -MODIFY `id` smallint(5) unsigned NOT NULL AUTO_INCREMENT; --- --- AUTO_INCREMENT pour la table `piwigo_users` --- -ALTER TABLE `piwigo_users` -MODIFY `id` smallint(5) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=4; -/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; -/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; -/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; diff --git a/conf/piwigo_structure-mysql.sql~ b/conf/piwigo_structure-mysql.sql~ deleted file mode 100644 index dadad1d..0000000 --- a/conf/piwigo_structure-mysql.sql~ +++ /dev/null @@ -1,455 +0,0 @@ --- MySQL dump 9.11 --- --- Host: localhost Database: pwg-bsf --- ------------------------------------------------------ --- Server version 4.0.24_Debian-10-log - --- --- Table structure for table `piwigo_caddie` --- - -DROP TABLE IF EXISTS `piwigo_caddie`; -CREATE TABLE `piwigo_caddie` ( - `user_id` smallint(5) NOT NULL default '0', - `element_id` mediumint(8) NOT NULL default '0', - PRIMARY KEY (`user_id`,`element_id`) -) ENGINE=MyISAM; - --- --- Table structure for table `piwigo_categories` --- - -DROP TABLE IF EXISTS `piwigo_categories`; -CREATE TABLE `piwigo_categories` ( - `id` smallint(5) unsigned NOT NULL auto_increment, - `name` varchar(255) NOT NULL default '', - `id_uppercat` smallint(5) unsigned default NULL, - `comment` text, - `dir` varchar(255) default NULL, - `rank` smallint(5) unsigned default NULL, - `status` enum('public','private') NOT NULL default 'public', - `site_id` tinyint(4) unsigned default NULL, - `visible` enum('true','false') NOT NULL default 'true', - `representative_picture_id` mediumint(8) unsigned default NULL, - `uppercats` varchar(255) NOT NULL default '', - `commentable` enum('true','false') NOT NULL default 'true', - `global_rank` varchar(255) default NULL, - `image_order` varchar(128) default NULL, - `permalink` varchar(64) binary default NULL, - PRIMARY KEY (`id`), - UNIQUE KEY `categories_i3` (`permalink`), - KEY `categories_i2` (`id_uppercat`) -) ENGINE=MyISAM; - --- --- Table structure for table `piwigo_comments` --- - -DROP TABLE IF EXISTS `piwigo_comments`; -CREATE TABLE `piwigo_comments` ( - `id` int(11) unsigned NOT NULL auto_increment, - `image_id` mediumint(8) unsigned NOT NULL default '0', - `date` datetime NOT NULL default '0000-00-00 00:00:00', - `author` varchar(255) default NULL, - `email` varchar(255) default NULL, - `author_id` smallint(5) DEFAULT NULL, - `anonymous_id` varchar(45) NOT NULL, - `website_url` varchar(255) DEFAULT NULL, - `content` longtext, - `validated` enum('true','false') NOT NULL default 'false', - `validation_date` datetime default NULL, - PRIMARY KEY (`id`), - KEY `comments_i2` (`validation_date`), - KEY `comments_i1` (`image_id`) -) ENGINE=MyISAM; - --- --- Table structure for table `piwigo_config` --- - -DROP TABLE IF EXISTS `piwigo_config`; -CREATE TABLE `piwigo_config` ( - `param` varchar(40) NOT NULL default '', - `value` text, - `comment` varchar(255) default NULL, - PRIMARY KEY (`param`) -) ENGINE=MyISAM COMMENT='configuration table'; - --- --- Table structure for table `piwigo_favorites` --- - -DROP TABLE IF EXISTS `piwigo_favorites`; -CREATE TABLE `piwigo_favorites` ( - `user_id` smallint(5) NOT NULL default '0', - `image_id` mediumint(8) unsigned NOT NULL default '0', - PRIMARY KEY (`user_id`,`image_id`) -) ENGINE=MyISAM; - --- --- Table structure for table `piwigo_group_access` --- - -DROP TABLE IF EXISTS `piwigo_group_access`; -CREATE TABLE `piwigo_group_access` ( - `group_id` smallint(5) unsigned NOT NULL default '0', - `cat_id` smallint(5) unsigned NOT NULL default '0', - PRIMARY KEY (`group_id`,`cat_id`) -) ENGINE=MyISAM; - --- --- Table structure for table `piwigo_groups` --- - -DROP TABLE IF EXISTS `piwigo_groups`; -CREATE TABLE `piwigo_groups` ( - `id` smallint(5) unsigned NOT NULL auto_increment, - `name` varchar(255) NOT NULL default '', - `is_default` enum('true','false') NOT NULL default 'false', - PRIMARY KEY (`id`), - UNIQUE KEY `groups_ui1` (`name`) -) ENGINE=MyISAM; - --- --- Table structure for table `piwigo_history` --- - -DROP TABLE IF EXISTS `piwigo_history`; -CREATE TABLE `piwigo_history` ( - `id` int(10) unsigned NOT NULL auto_increment, - `date` date NOT NULL default '0000-00-00', - `time` time NOT NULL default '00:00:00', - `user_id` smallint(5) NOT NULL default '0', - `IP` varchar(15) NOT NULL default '', - `section` enum('categories','tags','search','list','favorites','most_visited','best_rated','recent_pics','recent_cats') default NULL, - `category_id` smallint(5) default NULL, - `tag_ids` varchar(50) default NULL, - `image_id` mediumint(8) default NULL, - `summarized` enum('true','false') default 'false', - `image_type` enum('picture','high','other') default NULL, - PRIMARY KEY (`id`), - KEY `history_i1` (`summarized`) -) ENGINE=MyISAM; - --- --- Table structure for table `piwigo_history_summary` --- - -DROP TABLE IF EXISTS `piwigo_history_summary`; -CREATE TABLE `piwigo_history_summary` ( - `year` smallint(4) NOT NULL default '0', - `month` tinyint(2) default NULL, - `day` tinyint(2) default NULL, - `hour` tinyint(2) default NULL, - `nb_pages` int(11) default NULL, - UNIQUE KEY history_summary_ymdh (`year`,`month`,`day`,`hour`) -) ENGINE=MyISAM; - --- --- Table structure for table `piwigo_image_category` --- - -DROP TABLE IF EXISTS `piwigo_image_category`; -CREATE TABLE `piwigo_image_category` ( - `image_id` mediumint(8) unsigned NOT NULL default '0', - `category_id` smallint(5) unsigned NOT NULL default '0', - `rank` mediumint(8) unsigned default NULL, - PRIMARY KEY (`image_id`,`category_id`), - KEY `image_category_i1` (`category_id`) -) ENGINE=MyISAM; - --- --- Table structure for table `piwigo_image_tag` --- - -DROP TABLE IF EXISTS `piwigo_image_tag`; -CREATE TABLE `piwigo_image_tag` ( - `image_id` mediumint(8) unsigned NOT NULL default '0', - `tag_id` smallint(5) unsigned NOT NULL default '0', - PRIMARY KEY (`image_id`,`tag_id`), - KEY `image_tag_i1` (`tag_id`) -) ENGINE=MyISAM; - --- --- Table structure for table `piwigo_images` --- - -DROP TABLE IF EXISTS `piwigo_images`; -CREATE TABLE `piwigo_images` ( - `id` mediumint(8) unsigned NOT NULL auto_increment, - `file` varchar(255) binary NOT NULL default '', - `date_available` datetime NOT NULL default '0000-00-00 00:00:00', - `date_creation` datetime default NULL, - `name` varchar(255) default NULL, - `comment` text, - `author` varchar(255) default NULL, - `hit` int(10) unsigned NOT NULL default '0', - `filesize` mediumint(9) unsigned default NULL, - `width` smallint(9) unsigned default NULL, - `height` smallint(9) unsigned default NULL, - `coi` char(4) default NULL COMMENT 'center of interest', - `representative_ext` varchar(4) default NULL, - `date_metadata_update` date default NULL, - `rating_score` float(5,2) unsigned default NULL, - `path` varchar(255) NOT NULL default '', - `storage_category_id` smallint(5) unsigned default NULL, - `level` tinyint unsigned NOT NULL default '0', - `md5sum` char(32) default NULL, - `added_by` smallint(5) NOT NULL default '0', - `rotation` tinyint unsigned default NULL, - `latitude` double(8, 6) default NULL, - `longitude` double(9, 6) default NULL, - PRIMARY KEY (`id`), - KEY `images_i2` (`date_available`), - KEY `images_i3` (`rating_score`), - KEY `images_i4` (`hit`), - KEY `images_i5` (`date_creation`), - KEY `images_i1` (`storage_category_id`), - KEY `images_i6` (`latitude`) -) ENGINE=MyISAM; - --- --- Table structure for table `piwigo_languages` --- - -DROP TABLE IF EXISTS `piwigo_languages`; -CREATE TABLE `piwigo_languages` ( - `id` varchar(64) NOT NULL default '', - `version` varchar(64) NOT NULL default '0', - `name` varchar(64) default NULL, - PRIMARY KEY (`id`) -) ENGINE=MyISAM; - --- --- Table structure for table `piwigo_old_permalinks` --- - -DROP TABLE IF EXISTS `piwigo_old_permalinks`; -CREATE TABLE `piwigo_old_permalinks` ( - `cat_id` smallint(5) unsigned NOT NULL default '0', - `permalink` varchar(64) binary NOT NULL default '', - `date_deleted` datetime NOT NULL default '0000-00-00 00:00:00', - `last_hit` datetime default NULL, - `hit` int(10) unsigned NOT NULL default '0', - PRIMARY KEY (`permalink`) -) ENGINE=MyISAM; - --- --- Table structure for table `piwigo_plugins` --- - -DROP TABLE IF EXISTS `piwigo_plugins`; -CREATE TABLE `piwigo_plugins` ( - `id` varchar(64) binary NOT NULL default '', - `state` enum('inactive','active') NOT NULL default 'inactive', - `version` varchar(64) NOT NULL default '0', - PRIMARY KEY (`id`) -) ENGINE=MyISAM; - --- --- Table structure for table `piwigo_rate` --- - -DROP TABLE IF EXISTS `piwigo_rate`; -CREATE TABLE `piwigo_rate` ( - `user_id` smallint(5) NOT NULL default '0', - `element_id` mediumint(8) unsigned NOT NULL default '0', - `anonymous_id` varchar(45) NOT NULL default '', - `rate` tinyint(2) unsigned NOT NULL default '0', - `date` date NOT NULL default '0000-00-00', - PRIMARY KEY (`element_id`,`user_id`,`anonymous_id`) -) ENGINE=MyISAM; - --- --- Table structure for table `piwigo_search` --- - -DROP TABLE IF EXISTS `piwigo_search`; -CREATE TABLE `piwigo_search` ( - `id` int(10) unsigned NOT NULL auto_increment, - `last_seen` date default NULL, - `rules` text, - PRIMARY KEY (`id`) -) ENGINE=MyISAM; - --- --- Table structure for table `piwigo_sessions` --- - -DROP TABLE IF EXISTS `piwigo_sessions`; -CREATE TABLE `piwigo_sessions` ( - `id` varchar(255) binary NOT NULL default '', - `data` mediumtext NOT NULL, - `expiration` datetime NOT NULL default '0000-00-00 00:00:00', - PRIMARY KEY (`id`) -) ENGINE=MyISAM; - --- --- Table structure for table `piwigo_sites` --- - -DROP TABLE IF EXISTS `piwigo_sites`; -CREATE TABLE `piwigo_sites` ( - `id` tinyint(4) NOT NULL auto_increment, - `galleries_url` varchar(255) NOT NULL default '', - PRIMARY KEY (`id`), - UNIQUE KEY `sites_ui1` (`galleries_url`) -) ENGINE=MyISAM; - --- --- Table structure for table `piwigo_tags` --- - -DROP TABLE IF EXISTS `piwigo_tags`; -CREATE TABLE `piwigo_tags` ( - `id` smallint(5) unsigned NOT NULL auto_increment, - `name` varchar(255) binary NOT NULL default '', - `url_name` varchar(255) binary NOT NULL default '', - PRIMARY KEY (`id`), - KEY `tags_i1` (`url_name`) -) ENGINE=MyISAM; - --- --- Table structure for table `piwigo_themes` --- - -DROP TABLE IF EXISTS `piwigo_themes`; -CREATE TABLE `piwigo_themes` ( - `id` varchar(64) NOT NULL default '', - `version` varchar(64) NOT NULL default '0', - `name` varchar(64) default NULL, - PRIMARY KEY (`id`) -) ENGINE=MyISAM; - --- --- Table structure for table `piwigo_upgrade` --- - -DROP TABLE IF EXISTS `piwigo_upgrade`; -CREATE TABLE `piwigo_upgrade` ( - `id` varchar(20) NOT NULL default '', - `applied` datetime NOT NULL default '0000-00-00 00:00:00', - `description` varchar(255) default NULL, - PRIMARY KEY (`id`) -) ENGINE=MyISAM; - --- --- Table structure for table `piwigo_user_access` --- - -DROP TABLE IF EXISTS `piwigo_user_access`; -CREATE TABLE `piwigo_user_access` ( - `user_id` smallint(5) NOT NULL default '0', - `cat_id` smallint(5) unsigned NOT NULL default '0', - PRIMARY KEY (`user_id`,`cat_id`) -) ENGINE=MyISAM; - --- --- Table structure for table `piwigo_user_cache` --- - -DROP TABLE IF EXISTS `piwigo_user_cache`; -CREATE TABLE `piwigo_user_cache` ( - `user_id` smallint(5) NOT NULL default '0', - `need_update` enum('true','false') NOT NULL default 'true', - `cache_update_time` integer unsigned NOT NULL default 0, - `forbidden_categories` mediumtext, - `nb_total_images` mediumint(8) unsigned default NULL, - `last_photo_date` datetime DEFAULT NULL, - `nb_available_tags` INT(5) DEFAULT NULL, - `nb_available_comments` INT(5) DEFAULT NULL, - `image_access_type` enum('NOT IN','IN') NOT NULL default 'NOT IN', - `image_access_list` mediumtext default NULL, - PRIMARY KEY (`user_id`) -) ENGINE=MyISAM; - --- --- Table structure for table `piwigo_user_cache_categories` --- - -DROP TABLE IF EXISTS `piwigo_user_cache_categories`; -CREATE TABLE `piwigo_user_cache_categories` ( - `user_id` smallint(5) NOT NULL default '0', - `cat_id` smallint(5) unsigned NOT NULL default '0', - `date_last` datetime default NULL, - `max_date_last` datetime default NULL, - `nb_images` mediumint(8) unsigned NOT NULL default '0', - `count_images` mediumint(8) unsigned default '0', - `nb_categories` mediumint(8) unsigned default '0', - `count_categories` mediumint(8) unsigned default '0', - `user_representative_picture_id` mediumint(8) unsigned default NULL, - PRIMARY KEY (`user_id`,`cat_id`) -) ENGINE=MyISAM; - --- --- Table structure for table `piwigo_user_feed` --- - -DROP TABLE IF EXISTS `piwigo_user_feed`; -CREATE TABLE `piwigo_user_feed` ( - `id` varchar(50) binary NOT NULL default '', - `user_id` smallint(5) NOT NULL default '0', - `last_check` datetime default NULL, - PRIMARY KEY (`id`) -) ENGINE=MyISAM; - --- --- Table structure for table `piwigo_user_group` --- - -DROP TABLE IF EXISTS `piwigo_user_group`; -CREATE TABLE `piwigo_user_group` ( - `user_id` smallint(5) NOT NULL default '0', - `group_id` smallint(5) unsigned NOT NULL default '0', - PRIMARY KEY (`group_id`,`user_id`) -) ENGINE=MyISAM; - --- --- Table structure for table `piwigo_user_infos` --- - -DROP TABLE IF EXISTS `piwigo_user_infos`; -CREATE TABLE `piwigo_user_infos` ( - `user_id` smallint(5) NOT NULL default '0', - `nb_image_page` smallint(3) unsigned NOT NULL default '15', - `status` enum('webmaster','admin','normal','generic','guest') NOT NULL default 'guest', - `language` varchar(50) NOT NULL default 'en_UK', - `expand` enum('true','false') NOT NULL default 'false', - `show_nb_comments` enum('true','false') NOT NULL default 'false', - `show_nb_hits` enum('true','false') NOT NULL default 'false', - `recent_period` tinyint(3) unsigned NOT NULL default '7', - `theme` varchar(255) NOT NULL default 'elegant', - `registration_date` datetime NOT NULL default '0000-00-00 00:00:00', - `enabled_high` enum('true','false') NOT NULL default 'true', - `level` tinyint unsigned NOT NULL default '0', - `activation_key` char(20) default NULL, - PRIMARY KEY (`user_id`) -) ENGINE=MyISAM; - --- --- Table structure for table `piwigo_user_mail_notification` --- - -DROP TABLE IF EXISTS `piwigo_user_mail_notification`; -CREATE TABLE `piwigo_user_mail_notification` ( - `user_id` smallint(5) NOT NULL default '0', - `check_key` varchar(16) binary NOT NULL default '', - `enabled` enum('true','false') NOT NULL default 'false', - `last_send` datetime default NULL, - PRIMARY KEY (`user_id`), - UNIQUE KEY `user_mail_notification_ui1` (`check_key`) -) ENGINE=MyISAM; - --- --- Table structure for table `piwigo_users` --- - -DROP TABLE IF EXISTS `piwigo_users`; -CREATE TABLE `piwigo_users` ( - `id` smallint(5) NOT NULL auto_increment, - `username` varchar(100) binary NOT NULL default '', - `password` varchar(255) default NULL, - `mail_address` varchar(255) default NULL, - PRIMARY KEY (`id`), - UNIQUE KEY `users_ui1` (`username`) -) ENGINE=MyISAM; diff --git a/conf/plug.sql~ b/conf/plug.sql~ deleted file mode 100644 index c8e0161..0000000 --- a/conf/plug.sql~ +++ /dev/null @@ -1 +0,0 @@ -INSERT INTO plugins diff --git a/scripts/install b/scripts/install index 226d3c5..ca3829c 100644 --- a/scripts/install +++ b/scripts/install @@ -99,6 +99,7 @@ mysql -u $db_user -p$db_pwd $db_user -e "INSERT INTO plugins (id,state,version) if [ $is_public = "No" ]; then + sudo cp ../conf/config.inc.php $final_path/local/config/ sudo yunohost app setting piwigo protected_uris -v "/" sudo yunohost app ssowatconf fi diff --git a/scripts/remove~ b/scripts/remove~ deleted file mode 100644 index 60973d0..0000000 --- a/scripts/remove~ +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash - -db_user=piwigo -db_name=piwigo -root_pwd=$(sudo cat /etc/yunohost/mysql) -domain=$(sudo yunohost app setting piwigo domain) - -mysql -u root -p$root_pwd -e "DROP DATABASE $db_name ; DROP USER $db_user@localhost ;" - -sudo rm -rf /var/www/piwigo -sudo rm -f /etc/nginx/conf.d/$domain.d/piwigo.conf -sudo rm -f /etc/php5/fpm/pool.d/piwigo.conf -sudo rm -f /etc/php5/fpm/conf.d/20-piwigo.ini -sudo rm -rf /home/yunohost.app/piwigo - -sudo service nginx reload -