Big Change about Plugins

This commit is contained in:
Denny Dai
2015-06-30 15:05:22 +08:00
parent 3cc20a8a89
commit f94b5403f4
8 changed files with 38 additions and 32 deletions
+5 -1
View File
@@ -1,6 +1,10 @@
<?php
PluginList("help", "Ask for help");
if (preg_match("/^".preg_quote(TAG, '/')."help$/", $text)) {
foreach ($load_plugins as $value) {
$plugin_name = substr($value, strlen(PATH.'plugins'.DIRECTORY_SEPARATOR), -4);
$lines=file($value);
eval($lines[1]);
}
$plugin_list = HELP_BEGIN."\n";
foreach ($plugins as $value) {
$plugin_list .= "\n".$value;