⚝
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
/
thread
/
View File Name :
app_ctrl.php
array(), 'next' => array(), 'can_reply' => true, 'can_see' => true ); if (cl_queryset($post) && $post["status"] != "orphan") { $data['can_reply'] = cl_can_reply($post); $data['post'] = cl_post_data($post); $data['next'] = cl_get_thread_child_posts($post_id, 30); } return $data; } function cl_get_thread_parent_posts($post_obj = array()) { global $db, $cl; if (not_empty($post_obj['thread_id'])) { $db = $db->where('id', $post_obj['thread_id']); $db = $db->where('status', array('active','inactive','deleted'),'IN'); $qr = $db->getOne(T_PUBS); if (cl_queryset($qr)) { $cl['_'][] = cl_post_data($qr); return cl_get_thread_parent_posts($qr); } } else { return ((not_empty($cl['_'])) ? $cl['_'] : false); } } function cl_get_thread_child_posts($post_id = false, $limit = null, $offset = false, $offset_to = 'lt') { global $db, $cl; if (not_num($post_id)) { return false; } $offset_to = (($offset_to == 'gt') ? '>' : '<'); $data = array(); $db = $db->where('thread_id', $post_id); $db = $db->where('status', array('active','inactive','deleted'),'IN'); $db = ((is_posnum($offset)) ? $db->where('id', $offset, $offset_to) : $db); $db = $db->orderBy('id','DESC'); $child_posts = $db->get(T_PUBS, $limit); if (cl_queryset($child_posts)) { foreach ($child_posts as $row) { $row['replys'] = array(); $db = $db->where('thread_id', $row['id']); $db = $db->where('status', array('active','inactive','deleted'),'IN'); $db = $db->orderBy('id','DESC'); $replys = $db->get(T_PUBS, 2); if (cl_queryset($replys)) { foreach ($replys as $reply) { $row['replys'][] = cl_post_data($reply); } } $data[] = cl_post_data($row); } } return $data; }