function makebranch($parcat, $table, $level, $maxlevel, $max_post_id, $clas, $idtog) { global $imgtmpPI, $imgtmpNE; global $smilies, $theme, $forum, $forum_type, $allow_bbcode, $allow_to_post, $forum_access, $Mmod, $topic, $lock_state, $userdata; global $allow_upload_forum, $att, $anonymous, $short_user, $last_read, $toggle; settype($result, 'string'); $my_rsos = array(); $count = 0; settype($idtog, 'integer'); $list = $table[$parcat]; while (list($key, $val) = each($list)) { $myrow = unserialize($val); if ($level != '0') { if ($level == 1) { $clas = 'collapse col-sm-11 offset-sm-1'; $idtog = $idtog . ($count + 1); } else { $idtog = $idtog . $count; } } else { $idtog = $level + 1 . ($count + 1); // $idtog = $forum.$topic.$myrow['post_id'].'y'; } $posterdata = get_userdata_from_id($myrow['poster_id']); $posts = $posterdata['posts']; $socialnetworks = array(); $posterdata_extend = array(); $res_id = array(); $my_rs = ''; if (!$short_user) { $posterdata_extend = get_userdata_extend_from_id($myrow['poster_id']); include 'modules/reseaux-sociaux/reseaux-sociaux.conf.php'; if ($posterdata_extend['M2'] != '') { $socialnetworks = explode(';', $posterdata_extend['M2']); foreach ($socialnetworks as $socialnetwork) { $res_id[] = explode('|', $socialnetwork); } sort($res_id); sort($rs); foreach ($rs as $v1) { foreach ($res_id as $y1) { $k = array_search($y1[0], $v1); if (false !== $k) { $my_rs .= '<a class="mr-1" href="'; if ($v1[2] == 'skype') { $my_rs .= $v1[1] . $y1[1] . '?chat'; } else { $my_rs .= $v1[1] . $y1[1]; } $my_rs .= '" target="_blank"><i class="fa fa-' . $v1[2] . ' fa-2x text-primary"></i></a> '; break; } else { $my_rs .= ''; } } } $my_rsos[] = $my_rs; } else { $my_rsos[] = ''; } } $useroutils = ''; $useroutils .= '<hr />'; if ($posterdata['uid'] != 1 and $posterdata['uid'] != '') { $useroutils .= '<a class="list-group-item text-primary" href="user.php?op=userinfo&uname=' . $posterdata['uname'] . '" target="_blank" title="' . translate("Profile") . '" data-toggle="tooltip"><i class="fa fa-2x fa-user"></i> ' . translate("Profile") . '</a>'; } if ($user) { $useroutils .= '<a class="list-group-item text-primary" href="powerpack.php?op=instant_message&to_userid=' . $posterdata["uname"] . '" title="' . translate("Send internal Message") . '" data-toggle="tooltip"><i class="fa fa-2x fa-envelope-o"></i> ' . translate("Send internal Message") . '</a>'; } if ($posterdata['femail'] != '') { $useroutils .= '<a class="list-group-item text-primary" href="mailto:' . anti_spam($posterdata['femail'], 1) . '" target="_blank" title="' . translate("Email") . '" data-toggle="tooltip"><i class="fa fa-at fa-2x"></i> ' . translate("Email") . '</a>'; } if ($posterdata['url'] != '') { if (strstr('http://', $posterdata['url'])) { $posterdata['url'] = 'http://' . $posterdata['url']; } $useroutils .= '<a class="list-group-item text-primary" href="' . $posterdata['url'] . '" target="_blank" title="' . translate("Visit this Website") . '" data-toggle="tooltip"><i class="fa fa-2x fa-external-link"></i> ' . translate("Visit this Website") . '</a>'; } if ($posterdata['mns']) { $useroutils .= '<a class="list-group-item text-primary" href="minisite.php?op=' . $posterdata['uname'] . '" target="_blank" target="_blank" title="' . translate("Visit the Mini Web Site !") . '" data-toggle="tooltip"><i class="fa fa-2x fa-desktop"></i> ' . translate("Visit the Mini Web Site !") . '</a>'; } echo ' <div id="tog_' . $idtog . '" class="row ' . $clas . '"> <a name="' . $forum . $topic . $myrow['post_id'] . '"></a>'; if ($myrow['post_id'] == $max_post_id) { echo '<a name="last-post"></a>'; } echo ' <div class="col-xs-12"> <div class="card"> <div class="card-header">'; if ($smilies) { if ($posterdata['user_avatar'] != '') { if (stristr($posterdata['user_avatar'], "users_private")) { $imgtmp = $posterdata['user_avatar']; } else { if ($ibid = theme_image("forum/avatar/" . $posterdata['user_avatar'])) { $imgtmp = $ibid; } else { $imgtmp = "images/forum/avatar/" . $posterdata['user_avatar']; } } echo ' <a style="position:absolute; top:1rem;" tabindex="0" data-toggle="popover" data-html="true" data-title="' . $posterdata['uname'] . '" data-content=\'' . member_qualif($posterdata['uname'], $posts, $posterdata['rank']) . '<br /><div class="list-group">' . $useroutils . '</div><hr />' . $my_rsos[$count] . '\'><img class=" btn-secondary img-thumbnail img-fluid n-ava" src="' . $imgtmp . '" alt="' . $posterdata['uname'] . '" /></a>'; } } echo ' <span style="position:absolute; left:6em;" class="text-muted"><strong>' . $posterdata['uname'] . '</strong></span>'; echo '<span class="float-xs-right">'; if ($myrow['image'] != '') { if ($ibid = theme_image("forum/subject/" . $myrow['image'])) { $imgtmp = $ibid; } else { $imgtmp = "images/forum/subject/" . $myrow['image']; } echo '<img class="n-smil" src="' . $imgtmp . '" alt="" />'; } else { echo '<img class="n-smil" src="' . $imgtmpPI . '" alt="" />'; } echo '</span> </div>'; $message = stripslashes($myrow['post_text']); echo ' <div class="card-block"> <div class="card-text pt-1">'; $date_post = convertdateTOtimestamp($myrow['post_time']); if ($last_read != '') { if ($last_read <= $date_post and $userdata[3] != '' and $last_read != "0" and $userdata[0] != $myrow['poster_id']) { echo ' <img src="' . $imgtmpNE . '" alt="" />'; } } echo ' </div> <div class="card-text pt-1">'; if ($allow_bbcode and $forum_type != 6 and $forum_type != 5) { $message = smilie($message); $message = aff_video_yt($message); } if ($forum_type == '6' or $forum_type == '5') { highlight_string(stripslashes($myrow['post_text'])) . '<br /><br />'; } else { echo str_replace('[addsig]', '<div class="n-signature">' . nl2br($posterdata['user_sig']) . '</div>', $message); } if ($att > 0) { $post_id = $myrow['post_id']; echo '<div class="card-text">'; echo display_upload("forum_npds", $post_id, $Mmod); echo '</div>'; } echo ' </div> </div> <div class="card-footer"> <div class="row"> <div class=" col-sm-6 text-muted small">' . post_convertdate($date_post) . '</div> <div class=" col-sm-6 text-xs-right">'; if ($forum_access != 9) { if ($allow_to_post) { echo aff_pub_in($lock_state, $topic, $forum, $myrow['post_id'], 1); } if ($Mmod or $posterdata['uid'] == $userdata[0] and !$lock_state and $posterdata['uid'] != '') { echo '<a class="mr-1" href="editpost.php?post_id=' . $myrow["post_id"] . '&topic=' . $topic . '&forum=' . $forum . '&arbre=1" title="' . translate("Edit") . '" data-toggle="tooltip"><i class="fa fa-edit fa-lg"></i></a>'; if ($allow_upload_forum) { $PopUp = win_upload("forum_npds", $myrow['post_id'], $forum, $topic, "popup"); echo '<a class="mr-1" href="javascript:void(0);" onclick="window.open(' . $PopUp . ');" title="' . translate("Files") . '" data-toggle="tooltip"><i class="fa fa-download fa-lg"></i></a>'; } } if ($allow_to_post and !$lock_state and $posterdata['uid'] != '') { echo '<a class="mr-1" href="replyH.php?topic=' . $topic . '&forum=' . $forum . '&post=' . $myrow['post_id'] . '&citation=1" title="' . translate("Quote") . '" data-toggle="tooltip"><i class="fa fa-quote-left fa-lg"></i></a>'; } echo '<a class="mr-1" href="prntopic.php?forum=' . $forum . '&topic=' . $topic . '&post_id=' . $myrow['post_id'] . '" title="' . translate("Print") . '" data-toggle="tooltip"><i class="fa fa-print fa-lg"></i></a>'; if ($Mmod) { echo '<a class="mr-1" href="topicadmin.php?mode=viewip&topic=' . $topic . '&post=' . $myrow['post_id'] . '&forum=' . $forum . '&arbre=1" title="IP" data-toggle="tooltip" ><i class="fa fa-laptop fa-lg"></i></a>'; if (!$myrow['post_aff']) { echo ' <a href="topicadmin.php?mode=aff&topic=' . $topic . '&post=' . $myrow['post_id'] . '&ordre=1&forum=' . $forum . '&arbre=1" title="' . translate("Show this post") . '" data-toggle="tooltip"><i class="fa fa-eye text-danger fa-lg"></i></a> '; } else { echo ' <a href="topicadmin.php?mode=aff&topic=' . $topic . '&post=' . $myrow['post_id'] . '&ordre=0&forum=' . $forum . '&arbre=1" title="' . translate("Hide this post") . '" data-toggle="tooltip"><i class="fa fa-eye-slash fa-lg "></i></a> '; } } } echo ' </div> </div> </div>'; if (isset($table[$key]) and ($maxlevel > $level + 1 or $maxlevel == '0')) { echo ' <div><a class="float-xs-right" data-toggle="collapse" href="#tog_' . $idtog . '" aria-expanded="false" aria-controls=""><i class="togglearbr-icon fa fa-level-down fa-2x"></i></a></div>'; //unset ($idtog); $result .= makebranch($key, $table, $level + 1, $maxlevel, $max_post_id, $clas, $idtog); } echo ' </div> </div> </div>'; $count++; } return $result; }
if (!$Mmod) { $visible = ' AND visible = 1'; } $sql = "SELECT att_id FROM {$upload_table} WHERE apli='forum_npds' && topic_id = '{$topic}' {$visible}"; $att = sql_num_rows(sql_query($sql)); if ($att > 0) { include "modules/upload/include_forum/upload.func.forum.php"; } } echo "<tr align=\"left\">"; $posterdata = get_userdata_from_id($myrow['poster_id']); echo "<td width=\"15%\" valign=\"top\">"; $posts = $posterdata['posts']; echo $posterdata['uname']; echo '<br />'; echo member_qualif($posterdata['uname'], $posts, $posterdata['rank']); echo '<br /><br />'; if ($smilies) { if ($posterdata['user_avatar'] != '') { if (stristr($posterdata['user_avatar'], "users_private")) { $imgtmp = $posterdata['user_avatar']; } else { if ($ibid = theme_image("forum/avatar/" . $posterdata['user_avatar'])) { $imgtmp = $ibid; } else { $imgtmp = "images/forum/avatar/" . $posterdata['user_avatar']; } } if ($posterdata['mns']) { echo "<p align=\"center\"><a href=\"minisite.php?op=" . $posterdata['uname'] . "\" target=\"_blank\"><img src=\"{$imgtmp}\" alt=\"\" border=\"0\" /></a></p>"; } else {
<div class="col-xs-12"> <div class="card"> <div class="card-header">'; if ($smilies) { if ($posterdata['user_avatar'] != '') { if (stristr($posterdata['user_avatar'], "users_private")) { $imgtmp = $posterdata['user_avatar']; } else { if ($ibid = theme_image("forum/avatar/" . $posterdata['user_avatar'])) { $imgtmp = $ibid; } else { $imgtmp = "images/forum/avatar/" . $posterdata['user_avatar']; } } echo ' <a style="position:absolute; top:1rem;" tabindex="0" data-toggle="popover" data-html="true" data-title="' . $posterdata['uname'] . '" data-content=\'' . member_qualif($posterdata['uname'], $posts, $posterdata['rank']) . '<br /><div class="list-group">' . $useroutils . '</div><hr />' . $my_rsos[$count] . '\'><img class=" btn-secondary img-thumbnail img-fluid n-ava" src="' . $imgtmp . '" alt="' . $posterdata['uname'] . '" /></a>'; } } echo ' <span style="position:absolute; left:6em;" class="text-muted"><strong>' . $posterdata['uname'] . '</strong></span>'; echo '<span class="float-xs-right">'; if ($myrow['image'] != '') { if ($ibid = theme_image("forum/subject/" . $myrow['image'])) { $imgtmp = $ibid; } else { $imgtmp = "images/forum/subject/" . $myrow['image']; } echo '<img class="n-smil" src="' . $imgtmp . '" alt="icon_post" />'; } else { echo '<img class="n-smil" src="' . $imgtmpPI . '" alt="icon_post" />'; } echo '</span>
<div class="col-xs-12"> <div class="card"> <div class="card-header">'; if ($smilies) { if ($theposterdata['user_avatar'] != '') { if (stristr($theposterdata['user_avatar'], "users_private")) { $imgtmp = $theposterdata['user_avatar']; } else { if ($ibid = theme_image("forum/avatar/" . $theposterdata['user_avatar'])) { $imgtmp = $ibid; } else { $imgtmp = "images/forum/avatar/" . $theposterdata['user_avatar']; } } echo ' <a style="position:absolute; top:1rem;" tabindex="0" data-toggle="popover" data-html="true" data-title="' . $theposterdata['uname'] . '" data-content=\'' . member_qualif($theposterdata['uname'], $theposterdata['posts'], $theposterdata['rank']) . '\'><img class=" btn-secondary img-thumbnail img-fluid n-ava" src="' . $imgtmp . '" alt="' . $theposterdata['uname'] . '" /></a>'; } } echo ' <span style="position:absolute; left:6rem;" class="text-muted"><strong>' . $userdatat[1] . '</strong></span> <span class="float-xs-right">'; if (isset($image_subject)) { if ($ibid = theme_image("forum/subject/{$image_subject}")) { $imgtmp = $ibid; } else { $imgtmp = "images/forum/subject/{$image_subject}"; } echo '<img class="n-smil" src="' . $imgtmp . '" alt="" />'; } else { if ($ibid = theme_image("forum/icons/posticon.gif")) { $imgtmpP = $ibid;
<div class="col-xs-12"> <div class="card"> <div class="card-header">'; global $smilies; if ($smilies) { if ($posterdata['user_avatar'] != '') { if (stristr($posterdata['user_avatar'], "users_private")) { $imgtmp = $posterdata['user_avatar']; } else { if ($ibid = theme_image("forum/avatar/" . $posterdata['user_avatar'])) { $imgtmp = $ibid; } else { $imgtmp = "images/forum/avatar/" . $posterdata['user_avatar']; } } echo '<img width="48" height="48" class=" img-thumbnail img-fluid n-ava" src="' . $imgtmp . '" alt="' . $posterdata['uname'] . '" data-toggle="popover" data-html="true" data-title="' . $posterdata['uname'] . '" data-content=\'' . member_qualif($posterdata['uname'], $posts, $posterdata['rank']) . '<br />' . $useroutils . '\' />'; } } echo ' <span class="text-muted"><strong>' . $posterdata['uname'] . '</strong></span>'; echo ' </div>'; $message = stripslashes($myrow['post_text']); $date_post = convertdateTOtimestamp($myrow['post_time']); echo ' <div class="card-block"> <div class="card-text"> <img class="smil" src="' . $imgtmpPI . '" alt="" /> <span class="text-muted pull-right small">' . translate("Posted: ") . post_convertdate($date_post) . '</span> </div> <hr /> <div class="card-text">';
function show_imm($op) { global $smilies, $user, $allow_bbcode, $language, $Default_Theme, $theme, $site_font, $short_user, $Titlesitename; global $NPDS_Prefix; if (!$user) { Header("Location: user.php"); } else { $userX = base64_decode($user); $userdata = explode(':', $userX); if ($userdata[9] != '') { if (!($file = @opendir("themes/{$userdata['9']}"))) { $theme = $Default_Theme; } else { $theme = $userdata[9]; } } else { $theme = $Default_Theme; } include "themes/{$theme}/theme.php"; $userdata = get_userdata($userdata[1]); if ($op != 'new_msg') { $sql = "SELECT * FROM " . $NPDS_Prefix . "priv_msgs WHERE to_userid = '" . $userdata['uid'] . "' AND read_msg='1' AND type_msg='0' AND dossier='...' ORDER BY msg_id DESC"; } else { $sql = "SELECT * FROM " . $NPDS_Prefix . "priv_msgs WHERE to_userid = '" . $userdata['uid'] . "' AND read_msg='0' AND type_msg='0' ORDER BY msg_id ASC"; } $result = sql_query($sql); $pasfin = false; while ($myrow = sql_fetch_assoc($result)) { if ($pasfin == false) { $pasfin = true; cache_ctrl(); include "meta/meta.php"; include 'modules/include/header_head.inc'; echo import_css($theme, $language, $site_font, '', ''); echo ' </head> <body> <div class="card card-block">'; } $posterdata = get_userdata_from_id($myrow['from_userid']); echo ' <div class="card"> <div class="card-block"> <h3>' . translate("Private Message") . ' ' . translate("From"); if ($posterdata['uid'] == 1) { global $sitename; echo ' <span class="text-muted">' . $sitename . '</span></h3>'; } if ($posterdata['uid'] != 1) { echo ' <span class="text-muted">' . $posterdata['uname'] . '</span></h3>'; } $myrow['subject'] = strip_tags($myrow['subject']); $posts = $posterdata['posts']; if ($posterdata['uid'] != 1) { echo member_qualif($posterdata['uname'], $posts, $posterdata['rank']); } echo '<br /><br />'; if ($smilies) { if ($posterdata['user_avatar'] != '') { if (stristr($posterdata['user_avatar'], "users_private")) { $imgtmp = $posterdata['user_avatar']; } else { if ($ibid = theme_image("forum/avatar/" . $posterdata['user_avatar'])) { $imgtmp = $ibid; } else { $imgtmp = "images/forum/avatar/" . $posterdata['user_avatar']; } } echo '<img class="btn-secondary img-thumbnail img-fluid n-ava" src="' . $imgtmp . '" alt="' . $posterdata['uname'] . '" />'; } } if ($smilies) { if ($myrow['msg_image'] != '') { if ($ibid = theme_image("forum/subject/" . $myrow['msg_image'])) { $imgtmp = $ibid; } else { $imgtmp = "images/forum/subject/" . $myrow['msg_image']; } echo '<img class="n-smil" src="' . $imgtmp . '" alt="" /> '; } } echo translate("Sent") . ' : ' . $myrow['msg_time'] . '  '; echo '<h4>' . aff_langue($myrow['subject']) . '</h4>'; $message = stripslashes($myrow['msg_text']); if ($allow_bbcode) { $message = smilie($message); $message = aff_video_yt($message); } $message = str_replace("[addsig]", "<br /><br />" . nl2br($posterdata['user_sig']), aff_langue($message)); echo $message . '<br />'; if ($posterdata['uid'] != 1) { /* echo '<hr />'; if ($ibid=theme_image("forum/icons/profile.gif")) {$imgtmp=$ibid;} else {$imgtmp="images/forum/icons/profile.gif";} echo "  <a href=\"user.php?op=userinfo&uname=".$posterdata['uname']."\" class=\"noir\" target=\"_blank\"><img src=\"$imgtmp\" border=\"0\" alt=\"\" />".translate("Profile")."</a>"; if ($posterdata["femail"]!="") { if ($ibid=theme_image("forum/icons/email.gif")) {$imgtmp=$ibid;} else {$imgtmp="images/forum/icons/email.gif";} echo " <a href=\"mailto:".$posterdata['femail']."\" class=\"noir\" target=\"_blank\"><img src=\"$imgtmp\" border=\"0\" alt=\"\" />".translate("Email")."</a>"; } if ($posterdata['url']!="") { if (strstr("http://", $posterdata['url'])) $posterdata['url'] = "http://" . $posterdata['url']; if ($ibid=theme_image("forum/icons/www_icon.gif")) {$imgtmp=$ibid;} else {$imgtmp="images/forum/icons/www_icon.gif";} echo " <a href=\"".$posterdata['url']."\" class=\"noir\" target=\"_blank\"><img src=\"$imgtmp\" border=\"0\" alt=\"\" />www</a>"; } */ if (!$short_user) { /* */ } } echo ' </div> <div class="card-footer">'; if ($posterdata['uid'] != 1) { echo ' <a class="mr-1" href="readpmsg_imm.php?op=read_msg&msg_id=' . $myrow['msg_id'] . '&op_orig=' . $op . '&sub_op=reply" title="' . translate("Reply") . '" data-toggle="tooltip"><i class="fa fa-reply fa-lg"></i></a>'; } echo ' <a class="mr-1" href="readpmsg_imm.php?op=read_msg&msg_id=' . $myrow['msg_id'] . '&op_orig=' . $op . '&sub_op=read" title="' . translate("Read") . '" data-toggle="tooltip"><i class="fa fa-check-square-o fa-lg"></i></a> <a class="mr-1" href="readpmsg_imm.php?op=delete&msg_id=' . $myrow['msg_id'] . '&op_orig=' . $op . '" title="' . translate("Delete") . '" data-toggle="tooltip"><i class="fa fa-trash-o fa-lg text-danger"></i></a> </div> </div>'; } if ($pasfin != true) { cache_ctrl(); echo '<body onload="self.close();">'; } } echo ' </div> </body> </html>'; }
function show_imm($op) { global $smilies, $user, $allow_bbcode, $language, $Default_Theme, $theme, $site_font, $short_user, $Titlesitename; global $NPDS_Prefix; if (!$user) { Header("Location: user.php"); } else { $userX = base64_decode($user); $userdata = explode(":", $userX); if ($userdata[9] != "") { if (!($file = @opendir("themes/{$userdata['9']}"))) { $theme = $Default_Theme; } else { $theme = $userdata[9]; } } else { $theme = $Default_Theme; } include "themes/{$theme}/theme.php"; $userdata = get_userdata($userdata[1]); if ($op != "new_msg") { $sql = "SELECT * FROM " . $NPDS_Prefix . "priv_msgs WHERE to_userid = '" . $userdata['uid'] . "' and read_msg='1' and type_msg='0' and dossier='...' ORDER BY msg_id DESC"; } else { $sql = "SELECT * FROM " . $NPDS_Prefix . "priv_msgs WHERE to_userid = '" . $userdata['uid'] . "' and read_msg='0' and type_msg='0' ORDER BY msg_id ASC"; } $result = sql_query($sql); $pasfin = false; while ($myrow = sql_fetch_assoc($result)) { if ($pasfin == false) { $pasfin = true; cache_ctrl(); include "meta/meta.php"; echo import_css($theme, $language, $site_font, "", ""); echo "</head>\n<body topmargin=\"0\" leftmargin=\"0\" marginwidth=\"0\" marginheight=\"0\" style=\"background-color: #ffffff;\">"; } opentable(); echo "<table width=\"100%\" cellspacing=\"2\" cellpadding=\"2\" border=\"0\"><tr><td class=\"header\">\n"; $posterdata = get_userdata_from_id($myrow['from_userid']); echo translate("Private Message") . " " . translate("From"); if ($posterdata['uid'] == 1) { global $sitename; echo " " . $sitename; } echo "</td></tr></table>\n"; echo "<table width=\"100%\" cellspacing=\"1\" cellpadding=\"1\" border=\"0\">"; echo "<tr class=\"ligna\">"; $myrow['subject'] = strip_tags($myrow['subject']); echo "<td valign=\"top\" style=\"width: 15%;\"><b>"; if ($posterdata['uid'] != 1) { echo $posterdata['uname'] . "</b><br />"; } $posts = $posterdata['posts']; if ($posterdata['uid'] != 1) { echo member_qualif($posterdata['uname'], $posts, $posterdata['rank']); } echo "<br /><br />"; if ($smilies) { if ($posterdata['user_avatar'] != '') { if (stristr($posterdata['user_avatar'], "users_private")) { $imgtmp = $posterdata['user_avatar']; } else { if ($ibid = theme_image("forum/avatar/" . $posterdata['user_avatar'])) { $imgtmp = $ibid; } else { $imgtmp = "images/forum/avatar/" . $posterdata['user_avatar']; } } echo "<div class=\"avatar_cadre\"><img src=\"" . $imgtmp . "\" alt=\"" . $posterdata['uname'] . "\" border=\"0\" /></div>"; } } echo "</td><td valign=\"top\" style=\"width: 85%;\" height=\"100%\">"; echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"height: 100%; width: 100%;\">"; echo "<tr><td valign=\"top\" width=\"100%\" height=\"100%\">"; if ($smilies) { if ($myrow['msg_image'] != "") { if ($ibid = theme_image("forum/subject/" . $myrow['msg_image'])) { $imgtmp = $ibid; } else { $imgtmp = "images/forum/subject/" . $myrow['msg_image']; } echo "<img src=\"{$imgtmp}\" border=\"0\" alt=\"\" /> "; } } echo translate("Sent") . " : " . $myrow['msg_time'] . "  "; echo "<hr noshade=\"noshade\" class=\"ongl\" /><b>" . aff_langue($myrow['subject']) . "</b><br /><br />\n"; $message = stripslashes($myrow['msg_text']); if ($allow_bbcode) { $message = smilie($message); $message = aff_video_yt($message); } $message = str_replace("[addsig]", "<br /><br />" . nl2br($posterdata['user_sig']), aff_langue($message)); echo $message . "<br />"; echo "</td></tr><tr><td valign=\"bottom\">"; if ($posterdata['uid'] != 1) { echo "<hr noshade=\"noshade\" class=\"ongl\">"; if ($ibid = theme_image("forum/icons/profile.gif")) { $imgtmp = $ibid; } else { $imgtmp = "images/forum/icons/profile.gif"; } echo "  <a href=\"user.php?op=userinfo&uname=" . $posterdata['uname'] . "\" class=\"noir\" target=\"_blank\"><img src=\"{$imgtmp}\" border=\"0\" alt=\"\" />" . translate("Profile") . "</a>"; if ($posterdata["femail"] != "") { if ($ibid = theme_image("forum/icons/email.gif")) { $imgtmp = $ibid; } else { $imgtmp = "images/forum/icons/email.gif"; } echo " <a href=\"mailto:" . $posterdata['femail'] . "\" class=\"noir\" target=\"_blank\"><img src=\"{$imgtmp}\" border=\"0\" alt=\"\" />" . translate("Email") . "</a>"; } if ($posterdata['url'] != "") { if (strstr("http://", $posterdata['url'])) { $posterdata['url'] = "http://" . $posterdata['url']; } if ($ibid = theme_image("forum/icons/www_icon.gif")) { $imgtmp = $ibid; } else { $imgtmp = "images/forum/icons/www_icon.gif"; } echo " <a href=\"" . $posterdata['url'] . "\" class=\"noir\" target=\"_blank\"><img src=\"{$imgtmp}\" border=\"0\" alt=\"\" />www</a>"; } if (!$short_user) { if ($posterdata["user_icq"] != "") { if ($ibid = theme_image("forum/icons/icq_on.gif")) { $imgtmp = $ibid; } else { $imgtmp = "images/forum/icons/icq_on.gif"; } echo " <a href=\"http://wwp.mirabilis.com/" . $posterdata['icq'] . "\" target=\"_blank\" class=\"noir\"><img src=\"{$imgtmp}\" border=\"0\" alt=\"\" />icq</a>"; } if ($posterdata["user_aim"] != "") { if ($ibid = theme_image("forum/icons/aim.gif")) { $imgtmp = $ibid; } else { $imgtmp = "images/forum/icons/aim.gif"; } echo " <a href=\"aim:goim?screenname=" . $posterdata['user_aim'] . "&message=Hi+" . $posterdata['user_aim'] . ".+Are+you+there?\" class=\"noir\" target=\"_blank\"><img src=\"{$imgtmp}\" border=\"0\" alt=\"\" />aim</a>"; } if ($posterdata["user_yim"] != "") { if ($ibid = theme_image("forum/icons/yim.gif")) { $imgtmp = $ibid; } else { $imgtmp = "images/forum/icons/yim.gif"; } echo " <a href=\"http://edit.yahoo.com/config/send_webmesg?.target=" . $posterdata['user_yim'] . "&.src=pg\" target=\"_blank\"><img src=\"{$imgtmp}\" border=\"0\" alt=\"\" /></a>"; } if ($posterdata["user_msnm"] != '') { if ($ibid = theme_image("forum/icons/msnm.gif")) { $imgtmp = $ibid; } else { $imgtmp = "images/forum/icons/msnm.gif"; } echo " <a href=\"user.php?op=userinfo&uname=" . $posterdata['uname'] . "\" target=\"_blank\"><img src=\"{$imgtmp}\" border=\"0\" alt=\"\" /></a>"; } } } echo "</td></tr></table>"; echo "</td></tr>"; echo "<tr align=\"left\"><td colspan=\"2\" align=\"left\">"; if ($posterdata['uid'] != 1) { if ($ibid = theme_image("forum/icons/{$language}/reply.gif")) { $imgtmpD = $ibid; } else { $imgtmpD = "images/forum/icons/{$language}/reply.gif"; } echo " <a href=\"readpmsg_imm.php?op=read_msg&msg_id=" . $myrow['msg_id'] . "&op_orig={$op}&sub_op=reply\"><img src=\"{$imgtmpD}\" border=\"0\" alt=\"\" /></a>"; } if ($ibid = theme_image("forum/icons/{$language}/delete.gif")) { $imgtmpD = $ibid; } else { $imgtmpD = "images/forum/icons/{$language}/delete.gif"; } echo " <a href=\"readpmsg_imm.php?op=delete&msg_id=" . $myrow['msg_id'] . "&op_orig={$op}\"><img src=\"{$imgtmpD}\" border=\"0\" alt=\"\" /></a>"; if ($ibid = theme_image("forum/icons/{$language}/msg_read.gif")) { $imgtmpD = $ibid; } else { $imgtmpD = "images/forum/icons/{$language}/msg_read.gif"; } echo " <a href=\"readpmsg_imm.php?op=read_msg&msg_id=" . $myrow['msg_id'] . "&op_orig={$op}&sub_op=read\"><img src=\"{$imgtmpD}\" border=\"0\" alt=\"\" /></a>"; echo "</td></tr></table>"; closetable(); } if ($pasfin != true) { cache_ctrl(); echo "<body style=\"background-color: #ffffff;\" onload=\"self.close();\">"; } } echo "</body></html>"; }