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-2007 Cool Dude 2k - http://intdb.sourceforge.net/
12 Copyright 2004-2007 Game Maker 2k - http://upload.idb.s1.jcink.com/
14 $FileInfo: profile.php - Last Update: 07/14/2007 SVN 43 - Author: cooldude2k $
16 require('preindex.php');
17 $usefileext = $Settings['file_ext'];
18 if($ext=="noext"||$ext=="no ext"||$ext=="no+ext") { $usefileext = ""; }
19 $filewpath = $exfile['profile'].$usefileext.$_SERVER['PATH_INFO'];
22 <title> <?php echo $Settings['board_name'].$idbpowertitle; ?> </title>
25 <?php require($SettDir['inc'].'navbar.php');
26 if($_SESSION['UserGroup']==$Settings['GuestGroup']||$GroupInfo['CanEditProfile']=="no") {
27 redirect("location",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false));
28 ob_clean(); @header("Content-Type: text/plain; charset=".$Settings['charset']);
29 gzip_page($Settings['use_gzip'],$GZipEncode['Type']); die(); }
30 if($_SESSION['UserGroup']!=$Settings['GuestGroup']||
31 $GroupInfo['CanEditProfile']=="yes") {
32 if($_GET['act']==null||$_GET['act']=="notepad")
33 { $_GET['act']="view"; }
34 if($_GET['act']=="view"||
35 $_GET['act']=="signature"||
36 $_GET['act']=="avatar"||
37 $_GET['act']=="settings"||
38 $_GET['act']=="profile"||
39 $_GET['act']=="userinfo")
40 { require($SettDir['inc'].'profilemain.php'); } } ?>
42 <?php require($SettDir['inc'].'endpage.php');
43 if(!isset($profiletitle)) { $profiletitle = null; }
49 if($profiletitle==null) {
50 fix_amp($Settings['use_gzip'],$GZipEncode['Type']); }
51 if($profiletitle!=null) {
52 change_title($Settings['board_name'].$profiletitle,$Settings['use_gzip'],$GZipEncode['Type']); }