OSDN Git Service

Add files via upload
[idb/iDB.git.git] / profile.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: profile.php - Last Update: 11/27/2020 SVN 925 - 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['profile'].$usefileext.$_SERVER['PATH_INFO'];
22 $idbactcheck = array("view", "signature", "avatar", "settings", "profile", "userinfo");
23 ?>
24 <?php $iWrappers['EXTRALINKS'] = null;
25 ob_start("idb_suboutput_handler");
26 $title_html = htmlentities($Settings['board_name'].$idbpowertitle, ENT_QUOTES, $Settings['charset']);
27 ?>
28 <meta itemprop="title" property="og:title" content="<?php echo $title_html; ?>" />
29 <meta itemprop="sitename" property="og:site_name" content="<?php echo $title_html; ?>" />
30 <meta itemprop="title" property="twitter:title" content="<?php echo $title_html; ?>" />
31 <meta name="title" content="<?php echo $title_html; ?>" />
32 <title> <?php echo $Settings['board_name'].$idbpowertitle; ?> </title>
33 <?php $iWrappers['TITLETAG'] = ob_get_clean(); 
34 ob_start("idb_suboutput_handler"); ?>
35 </head>
36 <body>
37 <?php $iWrappers['BODYTAG'] = ob_get_clean();
38 ob_start("idb_suboutput_handler");
39 require($SettDir['inc'].'navbar.php');
40 $iWrappers['NAVBAR'] = ob_get_clean();
41 ob_start("idb_suboutput_handler");
42 if($_SESSION['UserGroup']==$Settings['GuestGroup']||$GroupInfo['CanEditProfile']=="no") {
43 redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false));
44 ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302;
45 gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
46 if($_SESSION['UserGroup']!=$Settings['GuestGroup']||
47         $GroupInfo['CanEditProfile']=="yes") {
48 if($_GET['act']==null||$_GET['act']=="notepad")
49 { $_GET['act']="view"; }
50 if(!in_array($_GET['act'], $idbactcheck))
51 { $_GET['act']="view"; }
52 if($_GET['act']=="view"||
53 $_GET['act']=="signature"||
54 $_GET['act']=="avatar"||
55 $_GET['act']=="settings"||
56 $_GET['act']=="profile"||
57 $_GET['act']=="userinfo")
58 { require($SettDir['inc'].'profilemain.php'); } } 
59 $iWrappers['CONTENT'] = ob_get_clean();
60 ob_start("idb_suboutput_handler");
61 require($SettDir['inc'].'endpage.php'); 
62 $iWrappers['COPYRIGHT'] = ob_get_clean();
63 ob_start("idb_suboutput_handler");
64 if(!isset($profiletitle)) { $profiletitle = null; }
65 ?>
66 </body>
67 </html>
68 <?php 
69 $iWrappers['HTMLEND'] = ob_get_clean();
70 require($SettDir['inc'].'iwrapper.php');
71 if($profiletitle==null) {
72 fix_amp($Settings['use_gzip'],$GZipEncode['Type']); }
73 if($profiletitle!=null) {
74 change_title($Settings['board_name'].$profiletitle,$Settings['use_gzip'],$GZipEncode['Type']); }
75 ?>