Your IP : 216.73.216.41


Current Path : /home/purehotels/www/administrator/components/com_easyfolderlistingpro/sql/
Upload File :
Current File : /home/purehotels/www/administrator/components/com_easyfolderlistingpro/sql/install.sql

CREATE TABLE IF NOT EXISTS `#__eflp_profiles` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `published` tinyint(3) NOT NULL DEFAULT 0,
  `checked_out` int(11) unsigned NOT NULL DEFAULT 0,
  `checked_out_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `access` int(10) unsigned NOT NULL DEFAULT 0,
  `title` varchar(255) NOT NULL,
  `folder` text NOT NULL,
  `maxlevel` tinyint(3) unsigned NOT NULL DEFAULT '3',
  `subfolders` tinyint(3) unsigned NOT NULL DEFAULT '1',
  `filesposition` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `showempty` tinyint(3) unsigned NOT NULL DEFAULT '1',
  `userfolders` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `guestfolder` varchar(255) NOT NULL DEFAULT '__guest',
  `method` varchar(50) NOT NULL DEFAULT 'table',
  `nofilesfound` tinyint(3) unsigned NOT NULL DEFAULT '1',
  `emptylistingpath` tinyint(3) unsigned NOT NULL DEFAULT '1',
  `useraccessnotallowed` tinyint(3) unsigned NOT NULL DEFAULT '1',
  `unpublishedlisting` tinyint(3) unsigned NOT NULL DEFAULT '1',
  `sortalgorithm` varchar(50) NOT NULL DEFAULT 'natural',
  `sortcolumn` varchar(50) NOT NULL DEFAULT 'name',
  `sortdirection` varchar(50) NOT NULL DEFAULT 'asc',
  `foldersortdir` varchar(50) NOT NULL DEFAULT 'asc',
  `javascript` varchar(50) NOT NULL DEFAULT 'auto',
  `collapse` tinyint(3) unsigned NOT NULL DEFAULT '1',
  `showcollapseexpand` tinyint(3) unsigned NOT NULL DEFAULT '1',
  `measing` varchar(50) NOT NULL DEFAULT 'sine:in:out',
  `mduration` varchar(50) NOT NULL DEFAULT 'normal',
  `jtransition` varchar(50) NOT NULL DEFAULT 'fadeToggle',
  `jeasing` varchar(50) NOT NULL DEFAULT 'swing',
  `jduration` varchar(50) NOT NULL DEFAULT 'normal',
  `icons` tinyint(3) unsigned NOT NULL DEFAULT '1',
  `extensions` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `sizefirst` tinyint(3) unsigned NOT NULL DEFAULT '1',
  `size` tinyint(3) unsigned NOT NULL DEFAULT '1',
  `date` tinyint(3) unsigned NOT NULL DEFAULT '1',
  `time` tinyint(3) unsigned NOT NULL DEFAULT '1',
  `datetype` varchar(50) NOT NULL DEFAULT 'mtime',
  `dateformat` varchar(100) NOT NULL DEFAULT 'Y-m-d',
  `timeformat` varchar(100) NOT NULL DEFAULT 'Y-m-d H:i:s',
  `subfoldercolumn` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `linktofiles` tinyint(3) unsigned NOT NULL DEFAULT '1',
  `target` varchar(100) NOT NULL DEFAULT '_blank',
  `download` varchar(100) NOT NULL DEFAULT 'icon',
  `obfuscatelink` tinyint(3) unsigned NOT NULL DEFAULT '1',
  `limitlink` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `timelimit` smallint unsigned NOT NULL DEFAULT '30',
  `preview` varchar(100) NOT NULL DEFAULT 'icon',
  `previewer` varchar(100) NOT NULL DEFAULT 'google',
  `iconsafter` tinyint(3) unsigned NOT NULL DEFAULT '1',
  `modalwidth` smallint unsigned NOT NULL DEFAULT '640',
  `modalheight` smallint unsigned NOT NULL DEFAULT '480',
  `modaltype` varchar(50) NOT NULL DEFAULT 'auto',
  `showfilter` tinyint(3) unsigned NOT NULL DEFAULT '1',
  `filterwait` smallint unsigned NOT NULL DEFAULT '500',
  `escfilter` tinyint(3) unsigned NOT NULL DEFAULT '1',
  `searchlimit` smallint unsigned NOT NULL DEFAULT '10',
  `liststyle` varchar(100) NOT NULL DEFAULT 'none',
  `separator` varchar(50) NOT NULL DEFAULT '-',
  `tablestyle` varchar(100) NOT NULL DEFAULT 'standard',
  `ratio` varchar(100) NOT NULL DEFAULT '4:2:2.5',
  `oddcolor` varchar(50) NOT NULL DEFAULT '#F0F0F6',
  `evencolor` varchar(50) NOT NULL DEFAULT '#FFFFFF',
  `headcolor` varchar(50) NOT NULL DEFAULT '#E6EEEE',
  `subcolor` varchar(50) NOT NULL DEFAULT '#EFEFEF',
  `bordercolor` varchar(50) NOT NULL DEFAULT '#CDCDCD',
  `footercolor` varchar(50) NOT NULL DEFAULT '#E6EEEE',
  `pagelimit` smallint unsigned NOT NULL DEFAULT '20',
  `showlimit` tinyint(3) unsigned NOT NULL DEFAULT '1',
  `forbidden` text NOT NULL,
  `whitelist` text NOT NULL,
  `exfiles` text NOT NULL,
  `exfolders` text NOT NULL,
  `multidownload` tinyint(3) unsigned NOT NULL DEFAULT '1',
  `archivetype` varchar(100) NOT NULL DEFAULT 'all',
  `maxsizefiles` smallint unsigned NOT NULL DEFAULT '10',
  `maxnumberfiles` smallint unsigned NOT NULL DEFAULT '10',
  `archivelife` smallint unsigned NOT NULL DEFAULT '30',
  PRIMARY KEY  (`id`)
) DEFAULT CHARACTER SET utf8;

/* Insert the default settings. id is set to ONE (1). */
INSERT IGNORE INTO `#__eflp_profiles` (`id`, `published`, `access`, `title`, `folder`, `forbidden`, 
`whitelist`, `exfiles`, `exfolders`) VALUES (1, 1, 1, 'Default', 'images', 'htm; html; php', 
'*', 'Desktop.ini; .@__thumb; .DS_Store', '.svn; CVS; .AppleDB; .AppleDesktop; .AppleDouble');

CREATE TABLE IF NOT EXISTS `#__eflp_icons` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `published` tinyint(1) NOT NULL DEFAULT 0,
  `checked_out` int(11) unsigned NOT NULL DEFAULT 0,
  `checked_out_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `access` int(10) unsigned NOT NULL DEFAULT 0,
  `exts` varchar(255) NOT NULL,
  `location` text NOT NULL,
  `alt` text NOT NULL,
  `location_hd` text NOT NULL,
  PRIMARY KEY  (`id`)
) DEFAULT CHARACTER SET utf8;

INSERT IGNORE INTO `#__eflp_icons` (`published`, `access`, `exts`, `location`, `alt`, `location_hd`) VALUES
(1, 1, 'exe', 'media/com_easyfolderlistingpro/icons/application.png', 'An executable file', 'media/com_easyfolderlistingpro/icons-hd/application_50px.png'),
(1, 1, 'm', 'media/com_easyfolderlistingpro/icons/page_code.png', 'A code file', 'media/com_easyfolderlistingpro/icons-hd/fileicon_50px.png'),
(1, 1, 'c', 'media/com_easyfolderlistingpro/icons/page_white_c.png', 'A C file', 'media/com_easyfolderlistingpro/icons-hd/fileicon_50px.png'),
(1, 1, 'h', 'media/com_easyfolderlistingpro/icons/page_white_h.png', 'An H file', 'media/com_easyfolderlistingpro/icons-hd/fileicon_50px.png'),
(1, 1, 'java,py', 'media/com_easyfolderlistingpro/icons/page_white_code.png', 'A code file', 'media/com_easyfolderlistingpro/icons-hd/fileicon_50px.png'),
(1, 1, 'wmv,mp4,mov,divx,avi,flv,mkv', 'media/com_easyfolderlistingpro/icons/film.png', 'A video file', 'media/com_easyfolderlistingpro/icons-hd/movie_50px.png'),
(1, 1, 'htm,html', 'media/com_easyfolderlistingpro/icons/html.png', 'An html file', 'media/com_easyfolderlistingpro/icons-hd/html_50px.png'),
(1, 1, 'bmp', 'media/com_easyfolderlistingpro/icons/image.png', 'An image file', 'media/com_easyfolderlistingpro/icons-hd/image_50px.png'),
(1, 1, 'jpg,jpeg,png,gif,tif', 'media/com_easyfolderlistingpro/icons/picture.png', 'An image file', 'media/com_easyfolderlistingpro/icons-hd/image_50px.png'),
(1, 1, 'mp3,wma', 'media/com_easyfolderlistingpro/icons/music.png', 'A music file', 'media/com_easyfolderlistingpro/icons-hd/music_50px.png'),
(1, 1, 'pdf,ps', 'media/com_easyfolderlistingpro/icons/page_white_acrobat.png', 'An Adobe Acrobat file', 'media/com_easyfolderlistingpro/icons-hd/pdf_50px.png'),
(1, 1, 'zip', 'media/com_easyfolderlistingpro/icons/page_white_compressed.png', 'A compressed ZIP file', 'media/com_easyfolderlistingpro/icons-hd/compressed_50px.png'),
(1, 1, 'cpp', 'media/com_easyfolderlistingpro/icons/page_white_cplusplus.png', 'A C plus plus file', 'media/com_easyfolderlistingpro/icons-hd/fileicon_50px.png'),
(1, 1, 'cs', 'media/com_easyfolderlistingpro/icons/page_white_csharp.png', 'A C sharp file', 'media/com_easyfolderlistingpro/icons-hd/fileicon_50px.png'),
(1, 1, 'swf', 'media/com_easyfolderlistingpro/icons/page_white_flash.png', 'A flash SWF file', 'media/com_easyfolderlistingpro/icons-hd/flash_50px.png'),
(1, 1, 'xls', 'media/com_easyfolderlistingpro/icons/page_white_excel.png', 'A Microsoft Excel file', 'media/com_easyfolderlistingpro/icons-hd/excel_50px.png'),
(1, 1, 'xlsx', 'media/com_easyfolderlistingpro/icons/page_excel.png', 'A Microsoft Excel file', 'media/com_easyfolderlistingpro/icons-hd/excel_50px.png'),
(1, 1, 'php', 'media/com_easyfolderlistingpro/icons/page_white_php.png', 'A PHP file', 'media/com_easyfolderlistingpro/icons-hd/fileicon_50px.png'),
(1, 1, 'ppt,pptx', 'media/com_easyfolderlistingpro/icons/page_white_powerpoint.png', 'A Microsoft Powerpoint file', 'media/com_easyfolderlistingpro/icons-hd/powerpoint_50px.png'),
(1, 1, 'txt', 'media/com_easyfolderlistingpro/icons/page_white_text.png', 'A Text file', 'media/com_easyfolderlistingpro/icons-hd/text_50px.png'),
(1, 1, 'sln', 'media/com_easyfolderlistingpro/icons/page_white_visualstudio.png', 'A Visual Studio Solution file', 'media/com_easyfolderlistingpro/icons-hd/fileicon_50px.png'),
(1, 1, 'doc', 'media/com_easyfolderlistingpro/icons/page_white_word.png', 'A Microsoft Word file', 'media/com_easyfolderlistingpro/icons-hd/word_50px.png'),
(1, 1, 'docx', 'media/com_easyfolderlistingpro/icons/page_word.png', 'A Microsoft Word file', 'media/com_easyfolderlistingpro/icons-hd/word_50px.png'),
(1, 1, 'tar.gz,tgz,tbz,tb2,tar.bz2,taz,tar.Z,tlz,tar.lz,txz,tar.xz,7z,rar', 'media/com_easyfolderlistingpro/icons/page_white_zip.png', 'A Compressed file', 'media/com_easyfolderlistingpro/icons-hd/compressed_50px.png');

CREATE TABLE IF NOT EXISTS `#__eflp_logs` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `filepath` text NOT NULL,
  `user_id_fk` int(10) unsigned NOT NULL,
  `dl_or_pv` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `ip_address` varchar(255) NOT NULL,
  `access_time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY  (`id`)
) DEFAULT CHARACTER SET utf8;

CREATE TABLE IF NOT EXISTS `#__eflp_archives` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `file_path` text NOT NULL,
  `created_time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
  `life_time` smallint unsigned NOT NULL DEFAULT '30',
  PRIMARY KEY  (`id`)
) DEFAULT CHARACTER SET utf8;