uawdijnntqw1x1x1
IP : 3.16.78.46
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
/
tyblue.3
/
..
/
related-posts-by-zemanta.1
/
..
/
admin.1
/
model
/
tool
/
backup.php
/
/
<?php namespace Opencart\Admin\Model\Tool; class Backup extends \Opencart\System\Engine\Model { public function getTables(): array { $table_data = []; $query = $this->db->query("SHOW TABLES FROM `" . DB_DATABASE . "`"); foreach ($query->rows as $result) { if (isset($result['Tables_in_' . DB_DATABASE]) && utf8_substr($result['Tables_in_' . DB_DATABASE], 0, strlen(DB_PREFIX)) == DB_PREFIX) { $table_data[] = $result['Tables_in_' . DB_DATABASE]; } } return $table_data; } public function getRecords(string $table, int $start = 0, int $limit = 100): array { if ($start < 0) { $start = 0; } if ($limit < 1) { $limit = 10; } $query = $this->db->query("SELECT * FROM `" . $table . "` LIMIT " . (int)$start . "," . (int)$limit); if ($query->num_rows) { return $query->rows; } else { return []; } } public function getTotalRecords(string $table): int { $query = $this->db->query("SELECT COUNT(*) AS `total` FROM `" . $table . "`"); if ($query->num_rows) { return (int)$query->row['total']; } else { return 0; } } }
/home/sudancam/./.trash/tyblue.3/../related-posts-by-zemanta.1/../admin.1/model/tool/backup.php