Elgg  Version 1.11
statistics.php
Go to the documentation of this file.
1 <?php
9 // Only logged in users
11 
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 }
17 
18 $title = elgg_echo("usersettings:statistics");
19 
20 $content = elgg_view("core/settings/statistics");
21 
22 $params = array(
23  'content' => $content,
24  'title' => $title,
25 );
26 $body = elgg_view_layout('one_sidebar', $params);
27 
register_error($error)
Display an error on next page load.
Definition: elgglib.php:455
forward($location="", $reason='system')
Forward to $location.
Definition: elgglib.php:80
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
elgg_gatekeeper()
Used at the top of a page to mark it as logged in users only.
Definition: pagehandler.php:58
elgg_get_page_owner_entity()
Gets the owner entity for the current page.
Definition: pageowner.php:53
if((!elgg_get_page_owner_entity())||(!elgg_get_page_owner_entity() ->canEdit())) $title
Definition: statistics.php:18
$body
Definition: statistics.php:26
$content
Definition: statistics.php:20
$params
Definition: statistics.php:22
elgg_view_layout($layout_name, $vars=array())
Displays a layout with optional parameters.
Definition: views.php:622
elgg_view_page($title, $body, $page_shell='default', $vars=array())
Assembles and outputs a full page.
Definition: views.php:437
elgg_view($view, $vars=array(), $bypass=false, $ignored=false, $viewtype='')
Return a parsed view.
Definition: views.php:354