| | |
| | | */ |
| | | |
| | | // location where plugins are loade from |
| | | if (!defined('RCMAIL_PLUGINS_DIR')) |
| | | define('RCMAIL_PLUGINS_DIR', INSTALL_PATH . 'plugins/'); |
| | | if (!defined('RCUBE_PLUGINS_DIR')) |
| | | define('RCUBE_PLUGINS_DIR', RCUBE_INSTALL_PATH . 'plugins/'); |
| | | |
| | | |
| | | /** |
| | |
| | | */ |
| | | protected function __construct() |
| | | { |
| | | $this->dir = slashify(RCMAIL_PLUGINS_DIR); |
| | | $this->dir = slashify(RCUBE_PLUGINS_DIR); |
| | | } |
| | | |
| | | |
| | |
| | | */ |
| | | public function register_task($task, $owner) |
| | | { |
| | | // tasks are irrelevant in framework mode |
| | | if (!class_exists('rcmail', false)) |
| | | return true; |
| | | |
| | | if ($task != asciiwords($task)) { |
| | | rcube::raise_error(array('code' => 526, 'type' => 'php', |
| | | 'file' => __FILE__, 'line' => __LINE__, |