bernd commited on 2009-12-08 15:22:51
Zeige 1 geänderte Dateien mit 10 Einfügungen und 1 Löschungen.
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1531 87cf0b9e-d624-0410-a070-f6ee81989793
| ... | ... |
@@ -1,7 +1,7 @@ |
| 1 | 1 |
<?php |
| 2 | 2 |
|
| 3 | 3 |
require_once('inc/db_connect.php');
|
| 4 |
- |
|
| 4 |
+require_once('inc/debug.php');
|
|
| 5 | 5 |
|
| 6 | 6 |
function config($key) |
| 7 | 7 |
{
|
| ... | ... |
@@ -24,6 +24,15 @@ function config($key) |
| 24 | 24 |
} |
| 25 | 25 |
|
| 26 | 26 |
|
| 27 |
+function redirect($target) |
|
| 28 |
+{
|
|
| 29 |
+ global $debugmode; |
|
| 30 |
+ if (! $debugmode) |
|
| 31 |
+ header("Location: {$target}");
|
|
| 32 |
+ die(); |
|
| 33 |
+} |
|
| 34 |
+ |
|
| 35 |
+ |
|
| 27 | 36 |
function db_query($query) |
| 28 | 37 |
{
|
| 29 | 38 |
DEBUG($query); |
| 30 | 39 |