Re: [Semanticscuttle-devel] Privatekey / Opensearch problem / Configurable privacy
Brought to you by:
cweiske
From: <go...@gm...> - 2011-02-20 15:06:45
|
Ok, I fixed it. Added a new variable meant specifically to get the terms from opensearch, it then gets url-decoded, and url-recoded again, just see the code. code changes - search.php and opensearch.php i'll be comitting the changes in a few minutes. On Sun, Feb 20, 2011 at 3:56 PM, Christian Weiske <cw...@cw...>wrote: > Hi Golanor, > > > > > yes, that fixed it. > Great. > > > > I think I found an error..In the opensearch.php there is a reference > > to "$GLOBALS['root']", which I have no idea where it was defined (not > > in config.php). > > Did you all install SemanticScuttle on a root directory or in a > > different folder? > > I installed it in a folder, and when I try to search using > > opensearch, it tries searching in the root of the server, i.e: > > instead of > > http://localhost/sc/search.php/all/google%20homepage > > it goes to > > http://localhost/search.php/all/google+homepage > > Did I simply forget to define it, or is it really not defined > > anywhere? > > cweiske:~/Dev/semanticscuttle/cwdev> grep -r "'root'" . > src/SemanticScuttle/constants.php > 14:if (!isset($GLOBALS['root'])) { > 30: define('ROOT', $GLOBALS['root']); > > data/config.php > 60: 'username' => 'root', > > www/api/opensearch.php > 15: <Url type="text/html" template="http://<?php echo > $_SERVER['HTTP_HOST'] . '/' . > $GLOBALS['root']?>search.php/all/{searchTerms}"/> > > > You may define $GLOBALS['root'] as described in data/config.default.php > > -- > Regards/Mit freundlichen Grüßen > Christian Weiske > > -=≡ Geeking around in the name of science since 1982 ≡=- > > > ------------------------------------------------------------------------------ > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: > Pinpoint memory and threading errors before they happen. > Find and fix more than 250 security defects in the development cycle. > Locate bottlenecks in serial and parallel code that limit performance. > http://p.sf.net/sfu/intel-dev2devfeb > _______________________________________________ > Semanticscuttle-devel mailing list > Sem...@li... > https://lists.sourceforge.net/lists/listinfo/semanticscuttle-devel > > |