OSDN Git Service

Small update to copyright info. :)
[idb/iDB.git.git] / messenger.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-2011 iDB Support - http://idb.berlios.de/
12     Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/
13
14     $FileInfo: messenger.php - Last Update: 12/07/2010 SVN 600 - 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['messenger'].$usefileext.$_SERVER['PATH_INFO'];
22 ?>
23
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['CanPM']=="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 ?>
33
34 <?php 
35 if($_SESSION['UserGroup']!=$Settings['GuestGroup']||
36         $GroupInfo['CanPM']=="yes") {
37 if($_GET['act']==null)
38 { $_GET['act']="view"; }
39 if(!is_numeric($_GET['id'])&&$_GET['act']!="create")
40 { $_GET['id']="1"; }
41 if($_GET['act']=="view"||$_GET['act']=="viewsent")
42 { require($SettDir['inc'].'messages.php'); }
43 if($_GET['act']=="read"||$_GET['act']=="create"||
44         $_GET['act']=="sendmessage"||$_POST['act']=="sendmessages")
45 { require($SettDir['inc'].'messages.php'); } }
46 require($SettDir['inc'].'endpage.php');
47 if(!isset($MessageName)) { $MessageName = null; }
48 ?>
49
50 </body>
51 </html>
52 <?php 
53 if($_GET['act']=="read") {
54 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." ".$MessageName,$Settings['use_gzip'],$GZipEncode['Type']); }
55 if($_GET['act']=="viewsent") { 
56 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." Viewing Sent MailBox",$Settings['use_gzip'],$GZipEncode['Type']); }
57 if($_GET['act']=="view") {
58 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." Viewing MailBox",$Settings['use_gzip'],$GZipEncode['Type']); }
59 if($_GET['act']=="create") { 
60 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." Making a Message",$Settings['use_gzip'],$GZipEncode['Type']); }
61 if($_GET['act']=="sendmessage"&&$_POST['act']=="sendmessages") { 
62 change_title($Settings['board_name']." ".$ThemeSet['TitleDivider']." Seanding a Message",$Settings['use_gzip'],$GZipEncode['Type']); }
63 ?>