Small bug fix. :o
[iDB.git] / profile.php
blobeda6d571e2a30ec24c45ab990fa53788d278e4a4
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-2011 iDB Support - http://idb.berlios.de/
12 Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/
14 $FileInfo: profile.php - Last Update: 06/17/2011 SVN 676 - 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['profile'].$usefileext.$_SERVER['PATH_INFO'];
22 $idbactcheck = array("view", "signature", "avatar", "settings", "profile", "userinfo");
25 <title> <?php echo $Settings['board_name'].$idbpowertitle; ?> </title>
26 </head>
27 <body>
28 <?php require($SettDir['inc'].'navbar.php');
29 if($_SESSION['UserGroup']==$Settings['GuestGroup']||$GroupInfo['CanEditProfile']=="no") {
30 redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false));
31 ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302;
32 gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
33 if($_SESSION['UserGroup']!=$Settings['GuestGroup']||
34 $GroupInfo['CanEditProfile']=="yes") {
35 if($_GET['act']==null||$_GET['act']=="notepad")
36 { $_GET['act']="view"; }
37 if(!in_array($_GET['act'], $idbactcheck))
38 { $_GET['act']="view"; }
39 if($_GET['act']=="view"||
40 $_GET['act']=="signature"||
41 $_GET['act']=="avatar"||
42 $_GET['act']=="settings"||
43 $_GET['act']=="profile"||
44 $_GET['act']=="userinfo")
45 { require($SettDir['inc'].'profilemain.php'); } }
46 require($SettDir['inc'].'endpage.php');
47 if(!isset($profiletitle)) { $profiletitle = null; }
50 </body>
51 </html>
52 <?php
53 if($profiletitle==null) {
54 fix_amp($Settings['use_gzip'],$GZipEncode['Type']); }
55 if($profiletitle!=null) {
56 change_title($Settings['board_name'].$profiletitle,$Settings['use_gzip'],$GZipEncode['Type']); }