-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathadmin.php
More file actions
24 lines (22 loc) · 961 Bytes
/
Copy pathadmin.php
File metadata and controls
24 lines (22 loc) · 961 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
if (!defined("DOKU_INC")) die();
if (!defined("DOKU_PLUGIN")) define("DOKU_PLUGIN", DOKU_INC . "lib/plugins/");
class admin_plugin_authorstats extends DokuWiki_Admin_Plugin
{
public function html()
{
if (isset($_REQUEST["init_db"])) {
$action = plugin_load("action", "authorstats");
$action->_initializeData();
}
echo "<h1>Authorstats</h1>";
$action = script();
echo "<form action='" . $action . "' method='post' id='plugin__upgrade_form'>";
echo "<input type='hidden' name='do' value='admin' />";
echo "<input type='hidden' name='page' value='authorstats' />";
echo "<input type='hidden' name='sectok' value='" . getSecurityToken() . "' />";
echo "<div>" . $this->getLang("admin-description") . "</div>";
echo "<button type='submit' name='init_db' value='1'>" . $this->getLang("admin-button") . "</button>";
echo "</form>";
}
}