本文整理汇总了PHP中Text::full_format方法的典型用法代码示例。如果您正苦于以下问题:PHP Text::full_format方法的具体用法?PHP Text::full_format怎么用?PHP Text::full_format使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Text
的用法示例。
在下文中一共展示了Text::full_format方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: make_staff_row
/**
* Generate a table row for a staff member on staff.php
*
* @param $Row used for alternating row colors
* @param $ID the user ID of the staff member
* @param $Paranoia the user's paranoia
* @param $Class the user class
* @param $LastAccess datetime the user last browsed the site
* @param $Remark the "Staff remark" or FLS' "Support for" text
* @param $HiddenBy the text that is displayed when a staff member's
* paranoia hides their LastAccess time
* @return string $Row
*/
function make_staff_row($Row, $ID, $Paranoia, $Class, $LastAccess, $Remark = '', $HiddenBy = 'Hidden by user')
{
$Row = $Row === 'a' ? 'b' : 'a';
echo "\t\t\t<tr class=\"row{$Row}\">\n\t\t\t\t<td class=\"nobr\">\n\t\t\t\t\t" . Users::format_username($ID, false, false, false) . "\n\t\t\t\t</td>\n\t\t\t\t<td class=\"nobr\">\n\t\t\t\t\t";
//used for proper indentation of HTML
if (check_paranoia('lastseen', $Paranoia, $Class)) {
echo time_diff($LastAccess);
} else {
echo "{$HiddenBy}";
}
echo "\n\t\t\t\t</td>\n\t\t\t\t<td class=\"nobr\">" . Text::full_format($Remark) . "</td>\n\t\t\t</tr>\n";
// the "\n" is needed for pretty HTML
// the foreach loop that calls this function needs to know the new value of $Row
return $Row;
}
示例2: array
$JsonSimilar[] = array('artistId' => (int) $Similar['ArtistID'], 'name' => $Similar['Name'], 'score' => (int) $Similar['Score'], 'similarId' => (int) $Similar['SimilarID']);
}
}
$JsonRequests = array();
foreach ($Requests as $RequestID => $Request) {
$JsonRequests[] = array('requestId' => (int) $RequestID, 'categoryId' => (int) $Request['CategoryID'], 'title' => $Request['Title'], 'year' => (int) $Request['Year'], 'timeAdded' => $Request['TimeAdded'], 'votes' => (int) $Request['Votes'], 'bounty' => (int) $Request['Bounty']);
}
//notifications disabled by default
$notificationsEnabled = false;
if (check_perms('site_torrents_notify')) {
if (($Notify = $Cache->get_value('notify_artists_' . $LoggedUser['ID'])) === false) {
$DB->query("\n\t\t\tSELECT ID, Artists\n\t\t\tFROM users_notify_filters\n\t\t\tWHERE UserID = '{$LoggedUser['ID']}'\n\t\t\t\tAND Label = 'Artist notifications'\n\t\t\tLIMIT 1");
$Notify = $DB->next_record(MYSQLI_ASSOC, false);
$Cache->cache_value('notify_artists_' . $LoggedUser['ID'], $Notify, 0);
}
if (stripos($Notify['Artists'], "|{$Name}|") === false) {
$notificationsEnabled = false;
} else {
$notificationsEnabled = true;
}
}
// Cache page for later use
if ($RevisionID) {
$Key = "artist_{$ArtistID}" . "_revision_{$RevisionID}";
} else {
$Key = "artist_{$ArtistID}";
}
$Data = array(array($Name, $Image, $Body, $NumSimilar, $SimilarArray, array(), array(), $VanityHouseArtist));
$Cache->cache_value($Key, $Data, 3600);
json_print("success", array('id' => (int) $ArtistID, 'name' => $Name, 'notificationsEnabled' => $notificationsEnabled, 'hasBookmarked' => Bookmarks::has_bookmarked('artist', $ArtistID), 'image' => $Image, 'body' => Text::full_format($Body), 'vanityHouse' => $VanityHouseArtist == 1, 'tags' => array_values($Tags), 'similarArtists' => $JsonSimilar, 'statistics' => array('numGroups' => $NumGroups, 'numTorrents' => $NumTorrents, 'numSeeders' => $NumSeeders, 'numLeechers' => $NumLeechers, 'numSnatches' => $NumSnatches), 'torrentgroup' => $JsonTorrents, 'requests' => $JsonRequests));
示例3:
<img style="max-width: 200px;" onclick="lightbox.init(this, 200);" src="<?php
echo ImageTools::process($Image);
?>
" alt="Relevant image" />
<?php
}
?>
</td>
</tr>
<?php
}
?>
<tr>
<td class="label">User comment:</td>
<td colspan="3"><?php
echo Text::full_format($UserComment);
?>
</td>
</tr>
<?php
// END REPORTED STUFF :|: BEGIN MOD STUFF
?>
<tr>
<td class="label">Report comment:</td>
<td colspan="3">
<input type="text" name="comment" id="comment<?php
echo $ReportID;
?>
" size="70" value="<?php
echo $ModComment;
?>
示例4: build_torrents_table
function build_torrents_table($Cache, $DB, $LoggedUser, $GroupID, $GroupName, $GroupCategoryID, $ReleaseType, $TorrentList, $Types, $Username, $ReportedTimes)
{
function filelist($Str)
{
return "</td>\n<td>" . Format::get_size($Str[1]) . "</td>\n</tr>";
}
$LastRemasterYear = '-';
$LastRemasterTitle = '';
$LastRemasterRecordLabel = '';
$LastRemasterCatalogueNumber = '';
$EditionID = 0;
foreach ($TorrentList as $Torrent) {
//t.ID, t.Media, t.Format, t.Encoding, t.Remastered, t.RemasterYear,
//t.RemasterTitle, t.RemasterRecordLabel, t.RemasterCatalogueNumber, t.Scene,
//t.HasLog, t.HasCue, t.LogScore, t.FileCount, t.Size, t.Seeders, t.Leechers,
//t.Snatched, t.FreeTorrent, t.Time, t.Description, t.FileList,
//t.FilePath, t.UserID, t.last_action, HEX(t.info_hash), (bad tags), (bad folders), (bad filenames),
//(cassette approved), (lossy master approved), (lossy web approved), t.LastReseedRequest,
//LogInDB, (has file), Torrents::torrent_properties()
list($TorrentID, $Media, $Format, $Encoding, $Remastered, $RemasterYear, $RemasterTitle, $RemasterRecordLabel, $RemasterCatalogueNumber, $Scene, $HasLog, $HasCue, $LogScore, $FileCount, $Size, $Seeders, $Leechers, $Snatched, $FreeTorrent, $TorrentTime, $Description, $FileList, $FilePath, $UserID, $LastActive, $InfoHash, $BadTags, $BadFolders, $BadFiles, $CassetteApproved, $LossymasterApproved, $LossywebApproved, $LastReseedRequest, $LogInDB, $HasFile, $PersonalFL, $IsSnatched) = array_values($Torrent);
if ($Remastered && !$RemasterYear) {
$FirstUnknown = !isset($FirstUnknown);
}
$Reported = false;
unset($ReportedTimes);
$Reports = Torrents::get_reports($TorrentID);
$NumReports = count($Reports);
if ($NumReports > 0) {
$Reported = true;
include SERVER_ROOT . '/sections/reportsv2/array.php';
$ReportInfo = '
<table class="reportinfo_table">
<tr class="colhead_dark" style="font-weight: bold;">
<td>This torrent has ' . $NumReports . ' active ' . ($NumReports === 1 ? 'report' : 'reports') . ":</td>\n\t\t\t</tr>";
foreach ($Reports as $Report) {
if (check_perms('admin_reports')) {
$ReporterID = $Report['ReporterID'];
$Reporter = Users::user_info($ReporterID);
$ReporterName = $Reporter['Username'];
$ReportLinks = "<a href=\"user.php?id={$ReporterID}\">{$ReporterName}</a> <a href=\"reportsv2.php?view=report&id={$Report['ID']}\">reported it</a>";
} else {
$ReportLinks = 'Someone reported it';
}
if (isset($Types[$GroupCategoryID][$Report['Type']])) {
$ReportType = $Types[$GroupCategoryID][$Report['Type']];
} elseif (isset($Types['master'][$Report['Type']])) {
$ReportType = $Types['master'][$Report['Type']];
} else {
//There was a type but it wasn't an option!
$ReportType = $Types['master']['other'];
}
$ReportInfo .= "\n\t\t\t<tr>\n\t\t\t\t<td>{$ReportLinks} " . time_diff($Report['ReportedTime'], 2, true, true) . ' for the reason "' . $ReportType['title'] . '":
<blockquote>' . Text::full_format($Report['UserComment']) . '</blockquote>
</td>
</tr>';
}
$ReportInfo .= "\n\t\t</table>";
}
$CanEdit = check_perms('torrents_edit') || $UserID == $LoggedUser['ID'] && !$LoggedUser['DisableWiki'] && !($Remastered && !$RemasterYear);
$RegenLink = check_perms('users_mod') ? ' <a href="torrents.php?action=regen_filelist&torrentid=' . $TorrentID . '" class="brackets">Regenerate</a>' : '';
$FileTable = '
<table class="filelist_table">
<tr class="colhead_dark">
<td>
<div class="filelist_title" style="float: left;">File Names' . $RegenLink . '</div>
<div class="filelist_path" style="float: right;">' . ($FilePath ? "/{$FilePath}/" : '') . '</div>
</td>
<td>
<strong>Size</strong>
</td>
</tr>';
if (substr($FileList, -3) == '}}}') {
// Old style
$FileListSplit = explode('|||', $FileList);
foreach ($FileListSplit as $File) {
$NameEnd = strrpos($File, '{{{');
$Name = substr($File, 0, $NameEnd);
if ($Spaces = strspn($Name, ' ')) {
$Name = str_replace(' ', ' ', substr($Name, 0, $Spaces)) . substr($Name, $Spaces);
}
$FileSize = substr($File, $NameEnd + 3, -3);
$FileTable .= sprintf("\n<tr><td>%s</td><td class=\"number_column\">%s</td></tr>", $Name, Format::get_size($FileSize));
}
} else {
$FileListSplit = explode("\n", $FileList);
foreach ($FileListSplit as $File) {
$FileInfo = Torrents::filelist_get_file($File);
$FileTable .= sprintf("\n<tr><td>%s</td><td class=\"number_column\">%s</td></tr>", $FileInfo['name'], Format::get_size($FileInfo['size']));
}
}
$FileTable .= '
</table>';
$ExtraInfo = '';
// String that contains information on the torrent (e.g. format and encoding)
$AddExtra = '';
// Separator between torrent properties
$TorrentUploader = $Username;
// Save this for "Uploaded by:" below
// similar to Torrents::torrent_info()
if ($Format) {
//.........这里部分代码省略.........
示例5:
case 'comment':
$DB->query("\n\t\t\t\t\t\t\t\t\t\tSELECT 1\n\t\t\t\t\t\t\t\t\t\tFROM comments\n\t\t\t\t\t\t\t\t\t\tWHERE ID = {$ThingID}");
if (!$DB->has_results()) {
echo 'No comment with the reported ID found';
} else {
echo "<a href=\"comments.php?action=jump&postid={$ThingID}\">COMMENT</a>";
}
break;
}
?>
</strong>
</td>
</tr>
<tr>
<td colspan="2"><?php
echo Text::full_format($Reason);
?>
</td>
</tr>
<tr>
<td colspan="2">
<?php
if ($ClaimerID == $LoggedUser['ID']) {
?>
<span id="claimed_<?php
echo $ReportID;
?>
">Claimed by <?php
echo Users::format_username($ClaimerID, false, false, false, false);
?>
<a href="#" onclick="unClaim(<?php
示例6: user_dupes_table
function user_dupes_table($UserID)
{
global $DB, $LoggedUser;
if (!check_perms('users_mod')) {
error(403);
}
if (!is_number($UserID)) {
error(403);
}
$DB->query("\n\t\tSELECT d.ID, d.Comments, SHA1(d.Comments) AS CommentHash\n\t\tFROM dupe_groups AS d\n\t\t\tJOIN users_dupes AS u ON u.GroupID = d.ID\n\t\tWHERE u.UserID = {$UserID}");
if (list($GroupID, $Comments, $CommentHash) = $DB->next_record()) {
$DB->query("\n\t\t\tSELECT m.ID\n\t\t\tFROM users_main AS m\n\t\t\t\tJOIN users_dupes AS d ON m.ID = d.UserID\n\t\t\tWHERE d.GroupID = {$GroupID}\n\t\t\tORDER BY m.ID ASC");
$DupeCount = $DB->record_count();
$Dupes = $DB->to_array();
} else {
$DupeCount = 0;
$Dupes = array();
}
?>
<form class="manage_form" name="user" method="post" id="linkedform" action="">
<input type="hidden" name="action" value="dupes" />
<input type="hidden" name="dupeaction" value="update" />
<input type="hidden" name="userid" value="<?php
echo $UserID;
?>
" />
<input type="hidden" id="auth" name="auth" value="<?php
echo $LoggedUser['AuthKey'];
?>
" />
<input type="hidden" id="form_comment_hash" name="form_comment_hash" value="<?php
echo $CommentHash;
?>
" />
<div class="box box2" id="l_a_box">
<div class="head">
Linked Accounts (<?php
echo max($DupeCount - 1, 0);
?>
) <a href="#" onclick="$('.linkedaccounts').gtoggle(); return false;" class="brackets">View</a>
</div>
<table width="100%" class="layout hidden linkedaccounts">
<?php
echo $DupeCount ? "<tr>\n" : '';
$i = 0;
foreach ($Dupes as $Dupe) {
$i++;
list($DupeID) = $Dupe;
$DupeInfo = Users::user_info($DupeID);
?>
<td align="left"><?php
echo Users::format_username($DupeID, true, true, true, true);
?>
<a href="user.php?action=dupes&dupeaction=remove&auth=<?php
echo $LoggedUser['AuthKey'];
?>
&userid=<?php
echo $UserID;
?>
&removeid=<?php
echo $DupeID;
?>
" onclick="return confirm('Are you sure you wish to remove <?php
echo $DupeInfo['Username'];
?>
from this group?');" class="brackets tooltip" title="Remove linked account">X</a>
</td>
<?php
if ($i == 4) {
$i = 0;
echo "\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n";
}
}
if ($DupeCount) {
if ($i !== 0) {
for ($j = $i; $j < 4; $j++) {
echo "\t\t\t\t\t\t<td> </td>\n";
}
}
?>
</tr>
<?php
}
?>
<tr>
<td colspan="5" align="left" style="border-top: thin solid;"><strong>Comments:</strong></td>
</tr>
<tr>
<td colspan="5" align="left">
<div id="dupecomments" class="<?php
echo $DupeCount ? '' : 'hidden';
?>
"><?php
echo Text::full_format($Comments);
?>
</div>
<div id="editdupecomments" class="<?php
echo $DupeCount ? 'hidden' : '';
?>
">
//.........这里部分代码省略.........
示例7: json_die
<?php
if (empty($_GET['id']) || !is_number($_GET['id'])) {
json_die("failure");
}
list($NumComments, $Page, $Thread) = Comments::load('torrents', (int) $_GET['id'], false);
//---------- Begin printing
$JsonComments = array();
foreach ($Thread as $Key => $Post) {
list($PostID, $AuthorID, $AddedTime, $Body, $EditedUserID, $EditedTime, $EditedUsername) = array_values($Post);
list($AuthorID, $Username, $PermissionID, $Paranoia, $Artist, $Donor, $Warned, $Avatar, $Enabled, $UserTitle) = array_values(Users::user_info($AuthorID));
$JsonComments[] = array('postId' => (int) $PostID, 'addedTime' => $AddedTime, 'bbBody' => $Body, 'body' => Text::full_format($Body), 'editedUserId' => (int) $EditedUserID, 'editedTime' => $EditedTime, 'editedUsername' => $EditedUsername, 'userinfo' => array('authorId' => (int) $AuthorID, 'authorName' => $Username, 'artist' => $Artist == 1, 'donor' => $Donor == 1, 'warned' => $Warned != '0000-00-00 00:00:00', 'avatar' => $Avatar, 'enabled' => $Enabled == 2 ? false : true, 'userTitle' => $UserTitle));
}
json_die("success", array('page' => (int) $Page, 'pages' => ceil($NumComments / TORRENT_COMMENTS_PER_PAGE), 'comments' => $JsonComments));
示例8: array
}
if ($LoggedUser['LastReadNews'] != $News[0][0]) {
$Cache->begin_transaction("user_info_heavy_{$UserID}");
$Cache->update_row(false, array('LastReadNews' => $News[0][0]));
$Cache->commit_transaction(0);
$DB->query("\n\t\tUPDATE users_info\n\t\tSET LastReadNews = '" . $News[0][0] . "'\n\t\tWHERE UserID = {$UserID}");
$LoggedUser['LastReadNews'] = $News[0][0];
}
if (($Blog = $Cache->get_value('blog')) === false) {
$DB->query("\n\t\tSELECT\n\t\t\tb.ID,\n\t\t\tum.Username,\n\t\t\tb.UserID,\n\t\t\tb.Title,\n\t\t\tb.Body,\n\t\t\tb.Time,\n\t\t\tb.ThreadID\n\t\tFROM blog AS b\n\t\t\tLEFT JOIN users_main AS um ON b.UserID = um.ID\n\t\tORDER BY Time DESC\n\t\tLIMIT 20");
$Blog = $DB->to_array();
$Cache->cache_value('blog', $Blog, 1209600);
}
$JsonBlog = array();
for ($i = 0; $i < 5; $i++) {
list($BlogID, $Author, $AuthorID, $Title, $Body, $BlogTime, $ThreadID) = $Blog[$i];
$JsonBlog[] = array('blogId' => (int) $BlogID, 'author' => $Author, 'title' => $Title, 'bbBody' => $Body, 'body' => Text::full_format($Body), 'blogTime' => $BlogTime, 'threadId' => (int) $ThreadID);
}
$JsonAnnouncements = array();
$Count = 0;
foreach ($News as $NewsItem) {
list($NewsID, $Title, $Body, $NewsTime) = $NewsItem;
if (strtotime($NewsTime) > time()) {
continue;
}
$JsonAnnouncements[] = array('newsId' => (int) $NewsID, 'title' => $Title, 'bbBody' => $Body, 'body' => Text::full_format($Body), 'newsTime' => $NewsTime);
if (++$Count > 4) {
break;
}
}
json_print("success", array('announcements' => $JsonAnnouncements, 'blogPosts' => $JsonBlog));
示例9: foreach
foreach ($DNU as $BadUpload) {
list($Name, $Comment, $Updated) = $BadUpload;
?>
<tr>
<td>
<?php
echo Text::full_format($Name) . "\n";
if ($TimeDiff < strtotime($Updated)) {
?>
<strong class="important_text">(New!)</strong>
<?php
}
?>
</td>
<td><?php
echo Text::full_format($Comment);
?>
</td>
</tr>
<?php
}
?>
</table>
</div><?php
echo $HideDNU ? '<br />' : '';
$TorrentForm->head();
switch ($UploadForm) {
case 'Music':
$TorrentForm->music_form($GenreTags);
break;
case 'Audiobooks':
示例10: elseif
$Ratio = Format::get_ratio($Uploaded, $Downloaded, 5);
} else {
$Ratio = null;
}
if (!check_paranoia_here('uploaded')) {
$Uploaded = null;
}
if (!check_paranoia_here('downloaded')) {
$Downloaded = null;
}
if (isset($RequiredRatio) && !check_paranoia_here('requiredratio')) {
$RequiredRatio = null;
}
if ($ParanoiaLevel == 0) {
$ParanoiaLevelText = 'Off';
} elseif ($ParanoiaLevel == 1) {
$ParanoiaLevelText = 'Very Low';
} elseif ($ParanoiaLevel <= 5) {
$ParanoiaLevelText = 'Low';
} elseif ($ParanoiaLevel <= 20) {
$ParanoiaLevelText = 'High';
} else {
$ParanoiaLevelText = 'Very high';
}
//Bugfix for no access time available
if ($LastAccess == '0000-00-00 00:00:00') {
$LastAccess = '';
}
header('Content-Type: text/plain; charset=utf-8');
json_die("success", array('username' => $Username, 'avatar' => $Avatar, 'isFriend' => $Friend, 'profileText' => Text::full_format($Info), 'stats' => array('joinedDate' => $JoinDate, 'lastAccess' => $LastAccess, 'uploaded' => $Uploaded == null ? null : (int) $Uploaded, 'downloaded' => $Downloaded == null ? null : (int) $Downloaded, 'ratio' => $Ratio, 'requiredRatio' => $RequiredRatio == null ? null : (double) $RequiredRatio), 'ranks' => array('uploaded' => $UploadedRank, 'downloaded' => $DownloadedRank, 'uploads' => $UploadsRank, 'requests' => $RequestRank, 'bounty' => $BountyRank, 'posts' => $PostRank, 'artists' => $ArtistsRank, 'overall' => $OverallRank == null ? 0 : $OverallRank), 'personal' => array('class' => $ClassLevels[$Class]['Name'], 'paranoia' => $ParanoiaLevel, 'paranoiaText' => $ParanoiaLevelText, 'donor' => $Donor == 1, 'warned' => $Warned != '0000-00-00 00:00:00', 'enabled' => $Enabled == '1' || $Enabled == '0' || !$Enabled, 'passkey' => $torrent_pass), 'community' => array('posts' => (int) $ForumPosts, 'torrentComments' => (int) $NumComments, 'collagesStarted' => $NumCollages == null ? null : (int) $NumCollages, 'collagesContrib' => $NumCollageContribs == null ? null : (int) $NumCollageContribs, 'requestsFilled' => $RequestsFilled == null ? null : (int) $RequestsFilled, 'requestsVoted' => $RequestsVoted == null ? null : (int) $RequestsVoted, 'perfectFlacs' => $PerfectFLACs == null ? null : (int) $PerfectFLACs, 'uploaded' => $Uploads == null ? null : (int) $Uploads, 'groups' => $UniqueGroups == null ? null : (int) $UniqueGroups, 'seeding' => $Seeding == null ? null : (int) $Seeding, 'leeching' => $Leeching == null ? null : (int) $Leeching, 'snatched' => $Snatched == null ? null : (int) $Snatched, 'invited' => $Invited == null ? null : (int) $Invited)));
示例11: render_profile_rewards
public static function render_profile_rewards($EnabledRewards, $ProfileRewards)
{
for ($i = 1; $i <= 4; $i++) {
if ($EnabledRewards['HasProfileInfo' . $i] && $ProfileRewards['ProfileInfo' . $i]) {
?>
<div class="box">
<div class="head" style="height: 13px;">
<span style="float: left;"><?php
echo !empty($ProfileRewards['ProfileInfoTitle' . $i]) ? display_str($ProfileRewards['ProfileInfoTitle' . $i]) : "Extra Profile " . ($i + 1);
?>
</span>
<span style="float: right;"><a href="#" onclick="$('#profilediv_<?php
echo $i;
?>
').gtoggle(); this.innerHTML = (this.innerHTML == 'Hide' ? 'Show' : 'Hide'); return false;" class="brackets">Hide</a></span>
</div>
<div class="pad profileinfo" id="profilediv_<?php
echo $i;
?>
">
<?php
echo Text::full_format($ProfileRewards['ProfileInfo' . $i]);
?>
</div>
</div>
<?php
}
}
}
示例12: authorize
<?php
authorize();
if (!isset($_POST['postid']) || !is_number($_POST['postid']) || !isset($_POST['body']) || trim($_POST['body']) === '') {
error(0);
}
if ($LoggedUser['DisablePosting']) {
error('Your posting privileges have been removed.');
}
$SendPM = isset($_POST['pm']) && $_POST['pm'];
Comments::edit((int) $_POST['postid'], $_POST['body'], $SendPM);
// This gets sent to the browser, which echoes it in place of the old body
echo Text::full_format($_POST['body']);
示例13: foreach
$TorrentList = $TorrentCache[1];
// Resolve the torrentlist to the one specific torrent being reported
foreach ($TorrentList as &$Torrent) {
// Remove unneeded entries
if ($Torrent['ID'] != $TorrentID) {
unset($TorrentList[$Torrent['ID']]);
}
}
// Group details
list($WikiBody, $WikiImage, $GroupID, $GroupName, $GroupYear, $GroupRecordLabel, $GroupCatalogueNumber, $ReleaseType, $GroupCategoryID, $GroupTime, $GroupVanityHouse, $TorrentTags, $TorrentTagIDs, $TorrentTagUserIDs, $TagPositiveVotes, $TagNegativeVotes, $GroupFlags) = array_values($GroupDetails);
$DisplayName = $GroupName;
$AltName = $GroupName;
// Goes in the alt text of the image
$Title = $GroupName;
// goes in <title>
$WikiBody = Text::full_format($WikiBody);
//Get the artist name, group name etc.
$Artists = Artists::get_artist($GroupID);
if ($Artists) {
$DisplayName = '<span dir="ltr">' . Artists::display_artists($Artists, true) . "<a href=\"torrents.php?torrentid={$TorrentID}\">{$DisplayName}</a></span>";
$AltName = display_str(Artists::display_artists($Artists, false)) . $AltName;
$Title = $AltName;
}
if ($GroupYear > 0) {
$DisplayName .= " [{$GroupYear}]";
$AltName .= " [{$GroupYear}]";
$Title .= " [{$GroupYear}]";
}
if ($GroupVanityHouse) {
$DisplayName .= ' [Vanity House]';
$AltName .= ' [Vanity House]';
示例14:
">
<?php
if (Users::has_avatars_enabled()) {
?>
<td class="avatar" valign="top">
<?php
echo Users::show_avatar($Result['LastReadAvatar'], $Result['LastReadUsername'], $HeavyInfo['DisableAvatars']);
?>
</td>
<?php
}
?>
<td class="body" valign="top">
<div class="content3">
<?php
echo Text::full_format($Result['LastReadBody']);
if ($Result['LastReadEditedUserID']) {
?>
<br /><br />
Last edited by <?php
echo Users::format_username($Result['LastReadEditedUserID'], false, false, false);
?>
<?php
echo time_diff($Result['LastReadEditedTime']);
}
?>
</div>
</td>
</tr>
<?php
}
示例15:
echo $Question['ID'];
?>
').raw().submit(); } return false;" class="brackets">Delete</a>
<?php
}
if ($LoggedUser['ID'] == $UserID) {
?>
<a href="questions.php?action=edit&id=<?php
echo $Question['ID'];
?>
&userid=<?php
echo $UserID;
?>
" class="brackets">Edit</a>
<?php
}
?>
</span>
</div>
<div class="pad">
<?php
echo Text::full_format("[quote=" . $Question['Username'] . "]" . $Question['Question'] . "[/quote]\n" . $Question['Answer']);
?>
</div>
</div>
<?php
}
?>
</div>
<?php
View::show_footer();