/[cvs]/nfo/site/htdocs/index.php
ViewVC logotype

Contents of /nfo/site/htdocs/index.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations)
Mon Aug 30 04:21:55 2004 UTC (19 years, 10 months ago) by rabit
Branch: MAIN
Changes since 1.3: +6 -2 lines
+ Language ID variable encapsulation and delivery.

1 <?php
2 /*------------------------------------------------------------------------------
3 --- www.netfrag.org
4 --- Main index and content access page.
5 --------------------------------------------------------------------------------
6 --- rabit, 01:28 24.08.2004
7 --- $Id: index.php,v 1.3 2004/08/30 01:48:30 rabit Exp $
8 ------------------------------------------------------------------------------*/
9
10 include('inc/common/common.php.inc');
11
12 //------------------------------------------------------------------------------
13 //- GET/POST variable encapsulation:
14
15 $contentkeyname = (isset($_GET['ck']) ? $_GET['ck'] : '');
16
17 $language_id = (isset($_GET['li']) ? $_GET['li'] : '');
18
19 $outputtype = (isset($_GET['ot']) ? $_GET['ot'] : '');
20
21 //------------------------------------------------------------------------------
22
23 if(!$contentkeyname) $contentkeyname = 'Home';
24
25 if(!$language_id) $language_id = 1;
26
27 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
43 default:
44
45 // Generate a HTML page:
46 common_page($contentkeyname, $language_id);
47
48 }
49
50 //------------------------------------------------------------------------------
51
52 ?>

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed