X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=dbinstall.php;h=6195c39614a69db5baa0547f28f028142aff419e;hb=aa27657255fc93dafff0be41c823a7b3bfbe0e39;hp=c65358a81a37751bfe31b314ee902c1a9c878c16;hpb=098a79f0819ebb89b7d48df4a6b154af4560f68e;p=timetracker.git
diff --git a/dbinstall.php b/dbinstall.php
old mode 100644
new mode 100755
index c65358a8..6195c396
--- a/dbinstall.php
+++ b/dbinstall.php
@@ -28,55 +28,162 @@
require_once('WEB-INF/config.php');
require_once('WEB-INF/lib/common.lib.php');
-if (!require_once('MDB2.php')) {
- die ("Unable to require MDB2 module. Please check it
\n");
-}
require_once('initialize.php');
import('ttUserHelper');
import('ttTaskHelper');
function setChange($sql) {
- print "
".$sql.""; - $mdb2 = getConnection(); - $affected = $mdb2->exec($sql); - if (is_a($affected, 'PEAR_Error')) { - print "error: ".$affected->getMessage()."
".$sql.""; + $mdb2 = getConnection(); + $affected = $mdb2->exec($sql); + if (is_a($affected, 'PEAR_Error')) + print "error: ".$affected->getMessage()."