Changeset 552da81
- Timestamp:
- Aug 30, 2015, 8:56:20 PM (11 years ago)
- Branches:
- master
- Children:
- b757e0e
- Parents:
- b858e6f
- Files:
-
- 5 edited
-
CMakeLists.txt (modified) (1 diff)
-
src/webservice/config/config.php.in (modified) (1 diff)
-
src/webservice/htaccess.in (modified) (1 diff)
-
src/webservice/htdocs/SiWeather/Webservice/Setup.php (modified) (1 diff)
-
src/webservice/htdocs/SiWeather/Webservice/WebserviceConfig.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
CMakeLists.txt
rb858e6f r552da81 42 42 OPTION(WITH_LOCAL_PHPSLIM "Install PHP slim from this repository" OFF) 43 43 OPTION(WITH_LOCAL_PHPGUZZLE "Install PHP Guzzle from this repository" OFF) 44 SET(WEBSERVICE_BASE_URL "/siweather/webservice/ v${WEBSERVICE_API_VERSION}" CACHE TYPE STRING)44 SET(WEBSERVICE_BASE_URL "/siweather/webservice/${WEBSERVICE_API_VERSION}" CACHE TYPE STRING) 45 45 46 46 SET(BUILD_DEBUG_WANTED ${BUILD_DEBUG}) -
src/webservice/config/config.php.in
rb858e6f r552da81 21 21 $config = [ 22 22 "mode" => "@WEBSERVICE_MODE@", 23 "webserviceBaseUrl" => "http://localhost@WEBSERVICE_BASE_URL@ @WEBSERVICE_API_VERSION@",23 "webserviceBaseUrl" => "http://localhost@WEBSERVICE_BASE_URL@", 24 24 "spatialiteExtension" => "mod_spatialite.so", 25 25 "geoipservice" => "http://freegeoip.net/json", -
src/webservice/htaccess.in
rb858e6f r552da81 22 22 # Requires AllowOverride All directive in your apache config 23 23 RewriteEngine On 24 RewriteBase @WEBSERVICE_BASE_URL@ @WEBSERVICE_API_VERSION@24 RewriteBase @WEBSERVICE_BASE_URL@ 25 25 RewriteCond %{REQUEST_FILENAME} !-f 26 26 RewriteCond %{REQUEST_FILENAME} !-d 27 RewriteRule ^ index.php $1[QSA,NC,L]27 RewriteRule ^ index.php [QSA,NC,L] -
src/webservice/htdocs/SiWeather/Webservice/Setup.php
rb858e6f r552da81 342 342 $result = $response->getStatusCode(); 343 343 if($result != 200){ 344 $errorMessage = \Translator::swGettext("Got http error %s (%s) at url %s", $result, $response->getReasonPhrase(), $baseUrl . "/".$url);344 $errorMessage = \Translator::swGettext("Got http error %s (%s) at url %s", $result, $response->getReasonPhrase(), $baseUrl . $url); 345 345 return false; 346 346 } -
src/webservice/htdocs/SiWeather/Webservice/WebserviceConfig.php
rb858e6f r552da81 71 71 public function webserviceBaseUrl(){ 72 72 $baseUrl = $this->_config["webserviceBaseUrl"]; 73 if(substr($baseUrl, strlen($baseUrl) - 1, 1) != "/"){73 if(substr($baseUrl, strlen($baseUrl), 1) != "/"){ 74 74 $baseUrl .= "/"; 75 75 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/siweather/chrome/site/your_project_logo.png)