uawdijnntqw1x1x1
IP : 3.16.75.171
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
/
wp-content
/
..
/
catalog
/
model
/
localisation
/
.
/
return_reason.php
/
/
<?php class ModelLocalisationReturnReason extends Model { public function getReturnReasons($data = array()) { if ($data) { $sql = "SELECT * FROM " . DB_PREFIX . "return_reason WHERE language_id = '" . (int)$this->config->get('config_language_id') . "'"; $sql .= " ORDER BY name"; if (isset($data['return']) && ($data['return'] == '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; } else { $return_reason_data = $this->cache->get('return_reason.' . (int)$this->config->get('config_language_id')); if (!$return_reason_data) { $query = $this->db->query("SELECT return_reason_id, name FROM " . DB_PREFIX . "return_reason WHERE language_id = '" . (int)$this->config->get('config_language_id') . "' ORDER BY name"); $return_reason_data = $query->rows; $this->cache->set('return_reason.' . (int)$this->config->get('config_language_id'), $return_reason_data); } return $return_reason_data; } } }
/home/sudancam/.trash/wp-content/../catalog/model/localisation/./return_reason.php