[Gnucash-changes] r13184 - htdocs/trunk/en - moving menu files to a
single location
Neil Williams
codehelp at cvs.gnucash.org
Thu Feb 9 18:03:53 EST 2006
Author: codehelp
Date: 2006-02-09 18:03:53 -0500 (Thu, 09 Feb 2006)
New Revision: 13184
Trac: http://svn.gnucash.org/trac/changeset/13184
Removed:
htdocs/trunk/en/menu/menu-main-developer.phtml
htdocs/trunk/en/menu/menu-main-documentation.phtml
htdocs/trunk/en/menu/menu-main-general.phtml
htdocs/trunk/en/menu/menu-main-other.phtml
htdocs/trunk/en/menu/menu-main-search.phtml
htdocs/trunk/en/menu/menu-main.phtml
htdocs/trunk/en/rss-feed.phtml
Log:
moving menu files to a single location
Deleted: htdocs/trunk/en/menu/menu-main-developer.phtml
===================================================================
--- htdocs/trunk/en/menu/menu-main-developer.phtml 2006-02-09 23:03:24 UTC (rev 13183)
+++ htdocs/trunk/en/menu/menu-main-developer.phtml 2006-02-09 23:03:53 UTC (rev 13184)
@@ -1,31 +0,0 @@
-<!-- MENU:START -->
-<?php
-$self = $_SERVER["HTTP_HOST"];
-if(ereg("lists.gnucash.org",$self)) {
- $home = "http://www.gnucash.org";
-}
-else {
-$home = "";
-}
-
-echo "<div id=\"news\">";
-echo "<div id=\"othernews\">";
-include($toppath."/www/externals/en/menu-general.phtml");
-echo "</div>\n<div class=\"othernews\">\n";
-include($toppath."/www/externals/en/menu-documentation.phtml");
-echo "</div>\n<div class=\"othernews\">\n";
-include($toppath."/www/externals/en/menu-help.phtml");
-echo "</div>\n<div class=\"othernews\">\n";
-include($toppath."/www/externals/en/menu-downloads.phtml");
-# highlighted menu entry:
-echo "</div>\n<div class=\"highlight\">\n";
-include($toppath."/www/externals/en/menu-developer.phtml");
-echo "</div>\n<div class=\"othernews\">\n";
-include($toppath."/www/externals/en/menu-other.phtml");
-echo "</div>\n<div class=\"othernews\">\n";
-include($toppath."/www/externals/en/menu-search.phtml");
-echo "</div>\n";
-echo "</div>\n";
-?>
-
-<!-- MENU:END -->
Deleted: htdocs/trunk/en/menu/menu-main-documentation.phtml
===================================================================
--- htdocs/trunk/en/menu/menu-main-documentation.phtml 2006-02-09 23:03:24 UTC (rev 13183)
+++ htdocs/trunk/en/menu/menu-main-documentation.phtml 2006-02-09 23:03:53 UTC (rev 13184)
@@ -1,31 +0,0 @@
-<!-- MENU:START -->
-
-<?php
-$self = $_SERVER["HTTP_HOST"];
-if(ereg("lists.gnucash.org",$self)) {
- $home = "http://www.gnucash.org";
-}
-else {
-$home = "";
-}
-
-echo "<div id=\"news\"><div class=\"othernews\">";
-include($toppath."/externals/en/menu-general.phtml");
-# highlighted menu entry:
-echo "</div>\n<div class=\"highlight\">\n";
-include($toppath."/externals/en/menu-documentation.phtml");
-echo "</div>\n<div class=\"othernews\">\n";
-include($toppath."/externals/en/menu-help.phtml");
-echo "</div>\n<div class=\"othernews\">\n";
-include($toppath."/externals/en/menu-downloads.phtml");
-echo "</div>\n<div class=\"othernews\">\n";
-include($toppath."/externals/en/menu-developer.phtml");
-echo "</div>\n<div class=\"othernews\">\n";
-include($toppath."/externals/en/menu-other.phtml");
-echo "</div>\n<div class=\"othernews\">\n";
-include($toppath."/externals/en/menu-search.phtml");
-echo "</div>\n";
-echo "</div>\n";
-?>
-
-<!-- MENU:END -->
Deleted: htdocs/trunk/en/menu/menu-main-general.phtml
===================================================================
--- htdocs/trunk/en/menu/menu-main-general.phtml 2006-02-09 23:03:24 UTC (rev 13183)
+++ htdocs/trunk/en/menu/menu-main-general.phtml 2006-02-09 23:03:53 UTC (rev 13184)
@@ -1,31 +0,0 @@
-<!-- MENU:START -->
-<?php
-$self = $_SERVER["HTTP_HOST"];
-if(ereg("lists.gnucash.org",$self)) {
- $home = "http://www.gnucash.org";
-}
-else {
-$home = "";
-}
-
-echo "<div id=\"news\">";
-# highlighted menu entry:
-echo "<div class=\"highlight\">";
-include($toppath."/www/externals/en/menu-general.phtml");
-echo "</div>\n\n<div class=\"othernews\">\n";
-include($toppath."/www/externals/en/menu-documentation.phtml");
-echo "</div>\n\n<div class=\"othernews\">\n";
-include($toppath."/www/externals/en/menu-help.phtml");
-echo "</div>\n\n<div class=\"othernews\">\n";
-include($toppath."/www/externals/en/menu-downloads.phtml");
-echo "</div>\n\n<div class=\"othernews\">\n";
-include($toppath."/www/externals/en/menu-developer.phtml");
-echo "</div>\n\n<div class=\"othernews\">\n";
-include($toppath."/www/externals/en/menu-other.phtml");
-echo "</div>\n\n<div class=\"othernews\">\n";
-include($toppath."/www/externals/en/menu-search.phtml");
-echo "</div>\n";
-echo "</div>\n";
-?>
-
-<!-- MENU:END -->
Deleted: htdocs/trunk/en/menu/menu-main-other.phtml
===================================================================
--- htdocs/trunk/en/menu/menu-main-other.phtml 2006-02-09 23:03:24 UTC (rev 13183)
+++ htdocs/trunk/en/menu/menu-main-other.phtml 2006-02-09 23:03:53 UTC (rev 13184)
@@ -1,30 +0,0 @@
-<!-- MENU:START -->
-<?php
-$self = $_SERVER["HTTP_HOST"];
-if(ereg("lists.gnucash.org",$self)) {
- $home = "http://www.gnucash.org";
-}
-else {
-$home = "";
-}
-
-echo "<div id=\"news\"><div class=\"othernews\">";
-include($toppath."/www/externals/en/menu-general.phtml");
-echo "</div>\n<div class=\"othernews\">\n";
-include($toppath."/www/externals/en/menu-documentation.phtml");
-echo "</div>\n<div class=\"othernews\">\n";
-include($toppath."/www/externals/en/menu-help.phtml");
-echo "</div>\n<div class=\"othernews\">\n";
-include($toppath."/www/externals/en/menu-downloads.phtml");
-echo "</div>\n<div class=\"othernews\">\n";
-include($toppath."/www/externals/en/menu-developer.phtml");
-# highlighted menu entry:
-echo "</div>\n<div class=\"highlight\">\n";
-include($toppath."/www/externals/en/menu-other.phtml");
-echo "</div>\n<div class=\"othernews\">\n";
-include($toppath."/www/externals/en/menu-search.phtml");
-echo "</div>\n";
-echo "</div>\n";
-?>
-
-<!-- MENU:END -->
Deleted: htdocs/trunk/en/menu/menu-main-search.phtml
===================================================================
--- htdocs/trunk/en/menu/menu-main-search.phtml 2006-02-09 23:03:24 UTC (rev 13183)
+++ htdocs/trunk/en/menu/menu-main-search.phtml 2006-02-09 23:03:53 UTC (rev 13184)
@@ -1,30 +0,0 @@
-<!-- MENU:START -->
-<?php
-$self = $_SERVER["HTTP_HOST"];
-if(ereg("lists.gnucash.org",$self)) {
- $home = "http://www.gnucash.org";
-}
-else {
-$home = "";
-}
-
-echo "<div id=\"news\"><div class=\"othernews\">";
-include($toppath."/www/externals/en/menu-general.phtml");
-echo "</div>\n<div class=\"othernews\">\n";
-include($toppath."/www/externals/en/menu-documentation.phtml");
-echo "</div>\n<div class=\"othernews\">\n";
-include($toppath."/www/externals/en/menu-help.phtml");
-echo "</div>\n<div class=\"othernews\">\n";
-include($toppath."/www/externals/en/menu-downloads.phtml");
-echo "</div>\n<div class=\"othernews\">\n";
-include($toppath."/www/externals/en/menu-developer.phtml");
-echo "</div>\n<div class=\"othernews\">\n";
-include($toppath."/www/externals/en/menu-other.phtml");
-# highlighted menu entry:
-echo "</div>\n<div class=\"highlight\">\n";
-include($toppath."/www/externals/en/menu-search.phtml");
-echo "</div>\n";
-echo "</div>\n";
-?>
-
-<!-- MENU:END -->
Deleted: htdocs/trunk/en/menu/menu-main.phtml
===================================================================
--- htdocs/trunk/en/menu/menu-main.phtml 2006-02-09 23:03:24 UTC (rev 13183)
+++ htdocs/trunk/en/menu/menu-main.phtml 2006-02-09 23:03:53 UTC (rev 13184)
@@ -1,30 +0,0 @@
-<!-- MENU:START -->
-<?php
-$self = $_SERVER["HTTP_HOST"];
-if(ereg("lists.gnucash.org",$self)) {
- $home = "http://www.gnucash.org";
-}
-else {
-$home = "";
-}
-
-echo "<div id=\"news\">\n";
-# highlighted menu entry:
-echo "<div class=\"highlight\">";
-include($toppath."/www/externals/en/menu-general.phtml");
-echo "</div>\n<div class=\"othernews\">\n";
-include($toppath."/www/externals/en/menu-documentation.phtml");
-echo "</div>\n<div class=\"othernews\">\n";
-include($toppath."/www/externals/en/menu-help.phtml");
-echo "</div>\n<div class=\"othernews\">\n";
-include($toppath."/www/externals/en/menu-downloads.phtml");
-echo "</div>\n<div class=\"othernews\">\n";
-include($toppath."/www/externals/en/menu-developer.phtml");
-echo "</div>\n<div class=\"othernews\">\n";
-include($toppath."/www/externals/en/menu-other.phtml");
-echo "</div>\n<div class=\"othernews\">\n";
-include($toppath."/www/externals/en/menu-search.phtml");
-echo "</div>\n";
-echo "</div>\n";
-?>
-<!-- MENU:END -->
Deleted: htdocs/trunk/en/rss-feed.phtml
===================================================================
--- htdocs/trunk/en/rss-feed.phtml 2006-02-09 23:03:24 UTC (rev 13183)
+++ htdocs/trunk/en/rss-feed.phtml 2006-02-09 23:03:53 UTC (rev 13184)
@@ -1,148 +0,0 @@
-<?php include("../emulate_globals_on.php"); ?>
-<?php
- // This file reads the news items in the /news directory and turns
- // them into Dave Winer RSS-2.0 specification news items.
- //
- // The only tricky bits are that you can't embed html in the RSS feed,
- // and our news posts have html in them. So I've gotta strip that out.
- // the other tricky part is that I strip out blank lines in the feed.
- // so that people who write stories with lots of blank lines at the
- // begining aren't screwd.
- //
- // tested, works with straw-0.22
- // tested, does not work with evolution-1.4 (because it wants RSS-1.0 maybe ??)
- //
- // Created by Linas Vepstas 2003, 2004
-
- header("Content-Type: text/rss; charset=iso-8859-1");
-
- echo ("<?xml version=\"1.0\" ?>\n");
-?>
-
- <rss version="2.0" encoding="iso-8859-1">
- <channel>
- <!-- <channel rdf:about="http://www.xml.com/xml/news.rss"> -->
- <title>GnuCash News</title>
- <link>http://www.gnucash.org/</link>
- <description>News and Announces concerning the GnuCash Project</description>
- <language>en-us</language>
- <ttl>360</ttl>
- <generator>Why, exactly, do you think this field is interesting? version 99</generator>
- <copyright>Copyright 2001-2004, The GnuCash Project</copyright>
- <image>
- <url>http://www.gnucash.org/favicon.png</url>
- <title>GnuCash News</title>
- <link>http://www.gnucash.org/</link>
- </image>
-
-<?php
- function whack ($line, $item) {
- $n = strlen ($item);
- $s = strstr ($line, $item);
- while ($s) {
- $pos = strpos ($line, $item);
- for ($i=0; $i<$n; $i++) {
- $line[$pos+$i] = ' ';
- }
- $s = strstr ($line, $item);
- }
- return $line;
- }
-
- $newspath = "$topdir/news/";
-
- // Declare array to hold filenames
- $newsfile = array();
-
- // Create handle to search directory $newspath for files
- $hd = dir($newspath);
-
- // Get all files and store them in array
- while( $filename = $hd->read() ) {
- $s=strtolower($filename);
- if (strstr($s, ".txt")) {
- // Determine last modification date
- $lastchanged=filemtime($newspath.$filename);
- $newsfile[$filename] = $lastchanged;
- }
- }
-
- // Sort files in descending order
- arsort($newsfile);
-
- // Output files to browser
- for(reset($newsfile); $key = key($newsfile); next($newsfile))
- {
- $fa = file($newspath.$key);
-
- // echo("<item rdf:about=\"http://xml.com/pub/2000/08/09/xslt/xslt.html\">"\n);
- echo("<item>\n");
- echo("<title>");
-
- // Straw won't take <b> tags in the title, and they get into
- // the news by default. We've got to eliminate them.
- // do this with ultra-low-brow hack: over-write with blanks
- $line = $fa[0];
- $line = whack ($line, "<b>");
- $line = whack ($line, "</b>");
-
- print $line;
-
- // print " - (". date( "Y-m-d ", $newsfile[$key]) ;
- // print date( "H:i:s",$newsfile[$key]). ")";
-
- echo("</title>\n");
- echo("<description>");
-
- // count number of lines, limit to first 5 ...
- // which means we have to find and skip blank lines
- $n=count($fa);
-
- $i=1;
- $nonblank=0;
- while (($i<$n) && ($nonblank < 5)) {
- // dammit agreagators are real picky We have to strip out all the html
- $line = $fa[$i];
- $line = whack ($line, "<p>");
- $line = whack ($line, "<b>");
- $line = whack ($line, "</b>");
- $line = whack ($line, "<i>");
- $line = whack ($line, "</i>");
- $line = whack ($line, "<br>");
- $line = whack ($line, "<tt>");
- $line = whack ($line, "</tt>");
- $line = whack ($line, "<big>");
- $line = whack ($line, "</big>");
- $line = whack ($line, "</a>");
-
- $ref = strpos ($line, "<a href");
- if ($ref !== false) {
- $start = substr ($line, 0, $ref);
- print $start;
- $ref = strpos ($line, ">");
- $end = substr ($line, $ref+1, strlen ($line));
- print $end;
- $i ++;
- continue;
- }
- $non = strspn ($line, " \n");
- if ($non != strlen($line)) {
- print $line;
- $nonblank ++;
- }
- $i ++;
- }
- echo("</description>\n");
- echo("<link>");
- echo("http://www.gnucash.org/#");
- print $key;
- echo("</link>\n");
- // print "<pubDate>". date( "Y m d ", $newsfile[$key]). date( "H:i:s",$newsfile[$key]). " CST</pubDate>\n";
- print "<pubDate>". date( "r", $newsfile[$key]). "</pubDate>\n";
- echo("</item>\n");
- }
-
- $hd->close();
- ?>
- </channel>
-</rss>
More information about the gnucash-changes
mailing list