HEX
Server: Apache
System: Linux main79 6.1.0-52-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.180-1 (2026-08-03) x86_64
User: serwer143450 (7544)
PHP: 7.4.33
Disabled: opcache_reset, opcache_invalidate, opcache_compile_file, opcache_get_configuration, opcache_get_status
Upload Files
File: /home/platne/serwer143450/public_html/tukultura.pl/wp-content/plugins/wp-reset/libs/pCloud/Auth.php
<?php

namespace pCloud;

class Auth {

	public static function getAuth($credentialPath) {
        global $wp_reset;
		$options = $wp_reset->get_options();
        if(!array_key_exists('pcloud', $options['cloud_data'])){
            return false;
        }
		$credential['access_token'] = json_decode($options['cloud_data']['pcloud']['token']);
        
        if (!isset($credential["access_token"]) || empty($credential["access_token"])) {
			throw new Exception("Couldn't find \"access_token\"");			
		}

		return $credential;
	}
}