[Gnucash-changes] r12128 - mail-search/trunk/mail-search - Fix log messages. Update links

Neil Williams codehelp at cvs.gnucash.org
Mon Dec 5 04:51:02 EST 2005


Author: codehelp
Date: 2005-12-05 04:51:00 -0500 (Mon, 05 Dec 2005)
New Revision: 12128
Trac: http://svn.gnucash.org/trac/changeset/12128

Modified:
   mail-search/trunk/mail-search/search.php
Log:
Fix log messages. Update links

Modified: mail-search/trunk/mail-search/search.php
===================================================================
--- mail-search/trunk/mail-search/search.php	2005-12-05 03:39:29 UTC (rev 12127)
+++ mail-search/trunk/mail-search/search.php	2005-12-05 09:51:00 UTC (rev 12128)
@@ -54,7 +54,9 @@
 <div class="othernews">
 <span class="linktop"><img class="dot" src="images/webding.png" alt="marker">
 <b>Documentation</b></span>
-<ul><li><a href="http://www.gnucash.org/docs/v1.8/C/gnucash-guide">Concepts Guide</a></li>
+<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>
@@ -66,10 +68,12 @@
 <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></li>
-<li><a href="http://www.gnucash.org/en/bugs.phtml">Bug Reports</a></li>
+<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>
+<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://gnomesupport.org/wiki/index.php/GnuCashFrequentlyAskedQuestions">FAQ</a></li></ul>
+<li><a href="http://wiki.gnucash.org/wiki/FAQ">FAQ</a></li></ul>
 </div>
 
 <div class="othernews">
@@ -88,12 +92,12 @@
 <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://www.gnucash.org/en/roadmap.phtml">The Road Ahead</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://cvs.gnucash.org/docs/HEAD/modules.html">Source Docs</a></li>
-<li><a href="https://cvs.gnucash.org/cgi-bin/cvsweb.cgi/">Browse Source Code</a></li>
-<li><a href="http://www.gnucash.org/en/hacking.phtml">CVS Access</a></li>
-<li><a href="http://www.gnucash.org/trans/">Language Translations</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>
 
@@ -160,7 +164,8 @@
 ########### end configuration #################
 
 /* termlist is the URL encoded string of search values*/
-$termlist = 	$_GET{"terms"};
+if(empty($_GET["terms"])) { $termlist = ""; }
+else { $termlist = $_GET{"terms"}; }
 
 /* boolean holds the text value of the boolean input
 Note: $boolean is not a true boolean type.
@@ -168,7 +173,8 @@
 Any value other than OR will use default.
 ('or' will not match).
 */
-$boolean = 	$_GET{"boolean"};
+if(empty($_GET["boolean"])) { $boolean = "AND"; }
+else { $boolean = $_GET{"boolean"}; }
 
 /* case holds the text value of the case input
 Note: $case is not an enum type.
@@ -178,20 +184,33 @@
 any capitalisation of 'sensitive' will still match.
 spelling errors will not match.
 */
-$case = 	$_GET{"case"};
+if(empty($_GET["case"])) { $case = "insensitive"; }
+else { $case = $_GET{"case"}; }
 
 /* parameters
 All search parameters are obtained from the query string to
 allow bookmarking and links to search result pages.
 */
 
-$list = 	$_GET{"archive"}; /* uses default list if empty */
-$startmonth =	$_GET{"month"};   /* uses current month if empty */
-$startyear =	$_GET{"year"};    /* uses current year if empty */
-$period =	$_GET{"span"};    /* uses default_length if empty */
-$pager =	$_GET{"page"};	  /* empty by default */
+if(empty($_GET["archive"])) { $list = $default_list; }
+else { $list = $_GET{"archive"}; /* uses default list if empty */ }
+
+if(empty($_GET["month"])) { $startmonth = gmdate("n"); }
+else { $startmonth = $_GET{"month"};   /* uses current month if empty */ }
+
+if(empty($_GET["year"])) { $year = gmdate("Y"); }
+else { $startyear =	$_GET{"year"};    /* uses current year if empty */ }
+
+if(empty($_GET["span"])) { $period = $default_length; }
+else { $period = $_GET{"span"};    /* uses default_length if empty */ }
+
+if(empty($_GET["page"])) { $pager = 0; }
+else { $pager = $_GET{"page"};	  /* empty by default */ }
+
 /* useabstract - whether to use the quicker list or the longer abstract mode*/
-$useabstract = 	$_GET{"abstract"}; /* default is not to use abtracts */
+if(empty($_GET["abstract"])) { $useabstract = 0; }
+else { $useabstract = 	$_GET{"abstract"}; /* default is not to use abtracts */ }
+
 if($useabstract == "on") { $useabstract = 1; }
 $self = $_SERVER["PHP_SELF"];
 if(!$self) { $self = "search.php"; }
@@ -369,7 +388,7 @@
 <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;"><b>Copyright &copy; 2001-2005 The GnuCash Project</b></p>
 <p style="text-align:center;">Search 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>
@@ -502,7 +521,7 @@
 <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;"><b>Copyright &copy; 2001-2005 The GnuCash Project</b></p>
 <p style="text-align:center;">Search 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>
@@ -667,7 +686,7 @@
 <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;"><b>Copyright &copy; 2001-2005 The GnuCash Project</b></p>
 <p style="text-align:center;">Search 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>



More information about the gnucash-changes mailing list