OSDN Git Service

Fixed some bugs and also started work on admin cp. :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/31/2007 SVN 93 - 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']=="register")
28 { $_GET['act']="signup"; }
29 if($_GET['act']=="signin")
30 { $_GET['act']="login"; }
31 if($_GET['act']=="signout")
32 { $_GET['act']="logout"; }
33 if(!is_numeric($_GET['id']))
34 { $_GET['id']="1"; }
35 require($SettDir['inc'].'navbar.php');
36 if($_GET['act']=="login"||
37 $_POST['act']=="loginmember"||
38 $_GET['act']=="logout")
39 { require($SettDir['inc'].'members.php'); } 
40 if($_GET['act']=="list"||
41 $_GET['act']=="view"||
42 $_GET['act']=="signup")
43 { require($SettDir['inc'].'members.php'); } 
44 if($_GET['act']=="makemember") {
45 if($_POST['act']=="makemembers") {
46 require($SettDir['inc'].'members.php'); } } 
47 require($SettDir['inc'].'endpage.php');
48 if(!isset($membertitle)) { $membertitle = null; }
49 ?>
50
51 </body>
52 </html>
53 <?php 
54 if($membertitle==null) {
55 fix_amp($Settings['use_gzip'],$GZipEncode['Type']); }
56 if($membertitle!=null) {
57 change_title($Settings['board_name'].$membertitle,$Settings['use_gzip'],$GZipEncode['Type']); }
58 ?>