added database versioning

This commit is contained in:
following
2013-04-22 20:21:06 +02:00
parent da12a3e4a7
commit a6547619e3
4 changed files with 122 additions and 8 deletions

View File

@@ -14,8 +14,9 @@
* TODO: quick&dirty to test functionality
*/
$opt['rootpath'] = '../htdocs/';
require($opt['rootpath'] . 'lib2/web.inc.php');
if (!isset($opt['rootpath']))
$opt['rootpath'] = '../htdocs/';
require_once($opt['rootpath'] . 'lib2/cli.inc.php');
// stop apache
system($opt['httpd']['stop']);