3f2f3fed01c9d2728429232ffbbbf90c5ef7fb54
2 require_once 'diogenes.common.inc.php';
3 require_once 'diogenes.admin.inc.php';
4 require_once 'Plugin/Editor.php';
5 require_once 'Barrel/Page.php';
7 $page = new DiogenesAdmin
;
9 $bbarrel = $page->barrel
;
11 if (!$bbarrel->hasFlag('plug')) {
15 $page->assign('post',$page->script_self());
17 $dir = isset($_REQUEST['plug_page']) ?
$_REQUEST['plug_page'] : 0;
21 $bpage = Diogenes_Barrel_Page
::fromDb($bbarrel, $dir);
22 $page->assign('greeting',__("Page plugins ") . " - " . ($bpage->props
['location'] ?
$bpage->props
['location'] : __("home")) );
23 $page->toolbar(__("Page"), $bpage->make_toolbar($page));
24 $wperms = $bpage->props
['wperms'];
26 $page->assign('greeting',__("Available plugins"));
31 $editor = new Diogenes_Plugin_Editor($page->alias
, $dir, $wperms);
33 $editor->readonly
= 1;
34 $editor->hide_params(1);
36 $editor->run($page,'page_content');