diff --git a/geoapi/database/SpsSqlManager.php b/geoapi/database/SpsSqlManager.php index 70c4e6c..df18854 100644 --- a/geoapi/database/SpsSqlManager.php +++ b/geoapi/database/SpsSqlManager.php @@ -1,6 +1,7 @@ query("SELECT * FROM sps Where alias = \"$alias\""); + } } ?> diff --git a/geoapi/database/SQLManager.php b/geoapi/database/SqlManager.php similarity index 97% rename from geoapi/database/SQLManager.php rename to geoapi/database/SqlManager.php index c906836..67d98f7 100644 --- a/geoapi/database/SQLManager.php +++ b/geoapi/database/SqlManager.php @@ -9,7 +9,7 @@ namespace database; * @author stubbfel * @since 20.06.2013 */ -class SQLManager { +abstract class SqlManager { /** * Variable for address of the server @@ -83,6 +83,7 @@ class SQLManager { public function closeConnection() { if ($this->link) { mysql_close($this->link); + $this->link =null; } } diff --git a/geoapi/service/sps/.htaccess b/geoapi/service/sps/.htaccess new file mode 100644 index 0000000..450c0d1 --- /dev/null +++ b/geoapi/service/sps/.htaccess @@ -0,0 +1,2 @@ +RewriteEngine on +RewriteRule ^ index.php [QSA,L] \ No newline at end of file diff --git a/geoapi/service/sps/index.php b/geoapi/service/sps/index.php new file mode 100644 index 0000000..5dbe497 --- /dev/null +++ b/geoapi/service/sps/index.php @@ -0,0 +1,15 @@ +get('/alias/:alias', function ($alias) use ($app) { + $args =array(); + $args["alias"] = $alias; + print_r($app->sendSpsQuery($args)); +}); + +$app->run(); +?>