/[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.2 by rabit, Tue Aug 24 03:29:30 2004 UTC revision 1.5 by rabit, Mon Aug 30 11:51:15 2004 UTC
# Line 1  Line 1 
1  <?php  <?php
2  /*------------------------------------------------------------------------------  /*------------------------------------------------------------------------------
3  --- www.netfrag.org  --- www.netfrag.org
4  --- Main index page.  --- Main index and content access page.
5  --------------------------------------------------------------------------------  --------------------------------------------------------------------------------
6  --- rabit, 01:28 24.08.2004  --- rabit, 01:28 24.08.2004
7  --- $Id$  --- $Id$
# Line 10  Line 10 
10  include('inc/common/common.php.inc');  include('inc/common/common.php.inc');
11    
12  //------------------------------------------------------------------------------  //------------------------------------------------------------------------------
13    //- GET/POST variable encapsulation:
14    
15  common_pageheader();  $request_contentkey = (isset($_GET['ck']) ? $_GET['ck'] : '');
16    $request_outputtype = (isset($_GET['ot']) ? $_GET['ot'] : '');
17    
18  common_headline('CFG Variables:');  if(isset($_GET['li']))
19     $common_sessiondata['userdata']['language_id'] = intval($_GET['li']);
20    
21  common_paragraph('$documentroot = "' . $documentroot . '"');  //------------------------------------------------------------------------------
22    //- Variable defaults:
23    
24    if(!$request_contentkey) $request_contentkey = 'Home';
25    
26    if(!$request_outputtype) $request_outputtype = 'html';
27    
28    if(isset($common_sessiondata['userdata']['language_id'])) {
29    
30      // Set language ID from the users session data.
31      $language_id = $common_sessiondata['userdata']['language_id'];
32    
33    } else {
34    
35      $language_id = 1; // Default language ID.
36    
37    }
38    
39    //------------------------------------------------------------------------------
40    
41    // Dispatching the output content type:
42    
43    switch($request_outputtype) {
44    
45      case 'xml': // XML output
46    
47        break;
48    
49      // HTML output:
50    
51      case 'html':
52    
53  common_headline('$_SERVER array, readable:');    default:
54    
55  common_paragraph(nl2br(htmlentities(print_r($_SERVER, true))), 'hl');      // Generate a HTML page:
56        common_page($request_contentkey, $language_id);
57    
58  common_pagefooter();  }
59    
60  //------------------------------------------------------------------------------  //------------------------------------------------------------------------------
61    

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.5

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