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 |
rabit |
1.4 |
--- $Id: index.php,v 1.3 2004/08/30 01:48:30 rabit Exp $ |
8 |
rabit |
1.2 |
------------------------------------------------------------------------------*/ |
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.4 |
$language_id = (isset($_GET['li']) ? $_GET['li'] : ''); |
18 |
|
|
|
19 |
rabit |
1.3 |
$outputtype = (isset($_GET['ot']) ? $_GET['ot'] : ''); |
20 |
rabit |
1.2 |
|
21 |
rabit |
1.3 |
//------------------------------------------------------------------------------ |
22 |
|
|
|
23 |
|
|
if(!$contentkeyname) $contentkeyname = 'Home'; |
24 |
|
|
|
25 |
rabit |
1.4 |
if(!$language_id) $language_id = 1; |
26 |
|
|
|
27 |
rabit |
1.3 |
if(!$outputtype) $outputtype = 'html'; |
28 |
|
|
|
29 |
|
|
//------------------------------------------------------------------------------ |
30 |
|
|
|
31 |
|
|
// Dispatching the output content type: |
32 |
|
|
|
33 |
|
|
switch($outputtype) { |
34 |
|
|
|
35 |
|
|
case 'xml': // XML output |
36 |
|
|
|
37 |
|
|
break; |
38 |
|
|
|
39 |
|
|
// HTML output: |
40 |
|
|
|
41 |
|
|
case 'html': |
42 |
rabit |
1.2 |
|
43 |
rabit |
1.3 |
default: |
44 |
rabit |
1.2 |
|
45 |
rabit |
1.3 |
// Generate a HTML page: |
46 |
rabit |
1.4 |
common_page($contentkeyname, $language_id); |
47 |
rabit |
1.2 |
|
48 |
rabit |
1.3 |
} |
49 |
rabit |
1.2 |
|
50 |
|
|
//------------------------------------------------------------------------------ |
51 |
|
|
|
52 |
|
|
?> |