]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/lib.php
introduce accessor function for URL parameter
[nominatim.git] / lib / lib.php
index 75e72b4ce6b741d053d0241d6bf71ed3872d90ac..fc3936851bbb56bd031495761e1fe6f781b703d9 100644 (file)
                exit;
        }
 
-       function getParamBool($name, $default=false)
-       {
-               if (!isset($_GET[$name])) return $default;
-
-               return (bool) $_GET[$name];
-       }
-
        function fail($sError, $sUserError = false)
        {
                if (!$sUserError) $sUserError = $sError;
 
        function javascript_renderData($xVal, $iOptions = 0)
        {
-               header("Access-Control-Allow-Origin: *");
                if (defined('PHP_VERSION_ID') && PHP_VERSION_ID > 50400)
                        $iOptions |= JSON_UNESCAPED_UNICODE;
                $jsonout = json_encode($xVal, $iOptions);