function dodefault() { $plugName = $_GET['name']; $config = plugin::config($plugName, 'admincp'); $operate = $_GET['o'] ? $_GET['o'] : 'default'; define('__PLUGINACP__', __ADMINCP__ . '=' . $config['url'] . '&o'); include plugin::mo($plugName); $module = new $plugName(); $method = 'do' . $operate; if (method_exists($module, $method)) { $module->{$method}(); } else { throwException('应用程序运行出错.类 ' . $moduleClass . ' 中找不到方法定义:' . $method, 1003); } }
/** * Get replacement for $AUTHOR_EMAIL$. * * @return string */ protected function getAuthorEmailReplacement() { return $this->plugin->config('composer.author.email'); }
=plugins" method="post" target="iCMS_FRAME"> <table class="adminlist"> <thead> <tr> <th>插件名称</th> <th>插件描述</th> <th>作者</th> <th>版本</th> <th>调用方法</th> <th>状态</th> <th>管理</th> </tr> </thead> <?php foreach ($rs as $key => $plugName) { if ($rs = plugin::config($plugName)) { ?> <tr> <td><a href="<?php echo $rs['config']['Home']; ?> " target="_blank"><?php echo $rs['config']['Name']; ?> </a></td> <td><?php echo $rs['config']['Description']; ?> </td> <td><a href="<?php echo $rs['config']['Blog'];