PageRenderTime 51ms CodeModel.GetById 25ms RepoModel.GetById 0ms app.codeStats 0ms

/dwoo/templates_c/var/www/html/kuzaba/dwoo/templates/img_post_box.tpl.d15.php

https://github.com/stormeus/Kusaba-Z
PHP | 256 lines | 253 code | 3 blank | 0 comment | 13 complexity | dced22ca157444598566abe400f88d73 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1
  1. <?php
  2. if (function_exists('smarty_block_t')===false)
  3. $this->getLoader()->loadPlugin('t');
  4. if (function_exists('Dwoo_Plugin_date_format')===false)
  5. $this->getLoader()->loadPlugin('date_format');
  6. ob_start(); /* template body */ ?><div class="postarea">
  7. <a id="postbox"></a>
  8. <form name="postform" id="postform" action="<?php echo KU_CGIPATH;?>/board.php" method="post" enctype="multipart/form-data"
  9. <?php if ((isset($this->scope["board"]["enablecaptcha"]) ? $this->scope["board"]["enablecaptcha"]:null) == 1) {
  10. ?>
  11. onsubmit="return checkcaptcha('postform');"
  12. <?php
  13. }?>
  14. >
  15. <input type="hidden" name="board" value="<?php echo $this->scope["board"]["name"];?>" />
  16. <input type="hidden" name="replythread" value="<!sm_threadid>" />
  17. <?php if ((isset($this->scope["board"]["maximagesize"]) ? $this->scope["board"]["maximagesize"]:null) > 0) {
  18. ?>
  19. <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $this->scope["board"]["maximagesize"];?>" />
  20. <?php
  21. }?>
  22. <input type="text" name="email" size="28" maxlength="75" value="" style="display: none;" />
  23. <table class="postform">
  24. <tbody>
  25. <?php if ((isset($this->scope["board"]["forcedanon"]) ? $this->scope["board"]["forcedanon"]:null) != 1) {
  26. ?>
  27. <tr>
  28. <td class="postblock">
  29. <?php if (!isset($_tag_stack)){ $_tag_stack = array(); } $_tag_stack[] = array(); $_block_repeat=true; smarty_block_t($_tag_stack[count($_tag_stack)-1], null, $this, $_block_repeat); while ($_block_repeat) { ob_start();?>Name<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_t($_tag_stack[count($_tag_stack)-1], $_block_content, $this, $_block_repeat); } array_pop($_tag_stack);?></td>
  30. <td>
  31. <input type="text" name="name" size="28" maxlength="75" accesskey="n" />
  32. </td>
  33. </tr>
  34. <?php
  35. }?>
  36. <tr>
  37. <td class="postblock">
  38. <?php if (!isset($_tag_stack)){ $_tag_stack = array(); } $_tag_stack[] = array(); $_block_repeat=true; smarty_block_t($_tag_stack[count($_tag_stack)-1], null, $this, $_block_repeat); while ($_block_repeat) { ob_start();?>Email<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_t($_tag_stack[count($_tag_stack)-1], $_block_content, $this, $_block_repeat); } array_pop($_tag_stack);?></td>
  39. <td>
  40. <input type="text" name="em" size="28" maxlength="75" accesskey="e" />
  41. </td>
  42. </tr>
  43. <?php if ((isset($this->scope["board"]["enablecaptcha"]) ? $this->scope["board"]["enablecaptcha"]:null) == 1) {
  44. ?>
  45. <tr>
  46. <td class="postblock'">
  47. <a href="#" onclick="javascript:document.getElementById('captchaimage').src = '<?php echo KU_CGIPATH;?>/captcha.php?' + Math.random();return false;"><img id="captchaimage" src="<?php echo KU_CGIPATH;?>/captcha.php" border="0" width="90" height="25" alt="Captcha image"></a>
  48. </td>
  49. <td>
  50. <input type="text" name="captcha" size="28" maxlength="10" accesskey="c" />
  51. </td>
  52. </tr>
  53. <?php
  54. }?>
  55. <tr>
  56. <td class="postblock">
  57. <?php if (!isset($_tag_stack)){ $_tag_stack = array(); } $_tag_stack[] = array(); $_block_repeat=true; smarty_block_t($_tag_stack[count($_tag_stack)-1], null, $this, $_block_repeat); while ($_block_repeat) { ob_start();?>Subject<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_t($_tag_stack[count($_tag_stack)-1], $_block_content, $this, $_block_repeat); } array_pop($_tag_stack);?></td>
  58. <td>
  59. <input type="text" name="subject" size="35" maxlength="75" accesskey="s" />&nbsp;<input type="submit" value="<?php if ((defined("KU_QUICKREPLY") ? KU_QUICKREPLY : null) && (isset($this->scope["replythread"]) ? $this->scope["replythread"] : null) == 0) {
  60. if (!isset($_tag_stack)){ $_tag_stack = array(); } $_tag_stack[] = array(); $_block_repeat=true; smarty_block_t($_tag_stack[count($_tag_stack)-1], null, $this, $_block_repeat); while ($_block_repeat) { ob_start();?>Submit<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_t($_tag_stack[count($_tag_stack)-1], $_block_content, $this, $_block_repeat); } array_pop($_tag_stack);?>" accesskey="z" />&nbsp;(<span id="posttypeindicator"><?php if (!isset($_tag_stack)){ $_tag_stack = array(); } $_tag_stack[] = array(); $_block_repeat=true; smarty_block_t($_tag_stack[count($_tag_stack)-1], null, $this, $_block_repeat); while ($_block_repeat) { ob_start();?>new thread<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_t($_tag_stack[count($_tag_stack)-1], $_block_content, $this, $_block_repeat); } array_pop($_tag_stack);?></span>)<?php }
  61. elseif ((defined("KU_QUICKREPLY") ? KU_QUICKREPLY : null) && (isset($this->scope["replythread"]) ? $this->scope["replythread"] : null) != 0) {
  62. if (!isset($_tag_stack)){ $_tag_stack = array(); } $_tag_stack[] = array(); $_block_repeat=true; smarty_block_t($_tag_stack[count($_tag_stack)-1], null, $this, $_block_repeat); while ($_block_repeat) { ob_start();?>Reply<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_t($_tag_stack[count($_tag_stack)-1], $_block_content, $this, $_block_repeat); } array_pop($_tag_stack);?>" accesskey="z" />&nbsp;(<span id="posttypeindicator"><?php if (!isset($_tag_stack)){ $_tag_stack = array(); } $_tag_stack[] = array(); $_block_repeat=true; smarty_block_t($_tag_stack[count($_tag_stack)-1], null, $this, $_block_repeat); while ($_block_repeat) { ob_start();?>reply to<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_t($_tag_stack[count($_tag_stack)-1], $_block_content, $this, $_block_repeat); } array_pop($_tag_stack);?> <!sm_threadid></span>)<?php }
  63. else {
  64. if (!isset($_tag_stack)){ $_tag_stack = array(); } $_tag_stack[] = array(); $_block_repeat=true; smarty_block_t($_tag_stack[count($_tag_stack)-1], null, $this, $_block_repeat); while ($_block_repeat) { ob_start();?>Submit<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_t($_tag_stack[count($_tag_stack)-1], $_block_content, $this, $_block_repeat); } array_pop($_tag_stack);?>" accesskey="z" /><?php }?>
  65. </td>
  66. </tr>
  67. <tr>
  68. <td class="postblock">
  69. <?php if (!isset($_tag_stack)){ $_tag_stack = array(); } $_tag_stack[] = array(); $_block_repeat=true; smarty_block_t($_tag_stack[count($_tag_stack)-1], null, $this, $_block_repeat); while ($_block_repeat) { ob_start();?>Message<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_t($_tag_stack[count($_tag_stack)-1], $_block_content, $this, $_block_repeat); } array_pop($_tag_stack);?>
  70. </td>
  71. <td>
  72. <textarea name="message" cols="48" rows="4" accesskey="m"></textarea>
  73. </td>
  74. </tr>
  75. <?php if ((isset($this->scope["board"]["uploadtype"]) ? $this->scope["board"]["uploadtype"]:null) == 0 || (isset($this->scope["board"]["uploadtype"]) ? $this->scope["board"]["uploadtype"]:null) == 1) {
  76. ?>
  77. <tr>
  78. <td class="postblock">
  79. <?php if (!isset($_tag_stack)){ $_tag_stack = array(); } $_tag_stack[] = array(); $_block_repeat=true; smarty_block_t($_tag_stack[count($_tag_stack)-1], null, $this, $_block_repeat); while ($_block_repeat) { ob_start();?>File<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_t($_tag_stack[count($_tag_stack)-1], $_block_content, $this, $_block_repeat); } array_pop($_tag_stack);?>
  80. </td>
  81. <td>
  82. <input type="file" name="imagefile" size="35" accesskey="f" />
  83. <?php if ((isset($this->scope["replythread"]) ? $this->scope["replythread"] : null) == 0 && (isset($this->scope["board"]["enablenofile"]) ? $this->scope["board"]["enablenofile"]:null) == 1) {
  84. ?>
  85. [<input type="checkbox" name="nofile" id="nofile" accesskey="q" /><label for="nofile"> <?php if (!isset($_tag_stack)){ $_tag_stack = array(); } $_tag_stack[] = array(); $_block_repeat=true; smarty_block_t($_tag_stack[count($_tag_stack)-1], null, $this, $_block_repeat); while ($_block_repeat) { ob_start();?>No File<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_t($_tag_stack[count($_tag_stack)-1], $_block_content, $this, $_block_repeat); } array_pop($_tag_stack);?></label>]
  86. <?php
  87. }?>
  88. </td>
  89. </tr>
  90. <?php
  91. }?>
  92. <?php if (( (isset($this->scope["board"]["uploadtype"]) ? $this->scope["board"]["uploadtype"]:null) == 1 || (isset($this->scope["board"]["uploadtype"]) ? $this->scope["board"]["uploadtype"]:null) == 2 ) && (isset($this->scope["board"]["embeds_allowed"]) ? $this->scope["board"]["embeds_allowed"]:null) != '') {
  93. ?>
  94. <tr>
  95. <td class="postblock">
  96. <?php if (!isset($_tag_stack)){ $_tag_stack = array(); } $_tag_stack[] = array(); $_block_repeat=true; smarty_block_t($_tag_stack[count($_tag_stack)-1], null, $this, $_block_repeat); while ($_block_repeat) { ob_start();?>Embed<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_t($_tag_stack[count($_tag_stack)-1], $_block_content, $this, $_block_repeat); } array_pop($_tag_stack);?>
  97. </td>
  98. <td>
  99. <input type="text" name="embed" size="28" maxlength="75" accesskey="e" />&nbsp;<select name="embedtype">
  100. <?php
  101. $_fh2_data = (isset($this->scope["embeds"]) ? $this->scope["embeds"] : null);
  102. if ($this->isArray($_fh2_data) === true)
  103. {
  104. foreach ($_fh2_data as $this->scope['embed'])
  105. {
  106. /* -- foreach start output */
  107. ?>
  108. <?php if (in_array((isset($this->scope["embed"]["filetype"]) ? $this->scope["embed"]["filetype"]:null), explode(',', (isset($this->scope["board"]["embeds_allowed"]) ? $this->scope["board"]["embeds_allowed"]:null)))) {
  109. ?>
  110. <option value="<?php echo mb_strtolower((string) (isset($this->scope["embed"]["name"]) ? $this->scope["embed"]["name"]:null), $this->charset);?>"><?php echo $this->scope["embed"]["name"];?></option>
  111. <?php
  112. }?>
  113. <?php
  114. /* -- foreach end output */
  115. }
  116. }?>
  117. </select>
  118. <a class="rules" href="#postbox" onclick="window.open('<?php echo KU_WEBPATH;?>/embedhelp.php','embedhelp','toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,width=300,height=210');return false;">Help</a>
  119. </td>
  120. </tr>
  121. <?php
  122. }?>
  123. <tr>
  124. <td class="postblock">
  125. <?php if (!isset($_tag_stack)){ $_tag_stack = array(); } $_tag_stack[] = array(); $_block_repeat=true; smarty_block_t($_tag_stack[count($_tag_stack)-1], null, $this, $_block_repeat); while ($_block_repeat) { ob_start();?>Password<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_t($_tag_stack[count($_tag_stack)-1], $_block_content, $this, $_block_repeat); } array_pop($_tag_stack);?>
  126. </td>
  127. <td>
  128. <input type="password" name="postpassword" size="8" accesskey="p" />&nbsp;<?php if (!isset($_tag_stack)){ $_tag_stack = array(); } $_tag_stack[] = array(); $_block_repeat=true; smarty_block_t($_tag_stack[count($_tag_stack)-1], null, $this, $_block_repeat); while ($_block_repeat) { ob_start();?>(for post and file deletion)<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_t($_tag_stack[count($_tag_stack)-1], $_block_content, $this, $_block_repeat); } array_pop($_tag_stack);?>
  129. </td>
  130. </tr>
  131. <tr id="passwordbox"><td></td><td></td></tr>
  132. <tr>
  133. <td colspan="2" class="rules">
  134. <ul style="margin-left: 0; margin-top: 0; margin-bottom: 0; padding-left: 0;">
  135. <li><?php if (!isset($_tag_stack)){ $_tag_stack = array(); } $_tag_stack[] = array(); $_block_repeat=true; smarty_block_t($_tag_stack[count($_tag_stack)-1], null, $this, $_block_repeat); while ($_block_repeat) { ob_start();?>Supported file types are<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_t($_tag_stack[count($_tag_stack)-1], $_block_content, $this, $_block_repeat); } array_pop($_tag_stack);?>:
  136. <?php if ((isset($this->scope["board"]["filetypes_allowed"]) ? $this->scope["board"]["filetypes_allowed"]:null) != '') {
  137. ?>
  138. <?php
  139. $_fh3_data = (isset($this->scope["board"]["filetypes_allowed"]) ? $this->scope["board"]["filetypes_allowed"]:null);
  140. $this->globals["foreach"]['files'] = array
  141. (
  142. "iteration" => 1,
  143. "last" => null,
  144. "total" => $this->isArray($_fh3_data) ? count($_fh3_data) : 0,
  145. );
  146. $_fh3_glob =& $this->globals["foreach"]['files'];
  147. if ($this->isArray($_fh3_data) === true)
  148. {
  149. foreach ($_fh3_data as $this->scope['filetype'])
  150. {
  151. $_fh3_glob["last"] = (string) ($_fh3_glob["iteration"] === $_fh3_glob["total"]);
  152. /* -- foreach start output */
  153. ?>
  154. <?php echo mb_strtoupper((string) (isset($this->scope["filetype"]["0"]) ? $this->scope["filetype"]["0"]:null), $this->charset);
  155. if ((isset($this->globals["foreach"]["files"]["last"]) ? $this->globals["foreach"]["files"]["last"]:null)) {
  156. }
  157. else {
  158. ?>, <?php
  159. }?>
  160. <?php
  161. /* -- foreach end output */
  162. $_fh3_glob["iteration"]+=1;
  163. }
  164. }?>
  165. <?php
  166. }
  167. else {
  168. ?>
  169. <?php if (!isset($_tag_stack)){ $_tag_stack = array(); } $_tag_stack[] = array(); $_block_repeat=true; smarty_block_t($_tag_stack[count($_tag_stack)-1], null, $this, $_block_repeat); while ($_block_repeat) { ob_start();?>None<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_t($_tag_stack[count($_tag_stack)-1], $_block_content, $this, $_block_repeat); } array_pop($_tag_stack);?>
  170. <?php
  171. }?>
  172. </li>
  173. <li><?php if (!isset($_tag_stack)){ $_tag_stack = array(); } $_tag_stack[] = array(); $_block_repeat=true; smarty_block_t($_tag_stack[count($_tag_stack)-1], null, $this, $_block_repeat); while ($_block_repeat) { ob_start();?>Maximum file size allowed is<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_t($_tag_stack[count($_tag_stack)-1], $_block_content, $this, $_block_repeat); } array_pop($_tag_stack);?> <?php echo (round((isset($this->scope["board"]["maximagesize"]) ? $this->scope["board"]["maximagesize"]:null)/1024));?> KB.</li>
  174. <li><?php if (!isset($_tag_stack)){ $_tag_stack = array(); } $_tag_stack[] = array(1 => (defined("KU_THUMBWIDTH") ? KU_THUMBWIDTH : null),2 => (defined("KU_THUMBHEIGHT") ? KU_THUMBHEIGHT : null),); $_block_repeat=true; smarty_block_t($_tag_stack[count($_tag_stack)-1], null, $this, $_block_repeat); while ($_block_repeat) { ob_start();?>Images greater than %1x%2 pixels will be thumbnailed.<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_t($_tag_stack[count($_tag_stack)-1], $_block_content, $this, $_block_repeat); } array_pop($_tag_stack);?></li>
  175. <li><?php if (!isset($_tag_stack)){ $_tag_stack = array(); } $_tag_stack[] = array(1 => (isset($this->scope["board"]["uniqueposts"]) ? $this->scope["board"]["uniqueposts"]:null),); $_block_repeat=true; smarty_block_t($_tag_stack[count($_tag_stack)-1], null, $this, $_block_repeat); while ($_block_repeat) { ob_start();?>Currently %1 unique user posts.<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_t($_tag_stack[count($_tag_stack)-1], $_block_content, $this, $_block_repeat); } array_pop($_tag_stack);?>
  176. <?php if ((isset($this->scope["board"]["enablecatalog"]) ? $this->scope["board"]["enablecatalog"]:null) == 1) {
  177. ?>
  178. <a href="<?php echo KU_BOARDSFOLDER;
  179. echo $this->scope["board"]["name"];?>/catalog.html"><?php if (!isset($_tag_stack)){ $_tag_stack = array(); } $_tag_stack[] = array(); $_block_repeat=true; smarty_block_t($_tag_stack[count($_tag_stack)-1], null, $this, $_block_repeat); while ($_block_repeat) { ob_start();?>View catalog<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_t($_tag_stack[count($_tag_stack)-1], $_block_content, $this, $_block_repeat); } array_pop($_tag_stack);?></a>
  180. <?php
  181. }?>
  182. </li>
  183. </ul>
  184. <?php if ((defined("KU_BLOTTER") ? KU_BLOTTER : null) && (isset($this->scope["blotter"]) ? $this->scope["blotter"] : null)) {
  185. ?>
  186. <br />
  187. <ul style="margin-left: 0; margin-top: 0; margin-bottom: 0; padding-left: 0;">
  188. <li style="position: relative;">
  189. <span style="color: red;">
  190. <?php if (!isset($_tag_stack)){ $_tag_stack = array(); } $_tag_stack[] = array(); $_block_repeat=true; smarty_block_t($_tag_stack[count($_tag_stack)-1], null, $this, $_block_repeat); while ($_block_repeat) { ob_start();?>Blotter updated<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_t($_tag_stack[count($_tag_stack)-1], $_block_content, $this, $_block_repeat); } array_pop($_tag_stack);?>: <?php echo Dwoo_Plugin_date_format($this, (isset($this->scope["blotter_updated"]) ? $this->scope["blotter_updated"] : null), "%Y-%m-%d", null);?>
  191. </span>
  192. <span style="color: red;text-align: right;position: absolute;right: 0px;">
  193. <a href="#" onclick="javascript:toggleblotter(true);return false;"><?php if (!isset($_tag_stack)){ $_tag_stack = array(); } $_tag_stack[] = array(); $_block_repeat=true; smarty_block_t($_tag_stack[count($_tag_stack)-1], null, $this, $_block_repeat); while ($_block_repeat) { ob_start();?>Show/Hide<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_t($_tag_stack[count($_tag_stack)-1], $_block_content, $this, $_block_repeat); } array_pop($_tag_stack);?></a> <a href="<?php echo KU_WEBPATH;?>/blotter.php"><?php if (!isset($_tag_stack)){ $_tag_stack = array(); } $_tag_stack[] = array(); $_block_repeat=true; smarty_block_t($_tag_stack[count($_tag_stack)-1], null, $this, $_block_repeat); while ($_block_repeat) { ob_start();?>Show All<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_t($_tag_stack[count($_tag_stack)-1], $_block_content, $this, $_block_repeat); } array_pop($_tag_stack);?></a>
  194. </span>
  195. </li>
  196. <?php echo $this->scope["blotter"];?>
  197. </ul>
  198. <script type="text/javascript"><!--
  199. if (getCookie('ku_showblotter') == '1') {
  200. toggleblotter(false);
  201. }
  202. --></script>
  203. <?php
  204. }?>
  205. </td>
  206. </tr>
  207. </tbody>
  208. </table>
  209. </form>
  210. <hr />
  211. <?php if ((isset($this->scope["topads"]) ? $this->scope["topads"] : null) != '') {
  212. ?>
  213. <div class="content ads">
  214. <center>
  215. <?php echo $this->scope["topads"];?>
  216. </center>
  217. </div>
  218. <hr />
  219. <?php
  220. }?>
  221. </div>
  222. <script type="text/javascript"><!--
  223. set_inputs("postform");
  224. //--></script>
  225. <?php /* end template body */
  226. return $this->buffer . ob_get_clean();
  227. ?>