<?php /* Smarty version Smarty-3.1.15, created on 2015-05-08 14:05:33
         compiled from "/home/hushdogcafe/public_html/cube/admin/skins/default/templates/maintenance.index.php" */ ?>
<?php /*%%SmartyHeaderCode:592645303554c522da6a9f5-46000477%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '2a2d5eb71c1453591bf8f68e7b63c34c58cbc343' => 
    array (
      0 => '/home/hushdogcafe/public_html/cube/admin/skins/default/templates/maintenance.index.php',
      1 => 1429684646,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '592645303554c522da6a9f5-46000477',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'LANG' => 0,
    'VAL_SELF' => 0,
    'SESSION_TOKEN' => 0,
    'CONFIG' => 0,
    'EXISTING_BACKUPS' => 0,
    'backup' => 0,
    'RESTORE_ERROR_LOG' => 0,
    'OUT_OF_DATE' => 0,
    'LATEST_VERSION' => 0,
    'UPGRADE_NOW' => 0,
    'FORCE' => 0,
    'UPGRADE_ERROR_LOG' => 0,
    'TABLES' => 0,
    'table' => 0,
    'SKIN_VARS' => 0,
    'TABLES_AFTER' => 0,
    'v' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.15',
  'unifunc' => 'content_554c522df26620_85851786',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_554c522df26620_85851786')) {function content_554c522df26620_85851786($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_replace')) include '/home/hushdogcafe/public_html/cube/includes/lib/smarty/plugins/modifier.replace.php';
?>
<div id="rebuild" class="tab_content">
  <h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['maintain']['title_rebuild'];?>
</h3>
  <form action="<?php echo $_smarty_tpl->tpl_vars['VAL_SELF']->value;?>
" method="post" enctype="multipart/form-data">
  <fieldset><legend><?php echo $_smarty_tpl->tpl_vars['LANG']->value['maintain']['title_rebuild_catalogue'];?>
</legend>
	<div><label for="prodViews"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['maintain']['reset_views'];?>
</label><span><input type="checkbox" id="prodViews" name="prodViews" value="1"></span></div>
  </fieldset>
  <fieldset><legend><?php echo $_smarty_tpl->tpl_vars['LANG']->value['settings']['title_seo_urls'];?>
</legend>
	<div><label for="truncate_seo_custom"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['maintain']['truncate_seo_custom'];?>
</label><span><input type="checkbox" id="truncate_seo_custom" name="truncate_seo_custom" value="1"></span></div>
	<div><label for="truncate_seo_auto"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['maintain']['truncate_seo_auto'];?>
</label><span><input type="checkbox" id="truncate_seo_auto" name="truncate_seo_auto" value="1"></span></div>
	<div class="clear important"><strong><?php echo $_smarty_tpl->tpl_vars['LANG']->value['maintain']['truncate_seo_warning'];?>
</strong></div>
  </fieldset>
  <fieldset><legend><?php echo $_smarty_tpl->tpl_vars['LANG']->value['maintain']['title_rebuild_cache'];?>
</legend>
	<div><label for="clearCache"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['maintain']['cache_clear'];?>
</label><span><input type="checkbox" id="clearCache" name="clearCache" value="1"></span></div>
	<div><label for="clearSQLCache"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['maintain']['cache_sql'];?>
</label><span><input type="checkbox" id="clearSQLCache" name="clearSQLCache" value="1"></span></div>
	<div><label for="clearLangCache"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['maintain']['cache_language'];?>
</label><span><input type="checkbox" id="clearLangCache" name="clearLangCache" value="1"></span></div>
	<div><label for="clearImageCache"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['maintain']['cache_image'];?>
</label><span><input type="checkbox" id="clearImageCache" name="clearImageCache" value="1"></span></div>
  </fieldset>

  <fieldset><legend><?php echo $_smarty_tpl->tpl_vars['LANG']->value['maintain']['title_rebuild_logs'];?>
</legend>
	<div><label for="clearLogs"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['maintain']['logs_admin'];?>
</label><span><input type="checkbox" id="clearLogs" name="clearLogs" value="1"></span></div>
	<div><label for="emptyErrorLogs"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['maintain']['logs_error'];?>
</label><span><input type="checkbox" id="emptyErrorLogs" name="emptyErrorLogs" value="1"></span></div>
	<div><label for="emptyRequestLogs"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['maintain']['logs_request'];?>
</label><span><input type="checkbox" id="emptyRequestLogs" name="emptyRequestLogs" value="1"></span></div>
	<div><label for="emptyTransLogs"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['maintain']['logs_transaction'];?>
</label><span><input type="checkbox" id="emptyTransLogs" name="emptyTransLogs" value="1"></span></div>
  </fieldset>
  <fieldset><legend><?php echo $_smarty_tpl->tpl_vars['LANG']->value['maintain']['title_rebuild_misc'];?>
</legend>
	<div><label for="sitemap"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['maintain']['sitemap'];?>
</label><span><input type="checkbox" id="sitemap" name="sitemap" value="1"></span></div>
  </fieldset>
	<div>
		<input type="hidden" name="previous-tab" id="previous-tab" value="rebuild">
		<input type="submit" name="rebuild" value="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['submit'];?>
">
	</div>
	<input type="hidden" name="token" value="<?php echo $_smarty_tpl->tpl_vars['SESSION_TOKEN']->value;?>
">
  </form>
</div>
<div id="backup" class="tab_content">
  <h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['maintain']['title_files_backup'];?>
</h3>
  <form action="?_g=maintenance&node=index&files_backup=1#backup" method="post">
	<p><?php echo $_smarty_tpl->tpl_vars['LANG']->value['maintain']['files_backup_desc'];?>
</p>
	<fieldset><legend><?php echo $_smarty_tpl->tpl_vars['LANG']->value['maintain']['backup_options'];?>
</legend>
	  <div>
		<label for="skip_images"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['maintain']['skip_images'];?>
</label>
		<span><input type="hidden" name="skip_images" id="skip_images" class="toggle" value="0"></span>
	  </div>
	  <div>
		<label for="skip_downloads"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['maintain']['skip_downloads'];?>
</label>
		<span><input type="hidden" name="skip_downloads" id="skip_downloads" class="toggle" value="0"></span>
	  </div>
	</fieldset>
	<div>
		<input type="submit" name="backup" class="delete" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['notification']['confirm_continue'];?>
" value="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['maintain']['tab_backup'];?>
">
		<input type="hidden" name="token" value="<?php echo $_smarty_tpl->tpl_vars['SESSION_TOKEN']->value;?>
">
	</div>
  </form>
  <br>
  <h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['maintain']['title_db_backup'];?>
</h3>
  <p><?php echo $_smarty_tpl->tpl_vars['LANG']->value['maintain']['db_backup_desc'];?>
</p> 
  <form action="<?php echo $_smarty_tpl->tpl_vars['VAL_SELF']->value;?>
#backup" method="post" enctype="multipart/form-data">
	<fieldset><legend><?php echo $_smarty_tpl->tpl_vars['LANG']->value['maintain']['backup_options'];?>
</legend>
	  <div>
		<label for="db_drop"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['maintain']['db_drop_table'];?>
</label>
		<span><input type="hidden" name="drop" id="drop" class="toggle" value="1"></span>
	  </div>
	  <div>
		<label for="db_struct"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['maintain']['db_structure'];?>
</label>
		<span><input type="hidden" name="structure" id="structure" class="toggle" value="1"></span>
	  </div>
	  <div>
		<label for="db_data"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['maintain']['db_data'];?>
</label>
		<span><input type="hidden" name="data" id="data" class="toggle" value="1"></span>
	  </div>
	  <div>
		<label for="db_data"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['compress_file'];?>
</label>
		<span><input type="hidden" name="compress" id="compress" class="toggle" value="1"></span>
	  </div>
	  <div>
		<label for="db_data"><?php echo smarty_modifier_replace($_smarty_tpl->tpl_vars['LANG']->value['maintain']['db_3rdparty'],'%s',$_smarty_tpl->tpl_vars['CONFIG']->value['dbprefix']);?>
</label>
		<span><input type="hidden" name="db_3rdparty" id="db_3rdparty" class="toggle" value="0"></span>
	  </div>
	</fieldset>
	<div>
		<input type="hidden" name="previous-tab" id="previous-tab" value="backup">
		<input type="submit" name="backup" value="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['maintain']['tab_backup'];?>
">
	</div>
	<input type="hidden" name="token" value="<?php echo $_smarty_tpl->tpl_vars['SESSION_TOKEN']->value;?>
">
  </form>
  <br>
  <h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['maintain']['title_existing_backups'];?>
</h3>
  <fieldset><legend><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['downloads'];?>
</legend>
	<?php if ($_smarty_tpl->tpl_vars['EXISTING_BACKUPS']->value) {?>
	<?php  $_smarty_tpl->tpl_vars['backup'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['backup']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['EXISTING_BACKUPS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['backup']->key => $_smarty_tpl->tpl_vars['backup']->value) {
$_smarty_tpl->tpl_vars['backup']->_loop = true;
?>
	<div>
	  <label for="<?php echo $_smarty_tpl->tpl_vars['backup']->value['filename'];?>
" class="wide"> <a href="<?php echo $_smarty_tpl->tpl_vars['backup']->value['download_link'];?>
"><?php echo $_smarty_tpl->tpl_vars['backup']->value['filename'];?>
</a> - <?php echo $_smarty_tpl->tpl_vars['backup']->value['size'];?>
</label>
	  <span class="actions">
	    <?php if ($_smarty_tpl->tpl_vars['backup']->value['restore_link']) {?>
	    <a href="<?php echo $_smarty_tpl->tpl_vars['backup']->value['restore_link'];?>
" class="delete" title="<?php echo $_smarty_tpl->tpl_vars['backup']->value['warning'];?>
"><i class="fa fa-refresh" titl="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['restore'];?>
"></i></a>
	    <?php }?>
	    <a href="<?php echo $_smarty_tpl->tpl_vars['backup']->value['download_link'];?>
"><i class="fa fa-download" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['download'];?>
"></i></a>
	    <a href="<?php echo $_smarty_tpl->tpl_vars['backup']->value['delete_link'];?>
" class="delete" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['notification']['confirm_delete'];?>
"><i class="fa fa-trash" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['delete'];?>
"></i></a>
	  </span>
	</div>
	<?php } ?>
	<?php } else { ?>
	<div class="center"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['filemanager']['file_none'];?>
</div>
	<?php }?>
	</fieldset>
	<?php if ($_smarty_tpl->tpl_vars['RESTORE_ERROR_LOG']->value) {?>
	<h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['dashboard']['title_error_log'];?>
</h3>
  	<div><textarea rows="10" cols="70"><?php echo $_smarty_tpl->tpl_vars['RESTORE_ERROR_LOG']->value;?>
</textarea></div>
  	<a href="?_g=maintenance&node=index&delete=restore_error_log#backup" class="delete"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['maintain']['delete_error_log'];?>
</a>
    <?php }?>
</div>

<div id="upgrade" class="tab_content">
  <h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['maintain']['upgrade_to_latest'];?>
</h3>
  <?php if ($_smarty_tpl->tpl_vars['OUT_OF_DATE']->value) {?>
  <p><strong><?php echo $_smarty_tpl->tpl_vars['OUT_OF_DATE']->value;?>
</strong></p>
  <p><?php echo $_smarty_tpl->tpl_vars['LANG']->value['maintain']['upgrade_to_latest_desc'];?>
</p>
  <?php } else { ?>
  <p><?php echo $_smarty_tpl->tpl_vars['LANG']->value['maintain']['latest_installed'];?>
</p>
  <?php }?>
  <form action="?_g=maintenance&upgrade=<?php echo $_smarty_tpl->tpl_vars['LATEST_VERSION']->value;?>
#upgrade" method="post">
    <div>
		<input type="submit" name="backup" class="submit_confirm" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['notification']['confirm_continue'];?>
" value="<?php echo $_smarty_tpl->tpl_vars['UPGRADE_NOW']->value;?>
">
		<input type="hidden" name="token" value="<?php echo $_smarty_tpl->tpl_vars['SESSION_TOKEN']->value;?>
">
		<input type="hidden" name="force" value="<?php echo $_smarty_tpl->tpl_vars['FORCE']->value;?>
">
	</div>
  </form>
  <?php if ($_smarty_tpl->tpl_vars['UPGRADE_ERROR_LOG']->value) {?>
  <h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['dashboard']['title_error_log'];?>
</h3>
  <div><textarea rows="10" cols="70"><?php echo $_smarty_tpl->tpl_vars['UPGRADE_ERROR_LOG']->value;?>
</textarea></div>
  <a href="?_g=maintenance&node=index&delete=upgrade_error_log#upgrade" class="delete"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['maintain']['delete_error_log'];?>
</a>
  <?php }?>
</div>
<div id="database" class="tab_content">
  <h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['maintain']['title_db'];?>
</h3>
  <form action="<?php echo $_smarty_tpl->tpl_vars['VAL_SELF']->value;?>
#database" method="post" enctype="multipart/form-data">
  <fieldset><legend><?php echo $_smarty_tpl->tpl_vars['LANG']->value['maintain']['title_db_tables'];?>
</legend>
	  <?php if ($_smarty_tpl->tpl_vars['TABLES']->value) {?>
	  <table width="650">
	  	<thead>
	  	  <tr>
	  	    <td width="10">&nbsp;</td>
	  	    <td><?php echo $_smarty_tpl->tpl_vars['LANG']->value['maintain']['table_name'];?>
</td>
	  	    <td><?php echo $_smarty_tpl->tpl_vars['LANG']->value['maintain']['table_records'];?>
</td>
	  	    <td><?php echo $_smarty_tpl->tpl_vars['LANG']->value['maintain']['table_engine'];?>
</td>
	  	    <td><?php echo $_smarty_tpl->tpl_vars['LANG']->value['maintain']['table_collation'];?>
</td>
	  	    <td><?php echo $_smarty_tpl->tpl_vars['LANG']->value['maintain']['table_size'];?>
</td>
	  	    <td><?php echo $_smarty_tpl->tpl_vars['LANG']->value['maintain']['table_overhead'];?>
</td>
	  	  </tr>
	  	</thead>
	  	<tbody>
	  	  <?php  $_smarty_tpl->tpl_vars['table'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['table']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['TABLES']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['table']->key => $_smarty_tpl->tpl_vars['table']->value) {
$_smarty_tpl->tpl_vars['table']->_loop = true;
?>
	  	  <tr>
	  		<td><input type="checkbox" id="<?php echo $_smarty_tpl->tpl_vars['table']->value['Name'];?>
" name="tablename[]" value="<?php echo $_smarty_tpl->tpl_vars['table']->value['Name'];?>
" class="table"></td>
	  		<td><label for="<?php echo $_smarty_tpl->tpl_vars['table']->value['Name'];?>
"><?php echo $_smarty_tpl->tpl_vars['table']->value['Name_Display'];?>
</label></td>
	  		<td><?php echo $_smarty_tpl->tpl_vars['table']->value['Rows'];?>
</td>
	  		<td><?php echo $_smarty_tpl->tpl_vars['table']->value['Engine'];?>
</td>
	  		<td><?php echo $_smarty_tpl->tpl_vars['table']->value['Collation'];?>
</td>
	  		<td><?php echo $_smarty_tpl->tpl_vars['table']->value['Data_length'];?>
</td>
	  		<td><?php echo $_smarty_tpl->tpl_vars['table']->value['Data_free'];?>
</td>
	  	  </tr>
	  	  <?php } ?>
	  	</tbody>
	  	<tfoot>
	  	  <tr>
	  		<td><img src="<?php echo $_smarty_tpl->tpl_vars['SKIN_VARS']->value['admin_folder'];?>
/skins/<?php echo $_smarty_tpl->tpl_vars['SKIN_VARS']->value['skin_folder'];?>
/images/select_all.gif" alt=""></td>
	  		<td><a href="#" class="check-all" rel="table"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['form']['check_uncheck'];?>
</a></td>
	  	  </tr>
	  	  <tr>
	  		<td>&nbsp;</td>
	  		<td><strong><?php echo $_smarty_tpl->tpl_vars['LANG']->value['maintain']['db_with_selected'];?>
</strong>
	  		  <select name="action" class="textbox">
	    	    <optgroup label="">
	      	      <option value=""><?php echo $_smarty_tpl->tpl_vars['LANG']->value['form']['please_select'];?>
</option>
		  		  <option value="OPTIMIZE"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['settings']['optimize'];?>
</option>
	      		  <option value="REPAIR"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['settings']['repair'];?>
</option>
	      		  <option value="CHECK"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['settings']['check'];?>
</option>
	      		  <option value="ANALYZE"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['settings']['analyze'];?>
</option>
	    	    </optgroup>
			  </select>
			</td>
	  	  </tr>
	  	</tfoot>
	  </table>
	  <?php } elseif ($_smarty_tpl->tpl_vars['TABLES_AFTER']->value) {?>
	  <table width="650">
  		<thead>
  		  <tr>
  			<td><?php echo $_smarty_tpl->tpl_vars['LANG']->value['maintain']['table_name'];?>
</td>
  			<td><?php echo $_smarty_tpl->tpl_vars['LANG']->value['maintain']['table_operation'];?>
</td>
  			<td><?php echo $_smarty_tpl->tpl_vars['LANG']->value['maintain']['table_message_type'];?>
</td>
  			<td><?php echo $_smarty_tpl->tpl_vars['LANG']->value['maintain']['table_message_text'];?>
</td>
  		  </tr>
  		</thead>
  		<tbody>
	  	<?php  $_smarty_tpl->tpl_vars['table'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['table']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['TABLES_AFTER']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['table']->key => $_smarty_tpl->tpl_vars['table']->value) {
$_smarty_tpl->tpl_vars['table']->_loop = true;
?>
	  		<tr>
	  		<?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['table']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) {
$_smarty_tpl->tpl_vars['v']->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['v']->key;
?>
	  		  <td><?php echo $_smarty_tpl->tpl_vars['v']->value;?>
</td>
	  		<?php } ?>
	  		</tr>
	  	<?php } ?>
	  	</tbody>
	  </table>
	  <?php }?>
  </fieldset>
  <div>
  	<input type="hidden" name="previous-tab" id="previous-tab" value="database">
  	<input type="submit" name="database" value="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['submit'];?>
">
  </div>
  <input type="hidden" name="token" value="<?php echo $_smarty_tpl->tpl_vars['SESSION_TOKEN']->value;?>
">
  </form>
</div><?php }} ?>
