PluginProbe ʕ •ᴥ•ʔ
JetBackup – Backup, Restore & Migrate / 1.6.15
JetBackup – Backup, Restore & Migrate v1.6.15
1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.4.8.1 1.4.9 1.5.0 1.5.1 1.5.1.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.6.0 1.6.10 1.6.11 1.6.12 1.6.13 1.6.15 1.6.5.1 1.6.8.8 1.6.9 1.6.9.1 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7.5 2.0.8.7 2.0.9.11 2.0.9.14 2.0.9.15 2.0.9.6 2.0.9.7 2.0.9.9 3.1.10.7 3.1.11.1 3.1.12.3 3.1.13.4 3.1.14.17 3.1.15.4 3.1.16.1 3.1.17.5 3.1.18.10 3.1.18.8 3.1.18.9 3.1.19.8 3.1.20.3 3.1.21.3 3.1.7.9 3.1.9.2 trunk 1.1.90 1.1.91 1.2.0 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 1.4.2
backup / public / backups.php
backup / public Last commit date
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 3 years ago cloud.php 3 years ago dashboardWidget.php 3 years ago pagesContent.php 3 years ago proFeatures.php 3 years ago restore_wordpress.php 3 years ago schedule.php 3 years ago security.php 3 years ago services.php 3 years ago settings.php 3 years ago support.php 3 years ago systemInfo.php 3 years ago videoTutorials.php 3 years ago
backups.php
185 lines
1 <?php
2
3 $backups = SGBackup::getAllBackups();
4 $downloadUrl = admin_url('admin-post.php?action=backup_guard_downloadBackup&');
5 $contentClassName = getBackupPageContentClassName('backups');
6 ?>
7 <div id="sg-backup-page-content-backups" class="sg-backup-page-content <?php echo $contentClassName; ?>">
8 <?php if (SGConfig::get('SG_REVIEW_POPUP_STATE') == SG_SHOW_REVIEW_POPUP) : ?>
9 <!-- Review Box -->
10 <script type="text/javascript">sgShowReview = 1;</script>
11 <?php endif; ?>
12 <fieldset>
13 <div><h1 class="sg-backup-page-title"><?php _backupGuardT('Backups') ?></h1></div>
14
15 <a href="javascript:void(0)" id="sg-manual-backup" class="pull-left btn btn-success sg-backup-action-buttons"
16 data-toggle="modal" data-modal-name="manual-backup" data-remote="modalManualBackup"
17 sg-data-backup-type="<?php echo SG_BACKUP_METHOD_STANDARD ?>">
18 <span class="sg-backup-start sg-backup-buttons-content"></span>
19 <span class="sg-backup-buttons-content sg-backup-buttons-text"><?php _backupGuardT('Backup') ?></span>
20 </a>
21
22 <a href="javascript:void(0)" id="sg-backup-with-migration"
23 class="pull-left btn btn-primary sg-backup-action-buttons" data-toggle="modal"
24 data-modal-name="manual-backup" data-remote="modalManualBackup"
25 sg-data-backup-type="<?php echo SG_BACKUP_METHOD_MIGRATE ?>"<?php echo SGBoot::isFeatureAvailable('BACKUP_WITH_MIGRATION') ? '' : 'disabled' ?>>
26 <span class="sg-backup-migrate sg-backup-buttons-content"></span>
27 <span class="sg-backup-buttons-text sg-backup-buttons-content"><?php _backupGuardT('Migrate') ?></span>
28 </a>
29 <?php if (!(defined('SG_USER_MODE') && SG_USER_MODE)) : ?>
30 <a href="javascript:void(0)" id="sg-import"
31 class="btn btn-primary sg-margin-left-12 pull-left sg-backup-action-buttons" data-toggle="modal"
32 data-modal-name="import" data-remote="modalImport">
33 <span class="sg-backup-import sg-backup-buttons-content"></span>
34 <span class="sg-backup-buttons-text sg-backup-buttons-content"><?php _backupGuardT('Import') ?><span>
35 </a>
36 <?php endif; ?>
37 <?php if ($pluginCapabilities == BACKUP_GUARD_CAPABILITIES_FREE) : ?>
38 <a href="<?php echo BACKUP_GUARD_WORDPRESS_SUPPORT_URL; ?>" target="_blank">
39 <button type="button" id="sg-report-problem-button"
40 class="btn btn btn-primary sg-margin-left-12 pull-right sg-backup-action-buttons sg-button-red pull-right">
41 <span class="sg-backup-report"></span>
42
43 <span class="sg-backup-buttons-text sg-backup-buttons-content"><?php _backupGuardT('Report issue') ?></span>
44 </button>
45 </a>
46 <?php endif; ?>
47 <a id="sg-delete-multi-backups" class="pull-right btn btn-danger sg-margin-left-12 sg-backup-action-buttons">
48 <span class="sg-backup-delete sg-backup-buttons-content"></span>
49 <span class="sg-backup-buttons-text sg-backup-buttons-content"><?php _backupGuardT('Delete') ?></span>
50 </a>
51 <div class="clearfix"></div>
52 <br/>
53 <table class="table table-striped paginated sg-backup-table sg-backups">
54 <thead>
55 <tr>
56 <th><input type="checkbox" id="sg-checkbox-select-all" autocomplete="off"></th>
57 <th><?php _backupGuardT('Filename') ?></th>
58 <th><?php _backupGuardT('Size') ?></th>
59 <th><?php _backupGuardT('Date') ?></th>
60 <th><?php _backupGuardT('Status') ?></th>
61 <th><?php _backupGuardT('Actions') ?></th>
62 </tr>
63 </thead>
64 <tbody>
65 <?php if (empty($backups)) : ?>
66 <tr>
67 <td colspan="6"><?php _backupGuardT('No backups found.') ?></td>
68 </tr>
69 <?php endif; ?>
70 <?php foreach ($backups as $backup) : ?>
71 <tr>
72 <td><input type="checkbox" autocomplete="off"
73 value="<?php echo esc_attr($backup['name']) ?>" <?php echo $backup['active'] ? 'disabled' : '' ?>>
74 </td>
75 <td><?php echo esc_html($backup['name']) ?></td>
76 <td><?php echo !$backup['active'] ? $backup['size'] : '' ?></td>
77 <td><?php echo backupGuardConvertDateTimezone($backup['date'], true) ?></td>
78 <td id="sg-status-tabe-data-<?php echo $backup['id'] ?>" <?php echo $backup['active'] ? 'data-toggle="tooltip" data-bs-placement="top" data-original-title="" data-bs-container="#sg-wrapper"' : '' ?>>
79 <?php
80 if ($backup['active']) :
81 $filteredStatuses = backupGuardFilterStatusesByActionType($backup, $backup['options']);
82 ?>
83 <input type="hidden" class="sg-active-action-id" value="<?php echo $backup['id']; ?>"/>
84 <?php foreach ($filteredStatuses as $statusCode) : ?>
85 <span class="btn-xs sg-status-icon sg-status-<?php echo $statusCode; ?>">&nbsp;</span>
86 <?php endforeach; ?>
87 <div class="sg-progress progress">
88 <div class="progress-bar"></div>
89 </div>
90 <?php else : ?>
91 <?php
92 if ($backup['status'] == SG_ACTION_STATUS_FINISHED_WARNINGS) : ?>
93 <span class="btn-xs text-warning" data-toggle="tooltip" data-bs-placement="top"
94 title="
95 <?php if ($backup['type'] == SG_ACTION_TYPE_BACKUP) :
96 echo _backupGuardT('Warnings found during backup', true);
97 elseif ($backup['type'] == SG_ACTION_TYPE_RESTORE) :
98 echo _backupGuardT('Warnings found during restore', true);
99 else :
100 echo _backupGuardT('Warnings found during upload', true);
101 endif; ?>
102 " data-bs-container="#sg-wrapper"><?php _backupGuardT('Warning') ?></span>
103 <?php elseif ($backup['status'] == SG_ACTION_STATUS_ERROR) : ?>
104 <span class="btn-xs text-danger" data-toggle="tooltip" data-bs-placement="top"
105 title="
106 <?php if ($backup['type'] == SG_ACTION_TYPE_BACKUP) :
107 echo _backupGuardT('Errors found during backup', true);
108 elseif ($backup['type'] == SG_ACTION_TYPE_RESTORE) :
109 echo _backupGuardT('Errors found during restore', true);
110 else :
111 echo _backupGuardT('Errors found during upload', true);
112 endif; ?>
113 " data-bs-container="#sg-wrapper"><?php _backupGuardT('Failed') ?></span>
114 <?php else : ?>
115 <span class="btn-xs sg-text-success"><?php _backupGuardT('Success') ?></span>
116 <?php endif; ?>
117 <?php endif; ?>
118 </td>
119 <td class="sg-backup-actions-td">
120 <?php if ($backup['active']) : ?>
121 <?php if ($backup['type'] != SG_ACTION_TYPE_RESTORE) : ?>
122 <a class="btn-xs sg-cancel-backup" sg-data-backup-id="<?php echo $backup['id'] ?>"
123 href="javascript:void(0)" title="<?php _backupGuardT('Stop') ?>">&nbsp;&nbsp;</a>
124 <?php endif; ?>
125 <?php else : ?>
126 <a href="javascript:void(0)"
127 data-sgbackup-name="<?php echo htmlspecialchars($backup['name']); ?>"
128 data-remote="deleteBackup" class="sg-remove-backup btn-xs"
129 title="<?php _backupGuardT('Delete') ?>">&nbsp;&nbsp;</a>
130 <div class="btn-group">
131 <a href="javascript:void(0)" class="sg-bg-download-button btn-xs"
132 data-toggle="dropdown1" aria-expanded="false"
133 title="<?php _backupGuardT('Download') ?>">
134
135 </a>
136 <ul class="dropdown-menu">
137 <?php if ($backup['files']) : ?>
138 <li>
139 <a href="<?php echo $downloadUrl . 'backupName=' . htmlspecialchars(@$backup['name']) . '&downloadType=' . SG_BACKUP_DOWNLOAD_TYPE_SGBP ?>">
140 <i class="glyphicon glyphicon-hdd"
141 aria-hidden="true"></i> <?php _backupGuardT('Backup') ?>
142 </a>
143 </li>
144 <?php endif; ?>
145 <?php if ($backup['backup_log']) : ?>
146 <li>
147 <a href="<?php echo $downloadUrl . 'backupName=' . htmlspecialchars(@$backup['name']) . '&downloadType=' . SG_BACKUP_DOWNLOAD_TYPE_BACKUP_LOG ?>">
148 <i class="glyphicon glyphicon-list-alt"
149 aria-hidden="true"></i> <?php _backupGuardT('Backup log') ?>
150 </a>
151 </li>
152 <?php endif; ?>
153 <?php if ($backup['restore_log']) : ?>
154 <li>
155 <a href="<?php echo $downloadUrl . 'backupName=' . @$backup['name'] . '&downloadType=' . SG_BACKUP_DOWNLOAD_TYPE_RESTORE_LOG ?>">
156 <i class="glyphicon glyphicon-th-list"
157 aria-hidden="true"></i> <?php _backupGuardT('Restore log') ?>
158 </a>
159 </li>
160 <?php endif; ?>
161 </ul>
162 </div>
163 <?php
164 $path = SG_BACKUP_DIRECTORY . $backup['name'] . '/' . $backup['name'] . '.sgbp';
165 ?>
166 <?php if (file_exists($path) && ($backup['status'] != SG_ACTION_STATUS_ERROR) && (filesize($path) > SG_BACKUP_VALID_ARCHIVE_SIZE)) : ?>
167 <a href="javascript:void(0)" title="<?php _backupGuardT('Restore') ?>"
168 class="sg-restore-button btn-xs" data-toggle="modal" data-modal-name="manual-restore"
169 data-remote="modalManualRestore"
170 data-sgbp-params="<?php echo htmlspecialchars($backup['name']) ?>">
171 </a>
172 <?php endif; ?>
173 <?php endif; ?>
174 </td>
175 </tr>
176 <?php endforeach; ?>
177 </tbody>
178 </table>
179 <div class="text-right sg-backups">
180 <ul class="pagination"></ul>
181 </div>
182 </fieldset>
183 <div class="clearfix"></div>
184 </div>
185