OSDN Git Service

Another small update.
[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-2011 iDB Support - http://idb.berlios.de/
12     Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/
13
14     $FileInfo: member.php - Last Update: 07/21/2011 SVN 725 - Author: cooldude2k $
15 */
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"; }
27 ?>
28
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; }
55 if($membertitle==null) {
56 fix_amp($Settings['use_gzip'],$GZipEncode['Type']); }
57 if($membertitle!=null) {
58 change_title($Settings['board_name'].$membertitle,$Settings['use_gzip'],$GZipEncode['Type']); }
59 ?>