<commit_before><?php
// $Header: /cvsroot/tikiwiki/tiki/tiki-wiki_rss.php,v 1.23 2003-10-14 22:13:19 ohertel Exp $

// Copyright (c) 2002-2003, <NAME>, <NAME>, <NAME>, et. al.
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.

require_once ('tiki-setup.php');
require_once ('lib/tikilib.php');
include_once ('lib/wiki/histlib.php');

if ($rss_wiki != 'y') {
	die; // TODO: output of rss file with message: rss disabled
}

if ($tiki_p_view != 'y') {
	$smarty -> assign('msg', tra("Permission denied you cannot view this section"));
	$smarty -> display("styles/$style_base/error.tpl");
	die; // TODO: output of rss file with message: permission denied
}

$feed = "wiki";
$title = "Tiki RSS feed for the wiki pages"; // TODO: make configurable
$desc = "Last modifications to the Wiki."; // TODO: make configurable
$now = date("U");
$id = "pageName";
$titleId = "pageName";
$descId = "comment";
$dateId = "lastModif";
$readrepl = $tikiIndex."?page=";

require ("tiki-rss_readcache.php");

if ($output == "EMPTY") {
  $changes = $histlib -> get_last_changes(999, 0, $max_rss_wiki, $sort_mode = $dateId.'_desc');
  // FIX: get_last_changes does not return pages with german umlauts (they are left out)
  $output = "";
}

require ("tiki-rss.php");
<commit_msg>got wiki pages for last 999 days from db! fixed to last 14 days -> performance<commit_after><?php
// $Header: /cvsroot/tikiwiki/tiki/tiki-wiki_rss.php,v 1.24 2003-10-15 22:17:29 ohertel Exp $

// Copyright (c) 2002-2003, <NAME>, <NAME>, <NAME>, et. al.
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.

require_once ('tiki-setup.php');
require_once ('lib/tikilib.php');
include_once ('lib/wiki/histlib.php');

if ($rss_wiki != 'y') {
	die; // TODO: output of rss file with message: rss disabled
}

if ($tiki_p_view != 'y') {
	$smarty -> assign('msg', tra("Permission denied you cannot view this section"));
	$smarty -> display("styles/$style_base/error.tpl");
	die; // TODO: output of rss file with message: permission denied
}

$feed = "wiki";
$title = "Tiki RSS feed for the wiki pages"; // TODO: make configurable
$desc = "Last modifications to the Wiki."; // TODO: make configurable
$now = date("U");
$id = "pageName";
$titleId = "pageName";
$descId = "comment";
$dateId = "lastModif";
$readrepl = $tikiIndex."?page=";

require ("tiki-rss_readcache.php");

if ($output == "EMPTY") {
  $changes = $histlib -> get_last_changes(14, 0, $max_rss_wiki, $sort_mode = $dateId.'_desc');
  // FIX: get_last_changes does not return pages with german umlauts (they are left out)
  $output = "";
}

require ("tiki-rss.php");

{'fraction_non_alphanumeric': 0.16666666666666666, 'fraction_numerical': 0.02203269367448472, 'mean_word_length': 4.341555977229602, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 16, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '477634', 'n_tokens_mistral': 1026, 'n_tokens_neox': 968, 'n_words': 308}