# [03-Aug-2024 07:29:00] /constantinoff/root/ 167.99.142.201

set names utf8

SELECT
                    *
    	        FROM
    	        	`pages`
    	    	WHERE
                    (`ExternalURL` IS NULL OR `ExternalURL` = '') AND
                    `Language` = 'bg'
             AND `Visible` = 1 AND `URLLabel` = 'index' LIMIT 1

SELECT
                        `URLLabel`
                    FROM
                        `pages`
                    WHERE
                        1
                 AND `Module` = 'events' AND `Language` = 'bg' AND `Visible` = 1 LIMIT 1

SELECT
	        	*
	        FROM
	        	`events`
	    	WHERE
                `Language` = 'bg' AND
                (CURDATE() BETWEEN `StartFrom` AND `EndTo` OR `EndTo` IS NULL) AND
                `Image` != ''
         AND `FirstPage` = 1 AND `Visible` = 1 ORDER BY `PostDate` ASC, `LastUpdate` ASC LIMIT 3

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LReadMore') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('Aug') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC

SELECT
                COUNT(`ID`)
            FROM
                `events`
            WHERE
                `Language` = 'bg' AND
                (CURDATE() BETWEEN `StartFrom` AND `EndTo` OR `EndTo` IS NULL) AND
                `Image` != ''
         AND `Visible` = 1

SELECT
                `ID`,
                `Language`,
                `Gold`,
                `Annotation`,
                `Visible`
	        FROM
	        	`pages`
	    	WHERE
                `Language` = 'bg' AND
	    		`Module` = 'events'
         AND `Visible` = 1 LIMIT 1

SELECT
                        `URLLabel`
                    FROM
                        `pages`
                    WHERE
                        1
                 AND `Module` = 'reviews' AND `Language` = 'bg' AND `Visible` = 1 LIMIT 1

SELECT
	        	*
	        FROM
	        	`reviews`
	    	WHERE
                `Language` = 'bg'
         AND `FirstPage` = 1 AND `Visible` = 1 ORDER BY `PostDate` ASC, `LastUpdate` ASC LIMIT 2

SELECT
                `ID`,
                `Language`,
                `Gold`,
                `Annotation`,
                `Visible`
	        FROM
	        	`pages`
	    	WHERE
                `Language` = 'bg' AND
	    		`Module` = 'reviews'
         AND `Visible` = 1 LIMIT 1

SELECT COUNT(`ID`) FROM `reviews` WHERE `Language` = 'bg' AND `Visible` = 1

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LOrderHome') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC

SELECT
                `Module`,
                `ExternalURL`,
                `MenuLabel`,
                `FooterLabel`,
                `URLLabel`
            FROM
                `pages`
            WHERE
                (`MenuLabel` <> '' OR `FooterLabel` <> '') AND
                (`ExternalURL` <> '' OR `URLLabel` <> '') AND
                `Language` = 'bg' AND
                `Visible` = 1
            ORDER BY `PostDate` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('Address') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LSubscribeMenu','LSpecifyEMail','LSend') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC

SELECT
                        `URLLabel`
                    FROM
                        `pages`
                    WHERE
                        1
                 AND `Module` = 'contacts' AND `Language` = 'bg' AND `Visible` = 1 LIMIT 1

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LBookNow') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC

SELECT
                        `Title`
                    FROM
                        `pages`
                    WHERE
                        1
                 AND `Module` = 'footer' AND `Language` = 'bg' AND `URLLabel` = 'footer-contacts' AND (`Visible` = '' OR `Visible` IS NULL) LIMIT 1

SELECT
                        `Content`
                    FROM
                        `pages`
                    WHERE
                        1
                 AND `Module` = 'footer' AND `Language` = 'bg' AND `URLLabel` = 'footer-contacts' AND (`Visible` = '' OR `Visible` IS NULL) LIMIT 1

SELECT
                        `Title`
                    FROM
                        `pages`
                    WHERE
                        1
                 AND `Module` = 'footer' AND `Language` = 'bg' AND `URLLabel` = 'footer-business-hours' AND (`Visible` = '' OR `Visible` IS NULL) LIMIT 1

SELECT
                        `Content`
                    FROM
                        `pages`
                    WHERE
                        1
                 AND `Module` = 'footer' AND `Language` = 'bg' AND `URLLabel` = 'footer-business-hours' AND (`Visible` = '' OR `Visible` IS NULL) LIMIT 1
# [03-Aug-2024 07:29:00] /constantinoff/root/bg/ajax/reservations/form.html?_=1722659340613 167.99.142.201
# [03-Aug-2024 07:29:00] /constantinoff/root/bg/ajax/reservations/calendar.html?_=1722659340612 167.99.142.201

set names utf8

SELECT
                 DATE_FORMAT(`Date`, '%Y%m%d') AS `Date`
            FROM
                `calendar`
            WHERE
                `Date` BETWEEN CURDATE() AND DATE_ADD(CURDATE(), INTERVAL 91 DAY)

set names utf8

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LMakeReservation','LName','LPhone','LEMail','LPeopleNum','LSpecifyDate','LSpecifyHour','LComment','LBookTable') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC
# [03-Aug-2024 07:29:00] /constantinoff/root/bg/ajax/cookies.html?_=1722659340613 167.99.142.201

set names utf8

SELECT
                        `URLLabel`
                    FROM
                        `pages`
                    WHERE
                        1
                 AND `Module` = 'cookies' AND `Language` = 'bg' AND `Visible` = 1 LIMIT 1

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('TextCookies','LUnderstood') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('ErrorName','ErrorPhone','ErrorEMail','ErrorGuests','ErrorDate','ErrorHour','ErrorIAgree') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC

SELECT
                        `URLLabel`
                    FROM
                        `pages`
                    WHERE
                        1
                 AND `Module` = 'terms' AND (`Action` = '' OR `Action` IS NULL) AND `Language` = 'bg' AND `Visible` = 1 LIMIT 1

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('IAgreeGeneral') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC
# [03-Aug-2024 07:29:02] /constantinoff/root/cSN3dAd9/bg/ajax/users/form/login.html?_=1722659342862 167.99.142.201

set names utf8

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LLoginEMail','EMailError','LSubmit') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('ErrorEMail') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC
# [03-Aug-2024 07:29:06] /constantinoff/root/cSN3dAd9/bg/ajax/users/login.html?_=1722659345917 167.99.142.201

set names utf8

UPDATE
                `users`
            SET
                `LastUpdate` = NOW(),
                `AccessKey` = 'VG5s8fNahOm3kBx5j64gBMVRCZ5I9c0U1c53saKZV28wiWe1u8N4hZ5CkcZWsgjk'
            WHERE
                `UserKey` LIKE 'w4vCvcOjw6LCjcOZw43DrMK6w4rDjcOKw43DlMK9wp3CtsK8%' AND
                RIGHT(`UserKey`, 1) > 0
            LIMIT 1

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('LPassword','LRememberMe') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC

SELECT
                `Label`,
                `Value`
            FROM
                `labels`
            WHERE
                `Label` IN ('ErrorPassword') AND
                `Language` = 'bg'
             ORDER BY
                `labels`.`Label` ASC
# [03-Aug-2024 07:29:06] /constantinoff/root/cSN3dAd9/bg/ajax/users/login.html?_=1722659346805 167.99.142.201

set names utf8

SELECT
                `ID`,
                CRC32(`UserKey`) AS `User`,
                SUBSTRING(`UserKey`, -33, 32) AS `PassKey`,
                RIGHT(`UserKey`, 1) AS Access
            FROM
                `users`
            WHERE
                RIGHT(`UserKey`, 1) > 0 AND
                `LastUpdate` >= DATE_SUB(NOW(), INTERVAL 1 MINUTE) AND
                `AccessKey` = 'VG5s8fNahOm3kBx5j64gBMVRCZ5I9c0U1c53saKZV28wiWe1u8N4hZ5CkcZWsgjk'
            LIMIT 1

UPDATE
                `users`
            SET
                `LastUpdate` = NOW(),
                `AccessKey` = ''
            WHERE
                `ID` = 1462881452
            LIMIT 1
# [03-Aug-2024 07:29:06] /constantinoff/root/cSN3dAd9/bg/pages/list.html 167.99.142.201

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 1462881452 AND
                                CRC32(`UserKey`) = 2779422748 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `ID`,
                `Language`,
                `PostDate`,
                `LastUpdate`,
                `ExternalURL`,
                `MenuLabel`,
                `Title`,
                `URLLabel`,
                `Visible`
            FROM
                `pages`
            WHERE
                `Language` = 'bg'
                
            ORDER BY  `PostDate` ASC
# [03-Aug-2024 07:29:07] /constantinoff/root/bg/ajax/reservations/calendar.html?_=1722659347173 167.99.142.201

set names utf8

SELECT
                 DATE_FORMAT(`Date`, '%Y%m%d') AS `Date`
            FROM
                `calendar`
            WHERE
                `Date` BETWEEN CURDATE() AND DATE_ADD(CURDATE(), INTERVAL 91 DAY)
# [03-Aug-2024 07:29:14] /constantinoff/root/cSN3dAd9/bg/videos/list.html 167.99.142.201

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 1462881452 AND
                                CRC32(`UserKey`) = 2779422748 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                *
            FROM
                `videos`
            WHERE
                `Language` = 'bg'
                
            ORDER BY  `PostDate` ASC
# [03-Aug-2024 07:29:14] /constantinoff/root/bg/ajax/reservations/calendar.html?_=1722659354651 167.99.142.201

set names utf8

SELECT
                 DATE_FORMAT(`Date`, '%Y%m%d') AS `Date`
            FROM
                `calendar`
            WHERE
                `Date` BETWEEN CURDATE() AND DATE_ADD(CURDATE(), INTERVAL 91 DAY)
# [03-Aug-2024 07:29:32] /constantinoff/root/cSN3dAd9/bg/menu/list.html 167.99.142.201

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 1462881452 AND
                                CRC32(`UserKey`) = 2779422748 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                *
            FROM
                `menu`
            WHERE
                `Language` = 'bg'
                
            ORDER BY  `PostDate` ASC
# [03-Aug-2024 07:29:33] /constantinoff/root/bg/ajax/reservations/calendar.html?_=1722659373218 167.99.142.201

set names utf8

SELECT
                 DATE_FORMAT(`Date`, '%Y%m%d') AS `Date`
            FROM
                `calendar`
            WHERE
                `Date` BETWEEN CURDATE() AND DATE_ADD(CURDATE(), INTERVAL 91 DAY)
# [03-Aug-2024 07:29:57] /constantinoff/root/cSN3dAd9/bg/ajax/menu/form/1.html?_=1722659397342 167.99.142.201

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 1462881452 AND
                                CRC32(`UserKey`) = 2779422748 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                *
            FROM
                `menu`
            WHERE
                `ID` = 1 AND
                `Language` = 'bg'
            LIMIT 1
# [03-Aug-2024 07:30:32] /constantinoff/root/cSN3dAd9/bg/pages/list.html 167.99.142.201

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 1462881452 AND
                                CRC32(`UserKey`) = 2779422748 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                `ID`,
                `Language`,
                `PostDate`,
                `LastUpdate`,
                `ExternalURL`,
                `MenuLabel`,
                `Title`,
                `URLLabel`,
                `Visible`
            FROM
                `pages`
            WHERE
                `Language` = 'bg'
                
            ORDER BY  `PostDate` ASC
# [03-Aug-2024 07:30:32] /constantinoff/root/bg/ajax/reservations/calendar.html?_=1722659432936 167.99.142.201

set names utf8

SELECT
                 DATE_FORMAT(`Date`, '%Y%m%d') AS `Date`
            FROM
                `calendar`
            WHERE
                `Date` BETWEEN CURDATE() AND DATE_ADD(CURDATE(), INTERVAL 91 DAY)
# [03-Aug-2024 07:30:39] /constantinoff/root/cSN3dAd9/bg/ajax/pages/form/9.html?_=1722659438998 167.99.142.201

set names utf8

SELECT
                                `ID`
                            FROM
                                `users`
                            WHERE
                                `ID` = 1462881452 AND
                                CRC32(`UserKey`) = 2779422748 AND
                                RIGHT(`UserKey`, 1) = 2
                            LIMIT 1

SELECT
                *
            FROM
                `pages`
            WHERE
                `ID` = 9 AND
                `Language` = 'bg'
            LIMIT 1
