<?php
if( !defined('ISDVBBS') ){
	header('HTTP/1.0 404 Not Found');
	exit;
}
?><!--<?php print <<<EOT
-->
<!--
EOT;
switch(intval($t)){
case 1:
if ($action == 'setlockip' && $reaction == ''){
print <<<EOT
-->
<table class="mainbox tableborder" cellspacing="0" cellpadding="0" align="center">
<tr align=center>
<th height=21>{$lang['tpl.str1']} {$ip} {$lang['tpl.str2']}</th>
</tr>
<tr><td height=25 class=tablebody5 align=left><blockquote>{$useraddress}</blockquote></td></tr>
<FORM METHOD=POST ACTION="?t=1&action=setlockip&boardid={$boardid}">
<input type=hidden name="reaction" value="yes">
<tr><td height=40 class=tablebody5 align=left>
{$lang['tpl.str3']}</b>
</td></tr>
<tr><td height=40 class=tablebody5>
<B>{$lang['tpl.str4']}</B><button type="text" name="ip1" size="30" value="{$ip}">&nbsp;&nbsp;<button type="submit" name="Submit"  onmousemove="button_move(this)" onmouseout="button_out(this)">{$lang['tpl.str5']}</button>
</td></tr>
</FORM>
</table>
<!--
EOT;
}else{
print <<<EOT
-->
<table class="mainbox tableborder" cellspacing="0" cellpadding="0" align="center">
<tr align=center>
<th height=21>{$lang['tpl.str6']} {$ip} {$lang['tpl.str35']}</th>
</tr>
<tr><td height=25 class=tablebody5 align=left><blockquote>{$useraddress}</blockquote></td></tr>
<!--
EOT;
if($canlookip == true){
print <<<EOT
-->
	<tr><td height=25 class=tablebody5 align=center><B>{$lang['tpl.str7']}</B>
<!--
EOT;
if($igetlockip == true){
print <<<EOT
-->
		<a href="?t=1&action=unlock&boardid={$boardid}&id={$lockid}">{$lang['tpl.str8']}
<!--
EOT;
}else{
print <<<EOT
-->
		<a href="?t=1&action=setlockip&ip={$ip}&boardid={$boardid}">{$lang['tpl.str9']}</a>
<!--
EOT;
}
print <<<EOT
-->
	</td></tr>
<!--
EOT;
}
print <<<EOT
-->
</table>
<!--
EOT;
}
break;
case 5:
print <<<EOT
-->
<table align="center" border="0" class="mainbox tableborder">
    <tr>
      <td vAlign="top" align="left"><b>{$lang['tpl.str10']}</b><br>
        <br>
      -&nbsp;&nbsp;<b>{$fsetting['forumname']}</b>&nbsp;&nbsp;({$ForumUrl})<br>
        --&nbsp;&nbsp;<b>{$boardinfo['boardtype']}</b>&nbsp;&nbsp;({$ForumUrl}{$fsetting['homepage']}?boardid={$boardid})<br>
        ----&nbsp;&nbsp;<b>{$topics['title']}</b>&nbsp;&nbsp;({$ForumUrl}dispbbs.php?boardid={$boardid}&id={$id})<br>
        <hr>
      </td>
    </tr>
<!--
EOT;
while($posts = $db->fetch_array($query)){
$posts['topic'] = iHtmlencode($posts['topic']);
if ($posts['getmoneytype'] == 3 && $posts['parentid'] == 0 && $boardmaster == false){
	$posts['body'] = $lang['tpl.str11'];
}
if ($posts['signflag'] == 2){
	if ($master == true){
		$posts['username'] = $posts['username'].$lang['tpl.str12'];
	}else{
		$posts['username'] = $lang['tpl.str13'];
	}
}
$posts['dateandtime'] = gmdate("Y-m-d H:i:s",$posts['dateandtime']+getUserTimeZoneOffset());
print <<<EOT
-->
    <tr>
      <td vAlign="top" align="left">--&nbsp;&nbsp;{$lang['tpl.str14']}{$posts['username']}<br>
        --&nbsp;&nbsp;{$lang['tpl.str15']}{$posts['dateandtime']}<br>
        <br>
        --&nbsp;&nbsp;{$posts['topic']}<br>
        {$posts['body']}
        <hr>
      </td>
    </tr>
<!--
EOT;
}
print <<<EOT
-->
</table>
<!--
EOT;
break;
case 6:
if ($boardinfo['boardmaster'] == ''){
	$strboardmaster = '<option value="" selected>'.$lang['tpl.str16'].'</option>';
}else{
	$toboardmaster = explode('|',$boardinfo['boardmaster']);
	for ($i=0;$i<count($toboardmaster);$i++){
		$strboardmaster .= "<option value='{$toboardmaster[$i]}'>{$toboardmaster[$i]}</option>";
	}
}
print <<<EOT
-->
<table class="mainbox tableborder" cellSpacing="0" cellPadding="0" align="center">
  <form action="?t=6&action=send&boardid={$boardid}&id={$id}&replyid={$replyid}" method="post">
    <tbody>
      <tr>
        <th vAlign="center" colSpan="2" height="21">{$lang['tpl.str17']}</th>
      </tr>
      <tr align=left>
        <td class="tablebody6"><b>{$lang['tpl.str18']}</b></td>
        <td class="tablebody5"><select size="1" name="sendboardmaster">
            {$strboardmaster}
          </select></td>
      </tr>
      <tr align=left>
        <td class="tablebody6"><b>{$lang['tpl.str19']}</b><br>
          {$lang['tpl.str20']}</td>
        <td class="tablebody5"><textarea name="content" rows="6" cols="55">{$lang['tpl.str21']}</textarea></td>
      </tr>
      <tr>
        <td class="tablebody5" align="middle" colSpan="2"><button type="submit" name="Submit" onmousemove="button_move(this)" onmouseout="button_out(this)">{$lang['tpl.str22']}</button>
      </tr>
    </tbody>
  </FORM>
  </table>
<!--
EOT;
break;
case 7:
$tid=intval($GLOBALS['id']);
print <<<EOT
-->
<table class="mainbox tableborder" cellspacing="0" cellpadding="0" align="center">
  <form action="?t=7&action=sendmail&amp;boardid=1&amp;id={$tid}" method="post">
      <tr>
        <th vAlign="center" colSpan="2">{$lang['tpl.str23']}</th>
      </tr>
      <tr>
        <td class="tablebody5" vAlign="center" colSpan="2" align=left>{$lang['tpl.str24']}</td>
      </tr>
      <tr  align=left>
        <td class="tablebody6"><b>{$lang['tpl.str25']}</b></td>
        <td class="tablebody5"><input size="40" name="postname" value="{$membername}"></td>
      </tr>
      <tr align=left>
        <td class="tablebody6"><b>{$lang['tpl.str26']}</b></td>
        <td class="tablebody5"><input size="40" name="incept"></td>
      </tr>
      <tr align=left>
        <td class="tablebody6"><b>{$lang['tpl.str27']}</b></td>
        <td class="tablebody5"><input size="40" name="mail"></td>
      </tr>
      <tr align=left>
        <td class="tablebody6"><b>{$lang['tpl.str28']}</b></td>
        <td class="tablebody5"><textarea name="content" rows="8" cols="55">{$lang['tpl.str29']} "{$fsetting['forumname']}" {$lang['tpl.str30']}
		
{$lang['tpl.str31']}{$topics['postusername']}
{$lang['tpl.str32']}{$GLOBALS['ForumUrl']}{$fsetting['homepage']}?boardid={$boardid}&id={$announceid}

{$lang['tpl.str33']}
		</textarea></td>
      </tr>
      <tr>
        <td class="tablebody2" align="middle" colSpan="2"><button type="submit" name="Submit" onmousemove="button_move(this)" onmouseout="button_out(this)">{$lang['tpl.str34']}</button></td>
      </tr>
  </FORM>
  </table>
<!--
EOT;
break;
}
print <<<EOT
-->
<!--
EOT;
?>-->