1 |
rabit |
1.2 |
<?php |
2 |
|
|
/*------------------------------------------------------------------------------ |
3 |
|
|
--- www.netfrag.org |
4 |
rabit |
1.3 |
--- Main index and content access page. |
5 |
rabit |
1.2 |
-------------------------------------------------------------------------------- |
6 |
|
|
--- rabit, 01:28 24.08.2004 |
7 |
|
|
--- $Id$ |
8 |
|
|
------------------------------------------------------------------------------*/ |
9 |
|
|
|
10 |
|
|
include('inc/common/common.php.inc'); |
11 |
|
|
|
12 |
|
|
//------------------------------------------------------------------------------ |
13 |
rabit |
1.3 |
//- GET/POST variable encapsulation: |
14 |
rabit |
1.2 |
|
15 |
rabit |
1.3 |
$contentkeyname = (isset($_GET['ck']) ? $_GET['ck'] : ''); |
16 |
rabit |
1.2 |
|
17 |
rabit |
1.3 |
$outputtype = (isset($_GET['ot']) ? $_GET['ot'] : ''); |
18 |
rabit |
1.2 |
|
19 |
rabit |
1.3 |
//------------------------------------------------------------------------------ |
20 |
|
|
|
21 |
|
|
if(!$contentkeyname) $contentkeyname = 'Home'; |
22 |
|
|
|
23 |
|
|
if(!$outputtype) $outputtype = 'html'; |
24 |
|
|
|
25 |
|
|
//------------------------------------------------------------------------------ |
26 |
|
|
|
27 |
|
|
// Dispatching the output content type: |
28 |
|
|
|
29 |
|
|
switch($outputtype) { |
30 |
|
|
|
31 |
|
|
case 'xml': // XML output |
32 |
|
|
|
33 |
|
|
break; |
34 |
|
|
|
35 |
|
|
// HTML output: |
36 |
|
|
|
37 |
|
|
case 'html': |
38 |
rabit |
1.2 |
|
39 |
rabit |
1.3 |
default: |
40 |
rabit |
1.2 |
|
41 |
rabit |
1.3 |
// Generate a HTML page: |
42 |
|
|
common_page($contentkeyname); |
43 |
rabit |
1.2 |
|
44 |
rabit |
1.3 |
} |
45 |
rabit |
1.2 |
|
46 |
|
|
//------------------------------------------------------------------------------ |
47 |
|
|
|
48 |
|
|
?> |