File size: 3.04Kb
<?php /* Smarty version Smarty3-RC3, created on 2010-11-14 12:04:29
compiled from "/home/elpik209/public_html/sys/smarty/templates/index.tpl" */ ?>
<?php /*%%SmartyHeaderCode:17407921734cdfa61d68d9a4-15151256%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'ee92cdf9dfeec7c7dd4e05bdc63f0cb4c4d27dc9' =>
array (
0 => '/home/elpik209/public_html/sys/smarty/templates/index.tpl',
1 => 1286791100,
),
),
'nocache_hash' => '17407921734cdfa61d68d9a4-15151256',
'function' =>
array (
),
'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php if (!is_callable('smarty_modifier_escape')) include '/home/elpik209/public_html/sys/smarty/plugins/modifier.escape.php';
if (!is_callable('smarty_modifier_truncate')) include '/home/elpik209/public_html/sys/smarty/plugins/modifier.truncate.php';
if (!is_callable('smarty_modifier_date_format')) include '/home/elpik209/public_html/sys/smarty/plugins/modifier.date_format.php';
?><div class="title"> Бесплатные файлы </div>
<div class="main">
<?php ob_start();?><?php echo $_smarty_tpl->getVariable('user')->value['id'];?>
<?php $_tmp1=ob_get_clean();?><?php if (empty($_tmp1)){?>
<img src="/images/blog.gif" alt="reg" /> <a href="/reg.php">Регистрация</a><br/>
<img src="/images/forum.gif" alt="in" /> <a href="/enter.php">Вход </a><br/>
<?php }else{ ?>
<img src="/images/album.gif" alt="kab" /> <a href="/panel/index.php">Личный кабинет</a><br/>
<img src="/images/chat.gif" alt="exit" /> <a href="/exit.php">Выход</a><br/>
<?php }?>
</div>
<div class="main">
<img src="/images/stata.gif" alt="files" /> <a href="/category.php">Список файлов</a>
<?php ob_start();?><?php echo $_smarty_tpl->getVariable('new')->value;?>
<?php $_tmp2=ob_get_clean();?><?php if (!empty($_tmp2)){?>
(<span style="color:red">+<?php echo $_smarty_tpl->getVariable('new')->value;?>
</span>)
<?php }?>
<br/>
<img src="/images/load.gif" alt="upload" /> <a href="/upload.php">Загрузить файл</a><br/>
<img src="/images/guest.gif" alt="users" /> <a href="/users.php">Список пользователей</a>
</div>
<?php ob_start();?><?php echo $_smarty_tpl->getVariable('last')->value;?>
<?php $_tmp3=ob_get_clean();?><?php if (isset($_tmp3)){?>
<div class="title">Последний файл: <a href="/file-<?php echo $_smarty_tpl->getVariable('last')->value['id'];?>
"><?php echo smarty_modifier_escape($_smarty_tpl->getVariable('last')->value['name'],'html');?>
</a></div>
<div class="main">
<?php ob_start();?><?php echo $_smarty_tpl->getVariable('last')->value['opis'];?>
<?php $_tmp4=ob_get_clean();?><?php if (!empty($_tmp4)){?>
Описание: <?php echo smarty_modifier_truncate(smarty_modifier_escape($_smarty_tpl->getVariable('last')->value['opis'],'html'),'50');?>
<br/>
<?php }?>
Добавлен: <?php echo smarty_modifier_date_format($_smarty_tpl->getVariable('last')->value['time'],'%d.%m.%y %H:%M');?>
</div>
<?php }?>