xref: /plugin/smtp/admin.php (revision 25673c6215d63918d8dce22c43e8f1afb732abfc)
1<?php
2/**
3 * DokuWiki Plugin smtp (Admin Component)
4 *
5 * @license GPL 2 http://www.gnu.org/licenses/gpl-2.0.html
6 * @author  Andreas Gohr <andi@splitbrain.org>
7 */
8
9// must be run within Dokuwiki
10if(!defined('DOKU_INC')) die();
11
12class admin_plugin_smtp extends DokuWiki_Admin_Plugin {
13
14    /**
15     * @return int sort number in admin menu
16     */
17    public function getMenuSort() {
18        return 500;
19    }
20
21    /**
22     * @return bool true if only access for superuser, false is for superusers and moderators
23     */
24    public function forAdminOnly() {
25        return false;
26    }
27
28    /**
29     * Should carry out any processing required by the plugin.
30     */
31    public function handle() {
32    }
33
34    /**
35     * Render HTML output, e.g. helpful text and a form
36     */
37    public function html() {
38        ptln('<h1>'.$this->getLang('menu').'</h1>');
39
40
41        require_once __DIR__ . '/loader.php';
42
43
44        $logger = new \splitbrain\dokuwiki\plugin\smtp\Logger();
45        $mailer = new Tx\Mailer\SMTP($logger);
46
47    }
48}
49
50// vim:ts=4:sw=4:et:
51