$set->next();
$node_vector=$set->getString('node_vector');
}
-
- $user_id = $_SESSION['user_id'];
+
+ $user_id=(empty($_SESSION['user_id'])) ? "" : $_SESSION['user_id'];
$perms['r'] = 0;
$perms['w'] = 0;
}
//do not make a permission check if an event was executed before
-if ($_SESSION['eventz'][$event]) {
+if (!empty($_SESSION['eventz'][$event]) && ($_SESSION['eventz'][$event])) {
include_once(INCLUDE_DIR."eventz/$event.inc");
$status=$event();
}
$event_node=nodes::getNodeById($event_id,$_SESSION['user_id']);
if (
($event_node['node_system_access']=='public')
- || ($event_node['node_creator']==$_SESSION['user_id'])
+ || (!empty($_SESSION['user_id']) && ($event_node['node_creator']==$_SESSION['user_id']))
|| ($event_node['node_permission']=='op')
|| ($event_node['node_permission']=='execute')
|| ($event_node['node_permission']=='master')
$content='';
$node_id=$node['node_id'];
- $user_id=$_SESSION['user_id'];
+ $user_id=(empty($_SESSION['user_id'])) ? "" : $_SESSION['user_id'];
if ($permissions['r']) {
*/
// populating $tpl_source with actual template contents
//$tpl_source = stripslashes($set->getString('node_content'));
- $tpl_source = nodes::getNodeById($add_template_id,$_SESSION['user_id']);
+ $tpl_source = nodes::getNodeById($add_template_id,empty($_SESSION['user_id']) ? "" : $_SESSION['user_id']);
$tpl_source = $tpl_source['node_content'];
// return true on success, false to generate failure notification
return true;
}
}
-@include_once(INCLUDE_DIR.'mail_rss.inc'); //haluz...
+#@include_once(INCLUDE_DIR.'mail_rss.inc'); //haluz...
//checking permissions
include_once(BACKEND_DIR.'/'.DB_TYPE.'/permissions.inc');
$permissions=permissions::checkPerms($node);
-if ($_SESSION['debugging']) {
+if (!empty($_SESSION['debugging']) && $_SESSION['debugging']) {
print_r($permissions);
}