easy to set config
This commit is contained in:
@@ -1,9 +1,5 @@
|
||||
<?php
|
||||
|
||||
require_once('config.inc.php');
|
||||
require_once('functions.php');
|
||||
$plugins = [];
|
||||
|
||||
if($_GET['from'] != escapePeer(BOT_NAME)){
|
||||
//is group?
|
||||
if ($_GET['to'] == escapePeer(BOT_NAME)) {
|
||||
@@ -20,15 +16,4 @@ if($_GET['from'] != escapePeer(BOT_NAME)){
|
||||
$BOT->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';
|
||||
}
|
||||
Reference in New Issue
Block a user