File size: 1.99Kb
<?php /* Smarty version Smarty3-RC3, created on 2011-09-19 03:31:34
compiled from "/home/spiderwa/public_html/sys/smarty/templates/upload.tpl" */ ?>
<?php /*%%SmartyHeaderCode:10977127604e76efd6573082-98924686%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'6f341f424c4539451f64735d1d59cb512a09c09b' =>
array (
0 => '/home/spiderwa/public_html/sys/smarty/templates/upload.tpl',
1 => 1316413327,
),
),
'nocache_hash' => '10977127604e76efd6573082-98924686',
'function' =>
array (
),
'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<div class="title">Upload File</div>
<form action="upload.php" method="post" enctype="multipart/form-data">
<div class="main">
File Name:<br/>
<input type="text" name="name" /><br/>
Description:<br/>
<textarea name="opis" cols="13" rows="5"></textarea><br/>
Select the File:<br/>
<input type="file" name="file" /><br/>
Screenshot (optional)<br/>
<input type="file" name="scrin" /><br/>
Password (Lock Your File):<br/>
<input type="password" name="pass" /><br/>
Seelct Category:<br/>
<select name="cat">
<?php $_smarty_tpl->tpl_vars['cats'] = new Smarty_Variable;
$_from = $_smarty_tpl->getVariable('file')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if (count($_from) > 0){
foreach ($_from as $_smarty_tpl->tpl_vars['cats']->key => $_smarty_tpl->tpl_vars['cats']->value){
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['cats']->value['id'];?>
"><?php echo $_smarty_tpl->tpl_vars['cats']->value['name'];?>
</option>
<?php }} ?>
</select><br/>
<?php ob_start();?><?php echo $_smarty_tpl->getVariable('user')->value['id'];?>
<?php $_tmp1=ob_get_clean();?><?php if (empty($_tmp1)){?>
<img src="captcha.php" alt="wait" /><br/>
Code from the image:<br/>
<input type="text" name="kod" /><br/>
<?php }?>
<input type="submit" name="add" value="Upload" />
</div>
</form>