uawdijnntqw1x1x1
IP : 3.145.163.148
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
/
cron.php
/
/
<?php namespace Opencart\Admin\Model\Setting; class Cron extends \Opencart\System\Engine\Model { public function addCron(string $code, string $description, string $cycle, string $action, bool $status): int { $this->db->query("INSERT INTO `" . DB_PREFIX . "cron` SET `code` = '" . $this->db->escape($code) . "', `description` = '" . $this->db->escape($description) . "', `cycle` = '" . $this->db->escape($cycle) . "', `action` = '" . $this->db->escape($action) . "', `status` = '" . (int)$status . "', `date_added` = NOW(), `date_modified` = NOW()"); return $this->db->getLastId(); } public function deleteCron(int $cron_id): void { $this->db->query("DELETE FROM `" . DB_PREFIX . "cron` WHERE `cron_id` = '" . (int)$cron_id . "'"); } public function deleteCronByCode(string $code): void { $this->db->query("DELETE FROM `" . DB_PREFIX . "cron` WHERE `code` = '" . $this->db->escape($code) . "'"); } public function editCron(int $cron_id): void { $this->db->query("UPDATE `" . DB_PREFIX . "cron` SET `date_modified` = NOW() WHERE `cron_id` = '" . (int)$cron_id . "'"); } public function editStatus(int $cron_id, bool $status): void { $this->db->query("UPDATE `" . DB_PREFIX . "cron` SET `status` = '" . (bool)$status . "' WHERE `cron_id` = '" . (int)$cron_id . "'"); } public function getCron(int $cron_id): array { $query = $this->db->query("SELECT DISTINCT * FROM `" . DB_PREFIX . "cron` WHERE `cron_id` = '" . (int)$cron_id . "'"); return $query->row; } public function getCronByCode(string $code): array { $query = $this->db->query("SELECT DISTINCT * FROM `" . DB_PREFIX . "cron` WHERE `code` = '" . $this->db->escape($code) . "' LIMIT 1"); return $query->row; } public function getCrons(array $data = []): array { $sql = "SELECT * FROM `" . DB_PREFIX . "cron`"; $sort_data = [ 'code', 'cycle', 'action', 'status', 'date_added', 'date_modified' ]; if (isset($data['sort']) && in_array($data['sort'], $sort_data)) { $sql .= " ORDER BY `" . $data['sort'] . "`"; } else { $sql .= " ORDER BY `date_added`"; } 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 getTotalCrons(): int { $query = $this->db->query("SELECT COUNT(*) AS `total` FROM `" . DB_PREFIX . "cron`"); return (int)$query->row['total']; } }
/home/sudancam/public_html3/.well-known/.././././../.cagefs/../.trash/admin.1/model/./setting/cron.php