- File:
-
- 1 edited
-
src/webapp/webservice/inc/Config.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/webapp/webservice/inc/Config.php
reb1ccd6 r00a8800 1 1 <?php 2 2 /* 3 Copyright (C) 2016 - 2017EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.3 Copyright (C) 2016 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved. 4 4 5 5 This program is free software: you can redistribute it and/or modify … … 17 17 */ 18 18 19 $configFile = __DIR__ ." /../config/config.php";19 $configFile = __DIR__ ."../config/config.php"; 20 20 if(file_exists($configFile)) 21 21 include($configFile); … … 35 35 36 36 public function databaseFile(){ 37 return $this->dataDirectory() ." gnuboat.rrd";37 return $this->dataDirectory() ."log-webservice.rrd"; 38 38 } 39 39 40 40 public function shutdownRequestFile(){ 41 41 if(array_key_exists("shutdownfile", $this->_config)) … … 43 43 return "/var/spool/gnuboat/shutdown.request"; 44 44 } 45 45 46 46 public function dataDirectory(){ 47 47 if(array_key_exists("datadirectory", $this->_config)) … … 49 49 return "/var/lib/gnuboat/"; 50 50 } 51 51 52 52 private static function addTrailingSlash($path){ 53 53 $length = strlen($path); … … 57 57 return $path; 58 58 } 59 59 60 60 private $_config; 61 61 }
Note:
See TracChangeset
for help on using the changeset viewer.
