diff --git a/BOT.php b/BOT.php index 219f1ff..b114e09 100644 --- a/BOT.php +++ b/BOT.php @@ -1,6 +1,25 @@ $value) { + if ($value == PATH.'plugins'.DIRECTORY_SEPARATOR.'help.php') { + unset($load_plugins[$key]); + } + } + foreach ($load_plugins as $value) { + require_once $value; + } + require_once PATH.'plugins'.DIRECTORY_SEPARATOR.'help.php'; + ?> \ No newline at end of file diff --git a/classes/Telegram/Base.php b/classes/Telegram/Base.php index 5d158cf..819bfc2 100644 --- a/classes/Telegram/Base.php +++ b/classes/Telegram/Base.php @@ -1,5 +1,5 @@ exec("msg ".escapePeer(OWNER_NAME)." ".json_encode($_GET)); } -//load plugins - $load_plugins = glob(PATH.'plugins'.DIRECTORY_SEPARATOR.'*.php'); - foreach ($load_plugins as $key => $value) { - if ($value == PATH.'plugins'.DIRECTORY_SEPARATOR.'help.php') { - unset($load_plugins[$key]); - } - } - foreach ($load_plugins as $value) { - require_once $value; - } - require_once PATH.'plugins'.DIRECTORY_SEPARATOR.'help.php'; } \ No newline at end of file diff --git a/config.inc.php b/config.php similarity index 90% rename from config.inc.php rename to config.php index 917dcf2..f595baf 100644 --- a/config.inc.php +++ b/config.php @@ -1,4 +1,5 @@