⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.63
Server IP:
217.76.53.76
Server:
Linux vmi1397931.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64
Server Software:
Apache
PHP Version:
8.2.27
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
www
/
wwwroot
/
spread.com.ng
/
core
/
apps
/
ads
/
View File Name :
app_ctrl.php
$cl['me']['id'], 'status' => 'orphan', 'time' => time(), ); $insert_id = $db->insert(T_ADS, $insert_data); $ad_data = cl_raw_ad_data($insert_id); cl_update_user_data($cl['me']['id'], array( "last_ad" => $insert_id )); return $ad_data; } else { $ad_data = cl_raw_ad_data($id); return $ad_data; } } function cl_ad_vue_preprocess($ad_data = array()) { if (empty($ad_data)) { return false; } if (empty($ad_data['cover'])) { $ad_data['cover'] = ""; } else { $ad_data['cover'] = cl_get_media($ad_data['cover']); } if (empty($ad_data['description'])) { $ad_data['description'] = ""; } else { $ad_data['description'] = cl_text($ad_data['description']); } if (empty($ad_data['cta'])) { $ad_data['cta'] = ""; } else { $ad_data['cta'] = cl_text($ad_data['cta']); } if (empty($ad_data['company'])) { $ad_data['company'] = ""; } else { $ad_data['company'] = cl_text($ad_data['company']); } if (empty($ad_data['audience'])) { $ad_data['audience'] = array(); } else { $ad_data['audience'] = json($ad_data['audience']); } return $ad_data; } function cl_get_user_ads($args = array()) { global $db, $cl, $me; $args = (is_array($args)) ? $args : array(); $options = array( "offset" => false, "limit" => 10, "type" => "active", ); $args = array_merge($options, $args); $offset = $args['offset']; $limit = $args['limit']; $type = $args['type']; $sql = cl_sqltepmlate('apps/ads/sql/fetch_ads', array( 't_ads' => T_ADS, 'offset' => $offset, 'limit' => $limit, 'user_id' => $me['id'], 'type' => $type )); $ads = $db->rawQuery($sql); $data = array(); if (cl_queryset($ads)) { foreach ($ads as $row) { $row['edit'] = cl_link(cl_strf('ads/edit/%d', $row['id'])); $row['cover'] = cl_get_media($row['cover']); $row['budget'] = cl_money($row['budget']); $row['clicks'] = cl_number($row['clicks']); $row['views'] = cl_number($row['views']); $row['time'] = cl_time2str($row['time']); $row['description'] = stripcslashes($row['description']); $row['description'] = htmlspecialchars_decode($row['description'], ENT_QUOTES); $row['description'] = cl_linkify_urls($row['description']); $row['description'] = cl_rn2br($row['description']); $row['description'] = cl_strip_brs($row['description']); $row['cta'] = stripcslashes($row['cta']); $row['cta'] = htmlspecialchars_decode($row['cta'], ENT_QUOTES); $row['company'] = stripcslashes($row['company']); $row['company'] = htmlspecialchars_decode($row['company'], ENT_QUOTES); $row['is_owner'] = true; $row['show_stats'] = true; $row['owner'] = array( 'name' => $me['name'], 'username' => $me['username'], 'verified' => $me['verified'], 'url' => $me['url'] ); $data[] = $row; } } return $data; }