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.0.8.3
- * @ Author : DeZender
- * @ Release on : 12.03.2019
- * @ Official site : http://DeZender.Net
- *
- */
- class Xbot_functions
- {
- static public $disabled_functions = [];
- static private $last_checked = [];
- static private $license_checked = false;
- static public $show_links = [];
- static public function write_loaded_functions($count, $switch)
- {
- global $language;
- if ($count == 1) {
- if ($switch == 1) {
- return $language['core']['plugins'][1];
- }
- else if ($switch == 2) {
- return $language['core']['events'][1];
- }
- else {
- return $language['core']['commands'][1];
- }
- }
- else if (((5 <= $count) || ($count == 0)) && ($language['which'] != 'eng')) {
- if ($switch == 1) {
- return $language['core']['plugins'][3];
- }
- else if ($switch == 2) {
- return $language['core']['events'][3];
- }
- else {
- return $language['core']['commands'][3];
- }
- }
- else if ($switch == 1) {
- return $language['core']['plugins'][2];
- }
- else if ($switch == 2) {
- return $language['core']['events'][2];
- }
- else {
- return $language['core']['commands'][2];
- }
- }
- static public function check_numeric_connect($cfg, $name)
- {
- global $language;
- global $logs_manager;
- $good = true;
- if (!is_numeric($cfg['query_port'])) {
- $logs_manager::write_info($name . 'Query port' . $language['core']['misconfigured']);
- $good = false;
- }
- if (!is_numeric($cfg['port'])) {
- $logs_manager::write_info($name . 'Port' . $language['core']['misconfigured']);
- $good = false;
- }
- if (!is_numeric($cfg['default_channel'])) {
- $logs_manager::write_info($name . 'Bot default channel' . $language['core']['misconfigured']);
- $good = false;
- }
- return $good;
- }
- static public function success(array $output)
- {
- return $output[__FUNCTION__];
- }
- static public function convert_to_seconds($interval)
- {
- $interval['days'] = $interval['days'] + ($interval['weeks'] * 7);
- $interval['hours'] = $interval['hours'] + ($interval['days'] * 24);
- $interval['minutes'] = $interval['minutes'] + ($interval['hours'] * 60);
- return $interval['seconds'] + ($interval['minutes'] * 60);
- }
- static public function if_can($event, $date1, $date2, $interval)
- {
- global $event_info;
- if (!self::$license_checked) {
- global $version;
- global $logs_manager;
- global $name;
- global $language;
- global $addons;
- require 'license.php';
- if ($addons != '') {
- $to_add = '&addons=' . $addons;
- }
- else {
- $to_add = '';
- ...........................................................
- ........................................
- .................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement