* @package ElggBookmarks
*/
-gatekeeper();
-action_gatekeeper();
//set some required variables
$title = strip_tags(get_input('title'));
$address = get_input('address');
*
*/
-gatekeeper();
-action_gatekeeper();
//set some required variables
$guid = get_input('guid');
$title = get_input('title');
*
**/
-// validate user is an admin
-admin_gatekeeper ();
-
// get parameters
$context = get_input ( 'context' );
$leftbar = str_replace ( '::0', '', get_input ( 'debugField1' ) );
*/
function defaultwidgets_init() {
// register create user event hook
- register_elgg_event_handler ( 'create', 'user', 'defaultwidgets_newusers' );
+ elgg_register_event_handler('create', 'user', 'defaultwidgets_newusers' );
// set the widget access to the default access on validation if this is not an admin-created user
if (!isadminloggedin()) {
elgg_register_plugin_hook_handler('permissions_check', 'object', 'defaultwidgets_can_edit');
elgg_register_plugin_hook_handler('container_permissions_check', 'user', 'defaultwidgets_can_edit_container');
-elgg_register_action("defaultwidgets/update", $CONFIG->pluginspath . "defaultwidgets/actions/update.php");
+elgg_register_action("defaultwidgets/update", $CONFIG->pluginspath . "defaultwidgets/actions/update.php", 'admin');
global $CONFIG;
- gatekeeper();
-
// Get variables
$title = get_input("title");
$desc = get_input("description");
// Load configuration
global $CONFIG;
- gatekeeper();
-
$logged_in_user = get_loggedin_user();
$user_guid = get_input('user_guid');
* @package ElggGroups
*/
- // Load configuration
global $CONFIG;
- admin_gatekeeper();
-
$group_guid = get_input('group_guid');
$action = get_input('action_type');
// Load configuration
global $CONFIG;
- gatekeeper();
-
$user_guid = get_input('user_guid', get_loggedin_userid());
$group_guid = get_input('group_guid');
// Load configuration
global $CONFIG;
- gatekeeper();
-
$user_guid = get_input('user_guid', get_loggedin_userid());
$group_guid = get_input('group_guid');
// Load configuration
global $CONFIG;
-gatekeeper();
-
$logged_in_user = get_loggedin_user();
$user_guid = get_input('user_guid');
// Load configuration
global $CONFIG;
- gatekeeper();
-
$user_guid = get_input('user_guid', get_loggedin_userid());
$group_guid = get_input('group_guid');
// Load configuration
global $CONFIG;
-gatekeeper();
-
$user_guid = get_input('user_guid', get_loggedin_userid());
$group_guid = get_input('group_guid');
// Load configuration
global $CONFIG;
- gatekeeper();
-
$user_guid = get_input('user_guid');
$group_guid = get_input('group_guid');
elgg_register_action("groups/addpost", $CONFIG->pluginspath . "groups/actions/forums/addpost.php");
elgg_register_action("groups/edittopic", $CONFIG->pluginspath . "groups/actions/forums/edittopic.php");
elgg_register_action("groups/deletepost", $CONFIG->pluginspath . "groups/actions/forums/deletepost.php");
- elgg_register_action("groups/featured", $CONFIG->pluginspath . "groups/actions/featured.php");
+ elgg_register_action("groups/featured", $CONFIG->pluginspath . "groups/actions/featured.php", 'admin');
elgg_register_action("groups/editpost", $CONFIG->pluginspath . "groups/actions/forums/editpost.php");
?>
* @package ElggMessages
*/
-// Need to be logged in to do this
-gatekeeper();
-
// grab details sent from the form
$message_id_array = get_input('message_id');
if (!is_array($message_id_array)) $message_id_array = array($message_id_array);
foreach($message_id_array as $message_id) {
// get the message object
- $message = get_entity($message_id);
-
+ $message = get_entity($message_id);
+
// Make sure we actually have permission to edit and that the object is of sub-type messages
if ($message && $message->getSubtype() == "messages") {
$success = false;
}
}
-
- }else{
-
- // display the error message
- $success = false;
+
+ }else{
+
+ // display the error message
+ $success = false;
}
system_message(elgg_echo("messages:markedread"));
}
// check to see if it is a sent message to be deleted
- if($type == 'sent'){
- forward("mod/messages/sent.php?offset={$offset}");
- }else{
- forward("mod/messages/?username=" . get_loggedin_user()->username . "&offset={$offset}");
- }
+ if($type == 'sent'){
+ forward("mod/messages/sent.php?offset={$offset}");
+ }else{
+ forward("mod/messages/?username=" . get_loggedin_user()->username . "&offset={$offset}");
+ }
} else {
register_error(elgg_echo("messages:notfound"));
forward(REFERER);
// Load configuration
global $CONFIG;
-gatekeeper();
elgg_set_context('pages');
//boolean to select correct add to river. It will be new or edit
* @package ElggPages
*/
-// Load configuration
global $CONFIG;
-gatekeeper();
-
// Get group fields
$message = get_input("pages_welcome");
$container_guid = get_input("owner_guid");
* @package ElggProfile
*/
-gatekeeper();
-
$profile_username = get_input('username');
$profile_owner = get_user_by_username($profile_username);
global $CONFIG;
-admin_gatekeeper();
-
$id = get_input('id');
$fieldlist = get_plugin_setting('user_defined_fields', 'profile');
*/
global $CONFIG;
-gatekeeper();
$profile_username = get_input('username');
$profile_owner = get_user_by_username($profile_username);
*/
global $CONFIG;
-admin_gatekeeper();
$label = sanitise_string(get_input('label'));
$type = sanitise_string(get_input('type'));
* @package ElggProfile
*/
-admin_gatekeeper();
-
$field = get_input('field');
$text = get_input('value');
* @package ElggProfile
*/
-gatekeeper();
-
$profile_username = get_input('username');
$profile_owner = get_user_by_username($profile_username);
* @package ElggProfile
*/
-admin_gatekeeper();
$ordering = get_input('fieldorder');
//if (!empty($ordering))
$result = set_plugin_setting('user_defined_fields',$ordering,'profile');
*/
global $CONFIG;
-admin_gatekeeper();
if ($fieldlist = get_plugin_setting('user_defined_fields', 'profile')) {
$fieldlistarray = explode(',', $fieldlist);
* @package ElggReportedContent
*/
-// Make sure we're logged in and are admin
-admin_gatekeeper();
-
// Get input data
$guid = (int) get_input('item');
* @package ElggReportedCOntent
*/
-// Make sure we're logged in and are admin
-admin_gatekeeper();
-
// Get input data
$guid = (int) get_input('item');
//register action
elgg_register_action('reportedcontent/add', "{$CONFIG->pluginspath}reportedcontent/actions/add.php");
- elgg_register_action('reportedcontent/delete', "{$CONFIG->pluginspath}reportedcontent/actions/delete.php");
- elgg_register_action('reportedcontent/archive', "{$CONFIG->pluginspath}reportedcontent/actions/archive.php");
+ elgg_register_action('reportedcontent/delete', "{$CONFIG->pluginspath}reportedcontent/actions/delete.php", 'admin');
+ elgg_register_action('reportedcontent/archive', "{$CONFIG->pluginspath}reportedcontent/actions/archive.php", 'admin');
}
// Initialise Reported Content
* @package ElggSiteMessage
**/
-// Make sure we're logged in and are admin (send us to the front page if not)
-admin_gatekeeper();
-
-// Get input data
$message = get_input('sitemessage');
//$access = 1; //it is for all logged in users
* @package ElggBlog
*/
-// Make sure we're logged in (send us to the front page if not)
-gatekeeper();
-
// Get input data
$guid = (int) get_input('message');