source: Dev/trunk/classes/master.php @ 56

Last change on this file since 56 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
Line 
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
11define('DOC_ROOT', realpath(dirname(__FILE__) . '/../'));
12
13function __autoload($class_name) {
14    require 'classes/' . $class_name . '.php';
15}
16
17
18// Redirects user to $url
19function redirect($url = null)
20{
21        if (is_null($url))
22                $url = $_SERVER['PHP_SELF'];
23
24        header("Location: $url");
25        exit();
26}
Note: See TracBrowser for help on using the repository browser.