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

Language PHP Lines 256
MD5 Hash dced22ca157444598566abe400f88d73
Repository https://github.com/stormeus/Kusaba-Z.git View Raw File View Project SPDX
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
<?php
if (function_exists('smarty_block_t')===false)
	$this->getLoader()->loadPlugin('t');
if (function_exists('Dwoo_Plugin_date_format')===false)
	$this->getLoader()->loadPlugin('date_format');
ob_start(); /* template body */ ?><div class="postarea">
<a id="postbox"></a>
<form name="postform" id="postform" action="<?php echo KU_CGIPATH;?>/board.php" method="post" enctype="multipart/form-data"
<?php if ((isset($this->scope["board"]["enablecaptcha"]) ? $this->scope["board"]["enablecaptcha"]:null) == 1) {
?>
	onsubmit="return checkcaptcha('postform');"
<?php 
}?>

>
<input type="hidden" name="board" value="<?php echo $this->scope["board"]["name"];?>" />
<input type="hidden" name="replythread" value="<!sm_threadid>" />
<?php if ((isset($this->scope["board"]["maximagesize"]) ? $this->scope["board"]["maximagesize"]:null) > 0) {
?>
	<input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $this->scope["board"]["maximagesize"];?>" />
<?php 
}?>

<input type="text" name="email" size="28" maxlength="75" value="" style="display: none;" />
<table class="postform">
	<tbody>
	<?php if ((isset($this->scope["board"]["forcedanon"]) ? $this->scope["board"]["forcedanon"]:null) != 1) {
?>
		<tr>
			<td class="postblock">
				<?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>
			<td>
				<input type="text" name="name" size="28" maxlength="75" accesskey="n" />
			</td>
		</tr>
	<?php 
}?>

	<tr>
		<td class="postblock">
			<?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>
		<td>
			<input type="text" name="em" size="28" maxlength="75" accesskey="e" />
		</td>
	</tr>
	<?php if ((isset($this->scope["board"]["enablecaptcha"]) ? $this->scope["board"]["enablecaptcha"]:null) == 1) {
?>
		<tr>
			<td class="postblock'">
				<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>
			</td>
			<td>
				<input type="text" name="captcha" size="28" maxlength="10" accesskey="c" />
			</td>
		</tr>
	<?php 
}?>

	<tr>
		<td class="postblock">
			<?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>
		<td>
			<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) {
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 }
elseif ((defined("KU_QUICKREPLY") ? KU_QUICKREPLY : null) && (isset($this->scope["replythread"]) ? $this->scope["replythread"] : null) != 0) {
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 }
else {
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 }?>

		</td>
	</tr>
	<tr>
		<td class="postblock">
			<?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);?>

		</td>
		<td>
			<textarea name="message" cols="48" rows="4" accesskey="m"></textarea>
		</td>
	</tr>
	<?php if ((isset($this->scope["board"]["uploadtype"]) ? $this->scope["board"]["uploadtype"]:null) == 0 || (isset($this->scope["board"]["uploadtype"]) ? $this->scope["board"]["uploadtype"]:null) == 1) {
?>
		<tr>
			<td class="postblock">
				<?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);?>

			</td>
			<td>
			<input type="file" name="imagefile" size="35" accesskey="f" />
			<?php if ((isset($this->scope["replythread"]) ? $this->scope["replythread"] : null) == 0 && (isset($this->scope["board"]["enablenofile"]) ? $this->scope["board"]["enablenofile"]:null) == 1) {
?>
				[<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>]
			<?php 
}?>

			</td>
		</tr>
	<?php 
}?>

	<?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) != '') {
?>
		<tr>
			<td class="postblock">
				<?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);?>

			</td>
			<td>
				<input type="text" name="embed" size="28" maxlength="75" accesskey="e" />&nbsp;<select name="embedtype">
				<?php 
$_fh2_data = (isset($this->scope["embeds"]) ? $this->scope["embeds"] : null);
if ($this->isArray($_fh2_data) === true)
{
	foreach ($_fh2_data as $this->scope['embed'])
	{
/* -- foreach start output */
?>
					<?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)))) {
?>
						<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>
					<?php 
}?>

				<?php 
/* -- foreach end output */
	}
}?>

				</select>
				<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>
			</td>
		</tr>
	<?php 
}?>

		<tr>
			<td class="postblock">
				<?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);?>

			</td>
			<td>
				<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);?>

			</td>
		</tr>
		<tr id="passwordbox"><td></td><td></td></tr>
		<tr>
			<td colspan="2" class="rules">
				<ul style="margin-left: 0; margin-top: 0; margin-bottom: 0; padding-left: 0;">
					<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);?>:
					<?php if ((isset($this->scope["board"]["filetypes_allowed"]) ? $this->scope["board"]["filetypes_allowed"]:null) != '') {
?>
						<?php 
$_fh3_data = (isset($this->scope["board"]["filetypes_allowed"]) ? $this->scope["board"]["filetypes_allowed"]:null);
$this->globals["foreach"]['files'] = array
(
	"iteration"		=> 1,
	"last"		=> null,
	"total"		=> $this->isArray($_fh3_data) ? count($_fh3_data) : 0,
);
$_fh3_glob =& $this->globals["foreach"]['files'];
if ($this->isArray($_fh3_data) === true)
{
	foreach ($_fh3_data as $this->scope['filetype'])
	{
		$_fh3_glob["last"] = (string) ($_fh3_glob["iteration"] === $_fh3_glob["total"]);
/* -- foreach start output */
?>
							<?php echo mb_strtoupper((string) (isset($this->scope["filetype"]["0"]) ? $this->scope["filetype"]["0"]:null), $this->charset);
if ((isset($this->globals["foreach"]["files"]["last"]) ? $this->globals["foreach"]["files"]["last"]:null)) {


}
else {
?>, <?php 
}?>

						<?php 
/* -- foreach end output */
		$_fh3_glob["iteration"]+=1;
	}
}?>

					<?php 
}
else {
?>
						<?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);?>

					<?php 
}?>

					</li>
					<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>
					<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>
					<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);?>

					<?php if ((isset($this->scope["board"]["enablecatalog"]) ? $this->scope["board"]["enablecatalog"]:null) == 1) {
?> 
						<a href="<?php echo KU_BOARDSFOLDER;
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>
					<?php 
}?>

					</li>
				</ul>
			<?php if ((defined("KU_BLOTTER") ? KU_BLOTTER : null) && (isset($this->scope["blotter"]) ? $this->scope["blotter"] : null)) {
?>
				<br />
				<ul style="margin-left: 0; margin-top: 0; margin-bottom: 0; padding-left: 0;">
				<li style="position: relative;">
					<span style="color: red;">
				<?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);?>

				</span>
					<span style="color: red;text-align: right;position: absolute;right: 0px;">
						<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>
					</span>
				</li>
				<?php echo $this->scope["blotter"];?>

				</ul>
				<script type="text/javascript"><!--
				if (getCookie('ku_showblotter') == '1') {
					toggleblotter(false);
				}
				--></script>
			<?php 
}?>

			</td>
		</tr>
	</tbody>

</table>
</form>
<hr />
<?php if ((isset($this->scope["topads"]) ? $this->scope["topads"] : null) != '') {
?>
	<div class="content ads">
		<center> 
			<?php echo $this->scope["topads"];?>

		</center>
	</div>
	<hr />
<?php 
}?>

</div>
<script type="text/javascript"><!--
				set_inputs("postform");
				//--></script>
<?php  /* end template body */
return $this->buffer . ob_get_clean();
?>
Back to Top