Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP7 Decoder for ionCube Encoder)
- *
- * @ Version : 4.1.0.1
- * @ Author : DeZender
- * @ Release on : 29.08.2020
- * @ Official site : http://DeZender.Net
- *
- */
- function getItemIcons()
- {
- $t = &get_instance();
- $t->load->helper('file');
- $files = get_dir_file_info(FOLDERPATH . '/assets/images/icon/icon', false);
- $icons = [];
- foreach (array_keys($files) as $file) {
- $iconName = strtolower(str_replace('.png', '', $file));
- if (!in_array($file, $icons) && is_numeric($iconName)) {
- $icons[intval($iconName)] = strtolower($file);
- }
- }
- return $icons;
- }
- function isAllowedViewModule($moduleName = '', $type = '')
- {
- $t = &get_instance();
- $moduleName = ($moduleName == '' ? $t->router->fetch_class() : $moduleName);
- $user_roles = writeSession('wikiUserRole');
- if (writeSession('wikiIsAdmin')) {
- return true;
- }
- else if (isset($user_roles->{$moduleName})) {
- if (isset($user_roles->{$moduleName}->{$type})) {
- return true;
- }
- }
- return false;
- }
- function getControllerList()
- {
- $notFiles = ['index.html', 'Error_404.php', 'Dashboard.php', 'Logs.php', 'Userop.php', 'Users.php', 'Settings.php', 'Sql.php', 'Txt.php', 'Maps.php'];
- $t = &get_instance();
- $controllers = [];
- $t->load->helper('file');
- $files = get_dir_file_info(APPPATH . 'controllers', false);
- foreach (array_keys($files) as $file) {
- if (!in_array($file, $notFiles)) {
- $controllers[] = strtolower(str_replace('.php', '', $file));
- }
- }
- return $controllers;
- }
- function curlPost($postValue)
- {
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, 'https://metin2hazirpanel.com/Index/Control');
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
- curl_setopt($ch, CURLOPT_REFERER, base_url());
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_POSTFIELDS, $postValue);
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
- return curl_exec($ch);
- }
- function clearValueConstant($value)
- {
- $dangerCharacter = [':', '.', '0x', 'union', 'UNION', 'from', 'FROM', '\'', '%27', '<', '>', '|', ';', '%', '"', '(', ')', '='];
- $change = ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''];
- if (is_array($value)) {
- $clearValue = [];
- foreach ($value as $key => $value) {
- $clearValue[$key] = str_replace($dangerCharacter, $change, $value);
- addslashes(htmlspecialchars(trim(strip_tags($clearValue[$key]))));
- }
- return $clearValue;
- }
- else {
- $clearValue = str_replace($dangerCharacter, $change, $value);
- ...................................................................
- .......................................
- ............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement