Changeset 552da81 for src/webservice
- Timestamp:
- Aug 30, 2015, 8:56:20 PM (11 years ago)
- Branches:
- master
- Children:
- b757e0e
- Parents:
- b858e6f
- Location:
- src/webservice
- Files:
-
- 4 edited
-
config/config.php.in (modified) (1 diff)
-
htaccess.in (modified) (1 diff)
-
htdocs/SiWeather/Webservice/Setup.php (modified) (1 diff)
-
htdocs/SiWeather/Webservice/WebserviceConfig.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
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)