removing warning messages and not working rss
authorniekt0 <niekt0@kyberia.cz>
Tue, 27 Sep 2011 22:59:14 +0000 (00:59 +0200)
committerniekt0 <niekt0@kyberia.cz>
Tue, 27 Sep 2011 22:59:14 +0000 (00:59 +0200)
trash/delete_rss.php [moved from cron/delete_rss.php with 99% similarity]
trash/rssparse_cron.php [moved from cron/rssparse.php with 100% similarity]
wwwroot/backend/mysql/permissions.inc
wwwroot/inc/eventz.inc
wwwroot/inc/eventz/display.inc
wwwroot/inc/smarty/resource.kyberia.php
wwwroot/nodes.php

similarity index 99%
rename from cron/delete_rss.php
rename to trash/delete_rss.php
index 3c7cc0d7faeb8a3f8bca12b44334c9abe0842962..2777f002c9385b8d60548fb28a8fff0ed870739b 100755 (executable)
@@ -19,8 +19,4 @@ while ($set->next()) {
        }
 }
 
-
-
-
-
 ?>
similarity index 100%
rename from cron/rssparse.php
rename to trash/rssparse_cron.php
index a66af2d1298633854c6cd2ea3a66d9948083b66a..ce17117e55bf5c3b584ca5a3658ab18218f518da 100644 (file)
@@ -22,8 +22,8 @@ public static function checkPerms($node) {
                $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;
index a47a4c65fda14b88f658d0a83f6a9283429e8797..d79ea2249515d97a186dfa0185846dc272a3596f 100644 (file)
@@ -14,7 +14,7 @@ if($event=='delete' || (!empty($_POST['event']) && $_POST['event']=='delete')) {
 }
 
 //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();
 }
@@ -24,7 +24,7 @@ elseif (is_file(INCLUDE_DIR."eventz/$event.inc")) {
        $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')
index 934e1915f6ee8f399cdd4b659bc49f2a0fe385d7..8518cdf7f242db6c7e260a9f894849a7710c10c7 100644 (file)
@@ -6,7 +6,7 @@ function display() {
        $content='';
 
        $node_id=$node['node_id'];
-       $user_id=$_SESSION['user_id'];
+       $user_id=(empty($_SESSION['user_id'])) ? "" : $_SESSION['user_id'];
 
 if ($permissions['r']) {
 
index 895bb94f141cca8d8b0cfc89e8a0e2dc26a0eb5e..bf28a33be3f153feacd2e2949ac0df59dddc2708 100644 (file)
@@ -24,7 +24,7 @@ function db_get_template ($tpl_name, &$tpl_source, &$smarty_obj) {
                                */
     // 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;
index 9bafe5163028aae308f084fc0605079600b02e7a..063f4e66110a74da4c5e7c9152c0dac1813555b0 100644 (file)
@@ -146,12 +146,12 @@ if (isset($_SESSION['cube_vector']) && ($_SESSION['cube_vector'])) {
        }
 }
 
-@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);
 }
 
This page took 0.200337 seconds and 4 git commands to generate.