Small bug fix to CUBRID support.
[iDB.git] / messenger.php
blob48ff019797ac5b8ac8b2190a6eb8d6c867cfd65e
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: messenger.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['messenger'].$usefileext.$_SERVER['PATH_INFO'];
22 $idbactcheck = array("view", "viewsent", "read", "create", "sendmessage");
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['CanPM']=="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(); }
35 <?php
36 if($_SESSION['UserGroup']!=$Settings['GuestGroup']||
37 $GroupInfo['CanPM']=="yes") {
38 if($_GET['act']==null)
39 { $_GET['act']="view"; }
40 if(!in_array($_GET['act'], $idbactcheck))
41 { $_GET['act']="view"; }
42 if(!is_numeric($_GET['id'])&&$_GET['act']!="create")
43 { $_GET['id']="1"; }
44 if($_GET['act']=="view"||$_GET['act']=="viewsent")
45 { require($SettDir['inc'].'messages.php'); }
46 if($_GET['act']=="read"||$_GET['act']=="create"||
47 $_GET['act']=="sendmessage"||$_POST['act']=="sendmessages")
48 { require($SettDir['inc'].'messages.php'); } }
49 require($SettDir['inc'].'endpage.php');
50 if(!isset($MessageName)) { $MessageName = null; }
53 </body>
54 </html>
55 <?php
56 if($_GET['act']=="read") {
57 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." ".$MessageName,$Settings['use_gzip'],$GZipEncode['Type']); }
58 if($_GET['act']=="viewsent") {
59 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." Viewing Sent MailBox",$Settings['use_gzip'],$GZipEncode['Type']); }
60 if($_GET['act']=="view") {
61 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." Viewing MailBox",$Settings['use_gzip'],$GZipEncode['Type']); }
62 if($_GET['act']=="create") {
63 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." Making a Message",$Settings['use_gzip'],$GZipEncode['Type']); }
64 if($_GET['act']=="sendmessage"&&$_POST['act']=="sendmessages") {
65 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." Seanding a Message",$Settings['use_gzip'],$GZipEncode['Type']); }