Small bug fix.
[iDB.git] / member.php
blob5f8459036450737c81dad1e38d6752c570450e2e
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.
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.
11 Copyright 2004-2011 iDB Support - http://idb.berlios.de/
12 Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/
14 $FileInfo: member.php - Last Update: 06/24/2011 SVN 683 - Author: cooldude2k $
16 if(ini_get("register_globals")) {
17 require_once('inc/misc/killglobals.php'); }
18 require('preindex.php');
19 $usefileext = $Settings['file_ext'];
20 if($ext=="noext"||$ext=="no ext"||$ext=="no+ext") { $usefileext = ""; }
21 $filewpath = $exfile['member'].$Settings['file_ext'].$_SERVER['PATH_INFO'];
22 if($_GET['act']==null) { $_GET['act'] = "login"; }
23 if(!isset($_GET['view'])) { $_GET['view'] = null; }
24 $idbactcheck = array("view", "signup", "login", "login_now", "logout", "online", "list", "makemember", "makemembers");
25 if(!in_array($_GET['act'], $idbactcheck))
26 { $_GET['act']="login"; }
29 <title> <?php echo $Settings['board_name'].$idbpowertitle; ?> </title>
30 </head>
31 <body>
32 <?php if($_GET['act']=="register")
33 { $_GET['act']="signup"; }
34 if($_GET['act']=="signin")
35 { $_GET['act']="login"; }
36 if($_GET['act']=="signout")
37 { $_GET['act']="logout"; }
38 if(!is_numeric($_GET['id']))
39 { $_GET['id']="1"; }
40 require($SettDir['inc'].'navbar.php');
41 if($_GET['act']=="login"||
42 $_GET['act']=="online"||
43 $_POST['act']=="loginmember"||
44 $_GET['act']=="logout")
45 { require($SettDir['inc'].'members.php'); }
46 if($_GET['act']=="list"||
47 $_GET['act']=="view"||
48 $_GET['act']=="signup")
49 { require($SettDir['inc'].'members.php'); }
50 if($_GET['act']=="makemember") {
51 if($_POST['act']=="makemembers") {
52 require($SettDir['inc'].'members.php'); } }
53 require($SettDir['inc'].'endpage.php');
54 if(!isset($membertitle)) { $membertitle = null; }
57 </body>
58 </html>
59 <?php
60 if($membertitle==null) {
61 fix_amp($Settings['use_gzip'],$GZipEncode['Type']); }
62 if($membertitle!=null) {
63 change_title($Settings['board_name'].$membertitle,$Settings['use_gzip'],$GZipEncode['Type']); }