//=======================================================\\
//================= Ultra Light IM Center =================\\
//==== ONLY CMS PHPKIT 1.6.4 =====\\
//==== Copyright 2009 by www.lcl-online.de =====\\
//==== Addon Autor: -=]LCL[=-|BuLLeT| =====\\
//==== Javascripts Copyright siehe Qelltext =====\\
//==== Addon Created Date: 09.04.2009 =====\\
//=======================================================\\
//=================================== (C) 2009 by LCL =====\\
//=======================================================\\
//=======================================================\\
//================= EINSTELLUNGEN ====================\\
//=======================================================\\
$pop_width = '200'; // Breite des Popup ( in Pixel)
$text_height = '150'; // Höhe des Nachichtenfeldes( in Pixel)
$rowspost = '5'; // Zeilen des Antwortfeldes
$x_pos = '200'; // Abstand Pixel vom Linken Seitenrand ( in Pixel)
$y_pos = '-200'; // Abstand vom Oberen Seitenrand( in Pixel)
$border = '1'; // Rahmenstärke 0 = kein Rahmen
$bordercolor = 'C71D06'; // Farbe des Rahmen
$padding = '0'; // Tabellen Abstände
$background = 'transparent'; // Hintergundfarbe
$imbot_id = ''; // Bot User ID - Nur bei Verwendung eines Bots der IM Versendet
//=======================================================\\
//=======================================================\\
//=======================================================\\
## ----> AB HIER NICHTS MEHR ÄNDERN !
#######################################################################################
pkLoadClass($BBCODE,'bbcode');
if (intval($imstatus_info=imstatus())>0){
$newim=$SQL->fetch_array($SQL->query("SELECT * FROM ".pkSQLTAB_USER_PRIVATEMESSAGE." where im_to='".intval(pkGetUserValue('id'))."' and im_view=0 ORDER by im_id DESC LIMIT 1"));
$im_id = intval($newim['im_id']);
$imtitel = trim(stripslashes($newim['im_title']));
$imautor = stripslashes($newim['im_autor']);
$imtext = $BBCODE->parse($newim['im_text'],0,1,1,1,1);
$userimsend=$SQL->fetch_array($SQL->query("SELECT user_id, user_nick FROM ".pkSQLTAB_USER." where user_id='".$imautor."' LIMIT 1"));
$imsenderid = intval($userimsend['user_id']);
$imsendernick = stripslashes($userimsend['user_nick']);
if ($imsenderid==0) {
$show_im='Neue System IM erhalten ';
$replybutton='Antwort ';
}
elseif ($imsenderid==$imbot_id){
$show_im='Neue IM vom Homepage Bot "Botty" ';
$replybutton='Antwort ';
}
else {
$show_im='Du hast eine IM von '.$imsendernick.' erhalten ';
$replybutton=' Antwort ';}
$reply_im = (isset($_POST['imreply'])) ? addslashes($_POST['imreply']) : 'view';
$delete_im = (isset($_POST['imdel'])) ? addslashes($_POST['imdel']) : 'view';
$read_im = (isset($_POST['imread'])) ? addslashes($_POST['imread']) : 'view';
if ($delete_im == $_POST['Yes']) {
$SQL->query("DELETE FROM ".pkSQLTAB_USER_PRIVATEMESSAGE." WHERE im_id='".$im_id."' LIMIT 1");
header ("location: $_POST[posturl]"); exit();
}
elseif ($reply_im == $_POST['antwort']){
$SQL->query("INSERT INTO ".pkSQLTAB_USER_PRIVATEMESSAGE."
(im_to,im_autor,im_title,im_text,im_time,im_replyed)
VALUES
('".$imautor."','".pkGetUserValue('id')."','RE: ".$imtitel."','".addslashes($_POST['im_new_text'])."','".pkTIME."','0')");
$SQL->query("UPDATE ".pkSQLTAB_USER_PRIVATEMESSAGE."
SET
im_view=1,
im_viewtime='".pkTIME."'
WHERE im_id='".$im_id."'");
header ("location: $_POST[posturl]"); exit();
}
elseif ($read_im == $_POST['imready']) {
$SQL->query("UPDATE ".pkSQLTAB_USER_PRIVATEMESSAGE."
SET
im_view=1,
im_viewtime='".pkTIME."'
WHERE im_id='".$im_id."'");
header ("location: $_POST[posturl]"); exit();
}
$new_text_height=$text_height-35;
$site_body.= '
';}
?>
Wer geht wann wohin....
Freitag, 22. September 2023
Seite in 0.15999 Sekunden generiert