$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
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>";
}
}
-@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);
}