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