- SUNDAY CHART WORK - Charting Illustration of a potential trade for the week.
- WEEKLY TRADE RECAP - Blog or Video recap of my best trade of the week.
Official Instagram Profile - @DETJP
// ============================================================ if (!isset($TRACKER_SITE)) $TRACKER_SITE = 'unknown'; // --- DB config (all sites log to the same PIG database) --- $_t_host = 'db774730075.hosting-data.io'; $_t_name = 'db774730075'; $_t_user = 'dbo774730075'; $_t_pass = 'Jp313#2007'; // --- Bot detection (skip tracking bots/crawlers) --- $_t_ua = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : ''; $_t_bot_patterns = array('bot','crawl','spider','slurp','mediapartners','bingpreview', 'facebookexternalhit','twitterbot','linkedinbot','whatsapp','curl','wget','python', 'java','libwww','scrapy','headless','phantomjs','selenium'); $_t_is_bot = false; foreach ($_t_bot_patterns as $_p) { if (stripos($_t_ua, $_p) !== false) { $_t_is_bot = true; break; } } if (!$_t_is_bot) { // --- Build session ID (tracks visitor movement without storing PII) --- // Uses IP + user agent hashed — no cookie needed $_t_ip = isset($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : ''; $_t_ip_hash = hash('sha256', $_t_ip . date('Ymd')); // resets daily $_t_sess_id = hash('sha256', $_t_ip . $_t_ua . date('YmdH')); // resets hourly // --- Page info --- $_t_protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') ? 'https' : 'http'; $_t_host_hdr = isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : ''; $_t_uri = isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : '/'; $_t_page_url = $_t_protocol . '://' . $_t_host_hdr . $_t_uri; $_t_referrer = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : ''; // Trim long values $_t_page_url = substr($_t_page_url, 0, 500); $_t_referrer = substr($_t_referrer, 0, 500); $_t_ua = substr($_t_ua, 0, 500); // --- Connect and log --- $_t_db = @new mysqli($_t_host, $_t_user, $_t_pass, $_t_name); if (!$_t_db->connect_error) { $_t_db->set_charset('utf8mb4'); // Create table on first run $_t_db->query("CREATE TABLE IF NOT EXISTS pig_analytics ( id BIGINT AUTO_INCREMENT PRIMARY KEY, site VARCHAR(50) NOT NULL DEFAULT '', page_url VARCHAR(500) NOT NULL DEFAULT '', referrer VARCHAR(500) NOT NULL DEFAULT '', ip_hash VARCHAR(64) NOT NULL DEFAULT '', session_id VARCHAR(64) NOT NULL DEFAULT '', user_agent VARCHAR(500) NOT NULL DEFAULT '', created_at DATETIME DEFAULT CURRENT_TIMESTAMP, INDEX idx_site_date (site, created_at), INDEX idx_session (session_id), INDEX idx_date (created_at) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4"); // Insert visit $_t_st = $_t_db->prepare("INSERT INTO pig_analytics (site, page_url, referrer, ip_hash, session_id, user_agent) VALUES (?, ?, ?, ?, ?, ?)"); if ($_t_st) { $_t_st->bind_param('ssssss', $TRACKER_SITE, $_t_page_url, $_t_referrer, $_t_ip_hash, $_t_sess_id, $_t_ua); $_t_st->execute(); $_t_st->close(); } $_t_db->close(); } } // Clean up variables so they don't leak into the host page unset($_t_host, $_t_name, $_t_user, $_t_pass, $_t_ua, $_t_bot_patterns, $_t_is_bot, $_t_ip, $_t_ip_hash, $_t_sess_id, $_t_protocol, $_t_host_hdr, $_t_uri, $_t_page_url, $_t_referrer, $_t_db, $_t_st, $_p); ?>
Official Instagram Profile - @DETJP