GRAYBYTE WORDPRESS FILE MANAGER8410

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/giriqfky/trustyourlawyer.com/wp-content/plugins/backwpup/inc/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/giriqfky/trustyourlawyer.com/wp-content/plugins/backwpup/inc//functions.php
<?php
/**
 * Template Function.
 *
 * @since 3.5.0
 *
 * @param object $bind      the object to use within the view
 * @param string $file_path the path of the file to include
 */
function backwpup_template($bind, $file_path)
{
    $file_path = \BackWPup_Sanitize_Path::sanitize_path_regexp($file_path);

    if (!$file_path) {
        throw new \InvalidArgumentException(
            sprintf(
                'Invalid or malformed file path %s: for template function.',
                $file_path
            )
        );
    }

    // Build the path.
    $path = untrailingslashit(BackWPup::get_plugin_data('plugindir')) . '/views/' . ltrim($file_path, '\\/');

    if (!file_exists($path)) {
        throw new \InvalidArgumentException(
            sprintf(
                'Cannot locate the template %s in template function.',
                $path
            )
        );
    }

    include $path;
}

/**
 * Convert String To Boolean.
 *
 * @since 3.5.0
 *
 * @param string|int $value The string to convert to boolean. 'yes', 1, 'true', '1' are converted to true.
 *
 * @return bool true or false depending on the passed value
 */
function backwpup_string_to_bool($value)
{
    return is_bool($value)
        ? $value
        : ('yes' === $value || 1 === $value || 'true' === $value || '1' === $value || 'on' === $value);
}

/**
 * Convert Boolean to String.
 *
 * @since 3.5.0
 *
 * @param bool $bool the bool value to convert
 *
 * @return string The converted value. 'yes' or 'no'.
 */
function backwpup_bool_to_string($bool)
{
    if (!is_bool($bool)) {
        $bool = backwpup_string_to_bool($bool);
    }

    return true === $bool ? 'yes' : 'no';
}

/**
 * Is JSON.
 *
 * Check if a string is a valid json or not.
 *
 * @see  https://codepad.co/snippet/jHa0m4DB
 * @since 3.5.0
 *
 * @param string $data the json string
 *
 * @return bool True if the string is a json, false otherwise
 */
function backwpup_is_json($data)
{
    if (!is_string($data) || !trim($data)) {
        return false;
    }

    return (
            // Maybe an empty string, array or object.
            $data === '""'
            || $data === '[]'
            || $data === '{}'
            || $data[0] === '"' // Maybe an encoded JSON string.
            || $data[0] === '[' // Maybe a flat array.
            || $data[0] === '{' // Maybe an associative array.
        )
        && json_decode($data) !== null;
}

/**
 * Clean JSON from request.
 *
 * @since 3.5.0
 *
 * @param string $json the json
 *
 * @return string The cleaned json string
 */
function backwpup_clean_json_from_request($json)
{
    // Remove slashes added by WordPress.
    $slashed_json = wp_unslash($json);

    if (backwpup_is_json($slashed_json)) {
        // phpcs:ignore
        $json = filter_var($slashed_json);
        $json = html_entity_decode($json);
    }

    return $json;
}

/**
 * Retrieve the instance of the Filesystem used by WordPress.
 *
 * @since 3.5.0
 *
 * @return WP_Filesystem_Base an instance of WP_Filesystem_* depending on the method set
 */
function backwpup_wpfilesystem()
{
    global $wp_filesystem;

    if (!$wp_filesystem) {
        // Make sure the WP_Filesystem function exists.
        if (!function_exists('WP_Filesystem')) {
            require_once untrailingslashit(ABSPATH) . '/wp-admin/includes/file.php';
        }

        WP_Filesystem();
    }

    return $wp_filesystem;
}

/**
 * Get WPDB Instance.
 *
 * With this function you get the global $wpdb instance of the class
 *
 * @since 3.5.0
 *
 * @return wpdb The instance of the class
 */
function backwpup_wpdb()
{
    global $wpdb;

    return $wpdb;
}

/**
 * Remove Invalid Characters from Directory Name.
 *
 * @since 3.5.0
 *
 * @param string $directory the directory path
 *
 * @return string The cleaned directory path
 */
function remove_invalid_characters_from_directory_name($directory)
{
    return str_replace(
        [
            '?',
            '[',
            ']',
            '\\',
            '=',
            '<',
            '>',
            ':',
            ';',
            ',',
            "'",
            '"',
            '&',
            '$',
            '#',
            '*',
            '(',
            ')',
            '|',
            '~',
            '`',
            '!',
            '{',
            '}',
            chr(0),
        ],
        '',
        $directory
    );
}

/**
 * Escapes a URL, adding https by default if protocol is not specified.
 *
 * @param string     $url       The URL to escape
 * @param array|null $protocols A list of allowed protocols
 *
 * @return string The escaped URL
 */
function backwpup_esc_url_default_secure($url, $protocols = null)
{
    // Add https to protocols if not present
    if (is_array($protocols) && !in_array('https', $protocols)) {
        $protocols[] = 'https';
    }

    $escaped_url = esc_url_raw($url, $protocols);
    if (empty($escaped_url)) {
        return $escaped_url;
    }

    // We must check for both http: and http;
    // because esc_url_raw() corrects http; to http: automatically.
    // so if we do not check for it in the original, we could have invalid results.
    if (!preg_match('/http[:;]/', $url) && strpos($escaped_url, 'http://') === 0) {
        $escaped_url = preg_replace('/^http:/', 'https:', $escaped_url);
    }

    return $escaped_url;
}

/**
 * Compatibility code for cal_days_in_month.
 *
 * @param int $month Month.
 * @param int $year Year.
 *
 * @return int
 */
function backwpup_cal_days_in_month( $month, $year ) {
	$month = (int) $month;
	$year  = (int) $year;

	// Array of the number of days in each month for a non-leap year.
	$days_in_months = [ 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 ];

	// Check if the month is February and if the year is a leap year.
	if ( 2 === $month && ( ( 0 === ( $year % 4 ) && 0 !== ( $year % 100 ) ) || ( 0 === $year % 400 ) ) ) {
		return 29; // February in a leap year has 29 days.
	}

	// Return the number of days for the given month.
	return $days_in_months[ $month - 1 ];
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 10 2025 04:32:29
giriqfky / giriqfky
0755
Notice
--
July 10 2025 04:32:37
giriqfky / giriqfky
0755
Settings
--
July 10 2025 04:32:37
giriqfky / giriqfky
0755
ThirdParty
--
July 10 2025 04:32:37
giriqfky / giriqfky
0755
Utils
--
July 10 2025 04:32:37
giriqfky / giriqfky
0755
dependencies
--
July 10 2025 04:32:37
giriqfky / giriqfky
0755
.htaccess
0.41 KB
July 10 2025 04:32:37
giriqfky / giriqfky
0644
BackWPup.php
11.618 KB
May 20 2025 11:41:24
giriqfky / giriqfky
0644
class-admin.php
44.521 KB
May 20 2025 11:41:24
giriqfky / giriqfky
0644
class-adminbar.php
2.676 KB
May 20 2025 11:41:24
giriqfky / giriqfky
0644
class-create-archive-exception.php
0.148 KB
November 16 2022 17:55:50
giriqfky / giriqfky
0644
class-create-archive.php
27.247 KB
March 10 2025 14:47:06
giriqfky / giriqfky
0644
class-cron.php
18.585 KB
April 29 2025 17:34:12
giriqfky / giriqfky
0644
class-destination-connect-exception.php
0.218 KB
November 16 2022 17:55:50
giriqfky / giriqfky
0644
class-destination-connect-interface.php
0.647 KB
November 16 2022 17:55:50
giriqfky / giriqfky
0644
class-destination-download-exception.php
0.202 KB
November 16 2022 17:55:50
giriqfky / giriqfky
0644
class-destination-downloader-data.php
1.223 KB
November 16 2022 17:55:50
giriqfky / giriqfky
0644
class-destination-downloader-factory.php
1.629 KB
November 16 2022 17:55:50
giriqfky / giriqfky
0644
class-destination-downloader-interface.php
0.52 KB
November 16 2022 17:55:50
giriqfky / giriqfky
0644
class-destination-downloader.php
5.126 KB
June 04 2024 10:51:14
giriqfky / giriqfky
0644
class-destination-dropbox-api-exception.php
0.129 KB
November 16 2022 17:55:50
giriqfky / giriqfky
0644
class-destination-dropbox-api-request-exception.php
0.595 KB
November 16 2022 17:55:50
giriqfky / giriqfky
0644
class-destination-dropbox-api.php
40.892 KB
February 13 2025 20:02:44
giriqfky / giriqfky
0644
class-destination-dropbox-downloader.php
2.907 KB
October 18 2023 17:06:40
giriqfky / giriqfky
0644
class-destination-dropbox.php
21.399 KB
May 20 2025 11:41:24
giriqfky / giriqfky
0644
class-destination-email.php
19.876 KB
April 23 2025 14:14:02
giriqfky / giriqfky
0644
class-destination-folder-downloader.php
3.488 KB
November 16 2022 17:55:50
giriqfky / giriqfky
0644
class-destination-folder.php
10.113 KB
April 07 2025 18:31:08
giriqfky / giriqfky
0644
class-destination-ftp-connect.php
5.373 KB
November 16 2022 17:55:50
giriqfky / giriqfky
0644
class-destination-ftp-downloader.php
3.351 KB
November 16 2022 17:55:50
giriqfky / giriqfky
0644
class-destination-ftp.php
29.519 KB
April 07 2025 18:31:08
giriqfky / giriqfky
0644
class-destination-msazure-downloader.php
3.369 KB
November 16 2022 17:55:50
giriqfky / giriqfky
0644
class-destination-msazure.php
26.319 KB
February 04 2025 14:50:44
giriqfky / giriqfky
0644
class-destination-rsc.php
22.318 KB
March 21 2025 15:27:30
giriqfky / giriqfky
0644
class-destination-s3-downloader.php
3.298 KB
November 16 2022 17:55:50
giriqfky / giriqfky
0644
class-destination-s3.php
48.635 KB
April 07 2025 18:31:08
giriqfky / giriqfky
0644
class-destination-sugarsync.php
38.054 KB
February 04 2025 14:50:44
giriqfky / giriqfky
0644
class-destinations.php
6.154 KB
April 07 2025 18:31:08
giriqfky / giriqfky
0644
class-directory.php
6.025 KB
April 23 2025 14:14:02
giriqfky / giriqfky
0644
class-download-file-interface.php
0.609 KB
November 16 2022 17:55:50
giriqfky / giriqfky
0644
class-download-file.php
3.406 KB
November 16 2022 17:55:50
giriqfky / giriqfky
0644
class-download-handler.php
1.956 KB
October 18 2023 17:06:40
giriqfky / giriqfky
0644
class-easycron.php
8.057 KB
October 01 2024 16:10:48
giriqfky / giriqfky
0644
class-encryption-fallback.php
2.875 KB
November 16 2022 17:55:50
giriqfky / giriqfky
0644
class-encryption-mcrypt.php
4.014 KB
March 03 2025 19:19:24
giriqfky / giriqfky
0644
class-encryption-openssl.php
3.925 KB
November 16 2022 17:55:50
giriqfky / giriqfky
0644
class-encryption.php
6.265 KB
November 16 2022 17:55:50
giriqfky / giriqfky
0644
class-factory-exception.php
0.191 KB
November 16 2022 17:55:50
giriqfky / giriqfky
0644
class-file.php
10.787 KB
March 13 2025 16:05:40
giriqfky / giriqfky
0644
class-help.php
1.745 KB
October 18 2023 17:06:40
giriqfky / giriqfky
0644
class-install.php
18.464 KB
April 23 2025 14:14:02
giriqfky / giriqfky
0644
class-job.php
105.758 KB
May 20 2025 11:41:24
giriqfky / giriqfky
0644
class-jobtype-dbcheck.php
6.386 KB
October 18 2023 17:06:40
giriqfky / giriqfky
0644
class-jobtype-dbdump.php
11.304 KB
April 07 2025 18:31:08
giriqfky / giriqfky
0644
class-jobtype-file.php
24.155 KB
April 07 2025 18:31:08
giriqfky / giriqfky
0644
class-jobtype-wpexp.php
34.94 KB
March 13 2025 16:05:40
giriqfky / giriqfky
0644
class-jobtype-wpplugin.php
6.864 KB
March 03 2025 19:19:24
giriqfky / giriqfky
0644
class-jobtypes.php
2.25 KB
April 07 2025 18:31:08
giriqfky / giriqfky
0644
class-message-box.php
3.464 KB
November 16 2022 17:55:50
giriqfky / giriqfky
0644
class-migrate.php
10.691 KB
April 23 2025 14:14:02
giriqfky / giriqfky
0644
class-msazure-destination-configuration.php
1.597 KB
November 16 2022 17:55:50
giriqfky / giriqfky
0644
class-mysqldump.php
34.067 KB
June 19 2024 12:40:40
giriqfky / giriqfky
0644
class-option.php
18.498 KB
April 23 2025 14:14:02
giriqfky / giriqfky
0644
class-page-about.php
27.481 KB
June 19 2024 12:40:40
giriqfky / giriqfky
0644
class-page-backups.php
20.81 KB
April 23 2025 14:14:02
giriqfky / giriqfky
0644
class-page-backwpup.php
21.946 KB
October 18 2023 17:06:40
giriqfky / giriqfky
0644
class-page-editjob.php
47.442 KB
April 23 2025 14:14:02
giriqfky / giriqfky
0644
class-page-firstbackup.php
0.556 KB
February 04 2025 14:50:44
giriqfky / giriqfky
0644
class-page-jobs.php
44.727 KB
April 23 2025 14:14:02
giriqfky / giriqfky
0644
class-page-logs.php
13.824 KB
April 23 2025 14:14:02
giriqfky / giriqfky
0644
class-page-onboarding.php
6.948 KB
May 20 2025 11:41:24
giriqfky / giriqfky
0644
class-page-restore.php
5.368 KB
April 07 2025 18:31:08
giriqfky / giriqfky
0644
class-page-settings.php
45.41 KB
April 07 2025 18:31:08
giriqfky / giriqfky
0644
class-path-fixer.php
0.815 KB
October 18 2023 17:06:40
giriqfky / giriqfky
0644
class-recursive-directory.php
0.573 KB
November 16 2022 17:55:50
giriqfky / giriqfky
0644
class-s3-destination.php
11.986 KB
March 13 2025 16:05:40
giriqfky / giriqfky
0644
class-sanitize-path.php
1.547 KB
November 16 2022 17:55:50
giriqfky / giriqfky
0644
class-system-requirements.php
1.231 KB
October 01 2024 16:10:48
giriqfky / giriqfky
0644
class-system-tests-runner.php
9.5 KB
November 16 2022 17:55:50
giriqfky / giriqfky
0644
class-system-tests.php
3.469 KB
November 16 2022 17:55:50
giriqfky / giriqfky
0644
class-thirdparties.php
1.023 KB
June 19 2024 12:40:40
giriqfky / giriqfky
0644
class-wp-api.php
43.999 KB
April 29 2025 17:34:12
giriqfky / giriqfky
0644
class-wp-cli.php
11.83 KB
April 23 2025 14:14:02
giriqfky / giriqfky
0644
functions.php
5.883 KB
April 30 2025 17:12:56
giriqfky / giriqfky
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF