本文整理汇总了PHP中Event::memberHasAccess方法的典型用法代码示例。如果您正苦于以下问题:PHP Event::memberHasAccess方法的具体用法?PHP Event::memberHasAccess怎么用?PHP Event::memberHasAccess使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Event
的用法示例。
在下文中一共展示了Event::memberHasAccess方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: ConsoleOption
if (!isset($member) || !isset($eventObj) || substr($_SERVER['PHP_SELF'], -strlen("manage.php")) != "manage.php") {
include_once "../../../_setup.php";
include_once "../../../classes/member.php";
include_once "../../../classes/event.php";
// Start Page
$consoleObj = new ConsoleOption($mysqli);
$cID = $consoleObj->findConsoleIDByName("Manage My Events");
$consoleObj->select($cID);
$consoleInfo = $consoleObj->get_info_filtered();
$consoleTitle = $consoleInfo['pagetitle'];
$member = new Member($mysqli);
$member->select($_SESSION['btUsername']);
$eventObj = new Event($mysqli);
$memberInfo = $member->get_info();
// Check Login
if ($member->authorizeLogin($_SESSION['btPassword']) && $member->hasAccess($consoleObj) && $eventObj->select($_GET['eID']) && ($eventObj->memberHasAccess($memberInfo['member_id'], "eventpositions") || $memberInfo['rank_id'] == 1)) {
$eventInfo = $eventObj->get_info_filtered();
} else {
exit;
}
} else {
$memberInfo = $member->get_info();
$consoleObj->select($consoleObj->findConsoleIDByName("Manage My Events"));
if (!$member->hasAccess($consoleObj) || !$eventObj->memberHasAccess($memberInfo['member_id'], "eventpositions")) {
exit;
}
}
echo "\n<table class='formTable' style='border-spacing: 0px; margin-top: 0px'>\n\t<tr><td colspan='5' class='dottedLine'></td></tr>\n";
$counter = 0;
$x = 1;
$eventObj->objEventPosition->setCategoryKeyValue($eventInfo['event_id']);
示例2: Member
include_once "../../../classes/rank.php";
include_once "../../../classes/consoleoption.php";
include_once "../../../classes/event.php";
$member = new Member($mysqli);
$member->select($_SESSION['btUsername']);
$objMember = new Member($mysqli);
$eventObj = new Event($mysqli);
$consoleObj = new ConsoleOption($mysqli);
$cID = $consoleObj->findConsoleIDByName("Manage My Events");
$consoleObj->select($cID);
if ($member->authorizeLogin($_SESSION['btPassword']) && $eventObj->objEventMessage->select($_POST['messageID'])) {
$eventID = $eventObj->objEventMessage->get_info("event_id");
$eventObj->select($eventID);
$eventInfo = $eventObj->get_info_filtered();
$memberInfo = $member->get_info_filtered();
if (trim($_POST['commentMessage']) != "" && $member->hasAccess($consoleObj) && ($eventObj->memberHasAccess($memberInfo['member_id'], "postmessages") || $memberInfo['rank_id'] == 1)) {
$eventObj->objEventMessageComment->addNew(array("eventmessage_id", "member_id", "dateposted", "comment"), array($_POST['messageID'], $memberInfo['member_id'], time(), $_POST['commentMessage']));
}
if (in_array($memberInfo['member_id'], $eventObj->getInvitedMembers(true)) || $memberInfo['member_id'] == $eventInfo['member_id'] || $memberInfo['rank_id'] == 1) {
$result = $mysqli->query("SELECT * FROM " . $dbprefix . "eventmessage_comment WHERE eventmessage_id = '" . $_POST['messageID'] . "' ORDER BY dateposted ASC");
while ($row = $result->fetch_assoc()) {
if ($objMember->select($row['member_id'])) {
$memInfo = $objMember->get_info_filtered();
if ($memInfo['profilepic'] == "") {
$dispProfilePic = $MAIN_ROOT . "themes/" . $THEME . "/images/defaultprofile.png";
} else {
$dispProfilePic = $MAIN_ROOT . $memInfo['profilepic'];
}
$dispDeleteMessage = "";
if ($eventObj->memberHasAccess($memberInfo['member_id'], "managemessages")) {
$dispDeleteMessage = " - <a href='javascript:void(0)' onclick=\"deleteMessage('" . $row['comment_id'] . "', 'c')\">Delete</a>";
示例3: getPreciseTime
if (!$eventObj->select($eventID)) {
exit;
}
echo "<ul>";
$focusID = "";
$result = $mysqli->query("SELECT * FROM " . $dbprefix . "eventmessages WHERE event_id = '" . $eventID . "' ORDER BY dateposted DESC");
while ($row = $result->fetch_assoc()) {
$objMember->select($row['member_id']);
$memInfo = $objMember->get_info_filtered();
if ($memInfo['profilepic'] == "") {
$dispProfilePic = $MAIN_ROOT . "themes/" . $THEME . "/images/defaultprofile.png";
} else {
$dispProfilePic = $MAIN_ROOT . $memInfo['profilepic'];
}
$dispDeleteMessage = "";
if ($eventObj->memberHasAccess($memberInfo['member_id'], "managemessages")) {
$dispDeleteMessage = " - <a href='javascript:void(0)' onclick=\"deleteMessage('" . $row['eventmessage_id'] . "', 'm')\">Delete</a>";
}
echo "\n\t<li>\n\t<div class='profilePic'><img src='" . $dispProfilePic . "'></div>\n\t<div class='main messageDiv'><b>" . $objMember->getMemberLink() . "</b><br>\n\t" . nl2br(parseBBCode($row['message'])) . "<br>\n\t<div class='tinyFont' style='margin-top: 5px'>" . getPreciseTime($row['dateposted']) . $dispDeleteMessage . "</div>\n\t</div>\n\t<div style='clear: both'></div>\n\t<ul id='commentsUL_" . $row['eventmessage_id'] . "'>\n\n\t";
$eventObj->objEventMessage->select($row['eventmessage_id']);
$arrMessageComments = $eventObj->objEventMessage->getComments(" ORDER BY dateposted ASC");
foreach ($arrMessageComments as $commentID) {
if ($eventObj->objEventMessageComment->select($commentID) && $objMember->select($row['member_id'])) {
$commentInfo = $eventObj->objEventMessageComment->get_info_filtered();
$objMember->select($commentInfo['member_id']);
$memInfo = $objMember->get_info_filtered();
if ($memInfo['profilepic'] == "") {
$dispProfilePic = $MAIN_ROOT . "themes/" . $THEME . "/images/defaultprofile.png";
} else {
$dispProfilePic = $MAIN_ROOT . $memInfo['profilepic'];
}
示例4: Member
include_once "../../../classes/member.php";
include_once "../../../classes/rank.php";
include_once "../../../classes/consoleoption.php";
include_once "../../../classes/event.php";
$member = new Member($mysqli);
$member->select($_SESSION['btUsername']);
$objMember = new Member($mysqli);
$eventObj = new Event($mysqli);
$consoleObj = new ConsoleOption($mysqli);
$cID = $consoleObj->findConsoleIDByName("Manage My Events");
$consoleObj->select($cID);
if ($_POST['comment'] == 1) {
$checkMessage = $eventObj->objEventMessageComment->select($_POST['messageID']);
$objMessage = $eventObj->objEventMessageComment;
$eventMessageID = $objMessage->get_info("eventmessage_id");
$eventObj->objEventMessage->select($eventMessageID);
$eventID = $eventObj->objEventMessage->get_info("event_id");
} else {
$checkMessage = $eventObj->objEventMessage->select($_POST['messageID']);
$objMessage = $eventObj->objEventMessage;
$eventID = $objMessage->get_info("event_id");
}
if ($member->authorizeLogin($_SESSION['btPassword']) && $checkMessage) {
$eventObj->select($eventID);
$eventInfo = $eventObj->get_info_filtered();
$memberInfo = $member->get_info_filtered();
if ($member->hasAccess($consoleObj) && $eventObj->memberHasAccess($memberInfo['member_id'], "managemessages") || $memberInfo['rank_id'] == 1) {
$objMessage->delete();
}
include "eventmessages.php";
}
示例5: Member
* Website: http://www.bluethrust.com
*
* License: http://www.bluethrust.com/license.php
*
*/
include "../../../_setup.php";
include_once "../../../classes/member.php";
include_once "../../../classes/rank.php";
include_once "../../../classes/consoleoption.php";
include_once "../../../classes/event.php";
$member = new Member($mysqli);
$member->select($_SESSION['btUsername']);
$eventObj = new Event($mysqli);
$consoleObj = new ConsoleOption($mysqli);
$cID = $consoleObj->findConsoleIDByName("Manage My Events");
$consoleObj->select($cID);
if ($member->authorizeLogin($_SESSION['btPassword']) && $eventObj->objEventPosition->select($_POST['posID'])) {
$eventID = $eventObj->objEventPosition->get_info("event_id");
$memberInfo = $member->get_info_filtered();
$eventPositionInfo = $eventObj->objEventPosition->get_info_filtered();
if ($memberInfo['rank_id'] == 1 || $member->hasAccess($consoleObj) && $eventObj->select($eventID) && ($eventObj->memberHasAccess($memberInfo['member_id'], "eventpositions") || $memberInfo['rank_id'] == 1)) {
if ($_POST['confirmDelete'] == 1) {
$eventObj->objEventPosition->delete();
$mysqli->query("UPDATE " . $dbprefix . "events_members SET position_id = '0' WHERE position_id = '" . $eventPositionInfo['position_id'] . "'");
$_GET['eID'] = $eventID;
include "manageposition_main.php";
} else {
echo "\n\t\t\t\n\t\t\t\t<div id='confirmDeleteMessage' style='display: none'>\n\t\t\t\t\t<p class='main' align='center'>\n\t\t\t\t\t\tAre you sure you want to delete the position: <b>" . $eventPositionInfo['name'] . "</b>?<br><br>\n\t\t\t\t\t\tAll members with this position will lose this position once it is deleted.\n\t\t\t\t\t</p>\n\t\t\t\t</div>\n\t\t\t\n\t\t\t\t\n\t\t\t\t<script type='text/javascript'>\n\n\t\t\t\t\t\$(document).ready(function() {\n\t\t\t\t\t\n\t\t\t\t\t\t\$('#confirmDeleteMessage').dialog({\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\ttitle: 'Manage Event Positions - Confirm Delete',\n\t\t\t\t\t\t\tmodal: true,\n\t\t\t\t\t\t\tzIndex: 99999,\n\t\t\t\t\t\t\tshow: 'scale',\n\t\t\t\t\t\t\tresizable: false,\n\t\t\t\t\t\t\twidth: 450,\n\t\t\t\t\t\t\tbuttons: {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t'Yes': function() {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\$('#positionListDiv').fadeOut(250);\n\t\t\t\t\t\t\t\t\t\$('#loadingSpiral').show();\n\t\t\t\t\t\t\t\t\t\$.post('" . $MAIN_ROOT . "members/events/include/manageposition_delete.php', { posID: '" . $eventPositionInfo['position_id'] . "', confirmDelete: 1 }, function(data) {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\$('#positionListDiv').html(data);\n\t\t\t\t\t\t\t\t\t\t\$('#positionListDiv').fadeIn(250);\n\t\t\t\t\t\t\t\t\t\t\$('#loadingSpiral').hide();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\$(this).dialog('close');\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t'Cancel': function() {\n\t\t\t\t\t\t\t\t\t\$(this).dialog('close');\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\t\t\t\t\t\n\n\t\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\t});\n\t\t\t\t\n\t\t\t\t</script>\n\t\t\t\n\t\t\t";
}
}
}
示例6: Member
* License: http://www.bluethrust.com/license.php
*
*/
include "../../../_setup.php";
include_once "../../../classes/member.php";
include_once "../../../classes/event.php";
$member = new Member($mysqli);
$member->select($_SESSION['btUsername']);
$eventObj = new Event($mysqli);
$consoleObj = new ConsoleOption($mysqli);
$cID = $consoleObj->findConsoleIDByName("Manage My Events");
$consoleObj->select($cID);
if ($member->authorizeLogin($_SESSION['btPassword']) && $eventObj->objEventMember->select($_POST['eMemID'])) {
$eventID = $eventObj->objEventMember->get_info("event_id");
$memberInfo = $member->get_info_filtered();
if ($eventObj->select($eventID) && $member->hasAccess($consoleObj) && ($eventObj->memberHasAccess($memberInfo['member_id'], "manageinvites") || $eventObj->memberHasAccess($memberInfo['member_id'], "attendenceconfirm") || $memberInfo['rank_id'] == 1)) {
$eventInfo = $eventObj->get_info_filtered();
$eventMemberInfo = $eventObj->objEventMember->get_info_filtered();
$objInviteMember = new Member($mysqli);
$objInviteMember->select($eventMemberInfo['member_id']);
$inviteMemberInfo = $objInviteMember->get_info_filtered();
$countErrors = 0;
$dispError = "";
if (isset($_POST['submit'])) {
$arrColumns = array();
$arrValues = array();
if ($eventObj->memberHasAccess($memberInfo['member_id'], "mangeinvites")) {
$arrColumns[] = "position_id";
$arrValues[] = $_POST['updatePositionID'];
$checkSelectPosition = $eventObj->objEventPosition->select($_POST['updatePositionID']);
// Check Position ID
示例7: Member
*
* License: http://www.bluethrust.com/license.php
*
*/
include "../../../_setup.php";
include_once "../../../classes/member.php";
include_once "../../../classes/event.php";
$member = new Member($mysqli);
$member->select($_SESSION['btUsername']);
$checkTerm = filterText($_GET['term']);
$eventObj = new Event($mysqli);
$consoleObj = new ConsoleOption($mysqli);
$cID = $consoleObj->findConsoleIDByName("Manage My Events");
$consoleObj->select($cID);
if ($member->authorizeLogin($_SESSION['btPassword']) && $eventObj->select($_SESSION['btEventID'])) {
$eventID = $eventObj->get_info("event_id");
$eventMID = $eventObj->get_info("member_id");
$memberInfo = $member->get_info_filtered();
if ($member->hasAccess($consoleObj) && ($eventObj->memberHasAccess($memberInfo['member_id'], "invitemembers") || $memberInfo['rank_id'] == 1)) {
$arrInvitedMembers = $eventObj->getInvitedMembers(true);
$arrInvitedMembers = array_merge($arrInvitedMembers, $_SESSION['btInviteList']);
$arrACMemberList = array();
$sqlInvitedMembers = "('" . implode("','", $arrInvitedMembers) . "')";
$memberoptions = "<option value=''>Select</option>";
$result = $mysqli->query("SELECT m.username,m.member_id,r.ordernum,r.name FROM " . $dbprefix . "members m, " . $dbprefix . "ranks r WHERE m.rank_id = r.rank_id AND m.member_id NOT IN " . $sqlInvitedMembers . " AND m.disabled = '0' AND m.rank_id != '1' AND m.member_id != '" . $eventMID . "' AND m.username LIKE '" . $checkTerm . "%' ORDER BY r.ordernum DESC");
while ($row = $result->fetch_assoc()) {
$arrACMemberList[] = array("id" => $row['member_id'], "value" => filterText($row['username']));
}
echo json_encode($arrACMemberList);
}
}
示例8: DateTimeZone
$dateTimeObj->setTimestamp($eventInfo['startdate']);
$includeTimezone = "";
$dispTimezone = "";
if ($eventInfo['timezone'] != "") {
$timeZoneObj = new DateTimeZone($eventInfo['timezone']);
$dateTimeObj->setTimezone($timeZoneObj);
$includeTimezone = " T";
$dispOffset = $timeZoneObj->getOffset($dateTimeObj) / 60 / 60;
$dispSign = $dispOffset < 0 ? "" : "+";
$dispTimezone = $dateTimeObj->format(" T") . "<br>" . str_replace("_", " ", $eventInfo['timezone']) . " (UTC" . $dispSign . $dispOffset . ")";
}
$dateTimeObj->setTimezone("UTC");
$dispStartDate = $dateTimeObj->format("M j, Y g:i A") . $dispTimezone;
echo "\n\t\t\t</table>\n\t\t\t</div>\n\t\t\t\n\t\t</div>\n\t\t\n\t\t<div class='eventRightContainer'>\n\t\t\t<div class='eventTitle'>Event Information:</div>\n\t\t\t<div class='dashedBox'>\n\t\t\t\t<table class='formTable'>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class='main alternateBGColor' style='width: 30%' valign='top'><b>Title:</b></td>\n\t\t\t\t\t\t<td class='main' style='padding-left: 5px; width: 70%' valign='top'>" . $eventInfo['title'] . "</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class='main alternateBGColor' style='width: 30%' valign='top'><b>Created By:</b></td>\n\t\t\t\t\t\t<td class='main' style='padding-left: 5px; width: 70%' valign='top'>" . $dispCreatorLink . "</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class='main alternateBGColor' style='width: 30%' valign='top'><b>When:</b></td>\n\t\t\t\t\t\t<td class='main' style='padding-left: 5px; width: 70%'>" . $dispStartDate . "</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class='main alternateBGColor' style='width: 30%' valign='top'><b>Location:</b></td>\n\t\t\t\t\t\t<td class='main' style='padding-left: 5px; width: 70%' valign='top'>" . $eventInfo['location'] . "</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class='main alternateBGColor' style='width: 30%' valign='top'><b>Positions:</b></td>\n\t\t\t\t\t\t<td class='main' style='padding-left: 5px; width: 70%' valign='top'>\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t" . $dispEventPositions . "\n\t\t\t\t\t\t\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class='main alternateBGColor' style='width: 30%' valign='top'><b>Details:</b></td>\n\t\t\t\t\t\t<td class='main' style='padding-left: 5px; width: 70%' valign='top'>" . nl2br($eventInfo['description']) . "</td>\n\t\t\t\t\t</tr>\n\t\t\t\t</table>\n\t\t\t\n\t\t\t</div>\n\t\t\t<br>\n\t\t\t<div class='eventTitle'>Event Posts:</div>\n\t\t\t<div class='dashedBox'>\n\t\t\t\t\n\t\t\t\t";
$dispPostMessageJS = "";
if ($eventObj->memberHasAccess($memberInfo['member_id'], "postmessages")) {
echo "\n\t\t\t\t\n\t\t\t\t\t<div style='position: relative; margin-top: 5px; margin-left: auto; margin-right: auto; width: 95%'>\n\t\t\t\t\t\t<textarea class='textBox' id='txtPostMessage' rows='2' style='width: 98%; margin-left: auto; margin-right: auto'></textarea>\n\t\t\t\t\t\t<p align='right' style='margin-top: 2px; margin-right: 3px;'><input type='button' class='submitButton' style='width: 80px' value='Post' id='btnPostMessage'></p>\n\t\t\t\t\t</div>\n\t\t\t\t";
$dispPostMessageJS = "\n\t\t\t\t\t\n\t\t\t\t\t\t\$(document).ready(function() {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\$('#btnPostMessage').click(function() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\$('#eventMessages').fadeOut(250);\n\t\t\t\t\t\t\t\t\$('#loadingSpiral').show();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\$.post('" . $MAIN_ROOT . "members/events/include/postmessage.php', { postMessage: \$('#txtPostMessage').val(), eID: '" . $eventInfo['event_id'] . "' }, function(data) {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\$('#eventMessages').html(data);\n\t\t\t\t\t\t\t\t\t\$('#loadingSpiral').hide();\n\t\t\t\t\t\t\t\t\t\$('#eventMessages').fadeIn(250);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\$('#txtPostMessage').val('');\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t});\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t});\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tfunction postComment(intMessageID) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tvar strCommentTxtID = \"#txtComment_\"+intMessageID;\n\t\t\t\t\t\t\tvar strCommentsULID = \"#commentsUL_\"+intMessageID;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\$(document).ready(function() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\$.post('" . $MAIN_ROOT . "members/events/include/postcomment.php', { commentMessage: \$(strCommentTxtID).val(), messageID: intMessageID }, function(data) {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\$(strCommentsULID).html(data);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\$(strCommentTxtID).val('');\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t";
}
$dispManageMessagesJS = "";
if ($eventObj->memberHasAccess($memberInfo['member_id'], "managemessages")) {
$dispManageMessagesJS = "\n\t\t\t\t\n\t\t\t\t\tfunction deleteMessage(intMessageID, strMessageType) {\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\$(document).ready(function() {\n\t\t\t\t\t\t\tvar intMessageType = 0;\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(strMessageType == \"c\") {\n\t\t\t\t\t\t\t\tintMessageType = 1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\$(document).css('cursor', 'wait');\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\$.post('" . $MAIN_ROOT . "members/events/include/deletemessage.php', { messageID: intMessageID, comment: intMessageType }, function(data) {\n\t\t\t\t\t\t\t\t\$('#eventMessages').html(data);\n\t\t\t\t\t\t\t\t\$(document).css('cursor', 'default');\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t});\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t";
}
echo "\n\t\t\t\t<div id='loadingSpiral' class='loadingSpiral'>\n\t\t\t\t\t<p align='center'>\n\t\t\t\t\t\t<img src='" . $MAIN_ROOT . "themes/" . $THEME . "/images/loading-spiral.gif'><br>Loading\n\t\t\t\t\t</p>\n\t\t\t\t</div>\n\t\t\t\n\t\t\t\t<div class='eventMessages' id='eventMessages'>\n\t\t\t\t\t<ul>\n\t\t\t\t\t\t\n\t\t\t\t\t";
$result = $mysqli->query("SELECT * FROM " . $dbprefix . "eventmessages WHERE event_id = '" . $eventInfo['event_id'] . "' ORDER BY dateposted DESC");
while ($row = $result->fetch_assoc()) {
$eventPgMemberObj->select($row['member_id']);
$memInfo = $eventPgMemberObj->get_info_filtered();
if ($memInfo['profilepic'] == "") {
$dispProfilePic = $MAIN_ROOT . "themes/" . $THEME . "/images/defaultprofile.png";
} else {