<?php

$accessControl = array("Admin" => true);
require_once '../../AccessControl.php';

$host = $_SERVER['HTTP_HOST'];
$path = dirname(realpath("../../common.inc.php"));
?>

                    <div class="box box-solid box-primary backup">
                            <div class="box-header">
                                <h3 class="box-title"><?php echo _UPDATE_LOGAHOLIC_VERSION; ?></h3>
                                
                            </div><!-- /.box-header -->

                            <div class="box-body table-responsive">
                                
                                Upgrading via FTP is currently unavailable, but will be back soon. Until then, please upgrade manually.
                                <br>
                                <br>
                                <a target="_blank" href="https://www.logaholic.com/download/" class="btn btn-default">Download</a>
                                <br>
                                
                                

                            </div><!-- /.box-body -->
                        </div><!-- /.box --> 
<?php
exit();
?>

						<div class="response">

							<div class="callout-danger-template callout callout-danger" style="display:none;">								
								<h4></h4>								
							</div>

							<div class="callout-success-template callout callout-success" style="display:none;">								
								<h4></h4>								
							</div>

						</div>

                        <div class="box box-solid box-primary backup">
                            <div class="box-header">
                                <h3 class="box-title"><?php echo _BACKUP_VERSION; ?></h3>
                                
                            </div><!-- /.box-header -->

                            <div class="box-body table-responsive">
                                
                                

                                <button class="btn btn-success backupbutton" data-loading-text="<?php echo _CREATING; ?>..." name="backup" type="submit"><?php echo _CREATE_BACKUP; ?></button>
                                &nbsp;&nbsp;
                                <button class="btn btn-danger removepreviousbackups" name="removepreviousbackups" type="submit"><?php echo _REMOVE_BACKUP; ?></button>

 

                                <div style="clear:both">
                                    &nbsp;<br />&nbsp;
                                </div>

                                <div class="alert alert-info"><i class="fa fa-info"></i><?php echo _BACKUP_VERSION_INFO; ?></div>
                                
                                

                            </div><!-- /.box-body -->
                        </div><!-- /.box --> 

                    	<div class="box box-solid box-primary update">
                            <div class="box-header">
                                <h3 class="box-title"><?php echo _UPDATE_LOGAHOLIC_VERSION; ?></h3>
                                
                            </div><!-- /.box-header -->

                            <div class="box-body table-responsive">

								<iframe frameBorder="0" src="https://updates.logaholic.com/index1.php?host=<?php echo $host; ?>&Product=<?php echo _LOGAHOLIC_PRODUCTNAME; ?>&version=<?php echo LOGAHOLIC_VERSION_NUMBER; ?>&Path=<?php echo $path; ?>" width="100%" height="1600px"></iframe>


 								<div style="clear:both">
                                    &nbsp;<br />&nbsp;
                                </div>

								<!-- <div class="alert alert-info">
                                    <i class="fa fa-info"></i> 
                                    Do you want to enable Email Alerts? When enabled users can confugure Email Alerts in the profile settings. Logaholic will send Email Alerts when update runs for a profile.                           
                                   
                                </div> -->

                            </div><!-- /.box-body -->
                        </div><!-- /.box -->   



                        


