uawdijnntqw1x1x1
IP : 3.15.18.80
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
/
install.1
/
..
/
install.1
/
..
/
tyblue
/
..
/
admin.1
/
model
/
report
/
.
/
statistics.php
/
/
<?php namespace Opencart\Admin\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/.trash/install.1/../install.1/../tyblue/../admin.1/model/report/./statistics.php