PluginProbe ʕ •ᴥ•ʔ
JetBackup – Backup, Restore & Migrate / 2.0.3
JetBackup – Backup, Restore & Migrate v2.0.3
3.1.22.3 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 3 years ago cron 3 years ago css 3 years ago fonts 3 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 settings.php 3 years ago support.php 3 years ago systemInfo.php 3 years ago videoTutorials.php 3 years ago
backups.php
186 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
13 <fieldset>
14 <div><h1 class="sg-backup-page-title"><?php _backupGuardT('Backups') ?></h1></div>
15
16 <a href="javascript:void(0)" id="sg-manual-backup" class="pull-left btn btn-success sg-backup-action-buttons"
17 data-toggle="modal" data-modal-name="manual-backup" data-remote="modalManualBackup"
18 sg-data-backup-type="<?php echo SG_BACKUP_METHOD_STANDARD ?>">
19 <span class="sg-backup-start sg-backup-buttons-content"></span>
20 <span class="sg-backup-buttons-content sg-backup-buttons-text"><?php _backupGuardT('Backup') ?></span>
21 </a>
22
23 <a href="javascript:void(0)" id="sg-backup-with-migration"
24 class="pull-left btn btn-primary sg-backup-action-buttons" data-toggle="modal"
25 data-modal-name="manual-backup" data-remote="modalManualBackup"
26 sg-data-backup-type="<?php echo SG_BACKUP_METHOD_MIGRATE ?>"<?php echo SGBoot::isFeatureAvailable('BACKUP_WITH_MIGRATION') ? '' : 'disabled' ?>>
27 <span class="sg-backup-migrate sg-backup-buttons-content"></span>
28 <span class="sg-backup-buttons-text sg-backup-buttons-content"><?php _backupGuardT('Migrate') ?></span>
29 </a>
30 <?php if (!(defined('SG_USER_MODE') && SG_USER_MODE)) : ?>
31 <a href="javascript:void(0)" id="sg-import"
32 class="btn btn-primary sg-margin-left-12 pull-left sg-backup-action-buttons" data-toggle="modal"
33 data-modal-name="import" data-remote="modalImport">
34 <span class="sg-backup-import sg-backup-buttons-content"></span>
35 <span class="sg-backup-buttons-text sg-backup-buttons-content"><?php _backupGuardT('Import') ?><span>
36 </a>
37 <?php endif; ?>
38 <?php if ($pluginCapabilities == BACKUP_GUARD_CAPABILITIES_FREE) : ?>
39 <a href="<?php echo BACKUP_GUARD_WORDPRESS_SUPPORT_URL; ?>" target="_blank">
40 <button type="button" id="sg-report-problem-button"
41 class="btn btn btn-primary sg-margin-left-12 pull-right sg-backup-action-buttons sg-button-red pull-right">
42 <span class="sg-backup-report"></span>
43
44 <span class="sg-backup-buttons-text sg-backup-buttons-content"><?php _backupGuardT('Report issue') ?></span>
45 </button>
46 </a>
47 <?php endif; ?>
48 <a id="sg-delete-multi-backups" class="pull-right btn btn-danger sg-margin-left-12 sg-backup-action-buttons">
49 <span class="sg-backup-delete sg-backup-buttons-content"></span>
50 <span class="sg-backup-buttons-text sg-backup-buttons-content"><?php _backupGuardT('Delete') ?></span>
51 </a>
52 <div class="clearfix"></div>
53 <br/>
54 <table class="table table-striped paginated sg-backup-table sg-backups">
55 <thead>
56 <tr>
57 <th><input type="checkbox" id="sg-checkbox-select-all" autocomplete="off"></th>
58 <th><?php _backupGuardT('Filename') ?></th>
59 <th><?php _backupGuardT('Size') ?></th>
60 <th><?php _backupGuardT('Date') ?></th>
61 <th><?php _backupGuardT('Status') ?></th>
62 <th><?php _backupGuardT('Actions') ?></th>
63 </tr>
64 </thead>
65 <tbody>
66 <?php if (empty($backups)) : ?>
67 <tr>
68 <td colspan="6"><?php _backupGuardT('No backups found.') ?></td>
69 </tr>
70 <?php endif; ?>
71 <?php foreach ($backups as $backup) : ?>
72 <tr>
73 <td><input type="checkbox" autocomplete="off"
74 value="<?php echo esc_attr($backup['name']) ?>" <?php echo $backup['active'] ? 'disabled' : '' ?>>
75 </td>
76 <td><?php echo esc_html($backup['name']) ?></td>
77 <td><?php echo !$backup['active'] ? esc_html($backup['size']) : '' ?></td>
78 <td><?php echo backupGuardConvertDateTimezone($backup['date'], true) ?></td>
79 <td id="sg-status-tabe-data-<?php echo esc_attr($backup['id']) ?>" <?php echo $backup['active'] ? 'data-toggle="tooltip" data-bs-placement="top" data-original-title="" data-bs-container="#sg-wrapper"' : '' ?>>
80 <?php
81 if ($backup['active']) :
82 $filteredStatuses = backupGuardFilterStatusesByActionType($backup, $backup['options']);
83 ?>
84 <input type="hidden" class="sg-active-action-id" value="<?php echo esc_attr($backup['id']); ?>"/>
85 <?php foreach ($filteredStatuses as $statusCode) : ?>
86 <span class="btn-xs sg-status-icon sg-status-<?php echo esc_attr($statusCode); ?>">&nbsp;</span>
87 <?php endforeach; ?>
88 <div class="sg-progress progress">
89 <div class="progress-bar"></div>
90 </div>
91 <?php else : ?>
92 <?php
93 if ($backup['status'] == SG_ACTION_STATUS_FINISHED_WARNINGS) : ?>
94 <span class="btn-xs text-warning" data-toggle="tooltip" data-bs-placement="top"
95 title="
96 <?php if ($backup['type'] == SG_ACTION_TYPE_BACKUP) :
97 echo _backupGuardT('Warnings found during backup', true);
98 elseif ($backup['type'] == SG_ACTION_TYPE_RESTORE) :
99 echo _backupGuardT('Warnings found during restore', true);
100 else :
101 echo _backupGuardT('Warnings found during upload', true);
102 endif; ?>
103 " data-bs-container="#sg-wrapper"><?php _backupGuardT('Warning') ?></span>
104 <?php elseif ($backup['status'] == SG_ACTION_STATUS_ERROR) : ?>
105 <span class="btn-xs text-danger" data-toggle="tooltip" data-bs-placement="top"
106 title="
107 <?php if ($backup['type'] == SG_ACTION_TYPE_BACKUP) :
108 echo _backupGuardT('Errors found during backup', true);
109 elseif ($backup['type'] == SG_ACTION_TYPE_RESTORE) :
110 echo _backupGuardT('Errors found during restore', true);
111 else :
112 echo _backupGuardT('Errors found during upload', true);
113 endif; ?>
114 " data-bs-container="#sg-wrapper"><?php _backupGuardT('Failed') ?></span>
115 <?php else : ?>
116 <span class="btn-xs sg-text-success"><?php _backupGuardT('Success') ?></span>
117 <?php endif; ?>
118 <?php endif; ?>
119 </td>
120 <td class="sg-backup-actions-td">
121 <?php if ($backup['active']) : ?>
122 <?php if ($backup['type'] != SG_ACTION_TYPE_RESTORE) : ?>
123 <a class="btn-xs sg-cancel-backup" sg-data-backup-id="<?php echo esc_attr($backup['id']) ?>"
124 href="javascript:void(0)" title="<?php _backupGuardT('Stop') ?>">&nbsp;&nbsp;</a>
125 <?php endif; ?>
126 <?php else : ?>
127 <a href="javascript:void(0)"
128 data-sgbackup-name="<?php echo htmlspecialchars($backup['name']); ?>"
129 data-remote="deleteBackup" class="sg-remove-backup btn-xs"
130 title="<?php _backupGuardT('Delete') ?>">&nbsp;&nbsp;</a>
131 <div class="btn-group">
132 <a href="javascript:void(0)" class="sg-bg-download-button btn-xs"
133 data-toggle="dropdown1" aria-expanded="false"
134 title="<?php _backupGuardT('Download') ?>">
135
136 </a>
137 <ul class="dropdown-menu">
138 <?php if ($backup['files']) : ?>
139 <li>
140 <a href="<?php echo $downloadUrl . 'backupName=' . htmlspecialchars(@$backup['name']) . '&downloadType=' . SG_BACKUP_DOWNLOAD_TYPE_SGBP ?>">
141 <i class="glyphicon glyphicon-hdd"
142 aria-hidden="true"></i> <?php _backupGuardT('Backup') ?>
143 </a>
144 </li>
145 <?php endif; ?>
146 <?php if ($backup['backup_log']) : ?>
147 <li>
148 <a href="<?php echo $downloadUrl . 'backupName=' . htmlspecialchars(@$backup['name']) . '&downloadType=' . SG_BACKUP_DOWNLOAD_TYPE_BACKUP_LOG ?>">
149 <i class="glyphicon glyphicon-list-alt"
150 aria-hidden="true"></i> <?php _backupGuardT('Backup log') ?>
151 </a>
152 </li>
153 <?php endif; ?>
154 <?php if ($backup['restore_log']) : ?>
155 <li>
156 <a href="<?php echo $downloadUrl . 'backupName=' . @$backup['name'] . '&downloadType=' . SG_BACKUP_DOWNLOAD_TYPE_RESTORE_LOG ?>">
157 <i class="glyphicon glyphicon-th-list"
158 aria-hidden="true"></i> <?php _backupGuardT('Restore log') ?>
159 </a>
160 </li>
161 <?php endif; ?>
162 </ul>
163 </div>
164 <?php
165 $path = SG_BACKUP_DIRECTORY . $backup['name'] . '/' . $backup['name'] . '.sgbp';
166 ?>
167 <?php if (file_exists($path) && ($backup['status'] != SG_ACTION_STATUS_ERROR) && (filesize($path) > SG_BACKUP_VALID_ARCHIVE_SIZE)) : ?>
168 <a href="javascript:void(0)" title="<?php _backupGuardT('Restore') ?>"
169 class="sg-restore-button btn-xs" data-toggle="modal" data-modal-name="manual-restore"
170 data-remote="modalManualRestore"
171 data-sgbp-params="<?php echo htmlspecialchars($backup['name']) ?>">
172 </a>
173 <?php endif; ?>
174 <?php endif; ?>
175 </td>
176 </tr>
177 <?php endforeach; ?>
178 </tbody>
179 </table>
180 <div class="text-right sg-backups">
181 <ul class="pagination"></ul>
182 </div>
183 </fieldset>
184 <div class="clearfix"></div>
185 </div>
186