Protected cron scripts from being accessed through webserver
[mirrors/Kyberia-bloodline.git] / wwwroot / nodes.php
index eec9870242a9ec3f525aeb224b991c6d4af1c854..3757485ad36f744e148939a62d4afcbfc4fd65d3 100644 (file)
@@ -6,6 +6,7 @@ if (!empty($_POST['FORCE_OB']) && $_POST['FORCE_OB'] == 'true') ob_start();
 //echo "je to uz uplne v pici. vsetky data su stratene, prajem pekny den :)";
 //exit;
 error_reporting(1);
+$_SESSION['debugging']=1;
 //exit;
 
 //starting timer for benchmarking purposes
@@ -62,11 +63,11 @@ require(SMARTY_DIR.'Smarty.class.php');
 $smarty = new Smarty;
 
 //$smarty->php_handling = SMARTY_PHP_REMOVE; //XXX
-$smarty->template_dir = TEMPLATE_DIR.TEMPLATE_SET;
+$smarty->template_dir = TEMPLATE_DIR;
 //echo TEMPLATE_DIR.TEMPLATE_SET;
 //echo $smarty->template_dir;
-$smarty->compile_dir = SYSTEM_ROOT."data/templates_c/".TEMPLATE_SET;
-$smarty->config_dir = SMARTY_DIR.'configs/';
+$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;
@@ -162,7 +163,7 @@ if ($template_id=='rss')
           $rss =& new UniversalFeedCreator();
           $rss->title = "Kyberia mail";
           $rss->description = "";
-          $rss->link = "https://kyberia.sk/id/24";
+          $rss->link = "https://". SYSTEM_URL . "/id/24";
 
           $query = "select date_format(mail.mail_timestamp,\"%e.%c. %k:%i:%s\") as cas,
    userfrom.user_action as locationfrom_action,
@@ -182,7 +183,7 @@ if ($template_id=='rss')
                           continue;
                   $item =& new FeedItem();
                   $item->title = $m['mail_from_name'];
-                  $item->link = "https://kyberia.sk/id/24";
+                  $item->link = "https://".SYSTEM_URL."/id/24";
                   $item->description = $m['mail_text'];
                   $rss->addItem($item);
           }
@@ -194,7 +195,7 @@ if ($template_id=='rss')
 
                $rss =& new UniversalFeedCreator();
                $rss->title = "Kyberia bookmarks";
-               $rss->link = "http://kyberia.sk/id/19";
+               $rss->link = "http://".SYSTEM_URL."/id/19";
 
                require_once(SMARTY_PLUGIN_DIR.'/function.get_bookmarks.php');
                smarty_function_get_bookmarks(array(), $smarty);
@@ -206,7 +207,7 @@ if ($template_id=='rss')
                                {
                                        $item =& new FeedItem();
                                        $item->title = $_b['node_name'];
-                                       $item->link = "http://kyberia.sk/id/".$_b['node_id']."/rss";
+                                       $item->link = "http://".SYSTEM_URL."/id/".$_b['node_id']."/rss";
                                        $rss->addItem($item);
                                }
                }
@@ -219,7 +220,7 @@ if ($template_id=='rss')
                $rss =& new UniversalFeedCreator();
                $rss->title = $node['node_name'];
                $rss->description = "";
-               $rss->link = "http://kyberia.sk/id/".$node['node_id'];
+               $rss->link = "http://".SYSTEM_URL."/id/".$node['node_id'];
 
                // K list
                if ($_GET['node_id']=='15')
@@ -240,7 +241,7 @@ if ($template_id=='rss')
                {
                        $item =& new FeedItem();
                        $item->title = $_item['node_name'];
-                       $item->link = "http://kyberia.sk/id/".$_item['node_id'];
+                       $item->link = "http://".SYSTEM_URL."/id/".$_item['node_id'];
                        $item->description = $_item['node_content'];
                        $rss->addItem($item);
                }
This page took 0.128962 seconds and 4 git commands to generate.