cleaning warnings
[mirrors/Kyberia-bloodline.git] / wwwroot / nodes.php
index 5b9a9a3b2126639fa67a60b7b1bfa4781bdf17cd..7bb46aec4bba225eae8a025f10e6f1acc8fd45ec 100644 (file)
@@ -95,6 +95,7 @@ if(isset($_SESSION['debugging']) && $_SESSION['debugging']) {
     echo '<b>SESSION VARIABLES::</b><br/>';
     print_r($_SESSION);
 } else {
+       $_SESSION['debugging']=false;
        set_error_handler('logger::error_handler');
 }
 
@@ -118,7 +119,7 @@ $smarty->compile_dir = SYSTEM_DATA.'templates_c/';
 $smarty->config_dir = SMARTY_DIR.'configs/'; //XXX neexistuje
 $smarty->cache_dir = SMARTY_DIR.'cache/';
 $smarty->plugins_dir = SMARTY_PLUGIN_DIR ;
-if ($_SESSION['debugging']) $smarty->debugging=true;
+if (isset($_SESSION['debugging']) && $_SESSION['debugging']) $smarty->debugging=true;
 
 // initializing variables
 // preg_replace prevents LFI
@@ -126,7 +127,7 @@ if (empty($_POST['event'])) $event='display';
 else $event= preg_replace( "![^a-zA-Z0-9_]+!", "", $_POST['event']);
 
 
-if ($_SESSION['debugging']) {
+if (isset($_SESSION['debugging']) && $_SESSION['debugging']) {
        echo "<pre><b>NODE::";
        print_r($node);
        echo "</pre>";
@@ -145,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.104058 seconds and 4 git commands to generate.