Trunk updated to 0.9 git-svn-id: http://kusabax.cultnet.net/svn/repo/stable@176 73d99b7e-4f53-4972-b7b7-2ecd3c4d89ee
429 lines
16 KiB
Smarty
429 lines
16 KiB
Smarty
<form id="delform" action="{%KU_CGIPATH}/board.php" method="post">
|
|
<input type="hidden" name="board" value="{$board.name}" />
|
|
{foreach name=thread item=postsa from=$posts}
|
|
{foreach key=postkey item=post from=$postsa}
|
|
{if $post.parentid eq 0}
|
|
<span id="unhidethread{$post.id}{$board.name}" style="display: none;">
|
|
{t}Thread{/t} <a href="{%KU_BOARDSFOLDER}{$board.name}/res/{$post.id}.html">{$post.id}</a> {t}hidden.{/t}
|
|
<a href="#" onclick="javascript:togglethread('{$post.id}{$board.name}');return false;" title="{t}Un-Hide Thread{/t}">
|
|
<img src="{$cwebpath}css/icons/blank.gif" border="0" class="unhidethread" alt="{t}Un-Hide Thread{/t}" />
|
|
</a>
|
|
</span>
|
|
<div id="thread{$post.id}{$board.name}">
|
|
<script type="text/javascript"><!--
|
|
if (hiddenthreads.toString().indexOf('{$post.id}{$board.name}')!==-1) {
|
|
document.getElementById('unhidethread{$post.id}{$board.name}').style.display = 'block';
|
|
document.getElementById('thread{$post.id}{$board.name}').style.display = 'none';
|
|
}
|
|
//--></script>
|
|
<a name="s{$.foreach.thread.iteration}"></a>
|
|
|
|
{if ($post.file neq '' || $post.file_type neq '' ) && (($post.videobox eq '' && $post.file neq '') && $post.file neq 'removed')}
|
|
<span class="filesize">
|
|
{if $post.file_type eq 'mp3'}
|
|
{t}Audio{/t}
|
|
{else}
|
|
{t}File{/t}
|
|
{/if}
|
|
{if $post.file_type neq 'jpg' && $post.file_type neq 'gif' && $post.file_type neq 'png' && $post.videobox eq ''}
|
|
<a
|
|
{if %KU_NEWWINDOW}
|
|
target="_blank"
|
|
{/if}
|
|
href="{$file_path}/src/{$post.file}.{$post.file_type}">
|
|
{else}
|
|
<a href="{$file_path}/src/{$post.file}.{$post.file_type}" onclick="javascript:expandimg('{$post.id}', '{$file_path}/src/{$post.file}.{$post.file_type}', '{$file_path}/thumb/{$post.file}s.{$post.file_type}', '{$post.image_w}', '{$post.image_h}', '{$post.thumb_w}', '{$post.thumb_h}');return false;">
|
|
{/if}
|
|
{if isset($post.id3.comments_html)}
|
|
{if $post.id3.comments_html.artist.0 neq ''}
|
|
{$post.id3.comments_html.artist.0}
|
|
{if $post.id3.comments_html.title.0 neq ''}
|
|
-
|
|
{/if}
|
|
{/if}
|
|
{if $post.id3.comments_html.title.0 neq ''}
|
|
{$post.id3.comments_html.title.0}
|
|
{/if}
|
|
</a>
|
|
{else}
|
|
{$post.file}.{$post.file_type}</a>
|
|
{/if}
|
|
- ({$post.file_size_formatted}
|
|
{if $post.id3.comments_html.bitrate neq 0 || $post.id3.audio.sample_rate neq 0}
|
|
{if $post.id3.audio.bitrate neq 0}
|
|
- {round($post.id3.audio.bitrate / 1000)} kbps
|
|
{if $post.id3.audio.sample_rate neq 0}
|
|
-
|
|
{/if}
|
|
{/if}
|
|
{if $post.id3.audio.sample_rate neq 0}
|
|
{$post.id3.audio.sample_rate / 1000} kHz
|
|
{/if}
|
|
{/if}
|
|
{if $post.image_w > 0 && $post.image_h > 0}
|
|
, {$post.image_w}x{$post.image_h}
|
|
{/if}
|
|
{if $post.file_original neq '' && $post.file_original neq $post.file}
|
|
, {$post.file_original}.{$post.file_type}
|
|
{/if}
|
|
)
|
|
{if $post.id3.playtime_string neq ''}
|
|
{t}Length{/t}: {$post.id3.playtime_string}
|
|
{/if}
|
|
</span>
|
|
{if %KU_THUMBMSG}
|
|
<span class="thumbnailmsg">
|
|
{if $post.file_type neq 'jpg' && $post.file_type neq 'gif' && $post.file_type neq 'png' && $post.videobox eq ''}
|
|
{t}Extension icon displayed, click image to open file.{/t}
|
|
{else}
|
|
{t}Thumbnail displayed, click image for full size.{/t}
|
|
{/if}
|
|
</span>
|
|
{/if}
|
|
<br />
|
|
{/if}
|
|
{if $post.videobox eq '' && $post.file neq '' && ( $post.file_type eq 'jpg' || $post.file_type eq 'gif' || $post.file_type eq 'png')}
|
|
{if $post.file eq 'removed'}
|
|
<div class="nothumb">
|
|
{t}File<br />Removed{/t}
|
|
</div>
|
|
{else}
|
|
<a
|
|
{if %KU_NEWWINDOW}
|
|
target="_blank"
|
|
{/if}
|
|
href="{$file_path}/src/{$post.file}.{$post.file_type}">
|
|
<span id="thumb{$post.id}"><img src="{$file_path}/thumb/{$post.file}s.{$post.file_type}" alt="{$post.id}" class="thumb" height="{$post.thumb_h}" width="{$post.thumb_w}" /></span>
|
|
</a>
|
|
{/if}
|
|
{elseif $post.nonstandard_file neq ''}
|
|
{if $post.file eq 'removed'}
|
|
<div class="nothumb">
|
|
{t}File<br />Removed{/t}
|
|
</div>
|
|
{else}
|
|
<a
|
|
{if %KU_NEWWINDOW}
|
|
target="_blank"
|
|
{/if}
|
|
href="{$file_path}/src/{$post.file}.{$post.file_type}">
|
|
<span id="thumb{$post.id}"><img src="{$post.nonstandard_file}" alt="{$post.id}" class="thumb" height="{$post.thumb_h}" width="{$post.thumb_w}" /></span>
|
|
</a>
|
|
{/if}
|
|
{/if}
|
|
<a name="{$post.id}"></a>
|
|
<label>
|
|
<input type="checkbox" name="post[]" value="{$post.id}" />
|
|
{if $post.subject neq ''}
|
|
<span class="filetitle">
|
|
{$post.subject}
|
|
</span>
|
|
{/if}
|
|
{strip}
|
|
<span class="postername">
|
|
|
|
{if $post.email && $board.anonymous}
|
|
<a href="mailto:{$post.email}">
|
|
{/if}
|
|
{if $post.name eq '' && $post.tripcode eq ''}
|
|
{$board.anonymous}
|
|
{elseif $post.name eq '' && $post.tripcode neq ''}
|
|
{else}
|
|
{$post.name}
|
|
{/if}
|
|
{if $post.email neq '' && $board.anonymous neq ''}
|
|
</a>
|
|
{/if}
|
|
|
|
</span>
|
|
|
|
{if $post.tripcode neq ''}
|
|
<span class="postertrip">!{$post.tripcode}</span>
|
|
{/if}
|
|
{/strip}
|
|
{if $post.posterauthority eq 1}
|
|
<span class="admin">
|
|
## {t}Admin{/t} ##
|
|
</span>
|
|
{elseif $post.posterauthority eq 4}
|
|
<span class="mod">
|
|
## {t}Super Mod{/t} ##
|
|
</span>
|
|
{elseif $post.posterauthority eq 2}
|
|
<span class="mod">
|
|
## {t}Mod{/t} ##
|
|
</span>
|
|
{/if}
|
|
{$post.timestamp_formatted}
|
|
</label>
|
|
<span class="reflink">
|
|
{$post.reflink}
|
|
</span>
|
|
{if $board.showid}
|
|
ID: {$post.ipmd5|substr:0:6}
|
|
{/if}
|
|
<span class="extrabtns">
|
|
{if $post.locked eq 1}
|
|
<img style="border: 0;" src="{$boardpath}css/locked.gif" alt="{t}Locked{/t}" />
|
|
{/if}
|
|
{if $post.stickied eq 1}
|
|
<img style="border: 0;" src="{$boardpath}css/sticky.gif" alt="{t}Stickied{/t}" />
|
|
{/if}
|
|
<span id="hide{$post.id}"><a href="#" onclick="javascript:togglethread('{if $post.parentid eq 0}{$post.id}{else}{$post.parentid}{/if}{$board.name}');return false;" title="Hide Thread"><img src="{$boardpath}css/icons/blank.gif" border="0" class="hidethread" alt="hide" /></a></span>
|
|
{if %KU_WATCHTHREADS}
|
|
<a href="#" onclick="javascript:addtowatchedthreads('{if $post.parentid eq 0}{$post.id}{else}{$post.parentid}{/if}','{$board.name}');return false;" title="Watch Thread"><img src="{$boardpath}css/icons/blank.gif" border="0" class="watchthread" alt="watch" /></a>
|
|
{/if}
|
|
{if %KU_EXPAND && $post.replies && ($post.replies + %KU_REPLIES) < 300}
|
|
<a href="#" onclick="javascript:expandthread('{if $post.parentid eq 0}{$post.id}{else}{$post.parentid}{/if}','{$board.name}');return false;" title="Expand Thread"><img src="{$boardpath}css/icons/blank.gif" border="0" class="expandthread" alt="expand" /></a>
|
|
{/if}
|
|
{if %KU_QUICKREPLY}
|
|
<a href="#postbox" onclick="javascript:quickreply('{if $post.parentid eq 0}{$post.id}{else}{$post.parentid}{/if}');" title="{t}Quick Reply{/t}"><img src="{$boardpath}css/icons/blank.gif" border="0" class="quickreply" alt="quickreply" /></a>
|
|
{/if}
|
|
</span>
|
|
<span id="dnb-{$board.name}-{$post.id}-y"></span>
|
|
[<a href="{%KU_BOARDSFOLDER}{$board.name}/res/{if $post.parentid eq 0}{$post.id}{else}{$post.parentid}{/if}.html">{t}Reply{/t}</a>]
|
|
{if %KU_FIRSTLAST && (($post.stickied eq 1 && $post.replies + %KU_REPLIESSTICKY > 50) || ($post.stickied eq 0 && $post.replies + %KU_REPLIES > 50))}
|
|
{if (($post.stickied eq 1 && $post.replies + %KU_REPLIESSTICKY > 100) || ($post.stickied eq 0 && $post.replies + %KU_REPLIES > 100))}
|
|
[<a href="{%KU_BOARDSFOLDER}{$board.name}/res/{if $post.parentid eq 0}{$post.id}{else}{$post.parentid}{/if}-100.html">{t}First 100 posts{/t}</a>]
|
|
{/if}
|
|
[<a href="{%KU_BOARDSFOLDER}{$board.name}/res/{$post.id}+50.html">{t}Last 50 posts{/t}</a>]
|
|
{/if}
|
|
<br />
|
|
{else}
|
|
<table>
|
|
<tbody>
|
|
<tr>
|
|
<td class="doubledash">
|
|
>>
|
|
</td>
|
|
<td class="reply" id="reply{$post.id}">
|
|
<a name="{$post.id}"></a>
|
|
<label>
|
|
<input type="checkbox" name="post[]" value="{$post.id}" />
|
|
|
|
|
|
{if $post.subject neq ''}
|
|
<span class="filetitle">
|
|
{$post.subject}
|
|
</span>
|
|
{/if}
|
|
{strip}
|
|
<span class="postername">
|
|
|
|
{if $post.email && $board.anonymous}
|
|
<a href="mailto:{$post.email}">
|
|
{/if}
|
|
{if $post.name eq '' && $post.tripcode eq ''}
|
|
{$board.anonymous}
|
|
{elseif $post.name eq '' && $post.tripcode neq ''}
|
|
{else}
|
|
{$post.name}
|
|
{/if}
|
|
{if $post.email neq '' && $board.anonymous neq ''}
|
|
</a>
|
|
{/if}
|
|
|
|
</span>
|
|
|
|
{if $post.tripcode neq ''}
|
|
<span class="postertrip">!{$post.tripcode}</span>
|
|
{/if}
|
|
{/strip}
|
|
{if $post.posterauthority eq 1}
|
|
<span class="admin">
|
|
## {t}Admin{/t} ##
|
|
</span>
|
|
{elseif $post.posterauthority eq 4}
|
|
<span class="mod">
|
|
## {t}Super Mod{/t} ##
|
|
</span>
|
|
{elseif $post.posterauthority eq 2}
|
|
<span class="mod">
|
|
## {t}Mod{/t} ##
|
|
</span>
|
|
{/if}
|
|
|
|
{$post.timestamp_formatted}
|
|
</label>
|
|
|
|
<span class="reflink">
|
|
{$post.reflink}
|
|
</span>
|
|
{if $board.showid}
|
|
ID: {$post.ipmd5|substr:0:6}
|
|
{/if}
|
|
<span class="extrabtns">
|
|
{if $post.locked eq 1}
|
|
<img style="border: 0;" src="{$boardpath}css/locked.gif" alt="{t}Locked{/t}" />
|
|
{/if}
|
|
{if $post.stickied eq 1}
|
|
<img style="border: 0;" src="{$boardpath}css/sticky.gif" alt="{t}Stickied{/t}" />
|
|
{/if}
|
|
</span>
|
|
<span id="dnb-{$board.name}-{$post.id}-n"></span>
|
|
{if ($post.file neq '' || $post.file_type neq '' ) && (( $post.videobox eq '' && $post.file neq '') && $post.file neq 'removed')}
|
|
<br /><span class="filesize">
|
|
{if $post.file_type eq 'mp3'}
|
|
{t}Audio{/t}
|
|
{else}
|
|
{t}File{/t}
|
|
{/if}
|
|
{if $post.file_type neq 'jpg' && $post.file_type neq 'gif' && $post.file_type neq 'png' && $post.videobox eq ''}
|
|
<a
|
|
{if %KU_NEWWINDOW}
|
|
target="_blank"
|
|
{/if}
|
|
href="{$file_path}/src/{$post.file}.{$post.file_type}">
|
|
{else}
|
|
<a href="{$file_path}/src/{$post.file}.{$post.file_type}" onclick="javascript:expandimg('{$post.id}', '{$file_path}/src/{$post.file}.{$post.file_type}', '{$file_path}/thumb/{$post.file}s.{$post.file_type}', '{$post.image_w}', '{$post.image_h}', '{$post.thumb_w}', '{$post.thumb_h}');return false;">
|
|
{/if}
|
|
{if isset($post.id3.comments_html)}
|
|
{if $post.id3.comments_html.artist.0 neq ''}
|
|
{$post.id3.comments_html.artist.0}
|
|
{if $post.id3.comments_html.title.0 neq ''}
|
|
-
|
|
{/if}
|
|
{/if}
|
|
{if $post.id3.comments_html.title.0 neq ''}
|
|
{$post.id3.comments_html.title.0}
|
|
{/if}
|
|
</a>
|
|
{else}
|
|
{$post.file}.{$post.file_type}</a>
|
|
{/if}
|
|
- ({$post.file_size_formatted}
|
|
{if $post.id3.comments_html.bitrate neq 0 || $post.id3.audio.sample_rate neq 0}
|
|
{if $post.id3.audio.bitrate neq 0}
|
|
- {round($post.id3.audio.bitrate / 1000)} kbps
|
|
{if $post.id3.audio.sample_rate neq 0}
|
|
-
|
|
{/if}
|
|
{/if}
|
|
{if $post.id3.audio.sample_rate neq 0}
|
|
{$post.id3.audio.sample_rate / 1000} kHz
|
|
{/if}
|
|
{/if}
|
|
{if $post.image_w > 0 && $post.image_h > 0}
|
|
, {$post.image_w}x{$post.image_h}
|
|
{/if}
|
|
{if $post.file_original neq '' && $post.file_original neq $post.file}
|
|
, {$post.file_original}.{$post.file_type}
|
|
{/if}
|
|
)
|
|
{if $post.id3.playtime_string neq ''}
|
|
{t}Length{/t}: {$post.id3.playtime_string}
|
|
{/if}
|
|
</span>
|
|
{if %KU_THUMBMSG}
|
|
<span class="thumbnailmsg">
|
|
{if $post.file_type neq 'jpg' && $post.file_type neq 'gif' && $post.file_type neq 'png' && $post.videobox eq ''}
|
|
{t}Extension icon displayed, click image to open file.{/t}
|
|
{else}
|
|
{t}Thumbnail displayed, click image for full size.{/t}
|
|
{/if}
|
|
</span>
|
|
{/if}
|
|
|
|
{/if}
|
|
{if $post.videobox eq '' && $post.file neq '' && ( $post.file_type eq 'jpg' || $post.file_type eq 'gif' || $post.file_type eq 'png')}
|
|
<br />
|
|
{if $post.file eq 'removed'}
|
|
<div class="nothumb">
|
|
{t}File<br />Removed{/t}
|
|
</div>
|
|
{else}
|
|
<a
|
|
{if %KU_NEWWINDOW}
|
|
target="_blank"
|
|
{/if}
|
|
href="{$file_path}/src/{$post.file}.{$post.file_type}">
|
|
<span id="thumb{$post.id}"><img src="{$file_path}/thumb/{$post.file}s.{$post.file_type}" alt="{$post.id}" class="thumb" height="{$post.thumb_h}" width="{$post.thumb_w}" /></span>
|
|
</a>
|
|
{/if}
|
|
{elseif $post.nonstandard_file neq ''}
|
|
<br />
|
|
{if $post.file eq 'removed'}
|
|
<div class="nothumb">
|
|
{t}File<br />Removed{/t}
|
|
</div>
|
|
{else}
|
|
<a
|
|
{if %KU_NEWWINDOW}
|
|
target="_blank"
|
|
{/if}
|
|
href="{$file_path}/src/{$post.file}.{$post.file_type}">
|
|
<span id="thumb{$post.id}"><img src="{$post.nonstandard_file}" alt="{$post.id}" class="thumb" height="{$post.thumb_h}" width="{$post.thumb_w}" /></span>
|
|
</a>
|
|
{/if}
|
|
{/if}
|
|
|
|
{/if}
|
|
{if $post.file_type eq 'mp3'}
|
|
<!--[if !IE]> -->
|
|
<object type="application/x-shockwave-flash" data="{%KU_WEBPATH}/inc/player/player.swf?playerID={$post.id}&soundFile={$file_path}/src/{$post.file|utf8_encode|urlencode}.mp3{if $post.id3.comments_html.artist.0 neq ''}&artists={$post.id3.comments_html.artist.0}{/if}{if $post.id3.comments_html.title.0 neq ''}&titles={$post.id3.comments_html.title.0|html_entity_decode|utf8_encode|urlencode}{/if}&wmode=transparent" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,22,87" width="290" height="24">
|
|
<param name="wmode" value="transparent" />
|
|
<!-- <![endif]-->
|
|
<!--[if IE]>
|
|
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,22,87" width="290" height="24">
|
|
<param name="movie" value="{%KU_WEBPATH}/inc/player/player.swf?playerID={$post.id}&soundFile={$file_path}/src/{$post.file|utf8_encode|urlencode}.mp3{if $post.id3.comments_html.artist.0 neq ''}&artists={$post.id3.comments_html.artist.0}{/if}{if $post.id3.comments_html.title.0 neq ''}&titles={$post.id3.comments_html.title.0|html_entity_decode|utf8_encode|urlencode}{/if}&wmode=transparent" />
|
|
<param name="wmode" value="transparent" />
|
|
<!-->
|
|
</object>
|
|
<!-- <![endif]-->
|
|
{/if}
|
|
<blockquote>
|
|
{if $post.videobox}
|
|
{$post.videobox}
|
|
{/if}
|
|
{$post.message}
|
|
</blockquote>
|
|
{if not $post.stickied && $post.parentid eq 0 && (($board.maxage > 0 && ($post.timestamp + ($board.maxage * 3600)) < (time() + 7200 ) ) || ($post.deleted_timestamp > 0 && $post.deleted_timestamp <= (time() + 7200)))}
|
|
<span class="oldpost">
|
|
{t}Marked for deletion (old){/t}
|
|
</span>
|
|
<br />
|
|
{/if}
|
|
{if $post.parentid eq 0}
|
|
<div id="replies{$post.id}{$board.name}">
|
|
{if $post.replies}
|
|
<span class="omittedposts">
|
|
{if $post.stickied eq 0}
|
|
{$post.replies}
|
|
{if $post.replies eq 1}
|
|
{t lower="yes"}Post{/t}
|
|
{else}
|
|
{t lower="yes"}Posts{/t}
|
|
{/if}
|
|
{else}
|
|
{$post.replies}
|
|
{if $post.replies eq 1}
|
|
{t lower="yes"}Post{/t}
|
|
{else}
|
|
{t lower="yes"}Posts{/t}
|
|
{/if}
|
|
{/if}
|
|
{if $post.images > 0}
|
|
{t}and{/t} {$post.images}
|
|
{if $post.images eq 1}
|
|
{t lower="yes"}Image{/t}
|
|
{else}
|
|
{t lower="yes"}Images{/t}
|
|
{/if}
|
|
{/if}
|
|
{t}omitted{/t}. {t}Click Reply to view.{/t}
|
|
</span>
|
|
{/if}
|
|
{else}
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
{/if}
|
|
{/foreach}
|
|
</div>
|
|
</div>
|
|
<br clear="left" />
|
|
<hr />
|
|
{/foreach}
|