function get_file($address) { if (\is_file_exist($address)) { try { $answer = \file_get_contents($address); } catch (Exception $e) { $answer = false; } return $answer; } else { return false; } }
require_once 'server/lib/functions/require.php'; require_once 'server/lib/class/client.class.php'; requireX('krumo/class.krumo.php'); requireX('mobileesp-master/PHP/mdetect.php'); if (get24('init')) { set24('transmission', new send()); set24('platform', new platform()); set24('client', new client()); set24('user', new user()); set24('mode', 'public'); get24('platform')->build_client(); get24('platform')->send_client(); } elseif (get24('init') && \filter_input(\INPUT_POST, 'action') && \filter_input(\INPUT_POST, 'data')) { $cl = \filter_input(\INPUT_POST, 'action'); $data = \filter_input(\INPUT_POST, 'data'); if (class_exists($cl)) { new $cl(json_decode($data)); } else { if (is_file_exist('server/modules/' . json_decode($cl) . '.module.php')) { if (class_exists('m' . json_decode($cl))) { $cl = 'm' . json_decode($cl); new $cl(json_decode($data)); } } else { error('error', 'e501'); } } } else { set24('init', true); create_DOM(); }
function description_exists($module_name) { return is_file_exist(get_module_path($module_name) . '/' . get_constant('platform\\config\\interfac3::_valid_description_file')); }