Skip to content
Snippets Groups Projects
Commit e5d9563b authored by hahn's avatar hahn
Browse files

- added: simple webserice

parent e8c0c4bf
Branches
No related tags found
No related merge requests found
...@@ -16,3 +16,4 @@ nbproject ...@@ -16,3 +16,4 @@ nbproject
/database/logs.db /database/logs.db
/public_html/deployment/dummy.db /public_html/deployment/dummy.db
/public_html/deployment/classes/ramdb.class.php /public_html/deployment/classes/ramdb.class.php
/public_html/~cache/
\ No newline at end of file
...@@ -31,7 +31,9 @@ class Actionlog { ...@@ -31,7 +31,9 @@ class Actionlog {
*/ */
public function __construct($sProject = false) { public function __construct($sProject = false) {
global $aConfig; global $aConfig;
if (!is_array($aConfig) || !array_key_exists("appRootDir", $aConfig)) {
die(__CLASS__ . "::".__FUNCTION__." ERROR: configuration with \$aConfig was not loaded.");
}
$this->_dbfile = $aConfig['appRootDir'] . '/database/logs.db'; $this->_dbfile = $aConfig['appRootDir'] . '/database/logs.db';
if (!file_exists($this->_dbfile)) { if (!file_exists($this->_dbfile)) {
$this->_createDb(); $this->_createDb();
......
This diff is collapsed.
<?php
require_once("../../config/inc_projects_config.php");
require_once("../deployment/classes/sws.class.php");
$aSwsConfig=json_decode(file_get_contents("sws-config.json"), 1);
$oSws=new sws($aSwsConfig);
$oSws->run();
\ No newline at end of file
{
"classes": {
"Actionlog": {
"file": "actionlog.class.php",
"actions": {
"getLogs": {}
}
}
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment