Last change
on this file since 210 was
210,
checked in by jkraaijeveld, 13 years ago
|
Moved all classes into classes_old
|
File size:
555 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 | |
---|
[58] | 13 | /* Session */ |
---|
| 14 | session_name("cpsft"); // Set a session name |
---|
| 15 | session_start(); // Start the session |
---|
| 16 | |
---|
[10] | 17 | function __autoload($class_name) { |
---|
| 18 | require 'classes/' . $class_name . '.php'; |
---|
[51] | 19 | } |
---|
| 20 | |
---|
| 21 | |
---|
| 22 | // Redirects user to $url |
---|
| 23 | function redirect($url = null) |
---|
| 24 | { |
---|
| 25 | if (is_null($url)) |
---|
| 26 | $url = $_SERVER['PHP_SELF']; |
---|
| 27 | |
---|
| 28 | header("Location: $url"); |
---|
| 29 | exit(); |
---|
[186] | 30 | } |
---|
| 31 | |
---|
| 32 | |
---|
| 33 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.