<?php /* Smarty version 3.1.27, created on 2018-08-14 04:04:47
         compiled from "/home/hyipsou1/public_html/tmpl/directory_add.tpl" */ ?>
<?php
/*%%SmartyHeaderCode:2238807395b7254df018f22_27597508%%*/
if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '678124fd55c1afb2d1a6d5b54017d483413d4328' => 
    array (
      0 => '/home/hyipsou1/public_html/tmpl/directory_add.tpl',
      1 => 1519502058,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '2238807395b7254df018f22_27597508',
  'variables' => 
  array (
    'path' => 0,
    'p' => 0,
    'errors' => 0,
    'cat' => 0,
    'frm' => 0,
    'settings' => 0,
    'sesname' => 0,
    'sesid' => 0,
    'rand' => 0,
  ),
  'has_nocache_code' => false,
  'version' => '3.1.27',
  'unifunc' => 'content_5b7254df102aa5_93207334',
),false);
/*/%%SmartyHeaderCode%%*/
if ($_valid && !is_callable('content_5b7254df102aa5_93207334')) {
function content_5b7254df102aa5_93207334 ($_smarty_tpl) {
if (!is_callable('smarty_block_t')) require_once '/home/hyipsou1/public_html/inc/libs/smarty3/plugins/block.t.php';
if (!is_callable('smarty_modifier_encurl')) require_once '/home/hyipsou1/public_html/inc/libs/smarty3/plugins/modifier.encurl.php';

$_smarty_tpl->properties['nocache_hash'] = '2238807395b7254df018f22_27597508';
echo $_smarty_tpl->getSubTemplate ("header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0);
?>

<h3><?php $_smarty_tpl->smarty->_tag_stack[] = array('t', array()); $_block_repeat=true; echo smarty_block_t(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
Add Directory Link<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_t(array(), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>
</h3>

<div class="directory">
<div class="list">
 <div class="header clearfix">
 <h1><a href="<?php echo smarty_modifier_encurl("?a=directory");?>
"><?php $_smarty_tpl->smarty->_tag_stack[] = array('t', array()); $_block_repeat=true; echo smarty_block_t(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
Main<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_t(array(), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>
</a> <?php
$_from = $_smarty_tpl->tpl_vars['path']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$_smarty_tpl->tpl_vars['p'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['p']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['p']->value) {
$_smarty_tpl->tpl_vars['p']->_loop = true;
$foreach_p_Sav = $_smarty_tpl->tpl_vars['p'];
?> :: <a href="<?php echo smarty_modifier_encurl("?a=directory&cat=".((string)$_smarty_tpl->tpl_vars['p']->value['id']));?>
"><?php echo $_smarty_tpl->tpl_vars['p']->value['name'];?>
</a><?php
$_smarty_tpl->tpl_vars['p'] = $foreach_p_Sav;
}
?></h1>
 </div>
</div>
<div class="message">
<?php $_smarty_tpl->smarty->_tag_stack[] = array('t', array('link'=>smarty_modifier_encurl("?a=codes"))); $_block_repeat=true; echo smarty_block_t(array('link'=>smarty_modifier_encurl("?a=codes")), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
To add link into our directory you should place our <a href="%link">link code</a> on your site.<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_t(array('link'=>smarty_modifier_encurl("?a=codes")), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>

</div>
<br>
<?php if ($_smarty_tpl->tpl_vars['errors']->value) {?>
<ul class="error">
<?php if ($_smarty_tpl->tpl_vars['errors']->value['turing']) {?><li> <?php $_smarty_tpl->smarty->_tag_stack[] = array('t', array()); $_block_repeat=true; echo smarty_block_t(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
Invalid turing image provided<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_t(array(), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>
</li><?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['category']) {?><li> <?php $_smarty_tpl->smarty->_tag_stack[] = array('t', array()); $_block_repeat=true; echo smarty_block_t(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
Please, select links category<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_t(array(), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>
</li><?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['title']) {?><li> <?php $_smarty_tpl->smarty->_tag_stack[] = array('t', array()); $_block_repeat=true; echo smarty_block_t(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
Please, enter your site title<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_t(array(), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>
</li><?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['url']) {?><li> <?php $_smarty_tpl->smarty->_tag_stack[] = array('t', array()); $_block_repeat=true; echo smarty_block_t(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
Please, enter your site URL, it should starts from http:// or https://<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_t(array(), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>
</li><?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['back_link']) {?><li> <?php $_smarty_tpl->smarty->_tag_stack[] = array('t', array()); $_block_repeat=true; echo smarty_block_t(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
Please, enter your Back Link, it should starts from http:// or https://<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_t(array(), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>
</li><?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['email']) {?><li> <?php $_smarty_tpl->smarty->_tag_stack[] = array('t', array()); $_block_repeat=true; echo smarty_block_t(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
Please, enter a valid E-mail address<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_t(array(), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>
</li><?php }?>
</ul>
<?php }?>

<form method="post" action="">
<input type=hidden name=a value=directory>
<input type=hidden name=action value=add>
<input type=hidden name=cat value="<?php echo $_smarty_tpl->tpl_vars['cat']->value['id'];?>
">
<table class="form">
<tr>
  <th><?php $_smarty_tpl->smarty->_tag_stack[] = array('t', array()); $_block_repeat=true; echo smarty_block_t(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
Category<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_t(array(), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>
</th>
  <td><b><?php echo (($tmp = @htmlspecialchars($_smarty_tpl->tpl_vars['cat']->value['name'], ENT_QUOTES, 'UTF-8', true))===null||$tmp==='' ? "Main" : $tmp);?>
</b></td>
</tr>
<tr>
  <th><?php $_smarty_tpl->smarty->_tag_stack[] = array('t', array()); $_block_repeat=true; echo smarty_block_t(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
Site Title<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_t(array(), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>
</th>
  <td><input type=text name="title" maxlength=255 value="<?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['frm']->value['title'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
"></td>
</tr>
<tr>
  <th><?php $_smarty_tpl->smarty->_tag_stack[] = array('t', array()); $_block_repeat=true; echo smarty_block_t(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
Site Description<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_t(array(), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>
</th>
  <td><input type=text name="description" maxlength=1024 value="<?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['frm']->value['description'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
"></td>
</tr>
<tr>
  <th><?php $_smarty_tpl->smarty->_tag_stack[] = array('t', array()); $_block_repeat=true; echo smarty_block_t(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
Site URL<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_t(array(), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>
</th>
  <td><input type=text name="url" maxlength=255 value="<?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['frm']->value['url'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
"></td>
</tr>
<tr>
  <th><?php $_smarty_tpl->smarty->_tag_stack[] = array('t', array()); $_block_repeat=true; echo smarty_block_t(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
Button URL<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_t(array(), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>
</th>
  <td><input type=text name="button_url" maxlength=255 value="<?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['frm']->value['button_url'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
"></td>
</tr>
<tr>
  <th><?php $_smarty_tpl->smarty->_tag_stack[] = array('t', array()); $_block_repeat=true; echo smarty_block_t(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
Back Link<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_t(array(), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>
</th>
  <td><input type=text name="back_link" maxlength=255 value="<?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['frm']->value['back_link'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
"></td>
</tr>
<tr>
  <th><?php $_smarty_tpl->smarty->_tag_stack[] = array('t', array()); $_block_repeat=true; echo smarty_block_t(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
E-mail<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_t(array(), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>
</th>
  <td><input type=text name="email" maxlength=255 value="<?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['frm']->value['email'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
"></td>
</tr>
<?php if ($_smarty_tpl->tpl_vars['settings']->value['use_turing']) {?>
<tr>
  <th><img src="<?php echo smarty_modifier_encurl("?a=turing&".((string)$_smarty_tpl->tpl_vars['sesname']->value)."=".((string)$_smarty_tpl->tpl_vars['sesid']->value)."&r=".((string)$_smarty_tpl->tpl_vars['rand']->value));?>
" alt="turing code"></th>
  <td><input type=text name="turing" maxlength=6 size=6></td>
</tr>
<?php }?>
<tr>
  <th></th>
  <td><input type=submit value="<?php $_smarty_tpl->smarty->_tag_stack[] = array('t', array()); $_block_repeat=true; echo smarty_block_t(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
Add Link<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_t(array(), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>
"></td>
</tr>
</table>
</form>
</div>
<?php echo $_smarty_tpl->getSubTemplate ("footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0);

}
}
?>