OSDN Git Service

iDB HTTP encoding system updated added deflate. ^_^
[idb/iDB.git.git] / index.php
1 <?php
2 /*
3     This program is free software; you can redistribute it and/or modify
4     it under the terms of the Revised BSD License.
5
6     This program is distributed in the hope that it will be useful,
7     but WITHOUT ANY WARRANTY; without even the implied warranty of
8     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
9     Revised BSD License for more details.
10
11     Copyright 2004-2007 Cool Dude 2k - http://intdb.sourceforge.net/
12     Copyright 2004-2007 Game Maker 2k - http://upload.idb.s1.jcink.com/
13
14     $FileInfo: index.php - Last Update: 05/14/2007 SVN 4 - Author: cooldude2k $
15 */
16 require('preindex.php');
17 $usefileext = $Settings['file_ext'];
18 if($ext=="noext"||$ext=="no ext"||$ext=="no+ext") { $usefileext = ""; }
19 $filewpath = $exfile['index'].$usefileext.$_SERVER['PATH_INFO'];
20 ?>
21
22 <title> <?php echo $Settings['board_name'].$idbpowertitle; ?> </title>
23 </head>
24 <body>
25 <?php require($SettDir['inc'].'navbar.php');
26
27 if($_GET['act']==null)
28 { $_GET['act']="view"; }
29 if($_GET['act']=="view")
30 { require($SettDir['inc'].'forums.php'); }
31 if($_GET['act']=="view"||$_GET['act']=="stats")
32 { require($SettDir['inc'].'stats.php'); }
33 require($SettDir['inc'].'endpage.php');
34 ?>
35 </body>
36 </html>
37 <?php fix_amp($Settings['use_gzip'],$GZipEncode['Type']); ?>