PluginProbe ʕ •ᴥ•ʔ
JetBackup – Backup, Restore & Migrate / 3.1.23.3
JetBackup – Backup, Restore & Migrate v3.1.23.3
3.1.23.3 3.1.22.4 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 / src / JetBackup / functions.php
backup / src / JetBackup Last commit date
3rdparty 5 months ago Ajax 1 month ago Alert 1 year ago Archive 1 month ago Backup 5 months ago BackupJob 3 months ago CLI 1 month ago Cache 1 year ago Config 6 months ago Cron 3 months ago Crontab 7 months ago Data 7 months ago Destination 1 week ago DirIterator 6 months ago Download 11 months ago Downloader 11 months ago Encryption 1 year ago Entities 1 month ago Exception 1 year ago Export 1 year ago Filesystem 7 months ago IO 1 year ago Integrations 1 year ago JetBackupLinux 3 months ago License 1 year ago Log 5 months ago MFA 8 months ago Notification 1 year ago Queue 1 month ago Restore 9 months ago ResumableTask 6 months ago SGB 11 months ago Schedule 4 months ago Settings 1 month ago Showcase 1 year ago Snapshot 5 months ago Upload 4 months ago UserInput 1 year ago Web 1 year ago Wordpress 1 month ago .htaccess 1 year ago Factory.php 1 year ago JetBackup.php 1 week ago autoload.php 1 year ago functions.php 1 year ago index.html 1 year ago web.config 1 year ago
functions.php
50 lines
1 <?php
2
3 if (!defined( '__JETBACKUP__')) die('Direct access is not allowed');
4
5 /**
6 * @param $data
7 * @param $exit
8 *
9 * @return void
10 */
11 function po($data, $exit=0) {
12 echo "<pre>";
13 print_r($data);
14 if($exit) exit;
15 }
16
17 /**
18 * PHP 7.4 Backward compatability
19 * This is taken and provided by WordPress, however during restore procedure we are not inside WordPress ecosystem
20 */
21 if ( ! function_exists( 'str_starts_with' ) ) {
22 /**
23 * @param $haystack
24 * @param $needle
25 *
26 * @return bool
27 */
28 function str_starts_with( $haystack, $needle ): bool {
29 if ( '' === $needle ) return true;
30 return 0 === strpos( $haystack, $needle );
31 }
32 }
33
34 /**
35 * PHP 7.4 Backward compatability
36 * This is taken and provided by WordPress, however during restore procedure we are not inside WordPress ecosystem
37 */
38 if ( ! function_exists( 'str_ends_with' ) ) {
39 /**
40 * @param $haystack
41 * @param $needle
42 *
43 * @return bool
44 */
45 function str_ends_with( $haystack, $needle ): bool {
46 if ( '' === $haystack && '' !== $needle ) return false;
47 $len = strlen( $needle );
48 return 0 === substr_compare( $haystack, $needle, -$len, $len );
49 }
50 }