tiki-plugins.php 1.24 KB
Newer Older
1
<?php
changi67's avatar
changi67 committed
2 3
// (c) Copyright 2002-2009 by authors of the Tiki Wiki/CMS/Groupware Project
// 
4 5
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
changi67's avatar
changi67 committed
6
// $Id: tiki-index.php 17851 2009-04-08 13:25:53Z sylvieg $
7 8 9
require_once 'tiki-setup.php';
$access->check_feature('wiki_validate_plugin');
$access->check_permission('tiki_p_plugin_approve');
10 11 12
$smarty->assign('headtitle', tra('Plugin Approval'));

if (($_POST['submit_mult'] == 'clear') & is_array($_POST['clear'])) {
sylvieg's avatar
sylvieg committed
13 14 15
	foreach($_POST['clear'] as $fp) {
		$tikilib->plugin_clear_fingerprint($fp);
	}
16
}
17

18 19 20 21 22 23
if (($_POST['submit_mult'] == 'approve') & is_array($_POST['clear'])) {
	foreach($_POST['clear'] as $fp) {
		$tikilib->approve_selected_pending_plugings($fp);
	}
}

24 25 26 27 28 29 30 31 32 33 34 35
if (isset($_REQUEST['approveone'])) {
	$tikilib->approve_selected_pending_plugings($_REQUEST['approveone']);
}

if (isset($_REQUEST['clearone'])) {
	$tikilib->plugin_clear_fingerprint($_REQUEST['clearone']);
}





36 37 38
if (isset($_POST['approveall'])) {
	$tikilib->approve_all_pending_plugins();
}
39

changi67's avatar
changi67 committed
40 41
$smarty->assign('plugin_list', $tikilib->list_plugins_pending_approval());
$smarty->assign('mid', 'tiki-plugins.tpl');
42
$smarty->display("tiki.tpl");