// All rights reserved. This script is part of PHPWCMS. The PHPWCMS web content management system is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. The GNU General Public License can be found at http://www.gnu.org/copyleft/gpl.html A copy is found in the textfile GPL.txt and important notices to the license from the author is found in LICENSE.txt distributed with these scripts. This script is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. This copyright notice MUST APPEAR in all copies of the script! *************************************************************************************/ // ---------------------------------------------------------------- // obligate check for phpwcms constants if (!defined('PHPWCMS_ROOT')) { die("You Cannot Access This Script Directly, Have a Nice Day."); } // ---------------------------------------------------------------- $no_durchlauf = 0; //Count message boxes //New Messages if($check = mysql_query("SELECT COUNT(*) FROM ".DB_PREPEND."phpwcms_message WHERE msg_uid=".$_SESSION["wcs_user_id"]." AND (msg_read=0 OR (NOW()-msg_tstamp<86400)) AND msg_deleted=0;", $db)) { if($count = mysql_fetch_row($check)) $count_newmsg = $count[0]; } //Old Messages if($check = mysql_query("SELECT COUNT(*) FROM ".DB_PREPEND."phpwcms_message WHERE msg_uid=".$_SESSION["wcs_user_id"]." AND msg_read=1 AND msg_deleted=0;", $db)) { if($count = mysql_fetch_row($check)) $count_readmsg = $count[0]; } //Sent Messages if($check = mysql_query("SELECT COUNT(*) FROM ".DB_PREPEND."phpwcms_message WHERE msg_from=".$_SESSION["wcs_user_id"]." AND msg_from_del=0;", $db)) { if($count = mysql_fetch_row($check)) $count_sentmsg = $count[0]; } //Files in trash if($check = mysql_query("SELECT COUNT(*) FROM ".DB_PREPEND."phpwcms_message WHERE (msg_uid=".$_SESSION["wcs_user_id"]." AND msg_deleted=1) OR (msg_from=".$_SESSION["wcs_user_id"]." AND msg_from_del=1);", $db)) { if($count = mysql_fetch_row($check)) $count_delmsg = $count[0]; } //Ermitteln, wieviele Nachrichten angezeigt werden sollen $msg_list = empty($_GET['l']) ? 15 : intval($_GET['l']); //Ermitteln, ob aufsteigend oder absteigend //0 = normal, absteigend (neueste zuerst) -> 1 = absteigend $msg_order = empty($_GET['o']) ? 0 : intval($_GET['o']); //Welche Message soll gerade angezeigt werden if(empty($_GET["msg"])) { $msg = 0; $msg_get["msg"] = ''; } else { $msg_get["msg"] = "&msg=".$_GET["msg"]; list($msg, $msg_read) = explode(":", $_GET["msg"]); $msg = intval($msg); } //Ermitteln, welcher Message Ordner angezeigt wird $msg_folder = empty($_GET['f']) ? 0 : intval($_GET['f']); if($msg_folder == 0 || $msg_folder >= 4) $msg_folder = 0; //new msg //fester GET-Konstrukt + Teile $msg_get["all"] = "&o=".$msg_order."&f=".$msg_folder."&l=".$msg_list; $msg_get["list"] = "&l=".$msg_list; $msg_get["order"] = "&o=".$msg_order; $msg_get["folder"] = "&f=".$msg_folder; ?>
>"> >"> >"> >"> ">10 ">25 ">50 ">100 ">250 ">
9)". " OR (msg_from=".$_SESSION["wcs_user_id"]." AND msg_from_del<>9)) AND msg_id=".$msg. " LIMIT 1;"; if($result = mysql_query($sql, $db)) { if($msgdetail = mysql_fetch_array($result)) { include("include/inc_lib/autolink.inc.php"); if($msgdetail["msg_from"] == $_SESSION["wcs_user_id"]) $do_move = 2; if($msgdetail["msg_uid"] == $_SESSION["wcs_user_id"]) $do_move = 1; ?>
:   :
" title="">" title="">3) {?>.1" title="">
0 dann Listing der neuen Nachrichten ?>';">
: : :
"> "> ">.1">
0 dann Listing der bereits gelesenen Nachrichten ?>';">
: : :
"> "> ">.1">
0 dann Listing der neuen Nachrichten ?>';">
: : :
"> "> ">.1">
0 dann Listing der neuen Nachrichten ?>';">
: : :
"> "> .0">.9">
"; echo "\n"; echo "\n"; echo "\n"; echo "
\n"; ?>