uawdijnntqw1x1x1
IP : 18.218.13.27
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
/
public_html3
/
.well-known
/
..
/
.
/
.
/
.
/
..
/
.cagefs
/
..
/
.trash
/
admin.1
/
model
/
setting
/
startup.php
/
/
<?php namespace Opencart\Admin\Model\Setting; class Startup extends \Opencart\System\Engine\Model { public function addStartup(string $code, string $action, bool $status = true, int $sort_order = 0): int { $this->db->query("INSERT INTO `" . DB_PREFIX . "startup` SET `code` = '" . $this->db->escape($code) . "', `action` = '" . $this->db->escape($action) . "', `status` = '" . (int)$status . "', `sort_order` = '" . (int)$sort_order . "'"); return $this->db->getLastId(); } public function deleteStartup(int $startup_id): void { $this->db->query("DELETE FROM `" . DB_PREFIX . "startup` WHERE `startup_id` = '" . (int)$startup_id . "'"); } public function deleteStartupByCode(string $code): void { $this->db->query("DELETE FROM `" . DB_PREFIX . "startup` WHERE `code` = '" . $this->db->escape($code) . "'"); } public function editStatus(int $startup_id, bool $status): void { $this->db->query("UPDATE `" . DB_PREFIX . "startup` SET `status` = '" . (bool)$status . "' WHERE `startup_id` = '" . (int)$startup_id . "'"); } public function getStartup(int $startup_id): array { $query = $this->db->query("SELECT * FROM `" . DB_PREFIX . "startup` WHERE `startup_id` = '" . (int)$startup_id . "'"); return $query->row; } public function getStartupByCode(string $code): array { $query = $this->db->query("SELECT DISTINCT * FROM `" . DB_PREFIX . "startup` WHERE `code` = '" . $this->db->escape($code) . "' LIMIT 1"); return $query->row; } public function getStartups(array $data = []): array { $sql = "SELECT * FROM `" . DB_PREFIX . "startup`"; $sort_data = [ 'code', 'action', 'status', 'sort_order', 'date_added' ]; if (isset($data['sort']) && in_array($data['sort'], $sort_data)) { $sql .= " ORDER BY `" . $data['sort'] . "`"; } else { $sql .= " ORDER BY `sort_order`"; } if (isset($data['order']) && ($data['order'] == 'DESC')) { $sql .= " DESC"; } else { $sql .= " ASC"; } 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 getTotalStartups(): int { $query = $this->db->query("SELECT COUNT(*) AS `total` FROM `" . DB_PREFIX . "startup`"); return (int)$query->row['total']; } }
/home/sudancam/public_html3/.well-known/.././././../.cagefs/../.trash/admin.1/model/setting/startup.php