From: Maxious Date: Sat, 22 Sep 2012 13:28:44 +0000 Subject: amon key X-Git-Url: http://maxious.lambdacomplex.org/git/?p=contractdashboard.git&a=commitdiff&h=f78eef75f421c62b15fb637b04f8706e46947d6f --- amon key --- --- a/displaySupplier.php +++ b/displaySupplier.php @@ -26,7 +26,7 @@ FROM contractnotice WHERE ' . $supplierQ . ' ' . $standardQ . ' ORDER BY value DESC'; - echo $query; + $query = $conn->prepare($query); --- a/lib/common.inc.php +++ b/lib/common.inc.php @@ -14,10 +14,10 @@ if (strstr($_SERVER['PHP_SELF'], "labs/")) { $basePath = "../"; } -require $basePath."/lib/amon-php/amon.php"; -Amon::config(array('address'=> 'http://127.0.0.1:2465', +require $basePath."lib/amon-php/amon.php"; +Amon::config(array('address'=> 'http://127.0.0.1:2464', 'protocol' => 'http', - 'secret_key' => "g99127n3lkzigg8ob2rllth97d1pb4sj")); + 'secret_key' => "JBcSUdFOi5lK0vCjLjbHDpQamcBnRA4iV7QLaTADeDQ")); Amon::setup_exception_handler(); require ROOT . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'lib' . DIRECTORY_SEPARATOR . 'openid.php'; --- a/search_autosuggest.php +++ b/search_autosuggest.php @@ -47,7 +47,7 @@ ); } $query = "SELECT \"CNID\", description, value FROM contractnotice -WHERE to_tsvector('english', description) @@ plaintoto_tsquery('english', :input)"; +WHERE to_tsvector('english', description) @@ plainto_tsquery('english', :input)"; $query = $conn->prepare($query); $agencyName = $input . '%'; $query->bindParam(":input", $input); @@ -84,3 +84,4 @@ echo ""; } ?> +