コード例 #1
1
ファイル: viewtopicH.php プロジェクト: npds/npds_dune
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&amp;uname=' . $posterdata['uname'] . '" target="_blank" title="' . translate("Profile") . '" data-toggle="tooltip"><i class="fa fa-2x fa-user"></i>&nbsp;' . translate("Profile") . '</a>';
        }
        if ($user) {
            $useroutils .= '<a class="list-group-item text-primary" href="powerpack.php?op=instant_message&amp;to_userid=' . $posterdata["uname"] . '" title="' . translate("Send internal Message") . '" data-toggle="tooltip"><i class="fa fa-2x fa-envelope-o"></i>&nbsp;' . 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>&nbsp;' . 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>&nbsp;' . 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>&nbsp;' . 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 '&nbsp;<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 '&nbsp;<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"] . '&amp;topic=' . $topic . '&amp;forum=' . $forum . '&amp;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 . '&amp;forum=' . $forum . '&amp;post=' . $myrow['post_id'] . '&amp;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 . '&amp;topic=' . $topic . '&amp;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&amp;topic=' . $topic . '&amp;post=' . $myrow['post_id'] . '&amp;forum=' . $forum . '&amp;arbre=1" title="IP" data-toggle="tooltip" ><i class="fa fa-laptop fa-lg"></i></a>';
                if (!$myrow['post_aff']) {
                    echo '&nbsp;<a href="topicadmin.php?mode=aff&amp;topic=' . $topic . '&amp;post=' . $myrow['post_id'] . '&amp;ordre=1&amp;forum=' . $forum . '&amp;arbre=1" title="' . translate("Show this post") . '" data-toggle="tooltip"><i class="fa fa-eye text-danger fa-lg"></i></a>&nbsp;';
                } else {
                    echo '&nbsp;<a href="topicadmin.php?mode=aff&amp;topic=' . $topic . '&amp;post=' . $myrow['post_id'] . '&amp;ordre=0&amp;forum=' . $forum . '&amp;arbre=1" title="' . translate("Hide this post") . '" data-toggle="tooltip"><i class="fa fa-eye-slash fa-lg "></i></a>&nbsp;';
                }
            }
        }
        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;
}
コード例 #2
0
ファイル: viewtopic.php プロジェクト: npds/npds_dune
 echo '
            <div class="card-block">
               <div class="card-text pt-1">';
 $date_post = convertdateTOtimestamp($myrow['post_time']);
 if (isset($last_read)) {
     if ($last_read <= $date_post and $userdata[3] != '' and $last_read != '0' and $userdata[0] != $myrow['poster_id']) {
         echo '&nbsp;<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);
 }
 //      $message=split_string_without_space($message, 80);
 if ($forum_type == '6' or $forum_type == '5') {
     highlight_string(stripslashes($myrow['post_text'])) . '<br /><br />';
 } else {
     $message = str_replace('[addsig]', '<div class="n-signature">' . nl2br($posterdata['user_sig']) . '</div>', $message);
     echo '<div class="card-text fo-post-mes">';
     echo $message;
     echo '</div>';
 }
 if ($allow_upload_forum and $att > 0) {
     $post_id = $myrow['post_id'];
     echo '<div class="card-text">';
     echo display_upload("forum_npds", $post_id, $Mmod);
     echo '</div>';
コード例 #3
0
ファイル: preview.php プロジェクト: npds/npds_dune
        // IF we made it this far we are allowed to edit this message
        settype($forum, "integer");
        $myrow2 = sql_fetch_assoc(sql_query("SELECT forum_type FROM " . $NPDS_Prefix . "forums WHERE (forum_id = '{$forum}')"));
        $forum_type = $myrow2['forum_type'];
        if ($allow_html == 0 || isset($html)) {
            $messageP = htmlspecialchars($messageP, ENT_COMPAT | ENT_HTML401, cur_charset);
        }
        if ($allow_bbcode and $forum_type != 6 and $forum_type != 5) {
            $messageP = smile($messageP);
        }
        if ($forum_type != 6 and $forum_type != 5) {
            $messageP = aff_code($messageP);
            $messageP = str_replace("\n", '<br />', removeHack($messageP));
            $messageP .= "<br /><p>" . translate("This message was edited by") . ' : ' . $userdata['uname'] . "</p>";
            if ($allow_bbcode) {
                $messageP = aff_video_yt($messageP);
            }
        } else {
            $messageP .= "\n\n" . translate("This message was edited by") . ' : ' . $userdata['uname'];
        }
        $messageP = addslashes($messageP);
        break;
}
$theposterdata = get_userdata_from_id($userdatat[0]);
echo '
      <h4>' . translate("Preview") . '</h4>
      <div class="row">
         <div class="col-xs-12">
            <div class="card">
               <div class="card-header">';
if ($smilies) {
コード例 #4
0
ファイル: user.php プロジェクト: Jireck-npds/npds_dune
function userinfo($uname)
{
    global $NPDS_Prefix;
    global $user, $sitename, $smilies, $short_user, $site_font;
    global $name, $email, $url, $bio, $user_avatar, $user_icq, $user_aim, $user_yim, $user_msnm, $user_from, $user_occ, $user_intrest, $user_sig, $user_journal;
    $uname = removeHack($uname);
    $result = sql_query("SELECT uid, name, femail, url, bio, user_avatar, user_icq, user_aim, user_yim, user_msnm, user_from, user_occ, user_intrest, user_sig, user_journal, mns FROM " . $NPDS_Prefix . "users WHERE uname='{$uname}'");
    list($uid, $name, $femail, $url, $bio, $user_avatar, $user_icq, $user_aim, $user_yim, $user_msnm, $user_from, $user_occ, $user_intrest, $user_sig, $user_journal, $mns) = sql_fetch_row($result);
    if (!$uid) {
        header("location: index.php");
    }
    global $cookie;
    include "header.php";
    include_once "functions.php";
    if ($uname == $cookie[1]) {
        echo '
      <h2>' . translate("User") . '</h2>
      <h3>' . $uname . ', ' . translate("Welcome to") . ' ' . $sitename . '</h3>
      <p class="lead">' . translate("This is your personal page") . '</p>';
        nav($mns);
    }
    $email = removeHack($femail);
    $name = stripslashes(removeHack($name));
    $url = removeHack($url);
    $bio = stripslashes(removeHack($bio));
    $user_icq = stripslashes(removeHack($user_icq));
    $user_aim = stripslashes(removeHack($user_aim));
    $user_yim = stripslashes(removeHack($user_yim));
    $user_msnm = stripslashes(removeHack($user_msnm));
    $user_from = stripslashes(removeHack($user_from));
    $user_occ = stripslashes(removeHack($user_occ));
    $user_intrest = stripslashes(removeHack($user_intrest));
    $user_sig = nl2br(removeHack($user_sig));
    $user_journal = stripslashes(removeHack($user_journal));
    $op = "userinfo";
    //    include("modules/sform/extend-user/aff_extend-user.php");// nul quel est l'intérêt d'afficher un form quui n'a pas la fonction de form ? mais une fonctions d'affichage désépérément figé dans la structure du form ????
    if (stristr($user_avatar, "users_private")) {
        $direktori = "";
    } else {
        global $theme;
        $direktori = "images/forum/avatar/";
        if (function_exists("theme_image")) {
            if (theme_image("forum/avatar/blank.gif")) {
                $direktori = "themes/{$theme}/images/forum/avatar/";
            }
        }
    }
    if ($uname == $cookie[1]) {
        echo '
   <div class="card text-xs-center">
      <div class="card-header">
         <img src="' . $direktori . $user_avatar . '" class="" />
         <p class="card-text card-title "></p>
      </div>
      <div class="card-block">
         <h3 class="card-title">' . $name . ' <span class="text-muted">alias</span> ' . $uname . '</h3>
         <p class="card-text">You can contact me @ ' . $email . ' ' . $user_icq . '</p>
         <p class="card-text">Don not forget to visit <a href="' . $url . '" class="oo">my web-site</a>';
        if ($mns) {
            echo ' OR my <a href="minisite.php?op=' . $uname . '" target="_blank">' . translate("Mini-Web site") . '</a>';
        }
        echo '
         </p>
      </div>
      <div class="card-footer text-muted">
         ' . $user_sig . '
      </div>
   </div>';
    }
    echo "<br />";
    echo '
    <h4>' . translate("Online journal for") . ' ' . $uname . '.</h4>
    <div id="online_user_journal" class="card card-block">' . $user_journal . '</div>';
    $file = '';
    $handle = opendir('modules/comments');
    while (false !== ($file = readdir($handle))) {
        if (!preg_match('#\\.conf\\.php$#i', $file)) {
            continue;
        }
        $topic = "#topic#";
        include "modules/comments/{$file}";
        $filelist[$forum] = $url_ret;
    }
    closedir($handle);
    echo '
    <h4>' . translate("Last 10 comments by") . ' ' . $uname . '.</h4>
    <div id="last_ten_comment" class="card card-block">';
    $url = '';
    $result = sql_query("SELECT topic_id, forum_id, post_text, post_time FROM " . $NPDS_Prefix . "posts WHERE forum_id<0 and poster_id='{$uid}' ORDER BY post_time DESC LIMIT 0,10");
    while (list($topic_id, $forum_id, $post_text, $post_time) = sql_fetch_row($result)) {
        $url = str_replace("#topic#", $topic_id, $filelist[$forum_id]);
        echo "<p><a href=\"" . $url . "\">" . translate("Posted: ") . convertdate($post_time) . "</a></p>";
        $message = smilie(stripslashes($post_text));
        $message = aff_video_yt($message);
        $message = str_replace('[addsig]', '', $message);
        if (stristr($message, "<a href")) {
            $message = preg_replace('#_blank(")#i', '_blank\\1 class=\\1noir\\1', $message);
        }
        echo $message . '<hr />';
    }
    echo '</div>';
    echo '
    <h4>' . translate("Last 10 news submissions sent by") . ' ' . $uname . '.</h4>
    <div id="last_ten_comment" class="card card-block">';
    $xtab = news_aff("libre", "WHERE informant='{$uname}' ORDER BY sid DESC LIMIT 10", "", 10);
    $story_limit = 0;
    while ($story_limit < 10 and $story_limit < sizeof($xtab)) {
        list($sid, $catid, $aid, $title) = $xtab[$story_limit];
        $story_limit++;
        echo "<p><a href=\"article.php?sid={$sid}\">" . aff_langue($title) . "</a></p>";
    }
    echo '</div>';
    include "footer.php";
}
コード例 #5
0
ファイル: user.php プロジェクト: phrev/npds_dune
function userinfo($uname)
{
    global $NPDS_Prefix;
    global $user, $sitename, $smilies, $short_user, $site_font;
    global $name, $email, $url, $bio, $user_avatar, $user_from, $user_occ, $user_intrest, $user_sig, $user_journal;
    $uname = removeHack($uname);
    $result = sql_query("SELECT uid, name, femail, url, bio, user_avatar, user_from, user_occ, user_intrest, user_sig, user_journal, mns FROM " . $NPDS_Prefix . "users WHERE uname='{$uname}'");
    list($uid, $name, $femail, $url, $bio, $user_avatar, $user_from, $user_occ, $user_intrest, $user_sig, $user_journal, $mns) = sql_fetch_row($result);
    if (!$uid) {
        header("location: index.php");
    }
    global $cookie;
    include "header.php";
    include_once "functions.php";
    $email = removeHack($femail);
    $name = stripslashes(removeHack($name));
    $url = removeHack($url);
    $bio = stripslashes(removeHack($bio));
    $user_from = stripslashes(removeHack($user_from));
    $user_occ = stripslashes(removeHack($user_occ));
    $user_intrest = stripslashes(removeHack($user_intrest));
    $user_sig = nl2br(removeHack($user_sig));
    $user_journal = stripslashes(removeHack($user_journal));
    $op = "userinfo";
    if (stristr($user_avatar, "users_private")) {
        $direktori = '';
    } else {
        global $theme;
        $direktori = "images/forum/avatar/";
        if (function_exists("theme_image")) {
            if (theme_image("forum/avatar/blank.gif")) {
                $direktori = "themes/{$theme}/images/forum/avatar/";
            }
        }
    }
    $my_rsos = array();
    $socialnetworks = array();
    $posterdata_extend = array();
    $res_id = array();
    $my_rs = '';
    if (!$short_user) {
        $posterdata_extend = get_userdata_extend_from_id($uid);
        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[] = '';
        }
    }
    $posterdata = get_userdata_from_id($uid);
    $useroutils = '';
    if ($user) {
        $useroutils .= '<a class=" text-primary mr-1" href="powerpack.php?op=instant_message&amp;to_userid=' . $posterdata["uname"] . '" ><i class="fa fa-2x fa-envelope-o" title="' . translate("Send internal Message") . '" data-toggle="tooltip"></i></a>&nbsp;';
    }
    if ($posterdata['femail'] != '') {
        $useroutils .= '<a class=" text-primary mr-1" href="mailto:' . anti_spam($posterdata['femail'], 1) . '" target="_blank" ><i class="fa fa-at fa-2x" title="' . translate("Email") . '" data-toggle="tooltip"></i></a>&nbsp;';
    }
    if ($posterdata['url'] != '') {
        if (strstr('http://', $posterdata['url'])) {
            $posterdata['url'] = 'http://' . $posterdata['url'];
        }
        $useroutils .= '<a class=" text-primary mr-1" href="' . $posterdata['url'] . '" target="_blank" ><i class="fa fa-2x fa-external-link" title="' . translate("Visit this Website") . '" data-toggle="tooltip"></i></a>&nbsp;';
    }
    if ($posterdata['mns']) {
        $useroutils .= '<a class=" text-primary mr-1" href="minisite.php?op=' . $posterdata['uname'] . '" target="_blank" target="_blank" ><i class="fa fa-2x fa-desktop" title="' . translate("Visit the Mini Web Site !") . '" data-toggle="tooltip"></i></a>&nbsp;';
    }
    echo '
   <div class="row">
      <div class="col-sm-2"><img src="' . $direktori . $user_avatar . '" class=" rounded-circle center-block" /></div>
      <div class="col-sm-10">
         <h2>' . translate("User") . '&nbsp;<span class="text-muted">' . $uname . '</span></h2>';
    if ($uname !== $cookie[1]) {
        echo $useroutils;
    }
    echo $my_rsos[0];
    if ($uname == $cookie[1]) {
        //            <h3>'.translate("Welcome to").' '.$sitename.'</h3>
        echo '
         <p class="lead">' . translate("This is your personal page") . '</p>';
    }
    echo '
      </div>
   </div>
   <hr />';
    if ($uname == $cookie[1]) {
        nav($mns);
    }
    echo '
   <div class="card card-block">
      <div class="row">';
    if ($posterdata_extend['C7'] != '') {
        echo '
         <div class="col-md-6">';
    } else {
        echo '
         <div class="col-md-12">';
    }
    include "modules/sform/extend-user/aff_extend-user.php";
    echo '
         </div>';
    if ($posterdata_extend['C7'] != '') {
        $content = '';
        include 'modules/geoloc/geoloc_conf.php';
        $content .= '
<div class="col-md-6">
<div id="map_user" style="width:100%; height:400px;"></div>';
        $content .= '
<script type="text/javascript">
//<![CDATA[

   var 
   map_u, map_b,
   mapdivu = document.getElementById("map_user"),
   mapdivbl = document.getElementById("map_bloc");
   function geoloc_loaduser() {
   icon_u = {
      path: fontawesome.markers.USER,
      scale: ' . $acg_sc . ',
      strokeWeight: ' . $acg_t_ep . ',
      strokeColor: "' . $acg_t_co . '",
      strokeOpacity: ' . $acg_t_op . ',
      fillColor: "' . $acg_f_co . '",
      fillOpacity: ' . $acg_f_op . ',
   };

   icon_bl = {
      url: "' . $ch_img . $img_mbgb . '",
      size: new google.maps.Size(' . $w_ico_b . ',' . $h_ico_b . '),
      origin: new google.maps.Point(0, 0),
      anchor: new google.maps.Point(0, 0),
      scaledSize: new google.maps.Size(' . $w_ico_b . ', ' . $h_ico_b . ')
   };
      
   //==> carte du bloc
   if (document.getElementById("map_bloc")) {

      map_b = new google.maps.Map(mapdivbl,{
         center: new google.maps.LatLng(45, 0),
         zoom :3,
         zoomControl:false,
         streetViewControl:false,
         mapTypeControl: false,
         disableDoubleClickZoom: true 
      });
      map_b.setMapTypeId(google.maps.MapTypeId.' . $cartyp_b . ');
      function createMarkerB(point_b) {
         var marker_b = new google.maps.Marker({
            position: point_b,
            map: map_b,
            icon: icon_bl
         })
         return marker_b;
     }
        //== Fonction qui traite le fichier JSON ==
      $.getJSON("modules/geoloc/include/data.json", {}, function(data){
         $.each(data.markers, function(i, item){
            var point_b = new google.maps.LatLng(item.lat,item.lng);
            var marker_b = createMarkerB(point_b);
         });
      });
   };
   //<== carte du bloc
   
      map_u = new google.maps.Map(mapdivu,{
         center: new google.maps.LatLng(' . $posterdata_extend['C7'] . ', ' . $posterdata_extend['C8'] . '),
         zoom :7,
         zoomControl:true,
         streetViewControl:true,
         mapTypeControl: true,
         scrollwheel: false,
         disableDoubleClickZoom: true 
      });
      map_u.setMapTypeId(google.maps.MapTypeId.' . $cartyp_b . ');
      function createMarkerU(point_u) {
         var marker_u = new google.maps.Marker({
            position: point_u,
            map: map_u,
            title: "' . $uname . '",
            icon: icon_u
         })
         return marker_u;
      }
      var point_u = new google.maps.LatLng(' . $posterdata_extend['C7'] . ',' . $posterdata_extend['C8'] . ');
      var marker_u = createMarkerU(point_u);
   }
   $(document.body).attr("onload", "geoloc_loaduser()");
//]]>
</script>';
        $content .= '<div class="mt-1"><a href="modules.php?ModPath=geoloc&amp;ModStart=geoloc"><i class="fa fa-globe fa-lg"></i>&nbsp;[french]Carte[/french][english]Map[/english][chinese]&#x5730;&#x56FE;[/chinese]</a>';
        if ($admin) {
            $content .= '&nbsp;&nbsp;<a href="admin.php?op=Extend-Admin-SubModule&amp;ModPath=geoloc&amp;ModStart=admin/geoloc_set"><i class="fa fa-cogs fa-lg"></i>&nbsp;[french]Admin[/french] [english]Admin[/english] [chinese]Admin[/chinese]</a>';
        }
        $content .= '</div></div>';
        $content = aff_langue($content);
        echo $content;
    }
    echo '
      </div>
   </div>';
    /*   if ($uname == $cookie[1]) {
       echo '
       <div class="card text-xs-center">
          <div class="card-header">
             <img src="'.$direktori.$user_avatar.'" class="n-ava  thumbnail" />
             <p class="card-text card-title "></p>
          </div>
          <div class="card-block">
             <h3 class="card-title">'.$name.' <span class="text-muted">alias</span> '.$uname.'</h3>
             <p class="card-text">You can contact me @ '.$email.'</p>
             <p class="card-text">Don not forget to visit <a href="'.$url.'" class="oo">my web-site</a>';
       if ($mns) {echo ' OR my <a href="minisite.php?op='.$uname.'" target="_blank">'.translate("Mini-Web site").'</a>';}
       echo '
             </p>
          </div>
          <div class="card-footer text-muted">
             '.$user_sig.'
          </div>
       </div>';
       }; */
    echo '
    <br />
    <h4>' . translate("Online journal for") . ' ' . $uname . '.</h4>
    <div id="online_user_journal" class="card card-block mb-1">' . $user_journal . '</div>';
    $file = '';
    $handle = opendir('modules/comments');
    while (false !== ($file = readdir($handle))) {
        if (!preg_match('#\\.conf\\.php$#i', $file)) {
            continue;
        }
        $topic = "#topic#";
        include "modules/comments/{$file}";
        $filelist[$forum] = $url_ret;
    }
    closedir($handle);
    echo '
   <h4 class="mt-1">' . translate("Last 10 comments by") . ' ' . $uname . '.</h4>
   <div id="last_ten_comment" class="card card-block mb-1">';
    $url = '';
    $result = sql_query("SELECT topic_id, forum_id, post_text, post_time FROM " . $NPDS_Prefix . "posts WHERE forum_id<0 and poster_id='{$uid}' ORDER BY post_time DESC LIMIT 0,10");
    while (list($topic_id, $forum_id, $post_text, $post_time) = sql_fetch_row($result)) {
        $url = str_replace("#topic#", $topic_id, $filelist[$forum_id]);
        echo '<p><a href="' . $url . '">' . translate("Posted: ") . convertdate($post_time) . '</a></p>';
        $message = smilie(stripslashes($post_text));
        $message = aff_video_yt($message);
        $message = str_replace('[addsig]', '', $message);
        if (stristr($message, "<a href")) {
            $message = preg_replace('#_blank(")#i', '_blank\\1 class=\\1noir\\1', $message);
        }
        echo nl2br($message) . '<hr />';
    }
    echo '
    </div>
    <h4 class="mt-1">' . translate("Last 10 news submissions sent by") . ' ' . $uname . '.</h4>
    <div id="last_ten_comment" class="card card-block mb-1">';
    $xtab = news_aff("libre", "WHERE informant='{$uname}' ORDER BY sid DESC LIMIT 10", '', 10);
    $story_limit = 0;
    while ($story_limit < 10 and $story_limit < sizeof($xtab)) {
        list($sid, $catid, $aid, $title) = $xtab[$story_limit];
        $story_limit++;
        echo '
      <p><a href="article.php?sid=' . $sid . '">' . aff_langue($title) . '</a></p>';
    }
    echo '
   </div>
   <hr />
   <p class="n-signature">' . $user_sig . '</p>';
    include "footer.php";
}
コード例 #6
0
ファイル: minisite.php プロジェクト: Jireck-npds/npds_dune
        }
        $Fcontent = "";
        if (strstr($Xcontent, "!l_footer!")) {
            $l_fic = $dir . "footer.html";
            if (file_exists($l_fic)) {
                $fp = fopen($l_fic, "r");
                if (filesize($l_fic) > 0) {
                    $Fcontent = convert_ressources(fread($fp, filesize($l_fic)));
                }
                fclose($fp);
            }
        }
        if ($adminblog and strstr($Xcontent, "!l_blog_ajouter!")) {
            $blog_ajouter = "!l_blog_ajouterOK!";
        } else {
            $blog_ajouter = "";
        }
        $Xcontent = convert_ressources($Xcontent);
        // Meta-lang et removehack local
        $MNS_METALANG_words = array("'!l_header!'i" => "{$Hcontent}", "'!l_footer!'i" => "{$Fcontent}", "'!blog_page!{$perpage}'i" => "", "'!l_compteur!'i" => "{$cpt}", "'!l_new_pages!'i" => "{$new_pages}", "'!l_blog_ajouter!'i" => "{$blog_ajouter}", "'!blog!'i" => "{$content}", "'!copyright!'i" => "{$copyright}");
        $Xcontent = preg_replace(array_keys($MNS_METALANG_words), array_values($MNS_METALANG_words), $Xcontent);
        $Xcontent = meta_lang(MNSremoveHack($Xcontent));
        //applique aff_video que sur la partie affichage
        $rupt = strpos($Xcontent, "!v_yt!");
        echo substr($Xcontent, 0, $rupt);
        echo aff_video_yt(substr($Xcontent, $rupt + 6));
        echo '
            </body>
         </html>';
    }
}
コード例 #7
0
ファイル: readpmsg_imm.php プロジェクト: npds/npds_dune
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="" />&nbsp;';
                }
            }
            echo translate("Sent") . ' : ' . $myrow['msg_time'] . '&nbsp;&nbsp;&nbsp';
            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 "&nbsp;&nbsp<a href=\"user.php?op=userinfo&amp;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 "&nbsp;&nbsp;<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 "&nbsp;&nbsp;<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&amp;msg_id=' . $myrow['msg_id'] . '&amp;op_orig=' . $op . '&amp;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&amp;msg_id=' . $myrow['msg_id'] . '&amp;op_orig=' . $op . '&amp;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&amp;msg_id=' . $myrow['msg_id'] . '&amp;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>';
}
コード例 #8
0
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 "&nbsp;" . $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=\"\" />&nbsp;";
                }
            }
            echo translate("Sent") . " : " . $myrow['msg_time'] . "&nbsp;&nbsp;&nbsp";
            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 "&nbsp;&nbsp<a href=\"user.php?op=userinfo&amp;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 "&nbsp;&nbsp;<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 "&nbsp;&nbsp;<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 "&nbsp;&nbsp;<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 "&nbsp;&nbsp;<a href=\"aim:goim?screenname=" . $posterdata['user_aim'] . "&amp;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 "&nbsp;&nbsp;<a href=\"http://edit.yahoo.com/config/send_webmesg?.target=" . $posterdata['user_yim'] . "&amp;.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 "&nbsp;&nbsp;<a href=\"user.php?op=userinfo&amp;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 "&nbsp;<a href=\"readpmsg_imm.php?op=read_msg&amp;msg_id=" . $myrow['msg_id'] . "&amp;op_orig={$op}&amp;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 "&nbsp<a href=\"readpmsg_imm.php?op=delete&amp;msg_id=" . $myrow['msg_id'] . "&amp;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 "&nbsp;<a href=\"readpmsg_imm.php?op=read_msg&amp;msg_id=" . $myrow['msg_id'] . "&amp;op_orig={$op}&amp;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>";
}