if ($get_realname == null) { echo '<span class="from"><a href="profile.php?id=' . $get_userID . '" class="user-name">@' . $get_username . '</a> '; } else { echo '<span class="from"><a href="profile.php?id=' . $get_userID . '" class="user-name">' . $get_realname . '</a> '; } if ($get_title !== null) { echo '<span class="forum-title"><em>' . $get_title . '</em></span></span> '; } echo '<span class="time muted"><small>' . timeAgo($get_sTime) . '</small></span>'; if ($_SESSION['current_userID'] !== $get_userID) { echo '<span class="pull-right">'; echo '<button class="btn btn-mini tip-top" id="rtshoutm-' . $get_shoutID . '" onClick="rtshoutm(\'' . $get_shoutID . '\',\'' . $get_username . '\');" title="Reshout"><i class="icon-share"></i> RT</button> '; echo '<button class="btn btn-mini" id="mention-' . $get_shoutID . '" onClick="insertNickname(\'' . $get_username . '\');"><i class="icon-circle"></i> Mention</button>'; echo '</span>'; } echo '<span class="text" id="msg-' . $get_shoutID . '">' . stripslashes(rtrim(clickable(bbCode($get_shoutMsg)))) . '</span>'; echo '</span></li>'; } if ($count_shout_more == 20) { echo '<div style="margin-top:10px;padding:10px;text-align:center;" id="more-' . $get_shoutID . '" class="morebox"><a href="#" id="' . $get_shoutID . '" class="btn btn-small btn-inverse more"><i class="icon-arrow-down icon-white"></i> Load more...</a></div>'; } else { echo '<div style="margin-top:10px;padding:10px;text-align:center;">End of Messages</div>'; } echo ' <script> $(document).ready(function () { // START DOCUMENT.READY $(".link-tip, .tip-top").tooltip(); $(".more").click(function(e){ e.preventDefault(); var ID = $(this).attr("id");
} else { echo '<table class="table table-borderz shoutbox-striped table-override" id="shoutbox-table"><colgroup><col class="span2"><col class="span6"></colgroup>'; echo '<thead><tr><th></th><th>Latest <span class="requestcode">!update</span> from Sharers '; echo ' <a href="sharer_updates.php?page=1" class="label label-success">More...</a></th></tr></thead><tbody>'; while ($shout = mysql_fetch_assoc($result)) { // data clearance period $data_date = time() - 60 * 60 * 24 * 21; // 21 days $check_data = mysql_query("SELECT * FROM i_updates WHERE `datetime` < {$data_date}") or die(mysql_error()); if (mysql_num_rows($check_data) > 0) { mysql_query("DELETE FROM i_updates WHERE `datetime` < {$data_date}"); } $userid = $shout['id']; $nick = $shout['username']; $posttime = $shout['datetime']; $shout_combined = makeClickableLinks(bbCode($shout['item'])); $shoutx = stripslashes(rtrim($shout_combined)); $data = mysql_query("SELECT * FROM i_users WHERE userwd='{$nick}'") or die(mysql_error()); $row = mysql_fetch_array($data); if (mysql_num_rows($data) > 0) { // admin if (in_array($nick, $admin, true)) { $lines[] = ' <tr><td class="chatter-box"><a href="profile.php?user='******'" class="chatter" title="View ' . $nick . ' Profile"><strong>' . $nick . '</strong></a><br /><span class="timeAgo">' . time_ago($posttime) . '</span></td> <td>' . $shoutx . ''; $lines[] = '</td></tr>'; // VIP } else { if (in_array($nick, $kitty, true)) { $lines[] = ' <tr><td class="chatter-box"><a href="profile.php?user='******'" class="chatter" title="View ' . $nick . ' Profile"><strong>' . $nick . '</strong></a><br /><span class="timeAgo">' . time_ago($posttime) . '</span></td>
$get_realname = $rowf['realname']; $get_title = $rowf['title']; $show_avatar = $rowf['show_avatars']; $avatar_type = $rowf['avatar']; } $dbf->close(); echo '<li id="' . $reqmsgid . '" class="left">'; echo '<img class="avatar" alt="' . $get_username . '" src="' . get_avatar($avatar_type, $requser) . '">'; echo '<span class="message"><span class="arrow"></span>'; if ($get_realname == null) { echo '<span class="from"><strong>@' . $get_username . '</strong> '; } else { echo '<span class="from"><strong>' . $get_realname . '</strong> '; } echo '<span class="time muted"><small>' . timeAgo($reqmsgtime) . '</small></span>'; echo '<span class="text" id="msg-' . $reqmsgid . '">' . stripslashes(rtrim(clickable(bbCode($reqmsg)))) . '</span>'; echo '</span></li>'; } $db->close(); echo '</ul>'; echo '</div>'; echo ' <div id="rconsole" class="alert alert-error" style="display:none"></div> <form id="shoutForm" class="form-horizontal"> <textarea id="replyTextarea" class="input-block-level msg-box" placeholder="Type your message here" rows="3" maxlength="500"></textarea> <input type="hidden" id="replyUserId" value="' . $currentUserID . '"> <input type="hidden" id="requestMsgId" value="' . $reqmsgid . '"> <div class="post-control" style="min-height:30px">
<div class="post"> <div class="pseudo"> <div class="avatar"> <img src="http://www.evenforum.com/' . $donnees_membres->avatar . '" /> </div> ' . $donnees_membres->pseudo . ' <div class="date_envoi"> Envoyé le ' . $poste_le . ' </div> </div> <b><font size="5" face="Arial">' . $icon_rank . '</font> <font size="4">' . $donnees_membres->niveau . '</font></b><br /> EXP : <b>' . number_format($donnees_membres->experience) . '</b> <br /> <div class="separate"></div> ' . nl2br(bbCode(stripslashes(htmlspecialchars($donnees_message->message)))) . ' </div> '; } elseif ($donnees_message->type == 1) { $destinataire = explode(",", $donnees_message->pseudo); // On met dans un tableau la liste des participants $i = 0; $invites = ""; $nbDestinataire = count($destinataire); foreach ($destinataire as $des) { $invites .= $des; if ($nbDestinataire - $i > 2) { $invites .= ", "; } elseif ($nbDestinataire > 1 and $nbDestinataire - $i > 1) { $invites .= " et ";
protected function blogArchive($limit = null){ $posts = $this->fetchBlogRoll($limit); $output = ''; foreach ($posts as $post){ $plain_entry=preg_replace('/(\s*<br[^>]*>\s*)+/',"\n",$post['Entry']); $plain_entry=bbCode($plain_entry,'b'); $plain_entry=strip_tags($plain_entry); $plain_entry=preg_replace('/(\s*\n\s*)+/',"\n",$plain_entry); if (strlen($plain_entry)>280 && $fullEntry!=1) { $plain_entry = fixCutoff($plain_entry,280); $plain_entry = bbCode($plain_entry,'h'); $cleaned_post = nl2br($plain_entry) . '...'; } else{ $cleaned_post = $post['Entry']; } $output.= '<div class="blog-post p_block col-xs-12 col-sm-4"> <div class="row">'; if ($post['photo']){ $output.= '<div class="col-xs-12 col-sm-4 "> ' . $post['photo'] . ' </div> <div class="col-xs-12 col-sm-8"> <h3 class="media-heading">' .$post['Title'] . '</h3> <div class="post-entry">'. $cleaned_post .'<div class="readmore"> <a href="'. $post['linkto'] .'">Read More</a></div></div> </div>'; } else { $output.= '<div class="col-xs-12"> <h3 class="media-heading">' .$post['Title'] . '</h3> <div class="post-entry">'. $cleaned_post .'<div class="readmore"> <a href="'. $post['linkto'] .'">Read More</a></div></div> </div>'; } $output.= '</div> </div>'; } if ( $this->edit_site != false && !($this->is_homepage) ) { $output.= '<a href="javascript:goiframeBC( ' . $this->page_id . ',\'newEntry\',\'bEnt\');" class="editLink">Add New Entry to News</a>'; } return $output; }
function affichage_lien_resa_planning($breve_description, $id_resa) { if (Settings::get("display_short_description") == 1 && $breve_description != "") { $affichage = $breve_description; } else { $affichage = get_vocab("entryid") . $id_resa; } return bbCode(htmlspecialchars($affichage, ENT_NOQUOTES), 'titre'); }
function renderForm($error, $requestID, $requester) { include 'includes.php'; include 'settings.php'; ?> <div class="under-nav special-bg"> <div class="head-text"> <h1>Reply to the Request</h1> <h3>You're about to reply to someone's request. Thank you for your kindness! <i class="icon-heart icon-white"></i></h3> </div> </div> <div class="container"> <div class="row"> <div class="span8"> <div class="well special-bg"> <div style='padding-bottom:15px;height:30px;' id='more_shouts_nav'> <a href='request_shouts.php?page=1' class='btn btn-info'><i class='icon-chevron-left icon-white'></i> Back to Request Message</a> </div> <?php echo '<table class="table table-borderz shoutbox-striped table-override" id="shoutbox-table"><colgroup><col class="span2"><col class="span6"></colgroup>'; echo '<thead><tr><th class="chatter-box"><span class="ranking-title">TOP 5 SHOUTERS <i class="icon-chevron-right"></i></span></th><th>'; $topuser = mysql_query("SELECT username, COUNT(username) AS top5 FROM i_shouts GROUP BY username ORDER BY top5 DESC LIMIT 5"); $rankz = 1; echo '<div class="ranking">'; while ($userz = mysql_fetch_assoc($topuser)) { $poster = $userz['username']; $noofmsg = implode(mysql_fetch_assoc(mysql_query("SELECT COUNT(shout) FROM i_shouts WHERE username='******'"))); echo '<span class="user-rank rank-' . $rankz . ' rankno" title="Rank No. ' . $rankz . '"><a href="profile.php?user='******'">' . $poster . '</a> <strong>' . $noofmsg . '</strong></span> '; $rankz++; } echo '</div>'; echo '</th></tr>'; echo '</thead><tbody>'; echo '<tr><td colspan="2" style="text-align:center;background:#eee;border-bottom:1px solid #000"><strong>Request Message</strong></td></tr>'; $result = mysql_query("SELECT * FROM i_requests WHERE id='{$requestID}' ORDER BY id DESC LIMIT 1") or die(mysql_error()); $reqmsg = mysql_fetch_array($result); if ($reqmsg) { $userid = $reqmsg['id']; $nick = $reqmsg['username']; $posttime = $reqmsg['datetime']; $shout_combined = makeClickableLinks(bbCode($reqmsg['item'])); $shoutx = stripslashes(rtrim($shout_combined)); $data = mysql_query("SELECT * FROM i_users WHERE userwd='{$nick}'") or die(mysql_error()); $row = mysql_fetch_array($data); if (mysql_num_rows($data) > 0) { // admin if (in_array($nick, $admin, true)) { $lines[] = ' <tr><td class="chatter-box"><a href="profile.php?user='******'" class="chatter" title="View ' . $nick . ' Profile"><strong>' . $nick . '</strong></a><br /><span class="timeAgo">' . time_ago($posttime) . '</span></td> <td>' . $shoutx . '<div class="timeago" style="text-align:right;">'; $lines[] = '</div>'; $lines[] = '<div class="replied-answer">'; $result1 = mysql_query("SELECT * FROM i_replies WHERE item_id='{$userid}' ORDER BY id DESC LIMIT 3"); while ($item1 = mysql_fetch_assoc($result1)) { $answer1 = linkThisOne($item1['answer']); $answer2 = stripslashes(rtrim($answer1)); $lines[] = '<div class="replied-msg"><strong>' . $item1['user'] . '</strong> ' . $answer2 . '</div>'; } $lines[] = '</div>'; $lines[] = '</td></tr>'; // VIP } else { if (in_array($nick, $kitty, true)) { $lines[] = ' <tr><td class="chatter-box"><a href="profile.php?user='******'" class="chatter" title="View ' . $nick . ' Profile"><strong>' . $nick . '</strong></a><br /><span class="timeAgo">' . time_ago($posttime) . '</span></td> <td>' . $shoutx . '<div class="timeago" style="text-align:right;">'; $lines[] = '</div>'; $lines[] = '<div class="replied-answer">'; $result1 = mysql_query("SELECT * FROM i_replies WHERE item_id='{$userid}' ORDER BY id DESC LIMIT 3"); while ($item1 = mysql_fetch_assoc($result1)) { $answer1 = linkThisOne($item1['answer']); $answer2 = stripslashes(rtrim($answer1)); $lines[] = '<div class="replied-msg"><strong>' . $item1['user'] . '</strong> ' . $answer2 . '</div>'; } $lines[] = '</div>'; $lines[] = '</td></tr>'; // public user } else { $lines[] = ' <tr><td class="chatter-box"><a href="profile.php?user='******'" class="chatter" title="View ' . $nick . ' Profile"><strong>' . $nick . '</strong></a><br /><span class="timeAgo">' . time_ago($posttime) . '</span></td> <td>' . $shoutx . '<div class="timeago" style="text-align:right;">'; $lines[] = '</div>'; $lines[] = '<div class="replied-answer">'; $result1 = mysql_query("SELECT * FROM i_replies WHERE item_id='{$userid}' ORDER BY id DESC LIMIT 3"); while ($item1 = mysql_fetch_assoc($result1)) { $answer1 = linkThisOne($item1['answer']); $answer2 = stripslashes(rtrim($answer1)); $lines[] = '<div class="replied-msg"><strong>' . $item1['user'] . '</strong> ' . $answer2 . '</div>'; } $lines[] = '</div>'; $lines[] = '</td></tr>'; } } // public user } else { $lines[] = ' <tr><td class="chatter-box"><a href="profile.php?user='******'" class="chatter" title="View ' . $nick . ' Profile"><strong>' . $nick . '</strong></a><br /><span class="timeAgo">' . time_ago($posttime) . '</span></td> <td>' . $shoutx . '<div class="timeago" style="text-align:right;">'; $lines[] = '</div>'; $lines[] = '<div class="replied-answer">'; $result1 = mysql_query("SELECT * FROM i_replies WHERE item_id='{$userid}' ORDER BY id DESC LIMIT 3"); while ($item1 = mysql_fetch_assoc($result1)) { $answer1 = linkThisOne($item1['answer']); $answer2 = stripslashes(rtrim($answer1)); $lines[] = '<div class="replied-msg"><strong>' . $item1['user'] . '</strong> ' . $answer2 . '</div>'; } $lines[] = '</div>'; $lines[] = '</td></tr>'; } } echo implode($lines); echo '</tbody></table>'; if ($error != '') { echo '<div id="console" class="alert alert-error">' . $error . '</div>'; echo '<script type="text/javascript">function $(a){return document.getElementById(a)} var hideerr = setTimeout("$(\'console\').style.display=\'none\';$(\'console\').innerHTML = \'\'",5e3)</script>'; } ?> <form class="form-horizontal" action="" method="post"> <div class="shouting-section"> <textarea class="shouting-box" placeholder="Type your reply message here" name="answer" id="shout" rows="2" maxlength="250"></textarea> <input type="hidden" name="requestID" value="<?php echo $requestID; ?> "> <input type="hidden" name="requester" value="<?php echo $requester; ?> "> <div class="shouting-function"> <span id="charcount" class="shouting-count">250</span> <span class="shouting-btn"> <input type="submit" class="btn btn-info" name="reply" value="Shout"> </span> </div><!--/shouting-function--> </div><!--/shouting-section--> </form> </div> </div><!--/span--> <div class="span4"> <div class="well special-bg"> <?php include 'sharerlink.php'; ?> </div><!--/well--> </div><!--/span--> </div><!--/row--> <?php include 'copyright.php'; ?> </div><!--/.fluid-container--> <?php include 'footer.php'; }
break; case 3: // Quests $imgType = '<img src="images/notifications/quest.png" width="25" height="25" title="Notification de quête" />'; break; case 7: // Drop $imgType = '<img src="images/notifications/bag.png" width="25" height="25" title="Notification de drop" />'; break; case 8: // Achievements $imgType = '<img src="images/notifications/defis.png" width="25" height="25" title="Notification de succès obtenu" />'; break; default: $imgType = '<img src="images/notifications/warn.png" width="25" height="25" title="Notification générale" />'; } echo ' <tr> <td width="10%">' . $imgType . '</td> <td width="70%" style="text-align: left;">' . nl2br(bbCode(htmlspecialchars($notification->texte))) . '</td> <td width="20%">' . date('d/m/Y\\ à H\\hi', $notification->timestamp) . '</td> </tr> '; } echo ' </table> <br /><br /> '; include 'pied.php';
} $dbf->close(); echo '<tr id="' . $get_shoutID . '">'; echo '<td class="user-avatar"><img alt="' . $get_username . '" src="' . get_avatar($avatar_type, $get_userID) . '"></td>'; echo '<td class="chat-box"><div class="user-meta">'; if ($get_realname == null) { echo '<strong>@' . $get_username . '</strong> '; } else { echo '<strong>' . $get_realname . '</strong> '; } if ($get_title !== null) { echo '<span class="forum-title"><em>' . $get_title . '</em></span> '; } echo '<span class="time muted"><small>' . timeAgo($get_sTime) . '</small></span>'; echo '<button class="btn btn-mini btn-primary pull-right" id="reply-' . $get_shoutID . '" onClick="reply(\'' . $get_shoutID . '\');"><i class="icon-retweet icon-white"></i> REPLY</button>'; echo '</div><div class="user-msg">' . stripslashes(rtrim(clickable(bbCode($get_shoutMsg)))) . '</div>'; // Reply section $dbr = new SQL(DB_SERVER, DB_USERNAME, DB_PASSWORD, DB_NAME, false); $dbc = new SQL(DB_SERVER, DB_USERNAME, DB_PASSWORD, DB_NAME, false); $dbr->query("SELECT * FROM ip_reply WHERE request_id='{$get_shoutID}' ORDER BY id DESC LIMIT 10"); $dbc->query("SELECT COUNT(id) FROM ip_reply WHERE request_id='{$get_shoutID}'"); $rcount = implode($dbc->fetch_assoc()); $dbc->close(); if ($rcount > 0) { while ($rowr = $dbr->fetch_assoc()) { $replyID = $rowr['id']; $replier_id = $rowr['replier_id']; $reply_msg = $rowr['reply_msg']; $reply_time = $rowr['reply_time']; $dbff = new SQL(DB_SERVER, DB_USERNAME, DB_PASSWORD, DB_NAME, false); $dbff->query("SELECT * FROM forum_users WHERE id='{$replier_id}'");
function info($texte) { echo ' <br /> <div class="info"> <span style="float: left;"> <img src="images/ico/avert/7.png" height="20" width="20" /> </span> ' . bbCode($texte) . ' </div> '; }
function affichage_resa_planning($_description, $id_resa) { $affichage = ""; if (getSettingValue("display_full_description")==1) $affichage = bbCode(grr_htmlSpecialChars($_description,ENT_NOQUOTES),''); // Les champs add : $overload_data = mrbsEntryGetOverloadDesc($id_resa); foreach ($overload_data as $fieldname=>$field) { if (($field["affichage"] == 'y') and ($field["valeur"]!="")) { if ($affichage != "") $affichage .= "<br />"; $affichage .= bbCode(grr_htmlSpecialChars($fieldname,ENT_NOQUOTES).get_vocab("deux_points").grr_htmlSpecialChars($field["valeur"],ENT_NOQUOTES),''); } } return $affichage; }
echo '<span class="user-rank rank-' . $rankz . '"><a href="profile.php?user='******'">' . $username . '</a> <strong>' . $noofmsg . '</strong></span> '; $rankz++; } echo '</div>'; echo '</th></tr></thead><tbody>'; while ($shout = mysql_fetch_assoc($result)) { $data_date = time() - 60 * 60 * 24 * 7; // 7 days ago $check_data = mysql_query("SELECT * FROM i_shouts_gc WHERE `datetime` < {$data_date}") or die(mysql_error()); if (mysql_num_rows($check_data) > 0) { mysql_query("DELETE FROM i_shouts_gc WHERE `datetime` < {$data_date}"); } $nick = $shout['username']; $userid = $shout['id']; $posttime = $shout['datetime']; $ori_shout = clickableLink(bbCode($shout['shout'])); $shoutx = stripslashes(rtrim($ori_shout)); //$shoutx = $ori_shout; $shoutx = str_replace("\n", " ", $shoutx); $shoutx = str_replace("\r", " ", $shoutx); $data = mysql_query("SELECT * FROM i_users WHERE userwd='{$nick}'") or die(mysql_error()); $row = mysql_fetch_array($data); if (mysql_num_rows($data) > 0) { // check shoutmsg of each user $total_usershouts = implode(mysql_fetch_assoc(mysql_query("SELECT COUNT(shout) FROM i_shouts_gc WHERE username='******'"))); // admin if (in_array(strtolower($nick), $admin, true)) { $lines[] = ' <tr onmouseover="document.getElementById(\'timeago-' . $userid . '\').style.display = \'block\'" onmouseout="document.getElementById(\'timeago-' . $userid . '\').style.display = \'none\'"><td class="chatter-box"><span class="mark_admin">ADMIN</span> <a href="profile.php?user='******'" class="chatter" title="View ' . $nick . ' Profile"><strong>' . $nick . '</strong></a><br /><span class="timeAgo">' . time_ago($posttime) . '</span></td> <td>' . $shoutx . '<div class="timeago" id="timeago-' . $userid . '" style="display:none;text-align:right;">'; $lines[] = '<span class="label label-success reply-nick" style="font-weight:normal;" onclick="insertNickname(\'@' . $nick . '\')"><i class="icon-retweet icon-white"></i> Reply</span> ';
$vendable = '<font color="green">Vendable / Échangeable</font>'; break; } include 'engine/effect_item.php'; echo ' <span style="font-weight: bold; font-size: 12pt; float: left; line-height: 2;">' . $donnees_item_choisi->nom_item . ' (<span style="font-weight: normal;">x ' . $donnees_inv_choisi->quantite . '</span>)</span><span style="float:right; font-size: 12pt; line-height: 2;">Niveau ' . $donnees_item_choisi->niveauRequis . '</span> <br /><br /> <div class="separate"></div> <span style="float: left; font-weight: bold; font-size: 11pt; line-height: 0.8;">' . $vendable . '</span><span style="float: right; font-weight: bold; font-size: 13pt; line-height: 0.8;">' . number_format($donnees_item_choisi->prixBase) . ' EC</span> <!-- A appartenu en premier à : <b>' . $donnees_inv_choisi->first_owner_perso . '</b> (' . $donnees_inv_choisi->first_owner_pseudo . ')<br /> --><br /> <div class="separate"></div> <b>Description :</b><br /><br /> ' . bbCode(nl2br(htmlspecialchars($donnees_item_choisi->description))) . ' <div class="separate"></div> <br /> ' . $actions . ' '; } else { avert('Cet objet n\'est pas à vous'); } } else { avert('Cet objet existe pas.'); } } echo '</div></div> ';
echo '</thead><tbody>'; } else { echo '<tr class="usermsg"><th style="text-align:right;"><span class="label label-info"><i class="icon-info-sign icon-white"></i> Info</span></th><th>You are viewing the archived messages within 7 days.</th></tr>'; echo '</thead><tbody>'; } $lines = array(); $j = 1; for ($i = $start; $i < $end; $i++) { // make sure that PHP doesn't try to show results that don't exist if ($i == $total_results) { break; } $userid = mysql_result($result, $i, 'id'); $nick = mysql_result($result, $i, 'username'); $posttime = mysql_result($result, $i, 'datetime'); $shout_combined = clickableLink(bbCode(mysql_result($result, $i, 'shout'))); $shoutx = stripslashes(rtrim($shout_combined)); $class = $j % 2 === 0 ? 'row_even' : 'row_odd'; $data = mysql_query("SELECT * FROM i_users WHERE userwd='{$nick}'") or die(mysql_error()); $row = mysql_fetch_array($data); if (mysql_num_rows($data) > 0) { // check shoutmsg of each user $total_usershouts = implode(mysql_fetch_assoc(mysql_query("SELECT COUNT(shout) FROM i_shouts_gc WHERE username='******'"))); // admin if (in_array(strtolower($nick), $admin, true)) { $lines[] = ' <tr onmouseover="document.getElementById(\'timeago-' . $userid . '\').style.display = \'block\'" onmouseout="document.getElementById(\'timeago-' . $userid . '\').style.display = \'none\'"><td class="chatter-box"><span class="mark_admin">ADMIN</span> <a href="profile.php?user='******'" class="chatter" title="View ' . $nick . ' Profile"><strong>' . $nick . '</strong></a><br /><span class="timeAgo">' . time_ago($posttime) . '</span></td> <td>' . $shoutx . '<div class="timeago" id="timeago-' . $userid . '" style="display:none;text-align:right;">'; $lines[] = '<span class="label label-success reply-nick" style="font-weight:normal;" onclick="insertNickname(\'@' . $nick . '\')"><i class="icon-retweet icon-white"></i> Reply</span> '; $lines[] = '</div></td></tr> ';
</div> <div class="post-left"> <?php print __(_("Published")) . " " . howLong($post["Start_Date"]) . " " . $in . " " . $categories . " " . __(_("by")) . " " . $post["Author"]; ?> <br /> <?php if ($tags) { print __(_("Tags")) . ": " . $tags; } ?> </div> <div class="post-right"> <?php print getTotal($post["Comments"], "comment", "comments"); ?> </div> <div class="clear"></div> <div class="post-content"> <?php print bbCode($post["Content"]); ?> </div> </div> <?php }
<div id="pages" class="grid_9"> <a name="top"></a> <p> <?php print bbCode($content); ?> </p> <?php if (isset($actions)) { ?> <div class="actions"><?php print $actions; ?> </div> <div class="clear"></div> <?php } ?> </div>
echo '</thead><tbody>'; } else { echo '<tr class="usermsg"><th style="text-align:right;"><span class="label label-info"><i class="icon-info-sign icon-white"></i> Info</span></th><th><i class="icon-comment icon-white"></i> You are viewing the archived messages within 7 days.</th></tr>'; echo '</thead><tbody>'; } $lines = array(); $j = 1; for ($i = $start; $i < $end; $i++) { // make sure that PHP doesn't try to show results that don't exist if ($i == $total_results) { break; } $userid = mysql_result($result, $i, 'id'); $nick = mysql_result($result, $i, 'username'); $posttime = mysql_result($result, $i, 'datetime'); $shout_combined = makeClickableLinks(bbCode(mysql_result($result, $i, 'shout'))); $shoutx = stripslashes(rtrim($shout_combined)); $class = $j % 2 === 0 ? 'row_even' : 'row_odd'; $data = mysql_query("SELECT * FROM i_users WHERE userwd='{$nick}'") or die(mysql_error()); $row = mysql_fetch_array($data); if (mysql_num_rows($data) > 0) { // check shoutmsg of each user $total_usershouts = implode(mysql_fetch_assoc(mysql_query("SELECT COUNT(shout) FROM i_shouts WHERE username='******'"))); // admin if (in_array(strtolower($nick), $admin, true)) { $lines[] = ' <tr onmouseover="document.getElementById(\'timeago-' . $userid . '\').style.display = \'block\'" onmouseout="document.getElementById(\'timeago-' . $userid . '\').style.display = \'none\'"><td class="chatter-box"><span class="mark_admin">ADMIN</span> <a href="profile.php?user='******'" class="chatter" title="View ' . $nick . ' Profile"><strong>' . $nick . '</strong></a><br /><span class="timeAgo">' . time_ago($posttime) . '</span></td> <td>' . $shoutx . '<div class="timeago" id="timeago-' . $userid . '" style="display:none;text-align:right;">'; $lines[] = '<span class="label label-success reply-nick" style="font-weight:normal;" onclick="insertNickname(\'@' . $nick . '\')"><i class="icon-retweet icon-white"></i> Reply</span> '; $lines[] = '</div></td></tr> ';
$niveauAvancement = 25; $niveauPasses = 100; } if ($donnees_membres->prestige < 10) { $prestigeAvancement = $donnees_membres->prestige * 3; // 55 $prestigePasses = $donnees_membres->prestige; } else { $prestigeAvancement = 30; $prestigePasses = 10; } $scoreFinal = (int) $niveauAvancement + (int) $prestigeAvancement; if ($donnees_membres->description == "") { $dp = "Aucune description."; } else { $dp = nl2br(bbCode(stripslashes(htmlspecialchars($donnees_membres->description)))); } switch ($donnees_perso->choixArme) { case 1: $specialisation = '<b>Épéiste</b>'; $bonus = '<span style="color: #4f0082;">En tant qu\'épéiste, vous gagnez 50% de vitalité et 125% de puissance supplémentaire pour chaque point dépensé dans la catégorie concernée !</span>'; break; case 2: $specialisation = '<b>Voleur</b>'; $bonus = '<span style="color: #4f0082;">En tant que voleur, vous gagnez 20% de vitalité et 150% d\'agilité supplémentaire pour chaque point dépensé dans la catégorie concernée !</span>'; break; case 3: $specialisation = '<b>Sauvage</b>'; $bonus = '<span style="color: #4f0082;">En tant que sauvage, vous gagnez 200% de force supplémentaire pour chaque point dépensé dans la catégorie concernée !</span>'; break; case 4:
<br /> <?php if ($tags) { print __(_("Tags")) . ": " . $tags; } ?> </div> <div class="post-right"> <?php if ($post["Enable_Comments"]) { print getTotal($post["Comments"], "comment", "comments"); } ?> </div> <div class="clear"></div> <div class="post-content"> <?php print bbCode(pagebreak($post["Content"], $URL)); ?> </div> </div> <div class="clear"></div> <?php } } if (isset($pagination)) { print $pagination; }
function populate_shoutbox() { $db = new SQL(DB_SERVER, DB_USERNAME, DB_PASSWORD, DB_NAME, false); $db->query("SELECT * FROM ip_shouts ORDER BY id DESC LIMIT 100"); echo '<ul id="chat" class="chat">'; $count_shout = 0; while ($row = $db->fetch_assoc()) { $count_shout++; $get_shoutID = $row['id']; $get_userID = $row['user_id']; $get_shoutMsg = $row['shout_msg']; $get_sTime = $row['shout_time']; $dbf = new SQL(DB_SERVER, DB_USERNAME, DB_PASSWORD, DB_NAME, false); $dbf->query("SELECT * FROM forum_users WHERE id='{$get_userID}'"); if ($rowf = $dbf->fetch_array()) { $get_groupID = $rowf['group_id']; $get_username = $rowf['username']; $get_realname = $rowf['realname']; $get_title = $rowf['title']; $get_location = $rowf['location']; $get_registered = $rowf['registered']; $get_url = $rowf['url']; $get_facebook = $rowf['facebook']; $get_twitter = $rowf['twitter']; $show_avatar = $rowf['show_avatars']; $avatar_type = $rowf['avatar']; if ($get_facebook == null) { $facebook_url = ''; } else { if (strpos($get_facebook, "http://") === 0 || strpos($get_facebook, "https://") === 0) { $facebook_url = '<a href="' . $get_facebook . '">' . $get_facebook . '</a>'; } else { $facebook_url = '<a href="http://facebook.com/' . $get_facebook . '">http://facebook.com/' . $get_facebook . '</a>'; } } if ($get_twitter == null) { $twitter_url = ''; } else { if (strpos($get_twitter, "http://") === 0 || strpos($get_twitter, "https://") === 0) { $twitter_url = '<a href="' . $get_twitter . '">' . $get_twitter . '</a>'; } else { $twitter_url = '<a href="http://twitter.com/' . $get_twitter . '">http://twitter.com/' . $get_twitter . '</a>'; } } if ($get_url == null) { $website = ''; } else { if (strpos($get_url, "http://") === 0 || strpos($get_url, "https://") === 0) { $website = '<a href="' . $get_url . '">' . $get_url . '</a>'; } else { $website = '<a href="http://' . $get_url . '">http://' . $get_url . '</a>'; } } } $dbf->close(); if ($_SESSION['current_userID'] == $get_userID) { if ($count_shout == 20) { echo '<li id="lastShout" class="right">'; } else { echo '<li class="right">'; } } else { if ($count_shout == 20) { echo '<li id="lastShout" class="left">'; } else { echo '<li class="left">'; } } echo '<a href="profile.php?id=' . $get_userID . '"><img class="avatar" alt="' . $get_username . '" src="' . get_avatar($avatar_type, $get_userID) . '"></a>'; echo '<span class="message"><span class="arrow"></span>'; if ($get_realname == null) { echo '<span class="from"><a href="profile.php?id=' . $get_userID . '" class="user-name">@' . $get_username . '</a> '; } else { echo '<span class="from"><a href="profile.php?id=' . $get_userID . '" class="user-name">' . $get_realname . '</a> '; } if ($get_title !== null) { echo '<span class="forum-title"><em>' . $get_title . '</em></span></span> '; } echo '<span class="time muted"><small>' . timeAgo($get_sTime) . '</small></span>'; if ($_SESSION['current_userID'] !== $get_userID) { echo '<span class="pull-right">'; echo '<button class="btn btn-mini tip-top" id="rtshout-' . $get_shoutID . '" onClick="rtshout(\'' . $get_shoutID . '\',\'' . $get_username . '\');" title="Reshout"><i class="icon-share"></i> RT</button> '; echo '<button class="btn btn-mini" id="mention-' . $get_shoutID . '" onClick="insertNickname(\'' . $get_username . '\');"><i class="icon-circle"></i> Mention</button>'; echo '</span>'; } echo '<span class="text" id="msg-' . $get_shoutID . '">' . stripslashes(rtrim(clickable(bbCode($get_shoutMsg)))) . '</span>'; echo '</span></li>'; } if ($count_shout == 100) { echo '<div style="margin-top:10px;padding:10px;text-align:center;" id="more-' . $get_shoutID . '" class="morebox"><a href="#" id="' . $get_shoutID . '" class="btn btn-small btn-inverse more"><i class="icon-arrow-down icon-white"></i> Load more...</a></div>'; } echo '</ul>'; $db->close(); echo ' <script> $(document).ready(function () { // START DOCUMENT.READY $(".link-tip, .tip-top").tooltip(); $(".more").click(function(e){ e.preventDefault(); var ID = $(this).attr("id"); if (ID){ $("#more-"+ID).html("<div class=\\"loader\\" style=\\"margin-top:10px\\"></div>"); $.ajax({ type: "GET", url: "subfiles/shoutbox_more.php?lastid=" + urlencode(ID), success: function(html){ $("ul#chat").append(html).fadeIn(); $("#more-"+ID).remove(); } }); } else { $(".morebox").html("The End"); } }); }); // END DCOUMENT.READY function urlencode(a) { a = (a + "").toString(); return encodeURIComponent(a).replace(/!/g, "%21").replace(/\'/g, "%27").replace(/\\(/g, "%28").replace(/\\)/g, "%29").replace(/\\*/g, "%2A").replace(/%20/g, "+") } function rtshout(msgid,user){ $.ajax({ type: "GET", url: "subfiles/shoutbox_retweet.php?retweet=" + urlencode(msgid), success: function(html){ if (html !== "KO") { $("#shoutTextarea").val("RT @"+user+": " + html); } } }); } function insertNickname(nickname){ var currentText = document.getElementById("shoutTextarea"); var smileyWithPadding = " @" + nickname + " "; currentText.value += smileyWithPadding; } </script> '; }