ajax
3 years ago
config
4 years ago
cron
6 years ago
css
3 years ago
fonts
5 years ago
img
3 years ago
include
3 years ago
js
3 years ago
templates
3 years ago
backups.php
3 years ago
boot.php
4 years ago
cloud.php
5 years ago
dashboardWidget.php
5 years ago
pagesContent.php
4 years ago
proFeatures.php
4 years ago
restore_wordpress.php
4 years ago
schedule.php
4 years ago
security.php
4 years ago
services.php
5 years ago
settings.php
3 years ago
support.php
4 years ago
systemInfo.php
4 years ago
videoTutorials.php
4 years ago
systemInfo.php
96 lines
| 1 | <?php |
| 2 | require_once(SG_SCHEDULE_PATH . 'SGSchedule.php'); |
| 3 | $contentClassName = getBackupPageContentClassName('system_info'); |
| 4 | ?> |
| 5 | <div id="sg-backup-page-content-system_info" class="sg-backup-page-content <?php echo $contentClassName; ?>"> |
| 6 | <div class="row"> |
| 7 | <div class="col-md-12"> |
| 8 | <form class="form-horizontal" method="post" data-sgform="ajax" data-type="sgsettings"> |
| 9 | <fieldset> |
| 10 | <div><h1 class="sg-backup-page-title"><?php _backupGuardT('System information') ?></h1></div> |
| 11 | <div class="form-group"> |
| 12 | <label class="col-md-3 sg-control-label sg-user-info"><?php _backupGuardT('Disk free space'); ?></label> |
| 13 | <div class="col-md-3 text-left"> |
| 14 | <label class="sg-control-label"> |
| 15 | <?php echo backupGuardDiskFreeSize(SG_APP_ROOT_DIRECTORY); ?> |
| 16 | </label> |
| 17 | </div> |
| 18 | </div> |
| 19 | <div class="form-group sg-info-wrapper"> |
| 20 | <label class="col-md-3 sg-control-label sg-user-info"><?php _backupGuardT('Memory limit'); ?></label> |
| 21 | <div class="col-md-3 text-left"> |
| 22 | <label class="sg-control-label"><?php echo SGBoot::$memoryLimit; ?></label> |
| 23 | </div> |
| 24 | </div> |
| 25 | <div class="form-group sg-info-wrapper"> |
| 26 | <label class="col-md-3 sg-control-label sg-user-info"> |
| 27 | <?php _backupGuardT('Max execution time'); ?> |
| 28 | </label> |
| 29 | <div class="col-md-3 text-left"> |
| 30 | <label class="sg-control-label"><?php echo SGBoot::$executionTimeLimit; ?></label> |
| 31 | </div> |
| 32 | </div> |
| 33 | <div class="form-group sg-info-wrapper"> |
| 34 | <label class="col-md-3 sg-control-label sg-user-info"> |
| 35 | <?php _backupGuardT('PHP version'); ?> |
| 36 | </label> |
| 37 | <div class="col-md-3 text-left"> |
| 38 | <label class="sg-control-label"><?php echo PHP_VERSION; ?></label> |
| 39 | </div> |
| 40 | </div> |
| 41 | <div class="form-group sg-info-wrapper"> |
| 42 | <label class="col-md-3 sg-control-label sg-user-info"><?php _backupGuardT('MySQL version'); ?></label> |
| 43 | <div class="col-md-3 text-left"> |
| 44 | <label class="sg-control-label"><?php echo SG_MYSQL_VERSION; ?></label> |
| 45 | </div> |
| 46 | </div> |
| 47 | <div class="form-group sg-info-wrapper"> |
| 48 | <label class="col-md-3 sg-control-label sg-user-info"> |
| 49 | <?php _backupGuardT('Int size'); ?> |
| 50 | </label> |
| 51 | <div class="col-md-3 text-left"> |
| 52 | <?php echo '<label class="sg-control-label">' . PHP_INT_SIZE . '</label>'; ?> |
| 53 | <?php |
| 54 | if (PHP_INT_SIZE < 8) { |
| 55 | echo '<label class="sg-control-label backup-guard-label-warning">Notice that archive size cannot be bigger than 2GB. This limitaion is comming from system.</label>'; |
| 56 | } |
| 57 | ?> |
| 58 | </div> |
| 59 | </div> |
| 60 | <div class="form-group sg-info-wrapper"> |
| 61 | <div class="col-md-3 "> |
| 62 | <label class="sg-control-label sg-user-info"><?php _backupGuardT('Curl version'); ?></label> |
| 63 | </div> |
| 64 | <div class="col-md-8 text-left"> |
| 65 | <?php |
| 66 | if (function_exists('curl_version') && function_exists('curl_exec')) { |
| 67 | $cv = curl_version(); |
| 68 | echo '<label class="sg-control-label sg-blue-label">' . $cv['version'] . ' / SSL: ' . $cv['ssl_version'] . ' / libz: ' . $cv['libz_version'] . '</label>'; |
| 69 | } else { |
| 70 | echo '<label class="sg-control-label backup-guard-label-warning">Curl required for BackupGuard for better functioning.</label>'; |
| 71 | } |
| 72 | ?> |
| 73 | </div> |
| 74 | </div> |
| 75 | <div class="form-group sg-info-wrapper"> |
| 76 | <div class="col-md-3 "> |
| 77 | <label class="sg-control-label sg-user-info"><?php _backupGuardT('Is cron available'); ?></label> |
| 78 | </div> |
| 79 | <div class="col-md-3 text-left"> |
| 80 | <?php |
| 81 | $isCronAvailable = SGSchedule::isCronAvailable(true); |
| 82 | if ($isCronAvailable) { |
| 83 | echo '<label class="sg-control-label">Yes</label>'; |
| 84 | } else { |
| 85 | //echo '<label class="sg-control-label backup-guard-label-warning">Please consider enabling WP Cron in order to be able to setup schedules.</label>'; |
| 86 | echo '<label class="sg-control-label backup-guard-label-warning">WP cron is disabled on your end. If you don\'t use a custom cron, please, enable the WP cron or else the scheduled (backup) won\'t be successfully implemented.</label>'; |
| 87 | } |
| 88 | ?> |
| 89 | </div> |
| 90 | </div> |
| 91 | </fieldset> |
| 92 | </form> |
| 93 | </div> |
| 94 | </div> |
| 95 | </div> |
| 96 |