Elgg  Version 1.9
Go to the documentation of this file.
1 <?php
9 // Only logged in users
12 // Make sure we don't open a security hole ...
13 if ((!elgg_get_page_owner_entity()) || (!elgg_get_page_owner_entity()->canEdit())) {
14  register_error(elgg_echo('noaccess'));
15  forward('/');
16 }
18 $title = elgg_echo("usersettings:plugins");
20 $content = elgg_view("core/settings/tools",
21  array('installed_plugins' => elgg_get_plugins()));
23 $params = array(
24  'content' => $content,
25  'title' => $title,
26 );
27 $body = elgg_view_layout('one_sidebar', $params);
elgg forward
Meant to mimic the php forward() function by simply redirecting the user to another page...
Definition: elgglib.js:419
Definition: tools.php:20
Definition: tools.php:23
Used at the top of a page to mark it as logged in users only.
Definition: pagehandler.php:58
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
Definition: tools.php:27
if((!elgg_get_page_owner_entity())||(!elgg_get_page_owner_entity() ->canEdit())) $title
Definition: tools.php:18
elgg echo
Translates a string.
Definition: languages.js:43
Gets the owner entity for the current page.
Definition: pageowner.php:53
elgg_view($view, $vars=array(), $bypass=false, $ignored=false, $viewtype= '')
Return a parsed view.
Definition: views.php:354
elgg_view_layout($layout_name, $vars=array())
Displays a layout with optional parameters.
Definition: views.php:617
elgg_get_plugins($status= 'active', $site_guid=null)
Returns an ordered list of plugins.
Definition: plugins.php:372
elgg register_error
Wrapper function for system_messages.
Definition: elgglib.js:383
elgg_view_page($title, $body, $page_shell= 'default', $vars=array())
Assembles and outputs a full page.
Definition: views.php:437