$nvDept = \nvoy\site\Dept::connect($nvBoot, $nvDb, $nvUser); $nvGroup = \nvoy\site\Group::connect($nvDb, $nvBoot); $nvCms = $rs::connect($nvBoot, $nvDb, $nvUser, $nvGroup, $nvDept); if ($nvBoot->fetch_entry("breadcrumb", 1) == "ajax" || $nvBoot->fetch_entry("breadcrumb", 1) == "debug" && ($nvBoot->fetch_entry("breadcrumb", 2) == "xcache" || $nvBoot->fetch_entry("breadcrumb", 2) == "info" || $nvBoot->fetch_entry("breadcrumb", 2) == "database")) { $rs = $nvBoot->test_include("template", $nvVar->fetch_entry("ajax")[0]); } else { $nvBoot->compress("css", $nvVar->fetch_entry("cssprivate"), "private"); $nvBoot->compress("js", $nvVar->fetch_entry("jsprivate"), "private"); $rs = $nvBoot->test_include("template", $nvVar->fetch_entry("template")[0]); } if ($rs) { if ($nvBoot->fetch_entry("breadcrumb", 1) != "ajax" && $nvBoot->fetch_entry("breadcrumb", 1) != "debug") { $nvBoot->delete_cache(); $nvBoot->set_entry("cached", false); } $nvType = \nvoy\site\Type::connect($nvDb, $nvBoot, $nvVar->fetch_entry("front")[0]); $nvField = \nvoy\site\Field::connect($nvDb, $nvGroup, $nvBoot); $nvPage = \nvoy\site\Page::connect($nvDb, $nvVar->fetch_entry("front")[0], $nvField, $nvBoot); $nvBlock = \nvoy\site\Block::connect($nvDb, $nvBoot, $nvPage, false); $nvHtml = \nvoy\site\Html5::connect($nvBoot, $nvVar, false); ob_start(); include $rs; $rs = ob_get_clean(); $rs = preg_replace("/\\s+/", " ", $rs); $rs = str_replace(array("[format:newline]", "[format:tab]"), array("\n", "\t"), $rs); ob_start(); $nvBoot->header(array("OK" => true)); echo $rs; ob_end_flush(); } die;
- RSS Feed</title> <description><?php echo self::$var->fetch_entry("company")[0]; ?> - news</description> <link>http://<?php echo self::$var->fetch_entry('domain'); ?> /settings/resources/rss/rss.xml</link> <atom:link href='http://<?php echo self::$boot->fetch_entry('domain'); ?> /settings/resources/rss/rss.xml' rel='self' type='application/rss+xml' /> <?php /* grab the type class*/ $type = \nvoy\site\Type::connect(self::$db, self::$boot, self::$var->fetch_entry("front")[0]); /* set a temporary value to store the page types with rss feeds enabled */ $r = false; /* cycle through the type array */ foreach ($type->fetch_array() as $t) { /* if this page type is to be included in the rss feed and the public are allowed to view this page type, add to $r array */ if ($t["rss"] == 1 && $t["view"] == "u") { /* add the current page type */ $r[] = $t["id"]; } } /* do we have an array of page types with rss enabled */ if (is_array($r)) { /* grab any pages that have feeds and order by creation date */ self::$db->clear(array("ALL")); self::$db->set_order(array("`page`.`date`" => "DESC"));