OSDN Git Service

Add files via upload
[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-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
13
14     $FileInfo: member.php - Last Update: 08/02/2019 SVN 905 - 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", "getactive", "makemember", "makemembers");
25 if(!in_array($_GET['act'], $idbactcheck))
26 { $_GET['act']="login"; }
27 ?>
28 <?php $iWrappers['EXTRALINKS'] = null;
29 ob_start("idb_suboutput_handler");
30 $title_html = htmlentities($Settings['board_name'].$idbpowertitle, ENT_QUOTES, $Settings['charset']);
31 ?>
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 <title> <?php echo $Settings['board_name'].$idbpowertitle; ?> </title>
36 <?php $iWrappers['TITLETAG'] = ob_get_clean(); 
37 ob_start("idb_suboutput_handler"); ?>
38 </head>
39 <body>
40 <?php $iWrappers['BODYTAG'] = ob_get_clean();
41 ob_start("idb_suboutput_handler");
42 if($_GET['act']=="register")
43 { $_GET['act']="signup"; }
44 if($_GET['act']=="signin")
45 { $_GET['act']="login"; }
46 if($_GET['act']=="signout")
47 { $_GET['act']="logout"; }
48 if(!is_numeric($_GET['id']))
49 { $_GET['id']="1"; }
50 require($SettDir['inc'].'navbar.php');
51 $iWrappers['NAVBAR'] = ob_get_clean();
52 ob_start("idb_suboutput_handler");
53 if($_GET['act']=="login"||
54 $_GET['act']=="online"||
55 $_POST['act']=="loginmember"||
56 $_GET['act']=="logout")
57 { require($SettDir['inc'].'members.php'); } 
58 if($_GET['act']=="list"||
59 $_GET['act']=="getactive"||
60 $_GET['act']=="view"||
61 $_GET['act']=="signup")
62 { require($SettDir['inc'].'members.php'); } 
63 if($_GET['act']=="makemember") {
64 if($_POST['act']=="makemembers") {
65 require($SettDir['inc'].'members.php'); } }
66 $iWrappers['CONTENT'] = ob_get_clean();
67 ob_start("idb_suboutput_handler");
68 require($SettDir['inc'].'endpage.php');
69 $iWrappers['COPYRIGHT'] = ob_get_clean();
70 ob_start("idb_suboutput_handler");
71 if(!isset($membertitle)) { $membertitle = null; }
72 ?>
73 </body>
74 </html>
75 <?php 
76 $iWrappers['HTMLEND'] = ob_get_clean();
77 require($SettDir['inc'].'iwrapper.php');
78 if($membertitle==null) {
79 fix_amp($Settings['use_gzip'],$GZipEncode['Type']); }
80 if($membertitle!=null) {
81 change_title($Settings['board_name'].$membertitle,$Settings['use_gzip'],$GZipEncode['Type']); }
82 ?>