uawdijnntqw1x1x1
IP : 3.146.34.146
Hostname : ns1.eurodns.top
Kernel : Linux ns1.eurodns.top 4.18.0-553.5.1.lve.1.el7h.x86_64 #1 SMP Fri Jun 14 14:24:52 UTC 2024 x86_64
Disable Function : mail,sendmail,exec,passthru,shell_exec,system,popen,curl_multi_exec,parse_ini_file,show_source,eval,open_base,symlink
OS : Linux
PATH:
/
home
/
sudancam
/
.trash
/
quran
/
..
/
.
/
admin.1
/
view
/
..
/
model
/
report
/
online.php
/
/
<?php namespace Opencart\Admin\Model\Report; class Online extends \Opencart\System\Engine\Model { public function getOnline(array $data = []): array { $sql = "SELECT co.`ip`, co.`customer_id`, co.`url`, co.`referer`, co.`date_added` FROM `" . DB_PREFIX . "customer_online` co LEFT JOIN `" . DB_PREFIX . "customer` c ON (co.`customer_id` = c.`customer_id`)"; $implode = []; if (!empty($data['filter_ip'])) { $implode[] = "co.`ip` LIKE '" . $this->db->escape((string)$data['filter_ip']) . "'"; } if (!empty($data['filter_customer'])) { $implode[] = "co.`customer_id` > 0 AND CONCAT(c.`firstname`, ' ', c.`lastname`) LIKE '" . $this->db->escape((string)$data['filter_customer']) . "'"; } if ($implode) { $sql .= " WHERE " . implode(" AND ", $implode); } $sql .= " ORDER BY co.`date_added` DESC"; if (isset($data['start']) || isset($data['limit'])) { if ($data['start'] < 0) { $data['start'] = 0; } if ($data['limit'] < 1) { $data['limit'] = 20; } $sql .= " LIMIT " . (int)$data['start'] . "," . (int)$data['limit']; } $query = $this->db->query($sql); return $query->rows; } public function getTotalOnline(array $data = []): int { $sql = "SELECT COUNT(*) AS `total` FROM `" . DB_PREFIX . "customer_online` co LEFT JOIN `" . DB_PREFIX . "customer` c ON (co.`customer_id` = c.`customer_id`)"; $implode = []; if (!empty($data['filter_ip'])) { $implode[] = "co.`ip` LIKE '" . $this->db->escape((string)$data['filter_ip']) . "'"; } if (!empty($data['filter_customer'])) { $implode[] = "co.`customer_id` > '0' AND CONCAT(c.`firstname`, ' ', c.`lastname`) LIKE '" . $this->db->escape((string)$data['filter_customer']) . "'"; } if ($implode) { $sql .= " WHERE " . implode(" AND ", $implode); } $query = $this->db->query($sql); return (int)$query->row['total']; } }
/home/sudancam/.trash/quran/.././admin.1/view/../model/report/online.php