? GR0V Shell

GR0V shell

Linux www.koreapackagetour.com 2.6.32-042stab145.3 #1 SMP Thu Jun 11 14:05:04 MSK 2020 x86_64

Path : /home/admin/public_html/old/administrator/components/com_phocagallery/
File Upload :
Current File : /home/admin/public_html/old/administrator/components/com_phocagallery/install.bak

DROP TABLE IF EXISTS `#__phocagallery`;
CREATE TABLE `#__phocagallery` (
  `id` int(11) unsigned NOT NULL auto_increment,
  `catid` int(11) NOT NULL default '0',
  `sid` int(11) NOT NULL default '0',
  `title` varchar(250) NOT NULL default '',
  `alias` varchar(255) NOT NULL default '',
  `filename` varchar(250) NOT NULL default '',
  `description` text,
  `date` datetime NOT NULL default '0000-00-00 00:00:00',
  `hits` int(11) NOT NULL default '0',
  `latitude` varchar(20) NOT NULL default '',
  `longitude` varchar(20) NOT NULL default '',
  `zoom` int(3) NOT NULL default '0',
  `geotitle` varchar(255) NOT NULL default '',
  `userid` int(11) NOT NULL Default '0',
  `videocode` text,
  `vmproductid` int(11) NOT NULL default '0',
  `imgorigsize` int(11) NOT NULL default '0',
  `published` tinyint(1) NOT NULL default '0',
  `approved` tinyint(1) NOT NULL default '0',
  `checked_out` int(11) NOT NULL default '0',
  `checked_out_time` datetime NOT NULL default '0000-00-00 00:00:00',
  `ordering` int(11) NOT NULL default '0',
  `params` text,
  `metakey` text,
  `metadesc` text,
  `extlink1` text,
  `extlink2` text,
  `extid` varchar(255) NOT NULL default '',
  `extl` varchar(255) NOT NULL default '',
  `extm` varchar(255) NOT NULL default '',
  `exts` varchar(255) NOT NULL default '',
  `exto` varchar(255) NOT NULL default '',
  `extw` varchar(255) NOT NULL default '',
  `exth` varchar(255) NOT NULL default '',
  PRIMARY KEY  (`id`),
  KEY `catid` (`catid`,`published`)
) ENGINE=MyISAM CHARACTER SET `utf8`;

DROP TABLE IF EXISTS `#__phocagallery_categories`;
CREATE TABLE `#__phocagallery_categories` (
  `id` int(11) NOT NULL auto_increment,
  `parent_id` int(11) NOT NULL default 0,
  `owner_id` int(11) NOT NULL default 0,
  `title` varchar(255) NOT NULL default '',
  `name` varchar(255) NOT NULL default '',
  `alias` varchar(255) NOT NULL default '',
  `image` varchar(255) NOT NULL default '',
  `section` varchar(50) NOT NULL default '',
  `image_position` varchar(30) NOT NULL default '',
  `description` text,
  `date` datetime NOT NULL default '0000-00-00 00:00:00',
  `published` tinyint(1) NOT NULL default '0',
  `approved` 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',
  `editor` varchar(50) default NULL,
  `ordering` int(11) NOT NULL default '0',
  `access` tinyint(3) unsigned NOT NULL default '0',
  `hits` int(11) NOT NULL default '0',
  `count` int(11) NOT NULL default '0',
  `accessuserid` text,
  `uploaduserid` text,
  `deleteuserid` text,
  `userfolder` text,
  `latitude` varchar(20) NOT NULL default '',
  `longitude` varchar(20) NOT NULL default '',
  `zoom` int(3) NOT NULL default '0',
  `geotitle` varchar(255) NOT NULL default '',
  `params` text,
  `metakey` text,
  `metadesc` text,
  `extid` varchar(255) NOT NULL default '',
  `exta` varchar(255) NOT NULL default '',
  `extu` varchar(255) NOT NULL default '',
  `extauth` varchar(255) NOT NULL default '',
  PRIMARY KEY  (`id`),
  KEY `cat_idx` (`section`,`published`,`access`),
  KEY `idx_access` (`access`),
  KEY `idx_checkout` (`checked_out`)
) ENGINE=MyISAM CHARACTER SET `utf8`;


DROP TABLE IF EXISTS `#__phocagallery_votes`;
CREATE TABLE `#__phocagallery_votes` (
  `id` int(11) NOT NULL auto_increment,
  `catid` int(11) NOT NULL default 0,
  `userid` int(11) NOT NULL default 0,
  `date` datetime NOT NULL default '0000-00-00 00:00:00',
  `rating` tinyint(1) NOT NULL default '0',
  `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',
  `ordering` int(11) NOT NULL default '0',
  `params` text,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

DROP TABLE IF EXISTS `#__phocagallery_comments`;
CREATE TABLE `#__phocagallery_comments` (
  `id` int(11) NOT NULL auto_increment,
  `catid` int(11) NOT NULL default 0,
  `userid` int(11) NOT NULL default 0,
  `date` datetime NOT NULL default '0000-00-00 00:00:00',
  `title` varchar(255) NOT NULL default '',
  `comment` text,
  `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',
  `ordering` int(11) NOT NULL default '0',
  `params` text,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

DROP TABLE IF EXISTS `#__phocagallery_votes_statistics`;
CREATE TABLE `#__phocagallery_votes_statistics` (
  `id` int(11) NOT NULL auto_increment,
  `catid` int(11) NOT NULL default 0,
  `count` int(11) NOT NULL default '0',
  `average` float(8,6) NOT NULL default '0',
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

-- removed in 2.6.0
-- DROP TABLE IF EXISTS `#__phocagallery_user_category`;
-- CREATE TABLE `#__phocagallery_user_category` (
--  `id` int(11) NOT NULL auto_increment,
--  `catid` int(11) NOT NULL default 0,
--  `userid` int(11) NOT NULL default 0,
--  PRIMARY KEY  (`id`),
--  KEY `catid` (`catid`,`userid`)
-- ) ENGINE=MyISAM DEFAULT CHARSET=utf8;

-- version 2.5
DROP TABLE IF EXISTS `#__phocagallery_img_votes`;
CREATE TABLE `#__phocagallery_img_votes` (
  `id` int(11) NOT NULL auto_increment,
  `imgid` int(11) NOT NULL default 0,
  `userid` int(11) NOT NULL default 0,
  `date` datetime NOT NULL default '0000-00-00 00:00:00',
  `rating` tinyint(1) NOT NULL default '0',
  `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',
  `ordering` int(11) NOT NULL default '0',
  `params` text,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;


DROP TABLE IF EXISTS `#__phocagallery_img_votes_statistics`;
CREATE TABLE `#__phocagallery_img_votes_statistics` (
  `id` int(11) NOT NULL auto_increment,
  `imgid` int(11) NOT NULL default 0,
  `count` int(11) NOT NULL default '0',
  `average` float(8,6) NOT NULL default '0',
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

-- version 2.6.0
DROP TABLE IF EXISTS `#__phocagallery_user`;
CREATE TABLE `#__phocagallery_user` (
 `id` int(11) NOT NULL auto_increment,
  `userid` int(11) NOT NULL default 0,
  `avatar` varchar(40) NOT NULL default '',
  `published` tinyint(1) NOT NULL default '0',
  `approved` 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',
  `ordering` int(11) NOT NULL default '0',
  `params` text,
  PRIMARY KEY  (`id`),
  KEY `userid` (`userid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

DROP TABLE IF EXISTS `#__phocagallery_img_comments`;
CREATE TABLE `#__phocagallery_img_comments` (
  `id` int(11) NOT NULL auto_increment,
  `imgid` int(11) NOT NULL default 0,
  `userid` int(11) NOT NULL default 0,
  `date` datetime NOT NULL default '0000-00-00 00:00:00',
  `title` varchar(255) NOT NULL default '',
  `comment` text,
  `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',
  `ordering` int(11) NOT NULL default '0',
  `params` text,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;




-- --------------------------------------
-- only updates (uncomment ( remove --) the sql queries in case you want to run them and update your gallery)
-- 2.0.0
-- ALTER TABLE `#__phocagallery_categories` ADD `hits` INT( 11 ) NOT NULL DEFAULT '0' AFTER `count` ;

-- 2.2.0
-- ALTER TABLE `#__phocagallery` ADD `extlink1` text AFTER `params` ;
-- ALTER TABLE `#__phocagallery` ADD `extlink2` text AFTER `extlink1` ;

-- 2.2.2
-- ALTER TABLE `#__phocagallery_categories` ADD `date` datetime NOT NULL default '0000-00-00 00:00:00' AFTER `description` ;

-- 2.5.0
-- ALTER TABLE `#__phocagallery_categories` ADD `geotitle` varchar(255) NOT NULL default '' AFTER `hits` ;
-- ALTER TABLE `#__phocagallery_categories` ADD `zoom` int(3) NOT NULL default '0' AFTER `hits` ;
-- ALTER TABLE `#__phocagallery_categories` ADD `longitude` varchar(20) NOT NULL default '' AFTER `hits` ;
-- ALTER TABLE `#__phocagallery_categories` ADD `latitude` varchar(20) NOT NULL default '' AFTER `hits` ;
-- ALTER TABLE `#__phocagallery_categories` ADD `deleteuserid` text AFTER `hits` ;
-- ALTER TABLE `#__phocagallery_categories` ADD `uploaduserid` text AFTER `hits` ;
-- ALTER TABLE `#__phocagallery_categories` ADD `accessuserid` text AFTER `hits` ;
-- ALTER TABLE `#__phocagallery` ADD `geotitle` varchar(255) NOT NULL default '' AFTER `hits` ;
-- ALTER TABLE `#__phocagallery` ADD `zoom` int(3) NOT NULL default '0' AFTER `hits` ;
-- ALTER TABLE `#__phocagallery` ADD `longitude` varchar(20) NOT NULL default '' AFTER `hits` ;
-- ALTER TABLE `#__phocagallery` ADD `latitude` varchar(20) NOT NULL default '' AFTER `hits` ;
-- ALTER TABLE `#__phocagallery` ADD `videocode` text AFTER `hits` ;
-- ALTER TABLE `#__phocagallery` ADD `vmproductid` text AFTER `hits` ;

-- 2.6.0
-- ALTER TABLE `#__phocagallery` ADD `imgorigsize` int(11) NOT NULL default '0' AFTER `hits` ;
-- ALTER TABLE `#__phocagallery_categories` ADD `owner_id` int(11) NOT NULL default '0' AFTER `parent_id` ;
-- ALTER TABLE `#__phocagallery` ADD `extid` varchar(255) NOT NULL default '' AFTER `hits` ;
-- ALTER TABLE `#__phocagallery` ADD `extl` varchar(255) NOT NULL default '' AFTER `hits` ;
-- ALTER TABLE `#__phocagallery` ADD `extm` varchar(255) NOT NULL default '' AFTER `hits` ;
-- ALTER TABLE `#__phocagallery` ADD `exts` varchar(255) NOT NULL default '' AFTER `hits` ;
-- ALTER TABLE `#__phocagallery` ADD `exto` varchar(255) NOT NULL default '' AFTER `hits` ;
-- ALTER TABLE `#__phocagallery` ADD `extw` varchar(255) NOT NULL default '' AFTER `hits` ;
-- ALTER TABLE `#__phocagallery` ADD `exth` varchar(255) NOT NULL default '' AFTER `hits` ;
  
-- ALTER TABLE `#__phocagallery_categories` ADD `extid` varchar(255) NOT NULL default '' AFTER `hits` ;
-- ALTER TABLE `#__phocagallery_categories` ADD `exta` varchar(255) NOT NULL default '' AFTER `hits` ;
-- ALTER TABLE `#__phocagallery_categories` ADD `extu` varchar(255) NOT NULL default '' AFTER `hits` ;


-- ALTER TABLE `#__phocagallery` ADD `approved` tinyint(1) NOT NULL default '0' AFTER `published`;
-- ALTER TABLE `#__phocagallery_categories` ADD `approved` tinyint(1) NOT NULL default '0' AFTER `published` ;

-- 2.6.2
-- ALTER TABLE `#__phocagallery` ADD `metakey` text AFTER `params`;
-- ALTER TABLE `#__phocagallery_categories` ADD `metakey` text AFTER `params` ;  
-- ALTER TABLE `#__phocagallery` ADD `metadesc` text AFTER `params`;
-- ALTER TABLE `#__phocagallery_categories` ADD `metadesc` text AFTER `params` ;

-- 2.7.1
-- ALTER TABLE `#__phocagallery_categories` ADD `extauth` VARCHAR( 255 ) NOT NULL AFTER `exta` ;  

-- 2.8.0
-- ALTER TABLE `#__phocagallery` ADD `userid` int(11) NOT NULL Default '0'  AFTER `geotitle` ;  

T1KUS90T
  root-grov@210.1.60.28:~$