Esempio n. 1
0
                if (!empty($data['avatar']) && $data['avatar'] != "http://") {
                    echo '<img src="' . $data['avatar'] . '" alt="' . $data['pseudo'] . '" />';
                }
                echo '
						<br />
						Messages: ' . $data['nbpost'] . '<br />
					</td>
					<td valign="top" class="' . $color . '" style="padding:10px">
						<table width="100%" cellpadding="0" cellspacing="0" style="padding-bottom:5px">
						<tr>
							<td class="posthaut">' . $lg_posta['p30'] . ($data['idsa'] == 0 ? datefct($data['tmpsave'], $gmt) : datefct($data['tmppost'], $gmt)) . ' || ' . $lg_posta['p31'] . sit(htmlentities($data['titre'])) . '
							</td>
							<td width="200" align="right" class="posthaut"></td>
						</tr>
						</table>
						' . bbcode(nl2br(sit($data['texte']))) . '</td>
					</tr>
					<tr>
						<td colspan="2" class="espace"><img src="' . $design . 'space.gif" alt="" /></td>
					</tr>';
            }
            echo '
					</table>
				</td>
			</tr>
			</table>
			';
            echo '
		</div>
		</fieldset>
		<br />';
Esempio n. 2
0
			</a> - 
			<a href="' . (!$url_rewriting ? 'index.php?page=mp&send' : 'mp-send.html') . '">
				' . $lg_mps['mp8'] . '
			</a>
		</div>
		';
        if (isset($_POST['previsu'])) {
            echo '
		<table class="texte_base_normal" width="100%" cellspacing="0" cellpadding="0">
			<tr class="titreforum">
				<td class="titreforumstart texte_base_titrespec">' . $lg_mps['mp9'] . '</td>
			</tr>
			<tr>
				<td class="alternate1">
					<div class="text_prev">
						' . bbcode(nl2br(sit($_POST['texte']))) . '
					</div>
				</td>
			</tr>
		</table>';
        }
        echo '
		<form action="' . (!$url_rewriting ? 'index.php?page=mpsend&amp;id=' . $_GET['id'] : 'mpsend-' . $_GET['id'] . '-' . casse($pseudosend) . '.html') . '" method="post" enctype="multipart/form-data" name="post">
        <table class="texte_base_normal table_mpsend" width="100%" cellspacing="0" cellpadding="0">
			<tr class="titreforum">
				<td class="titreforumunique texte_base_titrespec table_mpsend_top" colspan="2">' . $lg_mps['mp10'] . '</td>
			</tr>
			<tr>
				<td class="cadre_clair cell_mpsend_author">' . $lg_mps['mp11'] . ' </td>
				<td class="cadre1_bas cell_mpsend_authordisplay">' . htmlentities($pseudosend) . '</td>
			</tr>
Esempio n. 3
0
            echo ' <input name="delpost" type="image" src="' . $design . 'actions/' . $langue . '/supprimer.gif" onclick="decision(\'' . addslashes($langue_post['post30']) . '\',\'delpost.php?id2=' . $data['id2'] . '\')" />';
        }
        echo '
					</div>
					<div class="posthead_infos">
						<a href="#' . $data['id2'] . '"><img src="' . $design . '/actions/ancre.gif" /></a>
						' . $langue_post['post31'] . ($data['idsa'] == 0 ? datefct($data['tmpsave'], $gmt) : datefct($data['tmppost'], $gmt)) . (!empty($data['titre']) ? ' || ' . $langue_post['post32'] . sit(htmlentities($data['titre'])) : '') . '
					</div>
					
					<div class="post_msgtxt">
				' . bbcode(nl2br(sit($data['texte'])));
        if (!empty($data['edit'])) {
            echo '<p class="edit">' . $langue_post['post35'] . '' . datefct($data['edit'], $gmt) . ']</p>';
        }
        if ($bbcodesign && !empty($data['sign']) && $data['signaff'] == 1 && $autorisationsign) {
            echo '<br />________________<br />' . bbcode(nl2br(sit($data['sign'])));
        } elseif (!empty($data['sign']) && $data['signaff'] == 1 && $autorisationsign) {
            echo '<br />________________<br />' . nl2br(htmlentities($data['sign']));
        }
        echo '
					</div>
				</div>
				<!-- fin bloc message -->
				<div class="post_undermsg"></div>
			</div>	<!-- fin bloc fiche message -->
			';
    }
    // fin de boucle msg
    echo '
		</div> <!-- fin lecture du sujet -->';
    echo '
Esempio n. 4
0
					Messages: ' . $data['nbpost'] . '<br />';
            if ($rang == 2 && $ipaff) {
                echo 'ip : ' . professordekodor($data['ip']);
            }
            echo '
                </td>
              <td valign="top" class="' . $color . '" style="padding:10px">
			  <table width="100%" border="0" cellpadding="0" cellspacing="0" style="padding-bottom:5px">
                <tr>
                  <td class="posthaut">Post&eacute; le: ';
            if ($data['idsa'] == 0) {
                echo datefct($data['tmpsave'], $gmt);
            } else {
                echo datefct($data['tmppost'], $gmt);
            }
            echo ' || Sujet du message: ' . sit(htmlentities($data['titre'])) . ' </td>
                  <td width="200" align="right" class="posthaut">';
            echo '</td>
                </tr>
              </table>
			  
                ' . bbcode(nl2br(htmlentities(substr($data['texte'], 0, 401))));
            if (strlen($data['texte']) > 400) {
                echo '...';
            }
            if (empty($data['idsa'])) {
                echo '
					<p class="edit">
						<a href="index.php?page=post&amp;ids=' . $data['id2'] . '">
							[ Atteindre cette discussion ]
						</a>
Esempio n. 5
0
    while ($data = $req->fetch()) {
        echo '
		<tr>
			<td class="cadre_fonce cell1_mp_logo">';
        // Champ `Lu` pour l'auteur (idde), `lu2` pour le "destinaire" (ida)
        if ($data['lu'] == 0 && $data['idde'] == $idmembre || $data['lu2'] == 0 && $data['ida'] == $idmembre) {
            echo '<img src="' . $design . 'statut/n_sujet.gif" alt="' . $langue_mp['mp9'] . '" title="' . $langue_mp['mp9'] . '" />';
            $unread++;
        } else {
            echo '<img src="' . $design . 'statut/sujet.gif" alt="' . $langue_mp['mp10'] . '" title="' . $langue_mp['mp10'] . '" />';
        }
        echo '
			</td>
			<td class="cadre_fonce cell2_mp_title">
				<a href="' . (!$url_rewriting ? 'index.php?page=mpread&amp;idm=' . $data['id'] . (isset($_GET['send']) ? '&send=' : '') : 'mpread' . (isset($_GET['send']) ? 'send' : '') . '-' . $data['id'] . '-' . casse($data['titre']) . '.html');
        echo '">' . sit(htmlentities($data['titre'])) . '
				</a>
			</td>
			<td class="cadre_clair cell3_mp_author">';
        if ($data['idde'] == $idmembre) {
            $_ps = $data['psa'];
            $_id = $data['ida'];
        } else {
            $_ps = $data['psde'];
            $_id = $data['idde'];
        }
        echo '
				<a href="' . (!$url_rewriting ? 'index.php?page=affprofil&amp;id=' . $_id : 'affprofil-' . $_id . '-' . casse($_ps) . '.html') . '">
					' . htmlentities($_ps) . '
				</a>';
        echo '
Esempio n. 6
0
            echo '
					</td>
					<td class="cadre_clair" style="padding:5px">';
            if ($data['lock'] > 0) {
                echo '<a href="' . (!$url_rewriting ? 'index.php?page=post&amp;ids=' . $data['lock'] : 'post-' . $data['lock'] . '-' . casse($data['titre']) . '.html');
            } else {
                echo '<div class="messagevisite"><a href="' . (!$url_rewriting ? 'index.php?page=post&amp;ids=' . $data['id2'] : 'post-' . $data['id2'] . '-' . casse($data['titre']) . '.html');
            }
            echo '">';
            if ($data['lock'] > 0) {
                echo '[' . $langue_forum['forum20'] . ']';
            }
            if ($data['tmpdernierpost'] == 1) {
                echo '[' . $langue_forum['forum21'] . '] ';
            }
            echo sit(htmlentities($data['titre']));
            if ($rang == 1 || $rang == 2) {
                if ($data['lock'] == -1) {
                    echo ' - <span class="admin">[' . $langue_forum['forum22'] . ']</span> ';
                }
                if ($data['lock'] == -2) {
                    echo ' - <span class="admin">[' . $langue_forum['forum23'] . ']</span> ';
                }
            }
            echo '</a></div>';
            $nbdepage = ceil(($data['nbr'] + 1) / $postparpageaff);
            if ($nbdepage > 1) {
                echo '<span class="allera">[ ' . $langue_forum['forum24'] . '';
                if ($nbdepage <= 4) {
                    for ($p = 0; $p < $nbdepage; $p++) {
                        echo '