Small update
[iDB.git] / member.php
blob980b10dcc56265f9528e51de0ff7644b3e1f66fe
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-2024 iDB Support - https://idb.osdn.jp/support/category.php?act=view&id=1
12 Copyright 2004-2024 Game Maker 2k - https://idb.osdn.jp/support/category.php?act=view&id=2
14 $FileInfo: member.php - Last Update: 8/23/2024 SVN 1023 - Author: cooldude2k $
16 if (ini_get("register_globals")) {
17 require_once('inc/misc/killglobals.php');
19 require('preindex.php');
20 $usefileext = $Settings['file_ext'];
21 if ($ext == "noext" || $ext == "no ext" || $ext == "no+ext") {
22 $usefileext = "";
24 $filewpath = $exfile['member'].$Settings['file_ext'].$_SERVER['PATH_INFO'];
25 if ($_GET['act'] == null) {
26 $_GET['act'] = "login";
28 if (!isset($_GET['view'])) {
29 $_GET['view'] = null;
31 $idbactcheck = array("view", "signup", "login", "login_now", "logout", "online", "list", "getactive", "makemember", "makemembers");
32 if (!in_array($_GET['act'], $idbactcheck)) {
33 $_GET['act'] = "login";
36 <?php $iWrappers['EXTRALINKS'] = null;
37 ob_start("idb_suboutput_handler");
38 $title_html = htmlentities($Settings['board_name'].$idbpowertitle, ENT_QUOTES, $Settings['charset']);
40 <meta itemprop="title" property="og:title" content="<?php echo $title_html; ?>" />
41 <meta itemprop="sitename" property="og:site_name" content="<?php echo $title_html; ?>" />
42 <meta itemprop="title" property="twitter:title" content="<?php echo $title_html; ?>" />
43 <meta name="title" content="<?php echo $title_html; ?>" />
44 <title> <?php echo $Settings['board_name'].$idbpowertitle; ?> </title>
45 <?php $iWrappers['TITLETAG'] = ob_get_clean();
46 ob_start("idb_suboutput_handler"); ?>
47 </head>
48 <body>
49 <?php $iWrappers['BODYTAG'] = ob_get_clean();
50 ob_start("idb_suboutput_handler");
51 if ($_GET['act'] == "register") {
52 $_GET['act'] = "signup";
54 if ($_GET['act'] == "signin") {
55 $_GET['act'] = "login";
57 if ($_GET['act'] == "signout") {
58 $_GET['act'] = "logout";
60 if (!is_numeric($_GET['id'])) {
61 $_GET['id'] = "1";
63 require($SettDir['inc'].'navbar.php');
64 $iWrappers['NAVBAR'] = ob_get_clean();
65 ob_start("idb_suboutput_handler");
66 if ($_GET['act'] == "login" ||
67 $_GET['act'] == "online" ||
68 $_POST['act'] == "loginmember" ||
69 $_GET['act'] == "logout") {
70 require($SettDir['inc'].'members.php');
72 if ($_GET['act'] == "list" ||
73 $_GET['act'] == "getactive" ||
74 $_GET['act'] == "view" ||
75 $_GET['act'] == "signup") {
76 require($SettDir['inc'].'members.php');
78 if ($_GET['act'] == "makemember") {
79 if ($_POST['act'] == "makemembers") {
80 require($SettDir['inc'].'members.php');
83 $iWrappers['CONTENT'] = ob_get_clean();
84 ob_start("idb_suboutput_handler");
85 require($SettDir['inc'].'endpage.php');
86 $iWrappers['COPYRIGHT'] = ob_get_clean();
87 ob_start("idb_suboutput_handler");
88 if (!isset($membertitle)) {
89 $membertitle = null;
92 </body>
93 </html>
94 <?php
95 $iWrappers['HTMLEND'] = ob_get_clean();
96 require($SettDir['inc'].'iwrapper.php');
97 if ($membertitle == null) {
98 fix_amp($Settings['use_gzip'], $GZipEncode['Type']);
100 if ($membertitle != null) {
101 change_title($Settings['board_name'].$membertitle, $Settings['use_gzip'], $GZipEncode['Type']);