[Gnucash-changes] r12938 - mail-search/trunk/mail-search - converting tips to PHP to use external menus

Neil Williams codehelp at cvs.gnucash.org
Sun Jan 22 05:56:48 EST 2006


Author: codehelp
Date: 2006-01-22 05:56:47 -0500 (Sun, 22 Jan 2006)
New Revision: 12938
Trac: http://svn.gnucash.org/trac/changeset/12938

Added:
   mail-search/trunk/mail-search/search-tips.php
Removed:
   mail-search/trunk/mail-search/links.html
   mail-search/trunk/mail-search/search-tips.shtml
Modified:
   mail-search/trunk/mail-search/search.php
Log:
converting tips to PHP to use external menus

Deleted: mail-search/trunk/mail-search/links.html
===================================================================
--- mail-search/trunk/mail-search/links.html	2006-01-22 10:55:54 UTC (rev 12937)
+++ mail-search/trunk/mail-search/links.html	2006-01-22 10:56:47 UTC (rev 12938)
@@ -1,120 +0,0 @@
-<!-- head is the logo and continent / language option bar -->
-<!-- the link content needs to be updateable from www.gnucash.org -->
-<div id="head">
-<img src="images/gnucash_logo1.png" alt="GnuCash Logo" id="gnclogo">
-<br/>
-<span id="language">
- Language:
-<b>English</b>
-<!-- <a class="nav" href="/fr-y-le-ny-old/">Fran&ccedil;ais</a> -->
-| <a class="nav" href="http://www.gnucash.org/fr/">Fran&ccedil;ais</a>
-| <a class="nav" href="http://www.hthoma.de/projekte/gnucash/index.html">Deutsch</a>
- (<a class="nav" href="http://www.gnucash.org/de/">mirror</a>)
-| <a class="nav" href="http://www.gnucash.org/nl/">Nederlands</a>
-| <a class="nav" href="http://www.gnucash.org/pt_PT/">Portugu&ecirc;s</a>
-</span>
-<span id="location">Continent:
- <!-- (<a class="nav" href="http://gnucash.planetmirror.com/">AU mirror</a>) -->
- (<a class="nav" href="http://www.gnucash.org/">US</a>)
- (<a class="nav" href="http://www.at.gnucash.org/">EU</a>)
- (<a class="nav" href="http://www.au.gnucash.org/">AU</a>)
-</span>
-</div>
-
-<div id="news">
-<!-- news contains highlighted general news and other news in a sidebar -->
-<!-- in the main site, this comes from SSI - this will be enabled later -->
-<div id="general">
-<span class="linktop">
-<img class="dot" src="images/webding.png" alt="marker"><b>General Information</b>
-</span>
-<ul>
-<li><a href="http://www.gnucash.org/en/index.phtml">Home / News </a></li>
-<li><a href="http://www.gnucash.org/en/features.phtml">Features</a></li>
-<li><a href="http://www.gnucash.org/en/screenshots.phtml">Screenshots</a></li>
-<li><a href="http://www.gnucash.org/en/donations.phtml">Donations</a></li>
-<li><a href="http://www.gnucash.org/en/contribute.phtml">How To Help</a></li>
-<li><a href="http://www.gnucash.org/en/required.phtml">Software Dependencies</a></li>
-</ul>
-</div>
-
-<div class="othernews">
-<span class="linktop"><img class="dot" src="images/webding.png" alt="marker">
-<b>Documentation</b></span>
-<ul>
-<li><a href="http://wiki.gnucash.org/wiki/GnuCash">Wiki</a></li>
-<li><a href="http://www.gnucash.org/docs/v1.8/C/gnucash-guide">Concepts Guide</a></li>
-<li><a href="http://www.gnucash.org/docs/v1.8/C/gnucash-help/help.html">Help Manual</a>
-<a href="http://www.gnucash.org/docs/v1.8/de_DE/gnucash-help/help.html">[de]</a></li>
-<li><a href="http://www.gnucash.org/en/sql.phtml">SQL HOWTO</a></li>
-<li><a href="http://www.gnucash.org/en/docs.phtml">more...</a></li>
-
-</ul>
-</div>
-
-<div class="othernews">
-<span class="linktop">
-<img class="dot" src="images/webding.png" alt="marker"><b>Help</b></span>
-<ul><li><a href="http://www.gnucash.org/en/lists.phtml">Mailing Lists</a>
-<ul><li><a href="https://lists.gnucash.org/search/">Search</a></li></ul></li>
-<li><a href="http://wiki.gnucash.org/wiki/Bugzilla">Bug Reports</a></li>
-<li><a href="http://www.gnucash.org/en/irc.phtml">IRC (Chat)</a></li>
-<li><a href="http://wiki.gnucash.org/wiki/FAQ">FAQ</a></li></ul>
-</div>
-
-<div class="othernews">
-<span class="linktop">
-<img class="dot" src="images/webding.png" alt="marker"><b>Downloads</b></span>
-<ul>
-<li><a href="http://www.gnucash.org/pub/">USA (master site)</a></li>
-<li><a href="http://ftp.at.gnucash.org/pub/gnucash/">Europe</a></li>
-<li><a href="http://sourceforge.net/project/showfiles.php?group_id=192">SourceForge</a></li>
-<li><a href="ftp://planetmirror.com/pub/gnucash/">Australia</a></li>
-</ul>
-</div>
-
-<div class="othernews">
-<span class="linktop">
-<img class="dot" src="images/webding.png" alt="marker"><b>Developer Information</b>
-</span>
-<ul><li><a href="http://www.gnucash.org/en/architecture.phtml">System Architecture</a></li>
-<li><a href="http://wiki.gnucash.org/wiki/Roadmap">The Road Ahead</a></li>
-<li><a href="http://linas.org/linux/gnucash/projects.html">Project Goals</a></li>
-<li><a href="http://svn.gnucash.org/docs/HEAD/index.html">Source Docs</a></li>
-<li><a href="http://svn.gnucash.org/trac/browser/">Browse Source Code</a></li>
-<li><a href="http://wiki.gnucash.org/wiki/Subversion">SVN Access</a></li>
-<li><a href="http://wiki.gnucash.org/wiki/Translation">Language Translations</a></li>
-</ul>
-</div>
-
-<div class="othernews">
-<span class="linktop">
-<img class="dot" src="images/webding.png" alt="marker"><b>Other Information</b>
-</span>
-<ul>
-<li><a href="http://www.gnucash.org/en/links.phtml">Related Financial Software</a></li>
-<li><a href="http://www.gnucash.org/en/articles.phtml">GnuCash in the News</a></li>
-<li><a href="http://www.gnucash.org/en/promote.phtml">GnuCash Banners!</a></li>
-<li><a href="http://www.gnucash.org/en/history.phtml">History &amp; Credits</a></li>
-<li><a href="http://www.gnucash.org/en/quiz-results.phtml">Survey Results</a></li>
-<li><a href="http://www.gnucash.org/en/sizing.phtml">Sizing</a></li>
-<li><a href="http://www.gnucash.org/en/rss-feed.phtml">
-<img src="images/rss.gif" alt="rss logo"></a></li>
-</ul>
-</div>
-
-<div class="othernews">
-<div class="linktop">
-<img class="dot" src="images/webding.png" alt="marker"><b>Search</b></div>
-<div>&nbsp;</div>
-<form action="http://www.gnucash.org/en/search.phtml" method="get" enctype="application/x-www-form-urlencoded"><div>
-<input type="text" name="words" size="15">
-<br>Sort method:
-<select name="sort">
-<option value="sort">Standard
-<option value="time">Time
-<option value="revtime">Time (reversed)
-</select></div>
-</form>
-</div>
-</div>

Copied: mail-search/trunk/mail-search/search-tips.php (from rev 12931, mail-search/trunk/mail-search/search-tips.shtml)
===================================================================
--- mail-search/trunk/mail-search/search-tips.shtml	2006-01-22 07:57:33 UTC (rev 12931)
+++ mail-search/trunk/mail-search/search-tips.php	2006-01-22 10:56:47 UTC (rev 12938)
@@ -0,0 +1,64 @@
+<?php 
+$title="Mailing List Archive Search"; 
+# search does not use GLOBALS.
+$fullname = $_SERVER["PHP_SELF"];
+$topdir= dirname($fullname)."/";
+$toppath= getcwd();
+unset($fullname);
+# the search script needs the list archives on the
+# same machine. The rest of the site can be mirrored
+# but the search page only operates properly on 
+# lists.gnucash.org
+$self = $_SERVER["HTTP_HOST"];
+if(ereg("lists.gnucash.org",$self)) {
+	$home = "http://www.gnucash.org";
+}
+else {
+$home = "";
+}
+include($toppath."/externals/en/header.phtml");
+include($toppath."/externals/en/menu-main-help.phtml");
+?>
+
+<div id="content">
+<h1>Tips on searching the GnuCash archives</h1>
+<p>Please be aware that there are a lot of files to search. To get only the 
+files you actually want, please follow the tips below. Messages listed in the 
+search results will be accompanied by a short abstract to help you find the most 
+relevant messages.</p>
+<ol>
+<li>Please enter a few words to make your search as specific as possible.</li>
+<li>Only select the archive most relevant to your enquiry. If you don't select 
+any archives to search, files in the <b>gnucash-user</b> archive will be searched.</li>
+<li>If you select a month or year beyond the start date of the archive, the script 
+will use the first available month.</li>
+<li>Select the number of previous months to include - the higher the number, the 
+more pages of results will be generated and the longer each search will take.</li>
+<li>Abstracts are created from the first 250 characters of an archived message 
+to help you when the subject line of the original message is too brief or not 
+apparently linked to the content.</li>
+<li>Use case-sensitive searches whenever you are looking for specific items of 
+hardware, distributions, companies, <abbr title="etcetera">etc.</abbr> and enter 
+details like the version number or specific type of problem to narrow the 
+search range.</li>
+<li>Select the Boolean value OR to search for any of the search terms entered. 
+(The default search will only list files that match ALL search terms.)</li>
+<li><p>The search script will use default settings whenever possible. If you 
+want to link to a search result page, you can omit any field that is already 
+set to the respective default:</p>
+<ul><li>archive - default : gnucash-users</li>
+<li>month - default : current</li>
+<li>year - default : current</li>
+<li>span - default : 2 months</li>
+<li>abstract - default : empty</li>
+<li>boolean - default : AND</li>
+<li>case - default : insensitive</li>
+</ul>
+<p>This can shorten a link from:</p>
+<code>https://lists.gnucash.org/search/search.php?terms=test&amp;archive=gnucash-user
+&amp;month=5&amp;year=2004&amp;span=1&amp;abstract=on&amp;boolean=AND&amp;case=insensitive</code>
+<p> to a much easier:</p>
+<code>https://lists.gnucash.org/search/search.php?terms=test</code></li></ol>
+<p><a href="search.php">Back to search</a> </p>
+</div>
+<?php include($toppath."/externals/en/footer.phtml"); ?>

Deleted: mail-search/trunk/mail-search/search-tips.shtml
===================================================================
--- mail-search/trunk/mail-search/search-tips.shtml	2006-01-22 10:55:54 UTC (rev 12937)
+++ mail-search/trunk/mail-search/search-tips.shtml	2006-01-22 10:56:47 UTC (rev 12938)
@@ -1,59 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
-<html>
-<head>
-<link rel="stylesheet" href="/en/gnucash.css" type="text/css">
-<link rel="stylesheet" href="search.css" type="text/css">
-<link rel="icon" href="favicon.ico" type="image/x-icon">
-<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
-<meta name="author" content="Neil Williams">
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-<title>GnuCash - Archive search tips</title>
-</head>
-<body>
-<!--#include virtual="links.html"-->
-<div id="content">
-<h1>Tips on searching the GnuCash archives</h1>
-<p>Please be aware that there are a lot of files to search. To get only the files you actually want, please
-follow the tips below. Messages listed in the search results will be accompanied by a short abstract to
-help you find the most relevant messages.</p>
-<ol>
-<li>Please enter a few words to make your search as specific as possible.</li>
-<li>Only select the archive most relevant to your enquiry. If you don't select any archives to search, files
-in the <b>gnucash-user</b> archive will be searched.</li>
-<li>If you select a month or year beyond the start date of the archive, the script will use the first
-available month.</li>
-<li>Select the number of previous months to include - the higher the number, the more pages of results
-will be generated and the longer each search will take.</li>
-<li>Abstracts are created from the first 250 characters of an archived message to help you when the subject line
-of the original message is too brief or not apparently linked to the content.</li>
-<li>Use case-sensitive searches whenever you are looking for specific items of hardware,
-distributions, companies, <abbr title="etcetera">etc.</abbr> and enter details like the version number
-or specific type of problem to narrow the search range.</li>
-<li>Select the Boolean value OR to search for any of the search terms entered. (The default search will only list
-files that match ALL search terms.)</li>
-<li><p>The search script will use default settings whenever possible. If you want to link to a
-search result page, you can omit any field that is already set to the respective default:</p>
-<ul><li>archive - default : gnucash-users</li>
-<li>month - default : current</li>
-<li>year - default : current</li>
-<li>span - default : 2 months</li>
-<li>abstract - default : empty</li>
-<li>boolean - default : AND</li>
-<li>case - default : insensitive</li>
-</ul>
-<p>This can shorten a link from:</p>
-<code>https://lists.gnucash.org/search/search.php?terms=test&amp;archive=gnucash-user
-&amp;month=5&amp;year=2004&amp;span=1&amp;abstract=on&amp;boolean=AND&amp;case=insensitive</code>
-<p> to a much easier:</p>
-<code>https://lists.gnucash.org/search/search.php?terms=test</code></li></ol>
-<p><a href="search.php">Back to search</a> </p>
-</div>
-<div style="clear:both;float:none;">&nbsp;</div>
-<div id="tail">
-<p style="float:right;padding-right:1em;"><a href='http://validator.w3.org/check/referer'>Validate</a> </p>
-<p style="text-align:center;"><b>Copyright &copy; 2001-2004 The GnuCash Project</b></p>
-<p style="text-align:center;">Search script problem reports to:
-<a href="mailto:linux at codehelp.co.uk"><b>Neil Williams &lt;linux at codehelp.co.uk&gt;</b></a></p>
-</div>
-</body>
-</html>

Modified: mail-search/trunk/mail-search/search.php
===================================================================
--- mail-search/trunk/mail-search/search.php	2006-01-22 10:55:54 UTC (rev 12937)
+++ mail-search/trunk/mail-search/search.php	2006-01-22 10:56:47 UTC (rev 12938)
@@ -193,7 +193,7 @@
 
 if($termstring == "") {
 	print "<h1>Search the GnuCash mailing list archives</h1>";
-	print "<p><a href=\"search-tips.shtml\">Search tips</a> </p>\n";
+	print "<p><a href=\"search-tips.php\">Search tips</a> </p>\n";
 	print "<form method=\"get\" action=\"$self\" enctype=\"application/x-www-form-urlencoded\">\n";
 ?>
 <div>



More information about the gnucash-changes mailing list