Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../var/softacul.../logaholi...
File: logaholic.sql
[0] Fix | Delete
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
[1] Fix | Delete
SET time_zone = "+00:00";
[2] Fix | Delete
[3] Fix | Delete
[4] Fix | Delete
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
[5] Fix | Delete
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
[6] Fix | Delete
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
[7] Fix | Delete
/*!40101 SET NAMES utf8 */;
[8] Fix | Delete
[9] Fix | Delete
--
[10] Fix | Delete
-- Database: `logaholic716`
[11] Fix | Delete
--
[12] Fix | Delete
[13] Fix | Delete
-- --------------------------------------------------------
[14] Fix | Delete
[15] Fix | Delete
--
[16] Fix | Delete
-- Table structure for table `[[dbprefix]]lgstatus`
[17] Fix | Delete
--
[18] Fix | Delete
[19] Fix | Delete
CREATE TABLE `[[dbprefix]]lgstatus` (
[20] Fix | Delete
`id` int(10) NOT NULL AUTO_INCREMENT,
[21] Fix | Delete
`code` int(5) NOT NULL DEFAULT '0',
[22] Fix | Delete
`descr` varchar(100) NOT NULL DEFAULT '0',
[23] Fix | Delete
PRIMARY KEY (`id`),
[24] Fix | Delete
UNIQUE KEY `code` (`code`)
[25] Fix | Delete
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=51 ;
[26] Fix | Delete
[27] Fix | Delete
--
[28] Fix | Delete
-- Dumping data for table `[[dbprefix]]lgstatus`
[29] Fix | Delete
--
[30] Fix | Delete
[31] Fix | Delete
INSERT INTO `[[dbprefix]]lgstatus` VALUES
[32] Fix | Delete
(1, 100, 'Continue'),
[33] Fix | Delete
(2, 101, 'Switching Protocols'),
[34] Fix | Delete
(3, 102, 'Processing'),
[35] Fix | Delete
(4, 200, 'OK'),
[36] Fix | Delete
(5, 201, 'Created'),
[37] Fix | Delete
(6, 202, 'Accepted'),
[38] Fix | Delete
(7, 203, 'Non-Authoritative Information'),
[39] Fix | Delete
(8, 204, 'No Content'),
[40] Fix | Delete
(9, 205, 'Reset Content'),
[41] Fix | Delete
(10, 206, 'Partial Content'),
[42] Fix | Delete
(11, 207, 'Multi-Status'),
[43] Fix | Delete
(12, 300, 'Multiple Choices'),
[44] Fix | Delete
(13, 301, 'Moved Permanently (redirect)'),
[45] Fix | Delete
(14, 302, 'Moved Temporarily (redirect)'),
[46] Fix | Delete
(15, 303, 'See Other'),
[47] Fix | Delete
(16, 304, 'Not Modified'),
[48] Fix | Delete
(17, 305, 'Use Proxy'),
[49] Fix | Delete
(18, 307, 'Temporary Redirect'),
[50] Fix | Delete
(19, 400, 'Bad Request'),
[51] Fix | Delete
(20, 401, 'Authorization Required'),
[52] Fix | Delete
(21, 402, 'Payment Required'),
[53] Fix | Delete
(22, 403, 'Forbidden'),
[54] Fix | Delete
(23, 404, 'Not Found'),
[55] Fix | Delete
(24, 405, 'Method Not Allowed'),
[56] Fix | Delete
(25, 406, 'Not Acceptable'),
[57] Fix | Delete
(26, 407, 'Proxy Authentication Required'),
[58] Fix | Delete
(27, 408, 'Request Time-out'),
[59] Fix | Delete
(28, 409, 'Conflict'),
[60] Fix | Delete
(29, 410, 'Gone'),
[61] Fix | Delete
(30, 411, 'Length Required'),
[62] Fix | Delete
(31, 412, 'Precondition Failed'),
[63] Fix | Delete
(32, 413, 'Request Entity Too Large'),
[64] Fix | Delete
(33, 414, 'Request-URI Too Large'),
[65] Fix | Delete
(34, 415, 'Unsupported Media Type'),
[66] Fix | Delete
(35, 416, 'Requested Range Not Satisfiable'),
[67] Fix | Delete
(36, 417, 'Expectation Failed'),
[68] Fix | Delete
(37, 422, 'Unprocessable Entity'),
[69] Fix | Delete
(38, 423, 'Locked'),
[70] Fix | Delete
(39, 424, 'Failed Dependency'),
[71] Fix | Delete
(40, 425, 'No code'),
[72] Fix | Delete
(41, 426, 'Upgrade Required'),
[73] Fix | Delete
(42, 500, 'Internal Server Error'),
[74] Fix | Delete
(43, 501, 'Method Not Implemented'),
[75] Fix | Delete
(44, 502, 'Bad Gateway'),
[76] Fix | Delete
(45, 503, 'Service Temporarily Unavailable'),
[77] Fix | Delete
(46, 504, 'Gateway Time-out'),
[78] Fix | Delete
(47, 505, 'HTTP Version Not Supported'),
[79] Fix | Delete
(48, 506, 'Variant Also Negotiates'),
[80] Fix | Delete
(49, 507, 'Insufficient Storage'),
[81] Fix | Delete
(50, 510, 'Not Extended');
[82] Fix | Delete
[83] Fix | Delete
-- --------------------------------------------------------
[84] Fix | Delete
[85] Fix | Delete
--
[86] Fix | Delete
-- Table structure for table `[[dbprefix]]notes`
[87] Fix | Delete
--
[88] Fix | Delete
[89] Fix | Delete
CREATE TABLE `[[dbprefix]]notes` (
[90] Fix | Delete
`id` int(10) NOT NULL AUTO_INCREMENT,
[91] Fix | Delete
`profile` varchar(75) NOT NULL DEFAULT '0',
[92] Fix | Delete
`timestamp` int(11) NOT NULL DEFAULT '0',
[93] Fix | Delete
`note` varchar(255) NOT NULL DEFAULT '0',
[94] Fix | Delete
PRIMARY KEY (`id`),
[95] Fix | Delete
KEY `timestamp` (`timestamp`),
[96] Fix | Delete
KEY `profile` (`profile`)
[97] Fix | Delete
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
[98] Fix | Delete
[99] Fix | Delete
-- --------------------------------------------------------
[100] Fix | Delete
[101] Fix | Delete
--
[102] Fix | Delete
-- Table structure for table `[[dbprefix]]_logaholic_GlobalSettings`
[103] Fix | Delete
--
[104] Fix | Delete
[105] Fix | Delete
CREATE TABLE `[[dbprefix]]_logaholic_GlobalSettings` (
[106] Fix | Delete
`Name` varchar(255) NOT NULL,
[107] Fix | Delete
`Profile` varchar(50) DEFAULT NULL,
[108] Fix | Delete
`Value` mediumtext,
[109] Fix | Delete
PRIMARY KEY (`Name`),
[110] Fix | Delete
KEY `_logaholic_GlobalSettings_Profile` (`Profile`,`Name`)
[111] Fix | Delete
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
[112] Fix | Delete
[113] Fix | Delete
--
[114] Fix | Delete
-- Dumping data for table `[[dbprefix]]_logaholic_GlobalSettings`
[115] Fix | Delete
--
[116] Fix | Delete
[117] Fix | Delete
INSERT INTO `[[dbprefix]]_logaholic_GlobalSettings` VALUES
[118] Fix | Delete
('DB_MetadataVersion', '', '2.47'),
[119] Fix | Delete
('DB_UserDataVersion', '', '2.21'),
[120] Fix | Delete
('UserAuthenticationType', '', 'logaholic'),
[121] Fix | Delete
('datamanagersettings', '', '0'),
[122] Fix | Delete
('datamanagerStorageSize', '', '5000'),
[123] Fix | Delete
('profileDateFormat', '', '{"format1":"d","seperator1":" ","format2":"M","seperator2":" ","format3":"Y","seperator3":" ","format4":""}'),
[124] Fix | Delete
('datamanagerDirectory', '', '[[softpath]]/data/'),
[125] Fix | Delete
('UserAuthenticationType_Var', '', ''),
[126] Fix | Delete
('upload_dir', '', '[[softdatadir]]/');
[127] Fix | Delete
[128] Fix | Delete
-- --------------------------------------------------------
[129] Fix | Delete
[130] Fix | Delete
--
[131] Fix | Delete
-- Table structure for table `[[dbprefix]]_logaholic_goals`
[132] Fix | Delete
--
[133] Fix | Delete
[134] Fix | Delete
CREATE TABLE `[[dbprefix]]_logaholic_goals` (
[135] Fix | Delete
`goalID` int(11) NOT NULL AUTO_INCREMENT,
[136] Fix | Delete
`goalName` varchar(100) DEFAULT NULL,
[137] Fix | Delete
`timeunit` varchar(100) DEFAULT NULL,
[138] Fix | Delete
`targetValue` varchar(11) DEFAULT NULL,
[139] Fix | Delete
`metric` varchar(50) DEFAULT NULL,
[140] Fix | Delete
`conditions` text,
[141] Fix | Delete
`graphType` varchar(50) DEFAULT 'speed',
[142] Fix | Delete
`profileID` int(11) DEFAULT NULL,
[143] Fix | Delete
`inverse` int(1) DEFAULT NULL,
[144] Fix | Delete
`kpi` varchar(100) DEFAULT NULL,
[145] Fix | Delete
PRIMARY KEY (`goalID`)
[146] Fix | Delete
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
[147] Fix | Delete
[148] Fix | Delete
-- --------------------------------------------------------
[149] Fix | Delete
[150] Fix | Delete
--
[151] Fix | Delete
-- Table structure for table `[[dbprefix]]_logaholic_Profiles`
[152] Fix | Delete
--
[153] Fix | Delete
[154] Fix | Delete
CREATE TABLE `[[dbprefix]]_logaholic_Profiles` (
[155] Fix | Delete
`profileid` int(11) NOT NULL AUTO_INCREMENT,
[156] Fix | Delete
`profilename` varchar(255) DEFAULT NULL,
[157] Fix | Delete
`confdomain` varchar(255) DEFAULT NULL,
[158] Fix | Delete
`equivdomains` text,
[159] Fix | Delete
`tablename` varchar(64) DEFAULT NULL,
[160] Fix | Delete
`defaultfile` varchar(128) DEFAULT NULL,
[161] Fix | Delete
`logfilefullpath` text,
[162] Fix | Delete
`splitlogs` tinyint(4) DEFAULT '0',
[163] Fix | Delete
`splitfilter` varchar(100) DEFAULT NULL,
[164] Fix | Delete
`trackermode` tinyint(4) DEFAULT '0',
[165] Fix | Delete
`visitoridentmethod` tinyint(4) DEFAULT NULL,
[166] Fix | Delete
`skipips` text,
[167] Fix | Delete
`skipfiles` text,
[168] Fix | Delete
`targetfiles` mediumtext,
[169] Fix | Delete
`othersettings` text,
[170] Fix | Delete
`structure_version` float DEFAULT NULL,
[171] Fix | Delete
`animate` int(1) DEFAULT '1',
[172] Fix | Delete
`timezonecorrection` varchar(5) DEFAULT '0',
[173] Fix | Delete
`recursive` int(1) DEFAULT '0',
[174] Fix | Delete
`ftpserver` varchar(150) DEFAULT NULL,
[175] Fix | Delete
`ftpuser` varchar(50) DEFAULT NULL,
[176] Fix | Delete
`ftppasswd` varchar(50) DEFAULT NULL,
[177] Fix | Delete
`ftpfullpath` text,
[178] Fix | Delete
`visittimeout` int(2) DEFAULT '20',
[179] Fix | Delete
`urlparamfilter` varchar(255) DEFAULT '',
[180] Fix | Delete
`urlparamfiltermode` varchar(20) DEFAULT 'Exclude',
[181] Fix | Delete
`splitfilternegative` varchar(100) DEFAULT NULL,
[182] Fix | Delete
`feedurl` varchar(100) DEFAULT '',
[183] Fix | Delete
`feedburneruri` varchar(100) DEFAULT '',
[184] Fix | Delete
`timezone` varchar(50) DEFAULT '',
[185] Fix | Delete
`googleparams` varchar(255) DEFAULT 'q, start, gclid, as_q, as_epq, as_oq, as _eq, as_sitesearch, as_rq, as_lq',
[186] Fix | Delete
`lastused` int(11) DEFAULT '0',
[187] Fix | Delete
`sessioncounter` int(11) NOT NULL DEFAULT '0',
[188] Fix | Delete
`stats` text,
[189] Fix | Delete
`update_status` char(7) NOT NULL DEFAULT 'ready',
[190] Fix | Delete
`dashboards` longtext,
[191] Fix | Delete
`other_settings` longtext,
[192] Fix | Delete
`filehistory` longtext,
[193] Fix | Delete
`activated` tinyint(1) NOT NULL DEFAULT '1',
[194] Fix | Delete
PRIMARY KEY (`profileid`),
[195] Fix | Delete
UNIQUE KEY `_logaholic_Profiles_profilename` (`profilename`),
[196] Fix | Delete
UNIQUE KEY `_logaholic_Profiles_tablename` (`tablename`),
[197] Fix | Delete
KEY `lastused` (`lastused`)
[198] Fix | Delete
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
[199] Fix | Delete
[200] Fix | Delete
-- --------------------------------------------------------
[201] Fix | Delete
[202] Fix | Delete
--
[203] Fix | Delete
-- Table structure for table `[[dbprefix]]_logaholic_Profile_URL_Params`
[204] Fix | Delete
--
[205] Fix | Delete
[206] Fix | Delete
CREATE TABLE `[[dbprefix]]_logaholic_Profile_URL_Params` (
[207] Fix | Delete
`paramid` int(11) NOT NULL AUTO_INCREMENT,
[208] Fix | Delete
`profileid` int(11) NOT NULL,
[209] Fix | Delete
`filename` varchar(128) NOT NULL,
[210] Fix | Delete
`nameisregex` tinyint(1) DEFAULT '0',
[211] Fix | Delete
`importantparams` text,
[212] Fix | Delete
PRIMARY KEY (`paramid`),
[213] Fix | Delete
KEY `profileid` (`profileid`)
[214] Fix | Delete
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
[215] Fix | Delete
[216] Fix | Delete
-- --------------------------------------------------------
[217] Fix | Delete
[218] Fix | Delete
--
[219] Fix | Delete
-- Table structure for table `[[dbprefix]]_logaholic_Traffic_Sources`
[220] Fix | Delete
--
[221] Fix | Delete
[222] Fix | Delete
CREATE TABLE `[[dbprefix]]_logaholic_Traffic_Sources` (
[223] Fix | Delete
`id` int(11) NOT NULL AUTO_INCREMENT,
[224] Fix | Delete
`profileid` int(11) NOT NULL,
[225] Fix | Delete
`sourcename` varchar(128) NOT NULL,
[226] Fix | Delete
`sourcecondition` text,
[227] Fix | Delete
`category` varchar(255) DEFAULT NULL,
[228] Fix | Delete
`userid` int(11) DEFAULT '0',
[229] Fix | Delete
PRIMARY KEY (`id`),
[230] Fix | Delete
KEY `_logaholic_Traffic_Sources_sourcename` (`sourcename`),
[231] Fix | Delete
KEY `_logaholic_Traffic_Sources_profileid` (`profileid`)
[232] Fix | Delete
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
[233] Fix | Delete
[234] Fix | Delete
-- --------------------------------------------------------
[235] Fix | Delete
[236] Fix | Delete
--
[237] Fix | Delete
-- Table structure for table `[[dbprefix]]_logaholic_users`
[238] Fix | Delete
--
[239] Fix | Delete
[240] Fix | Delete
CREATE TABLE `[[dbprefix]]_logaholic_users` (
[241] Fix | Delete
`userid` int(11) NOT NULL AUTO_INCREMENT,
[242] Fix | Delete
`username` varchar(100) NOT NULL,
[243] Fix | Delete
`name` varchar(100) DEFAULT NULL,
[244] Fix | Delete
`password` varchar(100) DEFAULT NULL,
[245] Fix | Delete
`email` varchar(100) DEFAULT NULL,
[246] Fix | Delete
`profiles` text,
[247] Fix | Delete
`foreignkey` varchar(100) DEFAULT NULL,
[248] Fix | Delete
`created` int(11) NOT NULL,
[249] Fix | Delete
`isAdmin` int(4) NOT NULL DEFAULT '0',
[250] Fix | Delete
`active` tinyint(1) DEFAULT '1',
[251] Fix | Delete
`accessUpdateLogs` tinyint(4) NOT NULL DEFAULT '1',
[252] Fix | Delete
`accessAddProfile` tinyint(4) NOT NULL DEFAULT '1',
[253] Fix | Delete
`usersessionid` varchar(32) DEFAULT NULL,
[254] Fix | Delete
`lastlogin` int(11) NOT NULL DEFAULT '0',
[255] Fix | Delete
`accessEditProfile` tinyint(4) NOT NULL DEFAULT '1',
[256] Fix | Delete
`expires` int(11) NOT NULL DEFAULT '0',
[257] Fix | Delete
`metadata` text,
[258] Fix | Delete
`subscriptionid` int(11) DEFAULT NULL,
[259] Fix | Delete
PRIMARY KEY (`userid`),
[260] Fix | Delete
UNIQUE KEY `_logaholic_users_username` (`username`)
[261] Fix | Delete
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
[262] Fix | Delete
[263] Fix | Delete
--
[264] Fix | Delete
-- Dumping data for table `[[dbprefix]]_logaholic_users`
[265] Fix | Delete
--
[266] Fix | Delete
[267] Fix | Delete
INSERT INTO `[[dbprefix]]_logaholic_users` VALUES
[268] Fix | Delete
(1, '[[admin_username]]', '[[admin_realname]]', '[[admin_pass]]', '[[admin_email]]', NULL, NULL, [[timestamp]], 1, 1, 1, 1, NULL, 0, 1, 0, '{}', NULL);
[269] Fix | Delete
[270] Fix | Delete
-- --------------------------------------------------------
[271] Fix | Delete
[272] Fix | Delete
--
[273] Fix | Delete
-- Table structure for table `[[dbprefix]]_report_usage`
[274] Fix | Delete
--
[275] Fix | Delete
[276] Fix | Delete
CREATE TABLE `[[dbprefix]]_report_usage` (
[277] Fix | Delete
`profilename` varchar(255) NOT NULL,
[278] Fix | Delete
`reporturl` text NOT NULL,
[279] Fix | Delete
`hits` int(11) NOT NULL,
[280] Fix | Delete
`month` int(6) NOT NULL,
[281] Fix | Delete
`reporturl_hash` varchar(32) DEFAULT NULL,
[282] Fix | Delete
UNIQUE KEY `usagekey` (`profilename`,`month`,`reporturl_hash`)
[283] Fix | Delete
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
[284] Fix | Delete
[285] Fix | Delete
[286] Fix | Delete
DELIMITER $$
[287] Fix | Delete
--
[288] Fix | Delete
-- Functions
[289] Fix | Delete
--
[290] Fix | Delete
CREATE FUNCTION `lg_getparam`(param varchar(55), url varchar(2048)) RETURNS varchar(2048) CHARSET utf8 COLLATE utf8_unicode_ci
[291] Fix | Delete
BEGIN
[292] Fix | Delete
declare val varchar(2048);
[293] Fix | Delete
declare _param varchar(60) DEFAULT CONCAT(param,'=');
[294] Fix | Delete
[295] Fix | Delete
select SUBSTRING_INDEX(SUBSTRING_INDEX(url,_param,-1), '&', 1)
[296] Fix | Delete
into val;
[297] Fix | Delete
[298] Fix | Delete
RETURN val;
[299] Fix | Delete
[300] Fix | Delete
END$$
[301] Fix | Delete
[302] Fix | Delete
DELIMITER ;
[303] Fix | Delete
[304] Fix | Delete
[305] Fix | Delete
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
[306] Fix | Delete
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
[307] Fix | Delete
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
[308] Fix | Delete
[309] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function