PATH:
home
/
thebhoeo
/
.trash
/
backwpup
/
inc
<?php /** * System tests. * * Class BackWPup_System_Testing. */ class BackWPup_System_Tests { /** * System requirements instance. * * @var BackWPup_System_Requirements */ private $requirements; /** * BackWPup_System_Testing constructor. * * @param BackWPup_System_Requirements $requirements The instance of the class. */ public function __construct( BackWPup_System_Requirements $requirements ) { $this->requirements = $requirements; } /** * Is WordPress compatible. * * @uses version_compare() To compare the versions * * @return bool True if compatible, false otherwise */ public function is_wp_version_compatible() { return version_compare( BackWPup::get_plugin_data( 'wp_version' ), $this->requirements->wp_minimum_version(), '>=' ); } /** * Is PHP Compatible. * * @uses version_compare() To compare the versions * * @return bool True if compatible, false otherwise */ public function is_php_version_compatible() { return version_compare( PHP_VERSION, $this->requirements->php_minimum_version(), '>=' ); } /** * Is MySQL Compatible. * * @uses version_compare() To compare the versions * * @return bool True if compatible, false otherwise */ public function is_database_compatible() { $wpdb = backwpup_wpdb(); $version = $wpdb->db_version(); return $wpdb->check_connection( false ) && version_compare( $version, $this->requirements->mysql_minimum_version(), '>=' ); } /** * Test if CURL is supported. * * @return bool True if supported, false otherwise */ public function test_curl_init() { return function_exists( 'curl_init' ); } /** * Test if ZipArchive is supported. * * @return bool True if supported, false otherwise */ public function test_zip_archive() { return class_exists( \ZipArchive::class ); } /** * Test if GZIP is supported. * * @return bool True if supported, false otherwise */ public function support_gzip() { return function_exists( 'gzopen' ); } /** * Check if save mode is active. * * @return bool Return true if active, false otherwise */ public function is_save_mode_activated() { // @todo `safe_mode` to remove when support for php5.3 will be dropped. For php5.3 the use of `safe_mode` emit a `E_DEPRECATED` but in php5.4 an `E_CORE_ERROR`. // phpcs:ignore return (bool) ini_get('safe_mode'); } /** * Test if FTP is supported. * * @return bool True if supported, false otherwise */ public function is_ftp_supported() { return function_exists( 'ftp_login' ); } /** * Check if Temp dir is writable. * * @return string empty string if everything is ok, a message containing the error otherwise */ public function temp_dir_state() { return BackWPup_File::check_folder( BackWPup::get_plugin_data( 'TEMP' ), true ); } /** * Check if Log folder dir is writable. * * @return string Empty string if it is everything ok, a message containing the error otherwise */ public function log_folder_state() { return BackWPup_File::check_folder( BackWPup_File::get_absolute_path( get_site_option( 'backwpup_cfg_logfolder' ) ) ); } }
[-] class-system-tests-runner.php
[edit]
[-] class-jobtype-dbdump.php
[edit]
[-] class-destination-rsc.php
[edit]
[-] class-encryption.php
[edit]
[-] class-destination-downloader-factory.php
[edit]
[-] class-destination-downloader-interface.php
[edit]
[-] class-destination-ftp-type-ftp.php
[edit]
[-] class-path-fixer.php
[edit]
[-] class-message-box.php
[edit]
[-] class-destination-dropbox-api.php
[edit]
[-] class-option.php
[edit]
[-] class-destination-dropbox-api-request-exception.php
[edit]
[-] class-page-about.php
[edit]
[-] class-migrate.php
[edit]
[-] class-system-requirements.php
[edit]
[-] class-adminbar.php
[edit]
[-] class-msazure-destination-configuration.php
[edit]
[-] class-job.php
[edit]
[-] class-destination-ftp-type-exception.php
[edit]
[-] class-destination-sugarsync-api.php
[edit]
[-] class-download-file-interface.php
[edit]
[-] class-encryption-fallback.php
[edit]
[-] BackWPup.php
[edit]
[-] class-page-backwpup.php
[edit]
[-] class-destination-downloader-data.php
[edit]
[-] class-mysqldump-exception.php
[edit]
[-] class-s3-destination.php
[edit]
[-] class-destination-ftp.php
[edit]
[-] class-cron.php
[edit]
[+]
Notice
[-] class-destination-downloader.php
[edit]
[-] class-destinations.php
[edit]
[-] class-destination-ftp-downloader.php
[edit]
[-] class-destination-dropbox-downloader.php
[edit]
[-] class-download-handler.php
[edit]
[-] class-destination-dropbox.php
[edit]
[-] class-system-tests.php
[edit]
[-] class-destination-folder-downloader.php
[edit]
[-] class-destination-ftp-type.php
[edit]
[-] class-thirdparties.php
[edit]
[-] class-jobtype-wpplugin.php
[edit]
[-] class-directory.php
[edit]
[-] class-recursive-directory.php
[edit]
[-] class-destination-msazure-downloader.php
[edit]
[-] class-destination-connect-interface.php
[edit]
[-] class-install.php
[edit]
[-] class-admin.php
[edit]
[-] class-jobtype-file.php
[edit]
[-] functions.php
[edit]
[+]
Utils
[+]
ThirdParty
[-] class-destination-s3-downloader.php
[edit]
[-] class-destination-rsc-downloader.php
[edit]
[-] class-destination-sugarsync-downloader.php
[edit]
[-] class-destination-email.php
[edit]
[+]
..
[-] class-mysqldump.php
[edit]
[-] class-page-firstbackup.php
[edit]
[-] class-jobtype-wpexp.php
[edit]
[-] class-jobtype-dbcheck.php
[edit]
[-] class-file.php
[edit]
[-] class-sanitize-path.php
[edit]
[+]
Settings
[-] class-destination-s3.php
[edit]
[-] class-page-logs.php
[edit]
[-] class-factory-exception.php
[edit]
[-] class-page-restore.php
[edit]
[+]
dependencies
[-] class-create-archive-exception.php
[edit]
[-] class-page-editjob.php
[edit]
[-] class-page-backups.php
[edit]
[-] class-destination-dropbox-api-exception.php
[edit]
[-] class-create-archive.php
[edit]
[-] class-encryption-openssl.php
[edit]
[-] class-destination-onedrive-config-trait.php
[edit]
[-] class-destination-download-exception.php
[edit]
[-] class-download-file.php
[edit]
[-] class-page-settings.php
[edit]
[-] class-destination-msazure.php
[edit]
[-] class-page-onboarding.php
[edit]
[-] class-destination-folder.php
[edit]
[-] class-jobtypes.php
[edit]
[-] class-destination-connect-exception.php
[edit]
[-] class-destination-sugarsync.php
[edit]
[-] class-page-jobs.php
[edit]
[-] class-destination-sugarsync-api-exception.php
[edit]
[-] class-encryption-mcrypt.php
[edit]