blob: 5232135ecb1662c969f58f374c350643bb425715 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
<?php
/* Include the Scrott system-level configuration file if it exists */
is_file("scrott.conf.php") &&
require_once "scrott.conf.php";
/*
* Global functions / operations and access to contextual or session-based information
*/
abstract class Framework
{
/*
* Check for the existence of Scrott's system-level config
*/
function scrottConfExists()
{
global $_SCROTT;
return isset($_SCROTT['conf']);
}
/*
* Get the absolute path on this server for the root of this app
*/
function ar()
{
/* TODO */
}
/*
* Redirect to the given URL and die
*/
function redirectTo($url)
{
http_redirect($url);
exit;
}
}
?>
|