Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/webapp/webservice/inc/Config.php

    reb1ccd6 r00a8800  
    11<?php
    22/*
    3     Copyright (C) 2016 - 2017 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
     3    Copyright (C) 2016 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
    44
    55    This program is free software: you can redistribute it and/or modify
    … …  
    1717*/
    1818
    19 $configFile = __DIR__ ."/../config/config.php";
     19$configFile = __DIR__ ."../config/config.php";
    2020if(file_exists($configFile))
    2121        include($configFile);
    … …  
    3535
    3636        public function databaseFile(){
    37                 return $this->dataDirectory() ."gnuboat.rrd";
     37                return $this->dataDirectory() ."log-webservice.rrd";
    3838        }
    39 
     39       
    4040        public function shutdownRequestFile(){
    4141                if(array_key_exists("shutdownfile", $this->_config))
    … …  
    4343                return "/var/spool/gnuboat/shutdown.request";
    4444        }
    45 
     45       
    4646        public function dataDirectory(){
    4747                if(array_key_exists("datadirectory", $this->_config))
    … …  
    4949                return "/var/lib/gnuboat/";
    5050        }
    51 
     51       
    5252        private static function addTrailingSlash($path){
    5353                $length = strlen($path);
    … …  
    5757                return $path;
    5858        }
    59 
     59       
    6060        private $_config;
    6161}
Note: See TracChangeset for help on using the changeset viewer.