Update killglobals.php
[iDB.git] / member.php
blob64d313a8ce0105f628c5615e0f53a058b01ee268
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-2023 iDB Support - https://idb.osdn.jp/support/category.php?act=view&id=1
12 Copyright 2004-2023 Game Maker 2k - https://idb.osdn.jp/support/category.php?act=view&id=2
14 $FileInfo: member.php - Last Update: 6/22/2023 SVN 984 - 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_html = htmlentities($Settings['board_name'].$idbpowertitle, ENT_QUOTES, $Settings['charset']);
32 <meta itemprop="title" property="og:title" content="<?php echo $title_html; ?>" />
33 <meta itemprop="sitename" property="og:site_name" content="<?php echo $title_html; ?>" />
34 <meta itemprop="title" property="twitter:title" content="<?php echo $title_html; ?>" />
35 <meta name="title" content="<?php echo $title_html; ?>" />
36 <title> <?php echo $Settings['board_name'].$idbpowertitle; ?> </title>
37 <?php $iWrappers['TITLETAG'] = ob_get_clean();
38 ob_start("idb_suboutput_handler"); ?>
39 </head>
40 <body>
41 <?php $iWrappers['BODYTAG'] = ob_get_clean();
42 ob_start("idb_suboutput_handler");
43 if($_GET['act']=="register")
44 { $_GET['act']="signup"; }
45 if($_GET['act']=="signin")
46 { $_GET['act']="login"; }
47 if($_GET['act']=="signout")
48 { $_GET['act']="logout"; }
49 if(!is_numeric($_GET['id']))
50 { $_GET['id']="1"; }
51 require($SettDir['inc'].'navbar.php');
52 $iWrappers['NAVBAR'] = ob_get_clean();
53 ob_start("idb_suboutput_handler");
54 if($_GET['act']=="login"||
55 $_GET['act']=="online"||
56 $_POST['act']=="loginmember"||
57 $_GET['act']=="logout")
58 { require($SettDir['inc'].'members.php'); }
59 if($_GET['act']=="list"||
60 $_GET['act']=="getactive"||
61 $_GET['act']=="view"||
62 $_GET['act']=="signup")
63 { require($SettDir['inc'].'members.php'); }
64 if($_GET['act']=="makemember") {
65 if($_POST['act']=="makemembers") {
66 require($SettDir['inc'].'members.php'); } }
67 $iWrappers['CONTENT'] = ob_get_clean();
68 ob_start("idb_suboutput_handler");
69 require($SettDir['inc'].'endpage.php');
70 $iWrappers['COPYRIGHT'] = ob_get_clean();
71 ob_start("idb_suboutput_handler");
72 if(!isset($membertitle)) { $membertitle = null; }
74 </body>
75 </html>
76 <?php
77 $iWrappers['HTMLEND'] = ob_get_clean();
78 require($SettDir['inc'].'iwrapper.php');
79 if($membertitle==null) {
80 fix_amp($Settings['use_gzip'],$GZipEncode['Type']); }
81 if($membertitle!=null) {
82 change_title($Settings['board_name'].$membertitle,$Settings['use_gzip'],$GZipEncode['Type']); }