remove dbbackup on logout from the two bootstrap themes (#116)

This commit is contained in:
FrancescoUK
2016-02-07 19:08:24 +00:00
parent 2ea14273b8
commit 6606535fa9
2 changed files with 3 additions and 29 deletions

View File

@@ -42,22 +42,9 @@
<?php endif; ?>
<script type="text/javascript">
function logout(logout)
{
logout = logout && <?php echo $backup_allowed;?>;
if (logout && confirm("<?php echo $this->lang->line('config_logout'); ?>"))
{
window.location = "<?php echo site_url('config/backup_db'); ?>";
}
else
{
window.location = "<?php echo site_url('home/logout'); ?>";
}
}
// live clock
function clockTick(){
function clockTick() {
setInterval('updateClock();', 1000);
}
@@ -90,7 +77,7 @@
</div>
<div class="navbar-right" style="margin:0">
<?php echo $this->lang->line('common_welcome')." $user_info->first_name $user_info->last_name! | "; ?>
<a href="javascript:logout(true);"><?php echo $this->lang->line("common_logout"); ?></a>
<?php echo anchor("home/logout", $this->lang->line("common_logout")); ?>
</div>
</div>
</div>

View File

@@ -42,19 +42,6 @@
<?php endif; ?>
<script type="text/javascript">
function logout(logout)
{
logout = logout && <?php echo $backup_allowed;?>;
if (logout && confirm("<?php echo $this->lang->line('config_logout'); ?>"))
{
window.location = "<?php echo site_url('config/backup_db'); ?>";
}
else
{
window.location = "<?php echo site_url('home/logout'); ?>";
}
}
// live clock
function clockTick(){
@@ -90,7 +77,7 @@
</div>
<div class="navbar-right" style="margin:0">
<?php echo $this->lang->line('common_welcome')." $user_info->first_name $user_info->last_name! | "; ?>
<a href="javascript:logout(true);"><?php echo $this->lang->line("common_logout"); ?></a>
<?php echo anchor("home/logout", $this->lang->line("common_logout")); ?>
</div>
</div>
</div>