Small update
[iDB.git] / member.php
blob2e9722331901e61288421b3f63062aa0a098bd93
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-2019 iDB Support - https://idb.osdn.jp/support/category.php?act=view&id=1
12 Copyright 2004-2019 Game Maker 2k - https://idb.osdn.jp/support/category.php?act=view&id=2
14 $FileInfo: member.php - Last Update: 08/02/2019 SVN 905 - 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", "getactive", "makemember", "makemembers");
25 if(!in_array($_GET['act'], $idbactcheck))
26 { $_GET['act']="login"; }
28 <?php $iWrappers['EXTRALINKS'] = null;
29 ob_start("idb_suboutput_handler"); ?>
30 <title> <?php echo $Settings['board_name'].$idbpowertitle; ?> </title>
31 <?php $iWrappers['TITLETAG'] = ob_get_clean();
32 ob_start("idb_suboutput_handler"); ?>
33 </head>
34 <body>
35 <?php $iWrappers['BODYTAG'] = ob_get_clean();
36 ob_start("idb_suboutput_handler");
37 if($_GET['act']=="register")
38 { $_GET['act']="signup"; }
39 if($_GET['act']=="signin")
40 { $_GET['act']="login"; }
41 if($_GET['act']=="signout")
42 { $_GET['act']="logout"; }
43 if(!is_numeric($_GET['id']))
44 { $_GET['id']="1"; }
45 require($SettDir['inc'].'navbar.php');
46 $iWrappers['NAVBAR'] = ob_get_clean();
47 ob_start("idb_suboutput_handler");
48 if($_GET['act']=="login"||
49 $_GET['act']=="online"||
50 $_POST['act']=="loginmember"||
51 $_GET['act']=="logout")
52 { require($SettDir['inc'].'members.php'); }
53 if($_GET['act']=="list"||
54 $_GET['act']=="getactive"||
55 $_GET['act']=="view"||
56 $_GET['act']=="signup")
57 { require($SettDir['inc'].'members.php'); }
58 if($_GET['act']=="makemember") {
59 if($_POST['act']=="makemembers") {
60 require($SettDir['inc'].'members.php'); } }
61 $iWrappers['CONTENT'] = ob_get_clean();
62 ob_start("idb_suboutput_handler");
63 require($SettDir['inc'].'endpage.php');
64 $iWrappers['COPYRIGHT'] = ob_get_clean();
65 ob_start("idb_suboutput_handler");
66 if(!isset($membertitle)) { $membertitle = null; }
68 </body>
69 </html>
70 <?php
71 $iWrappers['HTMLEND'] = ob_get_clean();
72 require($SettDir['inc'].'iwrapper.php');
73 if($membertitle==null) {
74 fix_amp($Settings['use_gzip'],$GZipEncode['Type']); }
75 if($membertitle!=null) {
76 change_title($Settings['board_name'].$membertitle,$Settings['use_gzip'],$GZipEncode['Type']); }