.
/**
* @package MantisBT
* @copyright Copyright (C) 2002 - 2014 MantisBT Team - mantisbt-dev@lists.sourceforge.net
* @link http://www.mantisbt.org
*/
/**
* MantisBT Core API's
*/
require_once( 'core.php' );
auth_reauthenticate();
access_ensure_global_level( config_get( 'manage_plugin_threshold' ) );
html_page_top( lang_get( 'manage_plugin_link' ) );
print_manage_menu( 'manage_plugin_page.php' );
function plugin_sort( $p1, $p2 ) {
return strcasecmp( $p1->name, $p2->name );
}
$t_plugins = plugin_find_all();
uasort( $t_plugins, 'plugin_sort' );
global $g_plugin_cache;
$t_plugins_installed = array();
$t_plugins_available = array();
foreach( $t_plugins as $t_basename => $t_plugin ) {
if ( isset( $g_plugin_cache[$t_basename] ) ) {
$t_plugins_installed[$t_basename] = $t_plugin;
} else {
$t_plugins_available[$t_basename] = $t_plugin;
}
}
if ( 0 < count( $t_plugins_installed ) ) {
?>
',$t_name,' | '; echo '',$t_description,$t_author,$t_url,' | '; echo '',$t_depends,' | '; echo ''; if ( $t_ready ) { print_bracket_link( 'manage_plugin_install.php?name=' . $t_basename . form_security_param( 'manage_plugin_install' ), lang_get( 'plugin_install' ) ); } echo ' |