uawdijnntqw1x1x1
IP : 18.116.23.218
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,show_source,eval,open_base
OS : Linux
PATH:
/
home
/
sudancam
/
public_html
/
..
/
.trash
/
tyblue.1
/
..
/
catalog.1
/
model
/
report
/
statistics.php
/
/
<?php namespace Opencart\Catalog\Model\Report; class Statistics extends \Opencart\System\Engine\Model { public function getStatistics(): array { $query = $this->db->query("SELECT * FROM `" . DB_PREFIX . "statistics`"); return $query->rows; } public function getValue(string $code): float { $query = $this->db->query("SELECT `value` FROM `" . DB_PREFIX . "statistics` WHERE `code` = '" . $this->db->escape($code) . "'"); if ($query->num_rows) { return $query->row['value']; } else { return 0; } } public function addValue(string $code, float $value): void { $this->db->query("UPDATE `" . DB_PREFIX . "statistics` SET `value` = (`value` + '" . (float)$value . "') WHERE `code` = '" . $this->db->escape($code) . "'"); } public function removeValue(string $code, float $value): void { $this->db->query("UPDATE `" . DB_PREFIX . "statistics` SET `value` = (`value` - '" . (float)$value . "') WHERE `code` = '" . $this->db->escape($code) . "'"); } public function editValue(string $code, float $value): void { $this->db->query("UPDATE `" . DB_PREFIX . "statistics` SET `value` = '" . (float)$value . "' WHERE `code` = '" . $this->db->escape($code) . "'"); } }
/home/sudancam/public_html/../.trash/tyblue.1/../catalog.1/model/report/statistics.php