OSDN Git Service

Small bug fixes. :P
[idb/iDB.git.git] / member.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: member.php - Last Update: 08/29/2007 SVN 90 - 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['member'].$Settings['file_ext'].$_SERVER['PATH_INFO'];
20 if($_GET['act']==null) { $_GET['act'] = "login"; }
21 if(!isset($_GET['view'])) { $_GET['view'] = null; }
22 ?>
23
24 <title> <?php echo $Settings['board_name'].$idbpowertitle; ?> </title>
25 </head>
26 <body>
27 <?php if($_GET['act']==null)
28 { $_GET['act']="list"; }
29  if($_GET['act']=="register")
30 { $_GET['act']="signup"; }
31 if(!is_numeric($_GET['id']))
32 { $_GET['id']="1"; }
33 require($SettDir['inc'].'navbar.php');
34 if($_GET['act']=="login"||
35 $_POST['act']=="loginmember"||
36 $_GET['act']=="logout")
37 { require($SettDir['inc'].'members.php'); } 
38 if($_GET['act']=="list"||
39 $_GET['act']=="view"||
40 $_GET['act']=="signup")
41 { require($SettDir['inc'].'members.php'); } 
42 if($_GET['act']=="makemember") {
43 if($_POST['act']=="makemembers") {
44 require($SettDir['inc'].'members.php'); } } ?>
45 <div>&nbsp;</div>
46 <?php require($SettDir['inc'].'endpage.php');
47 if(!isset($membertitle)) { $membertitle = null; }
48 ?>
49
50 </body>
51 </html>
52 <?php 
53 if($membertitle==null) {
54 fix_amp($Settings['use_gzip'],$GZipEncode['Type']); }
55 if($membertitle!=null) {
56 change_title($Settings['board_name'].$membertitle,$Settings['use_gzip'],$GZipEncode['Type']); }
57 ?>