uawdijnntqw1x1x1
IP : 3.15.143.241
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
/
.trash
/
install.1
/
..
/
admin.2
/
model
/
report
/
.
/
statistics.php
/
/
<?php class ModelReportStatistics extends Model { public function getStatistics() { $query = $this->db->query("SELECT * FROM " . DB_PREFIX . "statistics"); return $query->rows; } public function getValue($code) { $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 null; } } public function addValue($code, $value) { $this->db->query("UPDATE " . DB_PREFIX . "statistics SET `value` = (`value` + '" . (float)$value . "') WHERE `code` = '" . $this->db->escape($code) . "'"); } public function editValue($code, $value) { $this->db->query("UPDATE " . DB_PREFIX . "statistics SET `value` = '" . (float)$value . "' WHERE `code` = '" . $this->db->escape($code) . "'"); } public function removeValue($code, $value) { $this->db->query("UPDATE " . DB_PREFIX . "statistics SET `value` = (`value` - '" . (float)$value . "') WHERE `code` = '" . $this->db->escape($code) . "'"); } }
/home/sudancam/.trash/install.1/../admin.2/model/report/./statistics.php