[Gnucash-changes] r12895 - mail-search/trunk/mail-search - add
modification prior to move
Neil Williams
codehelp at cvs.gnucash.org
Thu Jan 19 12:12:24 EST 2006
Author: codehelp
Date: 2006-01-19 12:12:24 -0500 (Thu, 19 Jan 2006)
New Revision: 12895
Trac: http://svn.gnucash.org/trac/changeset/12895
Modified:
mail-search/trunk/mail-search/emulate_globals_on.php
Log:
add modification prior to move
Modified: mail-search/trunk/mail-search/emulate_globals_on.php
===================================================================
--- mail-search/trunk/mail-search/emulate_globals_on.php 2006-01-19 17:11:11 UTC (rev 12894)
+++ mail-search/trunk/mail-search/emulate_globals_on.php 2006-01-19 17:12:24 UTC (rev 12895)
@@ -10,4 +10,19 @@
extract($superglobal, EXTR_SKIP);
}
}
+$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 = "";
+}
?>
More information about the gnucash-changes
mailing list