PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/outtheboxministry.org/sources/ads/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : /home/trave494/outtheboxministry.org/sources/ads/chart_ads.php |
<?php if ($wo['loggedin'] == false || $wo['config']['user_ads'] == 0) { header("Location: " . Wo_SeoLink('index.php?link1=welcome')); exit(); } if (isset($_GET['id']) && is_numeric($_GET['id']) && $_GET['id'] > 0) { $ad_data = Wo_GetUserAdData($_GET['id']); if (!empty($ad_data) && Wo_IsAdsOwner($ad_data['id'])) { global $sqlConnect; $wo['description'] = $wo['config']['siteDesc']; $wo['keywords'] = $wo['config']['siteKeywords']; $wo['page'] = 'ads'; $wo['ap'] = 'chart'; $wo['title'] = $wo['lang']['edit_ads']; $wo['ad-data'] = $ad_data; $wo['my-pages'] = Wo_GetMyPages($ad_data['user_id']); $wo['audience'] = $wo['countries_name']; $wo['clicks'] = array(); $wo['views'] = array(); $wo['ad_data'] = $ad_data; $sqlclicks = "SELECT DATE(dt) DateOnly, SUM(clicks) AS ADClicks , SUM(spend) AS Spend FROM `" . T_USERADS_DATA ."` WHERE user_id = ". Wo_Secure($ad_data['user_id'])." AND ad_id = " . Wo_Secure($_GET['id']) . " AND clicks > 0 GROUP BY DateOnly,clicks,Spend ORDER BY dt DESC LIMIT 30"; $queryclicks = mysqli_query($sqlConnect, $sqlclicks); while ($fetched_data = mysqli_fetch_assoc($queryclicks)) { $wo['clicks'][] = $fetched_data; } $sqlviews = "SELECT DATE(dt) DateOnly, SUM(views) AS ADviews , SUM(spend) AS Spend FROM `" . T_USERADS_DATA ."` WHERE user_id = ". Wo_Secure($ad_data['user_id'])." AND ad_id = " . Wo_Secure($_GET['id']) . " AND views > 0 GROUP BY DateOnly,views,Spend ORDER BY dt DESC LIMIT 30"; $queryviews = mysqli_query($sqlConnect, $sqlviews); while ($fetched_data = mysqli_fetch_assoc($queryviews)) { $wo['views'][] = $fetched_data; } $wo['content'] = Wo_LoadPage('ads/chart'); } } ?>