Logout"; } else { $loginLink = "Login"; } ?> Hollywood Film Office Forums

Hollywood Film Office Forums   Hollywood Film Office Forums

getAllForums(); $forumObjArray = $ff->getObjects(); $numForums = count($forumObjArray); ?> 0) { for ($f=0; $f<$numForums; $f++) { $forumObj = $forumObjArray[$f]; $forumId = $forumObj->getForumId(); $forumName = stripslashes($forumObj->getForumName()); $forumDesc = stripslashes($forumObj->getForumDesc()); $numPosts = $forumObj->getNumPosts(); $numThreads = $forumObj->getNumThreads(); echo "\n"; echo "\n"; echo "\n"; //num threads echo "\n"; //num posts echo "\n"; echo "\n"; } //end for } else { echo ""; } ?>
"; echo "\n"; echo "
$forumDesc
\n"; echo "
"; //last message $lastMessageObj = $forumObj->getLastMessageObj(); if ($lastMessageObj != null) { $lastThreadObj = $forumObj->getLastThreadObj(); if ($lastThreadObj != null) { $maxLength = 15; $threadName = $lastThreadObj->getThreadName(); if (strlen($threadName) > $maxLength) { $threadName = substr($threadName, 0, $maxLength)."..."; } } $lastThreadId = $lastMessageObj->getThreadId(); $lastMessageDate = $lastMessageObj->getMessageDate(); $currentDateLen = strlen($lastMessageDate); $lastMessageDate = substr($lastMessageDate, 0, $currentDateLen-3); $lastUserAccountObj = $lastMessageObj->getMessageCreatorUserObj(); $lastMsgUserName = $lastUserAccountObj->getUserName(); echo ""; echo "
By: $lastMsgUserName
"; echo "
$lastMessageDate
"; } //end if last thread was found else { echo "
N/A
"; } echo "
"; echo "
$numThreads
"; echo "
"; echo "
$numPosts
"; echo "
No Forums were found.

Username:
Password:

Logout