Last change
on this file since 51 was
51,
checked in by fpvanagthoven, 14 years ago
|
Start on survey page. There's something weird in surveycreationtool though. Should fix that.
|
File size:
448 bytes
|
Rev | Line | |
---|
[10] | 1 | <?php |
---|
| 2 | |
---|
| 3 | /** |
---|
| 4 | * Description of master |
---|
| 5 | * |
---|
| 6 | * For autoloading of classes for example. |
---|
| 7 | * |
---|
| 8 | * @author fpvanagthoven |
---|
| 9 | */ |
---|
| 10 | // Determine our absolute document root |
---|
| 11 | define('DOC_ROOT', realpath(dirname(__FILE__) . '/../')); |
---|
| 12 | |
---|
| 13 | function __autoload($class_name) { |
---|
| 14 | require 'classes/' . $class_name . '.php'; |
---|
[51] | 15 | } |
---|
| 16 | |
---|
| 17 | |
---|
| 18 | // Redirects user to $url |
---|
| 19 | function redirect($url = null) |
---|
| 20 | { |
---|
| 21 | if (is_null($url)) |
---|
| 22 | $url = $_SERVER['PHP_SELF']; |
---|
| 23 | |
---|
| 24 | header("Location: $url"); |
---|
| 25 | exit(); |
---|
[10] | 26 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.