uawdijnntqw1x1x1
IP : 3.22.248.94
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
/
..
/
img.2
/
.
/
..
/
catalog.2
/
model
/
setting
/
setting.php
/
/
<?php class ModelSettingSetting extends Model { public function getSetting($code, $store_id = 0) { $data = array(); $query = $this->db->query("SELECT * FROM " . DB_PREFIX . "setting WHERE store_id = '" . (int)$store_id . "' AND `code` = '" . $this->db->escape($code) . "'"); foreach ($query->rows as $result) { if (!$result['serialized']) { $data[$result['key']] = $result['value']; } else { $data[$result['key']] = json_decode($result['value'], true); } } return $data; } public function getSettingValue($key, $store_id = 0) { $query = $this->db->query("SELECT value FROM " . DB_PREFIX . "setting WHERE store_id = '" . (int)$store_id . "' AND `key` = '" . $this->db->escape($key) . "'"); if ($query->num_rows) { return $query->row['value']; } else { return null; } } }
/home/sudancam/.trash/install.1/../img.2/./../catalog.2/model/setting/setting.php