projects
/
e-DoKo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
CLEANUP: make index.php very short and move everything in separate files
[e-DoKo.git]
/
include
/
db.php
diff --git
a/db.php
b/include/db.php
similarity index 99%
rename from
db.php
rename to
include/db.php
index 7c58a332976232fc482bc1a28209d4cc2d3cfad0..42d2bef9341fd185d10077000a500b746726f2bf 100644
(file)
--- a/
db.php
+++ b/
include/db.php
@@
-1,4
+1,9
@@
<?php
+/* make sure that we are not called from outside the scripts,
+ * use a variable defined in config.php to check this
+ */
+if(!isset($HOST))
+ exit;
/*
* open database