Page MenuHomePhabricator

No OneTemporary

diff --git a/admin/editor.php b/admin/editor.php
--- a/admin/editor.php
+++ b/admin/editor.php
@@ -1,85 +1,86 @@
<?php
/**
* DokuWiki Plugin metaeditor (Admin Component)
*
* Simple Meta Data Editor, heavily AJAX/jQuery based.
*
* @license GPL 2 http://www.gnu.org/licenses/gpl-2.0.html
* @author Andreas Gohr <gohr@cosmocode.de>
*/
// must be run within Dokuwiki
if (!defined('DOKU_INC')) die();
require_once(DOKU_PLUGIN.'admin.php');
class admin_plugin_metaeditor_editor extends DokuWiki_Admin_Plugin {
/**
* Constructor. Load helper plugin
*/
function admin_plugin_metaeditor_editor(){
}
function getMenuSort() { return 501; }
function forAdminOnly() { return true; }
function getMenuText($language) {
return "Simple Meta Data Editor";
}
function handle() {
if(!is_array($_REQUEST['d']) || !checkSecurityToken()) return;
}
function recurseTree($ns) {
global $conf;
$out = '';
$list = array();
$opts = array(
'depth' => 1,
'listfiles' => true,
'listdirs' => true,
'pagesonly' => true,
'firsthead' => true,
'sneakyacl' => $conf['sneaky_index'],
);
search($list,$conf['datadir'],'search_universal',$opts,$ns);
foreach($list as $item)
{
if($item['type'] == 'f' || $item['type'] == 'd')
{
if($item['type'] == 'd')
{
$out .= '<li>'.$item['id'];
$out .= '<ul>'.$this->recurseTree(str_replace(':', '/', $item['id'])).'</ul>';
}
else
{
$out .= '<li data-jstree=\'{"icon":"'.DOKU_URL.'/lib/images/page.png"}\'>'.$item['id'];
}
$out .= '</li>';
}
}
return $out;
}
function html() {
echo '<h1>Meta Data Editor</h1>';
echo '<table>';
echo '<tr><th width="30\%">Page</th><th width="30\%">Meta Data</th><th width="30\%">Value</th></tr>';
echo '<tr>';
echo '<td><div id="fileTree">';
echo '<ul>'.$this->recurseTree('/').'</ul>';
echo '</div></td>';
echo '<td><div id="metaTree"></div></td>';
echo '<td><div id="event_path"></div><br><div id="event_result">';
echo '<input type="text" id="event_value" value="..."><br>';
echo '<input type="submit" id="event_save" value="Save">';
echo '</div></td>';
+ echo '</tr></table>';
}
}
// vim:ts=4:sw=4:et:enc=utf-8:
diff --git a/plugin.info.txt b/plugin.info.txt
--- a/plugin.info.txt
+++ b/plugin.info.txt
@@ -1,7 +1,7 @@
base metaeditor
author Andreas Boehler
email dev@aboehler.at
-date 2015-04-29
+date 2015-07-15
name Meta Data Editor
desc Edit metadata of pages
url http://www.dokuwiki.org/plugin:metaeditor

File Metadata

Mime Type
text/x-diff
Expires
Fri, Jan 24, 4:13 AM (1 d, 14 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
532786
Default Alt Text
(2 KB)

Event Timeline