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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by rabit, Mon Aug 23 23:59:13 2004 UTC revision 1.3 by rabit, Mon Aug 30 01:48:30 2004 UTC
# Line 0  Line 1 
1    <?php
2    /*------------------------------------------------------------------------------
3    --- www.netfrag.org
4    --- Main index and content access page.
5    --------------------------------------------------------------------------------
6    --- rabit, 01:28 24.08.2004
7    --- $Id$
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    $outputtype = (isset($_GET['ot']) ? $_GET['ot'] : '');
18    
19    //------------------------------------------------------------------------------
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    
39      default:
40    
41        // Generate a HTML page:
42        common_page($contentkeyname);
43    
44    }
45    
46    //------------------------------------------------------------------------------
47    
48    ?>

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.3

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