mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-04-28 19:10:11 -04:00
remove dbbackup on logout from the two bootstrap themes (#116)
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user