Done !
| Server IP : 54.36.91.62 / Your IP : 216.73.216.38 Web Server : Apache System : Linux webm008.cluster127.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : awaywithxm ( 25098) PHP Version : 7.0.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/awaywithxm/www/wp-content/plugins/secupress/inc/modules/backups/ |
Upload File : |
<?php
defined( 'ABSPATH' ) or die( 'Cheatin’ uh?' );
/** --------------------------------------------------------------------------------------------- */
/** ON MODULE SETTINGS SAVE ===================================================================== */
/** --------------------------------------------------------------------------------------------- */
/**
* Return the values/labels used for the backups storage setting.
*
* @since 1.0
*
* @return (array) An array with back types as keys and labels as values.
*/
function secupress_backups_storage_labels() {
return array(
'local' => __( 'Local', 'secupress' ),
// 'dropbox' => __( 'Dropbox', 'secupress' ), ////
// 'amazons3' => __( 'Amazon S3', 'secupress' ), ////
// 'rackspace' => __( 'Rackspace Cloud', 'secupress' ), ////
);
}
/**
* Get backups parent folder path.
*
* @since 1.0
* @author Grégory Viguier
*
* @param (bool) $relative Set to true to get the path relative to the site's root.
*
* @return (string) The absolute (or relative) path to the backups parent folder. The path has a trailing slash.
*/
function secupress_get_parent_backups_path( $relative = false ) {
static $abs_path;
static $rel_path;
if ( ! isset( $abs_path ) ) {
$abs_path = untrailingslashit( wp_normalize_path( WP_CONTENT_DIR ) ) . '/backups/';
$rel_path = str_replace( rtrim( wp_normalize_path( ABSPATH ), '/' ), '', $abs_path );
}
return $relative ? $rel_path : $abs_path;
}