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-2017 iDB Support - http://idb.berlios.de/
12     Copyright 2004-2017 Game Maker 2k - http://gamemaker2k.org/
13
14     $FileInfo: profile.php - Last Update: 01/26/2017 SVN 810 - 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> <?php echo $Settings['board_name'].$idbpowertitle; ?> </title>
27 <?php $iWrappers['TITLETAG'] = ob_get_clean(); 
28 ob_start("idb_suboutput_handler"); ?>
29 </head>
30 <body>
31 <?php $iWrappers['BODYTAG'] = ob_get_clean();
32 ob_start("idb_suboutput_handler");
33 require($SettDir['inc'].'navbar.php');
34 $iWrappers['NAVBAR'] = ob_get_clean();
35 ob_start("idb_suboutput_handler");
36 if($_SESSION['UserGroup']==$Settings['GuestGroup']||$GroupInfo['CanEditProfile']=="no") {
37 redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false));
38 ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302;
39 gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
40 if($_SESSION['UserGroup']!=$Settings['GuestGroup']||
41         $GroupInfo['CanEditProfile']=="yes") {
42 if($_GET['act']==null||$_GET['act']=="notepad")
43 { $_GET['act']="view"; }
44 if(!in_array($_GET['act'], $idbactcheck))
45 { $_GET['act']="view"; }
46 if($_GET['act']=="view"||
47 $_GET['act']=="signature"||
48 $_GET['act']=="avatar"||
49 $_GET['act']=="settings"||
50 $_GET['act']=="profile"||
51 $_GET['act']=="userinfo")
52 { require($SettDir['inc'].'profilemain.php'); } } 
53 $iWrappers['CONTENT'] = ob_get_clean();
54 ob_start("idb_suboutput_handler");
55 require($SettDir['inc'].'endpage.php'); 
56 $iWrappers['COPYRIGHT'] = ob_get_clean();
57 ob_start("idb_suboutput_handler");
58 if(!isset($profiletitle)) { $profiletitle = null; }
59 ?>
60 </body>
61 </html>
62 <?php 
63 $iWrappers['HTMLEND'] = ob_get_clean();
64 require($SettDir['inc'].'iwrapper.php');
65 if($profiletitle==null) {
66 fix_amp($Settings['use_gzip'],$GZipEncode['Type']); }
67 if($profiletitle!=null) {
68 change_title($Settings['board_name'].$profiletitle,$Settings['use_gzip'],$GZipEncode['Type']); }
69 ?>