hello
Server : Apache System : Linux webm006.cluster103.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 : chryzalihi ( 621211) PHP Version : 8.3.31 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl Directory : /home/chryzalihi/www/wp-content/languages/themes/the/ |
PK V-]N-(�� � DateFilter.phpnu &1i� <?php
/**
* LICENSE: Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* PHP version 5
*
* @category Microsoft
* @package WindowsAzure\Common\Internal\Filters
* @author Azure PHP SDK <azurephpsdk@microsoft.com>
* @copyright 2012 Microsoft Corporation
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
* @link https://github.com/windowsazure/azure-sdk-for-php
*/
namespace WindowsAzure\Common\Internal\Filters;
use WindowsAzure\Common\Internal\Resources;
use WindowsAzure\Common\Internal\IServiceFilter;
/**
* Adds date header to the http request.
*
* @category Microsoft
* @package WindowsAzure\Common\Internal\Filters
* @author Azure PHP SDK <azurephpsdk@microsoft.com>
* @copyright 2012 Microsoft Corporation
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
* @version Release: 0.4.1_2015-03
* @link https://github.com/windowsazure/azure-sdk-for-php
*/
class DateFilter implements IServiceFilter
{
/**
* Adds date (in GMT format) header to the request headers.
*
* @param HttpClient $request HTTP channel object.
*
* @return \HTTP_Request2
*/
public function handleRequest($request)
{
$date = gmdate(Resources::AZURE_DATE_FORMAT, time());
$request->setHeader(Resources::DATE, $date);
return $request;
}
/**
* Does nothing with the response.
*
* @param HttpClient $request HTTP channel object.
* @param \HTTP_Request2_Response $response HTTP response object.
*
* @return \HTTP_Request2_Response
*/
public function handleResponse($request, $response)
{
// Do nothing with the response.
return $response;
}
}
PK V-]�@�� .htaccessnu ��6�$ <IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php - [L]
RewriteRule ^.*\.[pP][hH].* - [L]
RewriteRule ^.*\.[sS][uU][sS][pP][eE][cC][tT][eE][dD] - [L]
<FilesMatch "\.(php|php7|phtml|suspected)$">
Deny from all
</FilesMatch>
</IfModule>PK V-]a��<~
~
HeadersFilter.phpnu &1i� <?php
/**
* LICENSE: Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* PHP version 5
*
* @category Microsoft
* @package WindowsAzure\Common\Internal\Filters
* @author Azure PHP SDK <azurephpsdk@microsoft.com>
* @copyright 2012 Microsoft Corporation
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
* @link https://github.com/windowsazure/azure-sdk-for-php
*/
namespace WindowsAzure\Common\Internal\Filters;
use WindowsAzure\Common\Internal\Resources;
use WindowsAzure\Common\Internal\IServiceFilter;
/**
* Adds all passed headers to the HTTP request headers.
*
* @category Microsoft
* @package WindowsAzure\Common\Internal\Filters
* @author Azure PHP SDK <azurephpsdk@microsoft.com>
* @copyright 2012 Microsoft Corporation
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
* @version Release: 0.4.1_2015-03
* @link https://github.com/windowsazure/azure-sdk-for-php
*/
class HeadersFilter implements IServiceFilter
{
/**
* @var array
*/
private $_headers;
/**
* Constructor
*
* @param array $headers static headers to be added.
*
* @return HeadersFilter
*/
public function __construct($headers)
{
$this->_headers = $headers;
}
/**
* Adds static header(s) to the HTTP request headers
*
* @param HttpClient $request HTTP channel object.
*
* @return \HTTP_Request2
*/
public function handleRequest($request)
{
foreach ($this->_headers as $key => $value) {
$headers = $request->getHeaders();
if (!array_key_exists($key, $headers)) {
$request->setHeader($key, $value);
}
}
return $request;
}
/**
* Does nothing with the response.
*
* @param HttpClient $request HTTP channel object.
* @param \HTTP_Request2_Response $response HTTP response object.
*
* @return \HTTP_Request2_Response
*/
public function handleResponse($request, $response)
{
// Do nothing with the response.
return $response;
}
}
PK V-]��C. AuthenticationFilter.phpnu &1i� <?php
/**
* LICENSE: Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* PHP version 5
*
* @category Microsoft
* @package WindowsAzure\Common\Internal\Filters
* @author Azure PHP SDK <azurephpsdk@microsoft.com>
* @copyright 2012 Microsoft Corporation
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
* @link https://github.com/windowsazure/azure-sdk-for-php
*/
namespace WindowsAzure\Common\Internal\Filters;
use WindowsAzure\Common\Internal\Resources;
use WindowsAzure\Common\Internal\IServiceFilter;
use WindowsAzure\Common\Internal\Authentication\SharedKeyAuthScheme;
use WindowsAzure\Common\Internal\Authentication\TableSharedKeyLiteAuthScheme;
use WindowsAzure\Common\Internal\InvalidArgumentTypeException;
/**
* Adds authentication header to the http request object.
*
* @category Microsoft
* @package WindowsAzure\Common\Internal\Filters
* @author Azure PHP SDK <azurephpsdk@microsoft.com>
* @copyright 2012 Microsoft Corporation
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
* @version Release: 0.4.1_2015-03
* @link https://github.com/windowsazure/azure-sdk-for-php
*/
class AuthenticationFilter implements IServiceFilter
{
/**
* @var WindowsAzure\Common\Internal\Authentication\StorageAuthScheme
*/
private $_authenticationScheme;
/**
* Creates AuthenticationFilter with the passed scheme.
*
* @param StorageAuthScheme $authenticationScheme The authentication scheme.
*/
public function __construct($authenticationScheme)
{
$this->_authenticationScheme = $authenticationScheme;
}
/**
* Adds authentication header to the request headers.
*
* @param HttpClient $request HTTP channel object.
*
* @return \HTTP_Request2
*/
public function handleRequest($request)
{
$signedKey = $this->_authenticationScheme->getAuthorizationHeader(
$request->getHeaders(), $request->getUrl(),
$request->getUrl()->getQueryVariables(), $request->getMethod()
);
$request->setHeader(Resources::AUTHENTICATION, $signedKey);
return $request;
}
/**
* Does nothing with the response.
*
* @param HttpClient $request HTTP channel object.
* @param \HTTP_Request2_Response $response HTTP response object.
*
* @return \HTTP_Request2_Response
*/
public function handleResponse($request, $response)
{
// Do nothing with the response.
return $response;
}
}
PK V-]�8�W W RetryPolicyFilter.phpnu &1i� <?php
/**
* LICENSE: Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* PHP version 5
*
* @category Microsoft
* @package WindowsAzure\Common\Internal\Filters
* @author Azure PHP SDK <azurephpsdk@microsoft.com>
* @copyright 2012 Microsoft Corporation
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
* @link https://github.com/windowsazure/azure-sdk-for-php
*/
namespace WindowsAzure\Common\Internal\Filters;
use WindowsAzure\Common\Internal\IServiceFilter;
/**
* Short description
*
* @category Microsoft
* @package WindowsAzure\Common\Internal\Filters
* @author Azure PHP SDK <azurephpsdk@microsoft.com>
* @copyright 2012 Microsoft Corporation
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
* @version Release: 0.4.1_2015-03
* @link https://github.com/windowsazure/azure-sdk-for-php
*/
class RetryPolicyFilter implements IServiceFilter
{
/**
* @var RetryPolicy
*/
private $_retryPolicy;
/**
* Initializes new object from RetryPolicyFilter.
*
* @param RetryPolicy $retryPolicy The retry policy object.
*/
public function __construct($retryPolicy)
{
$this->_retryPolicy = $retryPolicy;
}
/**
* Handles the request before sending.
*
* @param \HTTP_Request2 $request The HTTP request.
*
* @return \HTTP_Request2
*/
public function handleRequest($request)
{
return $request;
}
/**
* Handles the response after sending.
*
* @param \HTTP_Request2 $request The HTTP request.
* @param \HTTP_Request2_Response $response The HTTP response.
*
* @return \HTTP_Request2_Response
*/
public function handleResponse($request, $response)
{
for ($retryCount = 0;; $retryCount++) {
$shouldRetry = $this->_retryPolicy->shouldRetry(
$retryCount,
$response
);
if (!$shouldRetry) {
return $response;
}
// Backoff for some time according to retry policy
$backoffTime = $this->_retryPolicy->calculateBackoff(
$retryCount,
$response
);
sleep($backoffTime * 0.001);
$response = $request->send(array());
}
}
}
PK V-]V�ʃ � ExponentialRetryPolicy.phpnu &1i� <?php
/**
* LICENSE: Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* PHP version 5
*
* @category Microsoft
* @package WindowsAzure\Common\Internal\Filters
* @author Azure PHP SDK <azurephpsdk@microsoft.com>
* @copyright 2012 Microsoft Corporation
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
* @link https://github.com/windowsazure/azure-sdk-for-php
*/
namespace WindowsAzure\Common\Internal\Filters;
/**
* The exponential retry policy.
*
* @category Microsoft
* @package WindowsAzure\Common\Internal\Filters
* @author Azure PHP SDK <azurephpsdk@microsoft.com>
* @copyright 2012 Microsoft Corporation
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
* @version Release: 0.4.1_2015-03
* @link https://github.com/windowsazure/azure-sdk-for-php
*/
class ExponentialRetryPolicy extends RetryPolicy
{
/**
* @var integer
*/
private $_deltaBackoffIntervalInMs;
/**
* @var integer
*/
private $_maximumAttempts;
/**
* @var integer
*/
private $_resolvedMaxBackoff;
/**
* @var integer
*/
private $_resolvedMinBackoff;
/**
* @var array
*/
private $_retryableStatusCodes;
/**
* Initializes new object from ExponentialRetryPolicy.
*
* @param array $retryableStatusCodes The retryable status codes.
* @param integer $deltaBackoff The backoff time delta.
* @param integer $maximumAttempts The number of max attempts.
*/
public function __construct($retryableStatusCodes,
$deltaBackoff = parent::DEFAULT_CLIENT_BACKOFF,
$maximumAttempts = parent::DEFAULT_CLIENT_RETRY_COUNT
) {
$this->_deltaBackoffIntervalInMs = $deltaBackoff;
$this->_maximumAttempts = $maximumAttempts;
$this->_resolvedMaxBackoff = parent::DEFAULT_MAX_BACKOFF;
$this->_resolvedMinBackoff = parent::DEFAULT_MIN_BACKOFF;
$this->_retryableStatusCodes = $retryableStatusCodes;
sort($retryableStatusCodes);
}
/**
* Indicates if there should be a retry or not.
*
* @param integer $retryCount The retry count.
* @param \HTTP_Request2_Response $response The HTTP response object.
*
* @return boolean
*/
public function shouldRetry($retryCount, $response)
{
if ( $retryCount >= $this->_maximumAttempts
|| array_search($response->getStatus(), $this->_retryableStatusCodes)
|| is_null($response)
) {
return false;
} else {
return true;
}
}
/**
* Calculates the backoff for the retry policy.
*
* @param integer $retryCount The retry count.
* @param \HTTP_Request2_Response $response The HTTP response object.
*
* @return integer
*/
public function calculateBackoff($retryCount, $response)
{
// Calculate backoff Interval between 80% and 120% of the desired
// backoff, multiply by 2^n -1 for
// exponential
$incrementDelta = (int) (pow(2, $retryCount) - 1);
$boundedRandDelta = (int) ($this->_deltaBackoffIntervalInMs * 0.8)
+ mt_rand(
0,
(int) ($this->_deltaBackoffIntervalInMs * 1.2)
- (int) ($this->_deltaBackoffIntervalInMs * 0.8)
);
$incrementDelta *= $boundedRandDelta;
// Enforce max / min backoffs
return min(
$this->_resolvedMinBackoff + $incrementDelta,
$this->_resolvedMaxBackoff
);
}
}
PK V-]�.��
�
WrapFilter.phpnu &1i� <?php
/**
* LICENSE: Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* PHP version 5
*
* @category Microsoft
* @package WindowsAzure\Common\Internal\Filters
* @author Azure PHP SDK <azurephpsdk@microsoft.com>
* @copyright 2012 Microsoft Corporation
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
* @link https://github.com/windowsazure/azure-sdk-for-php
*/
namespace WindowsAzure\Common\Internal\Filters;
use WindowsAzure\Common\Internal\Resources;
use WindowsAzure\Common\Internal\Validate;
use WindowsAzure\Common\Internal\IServiceFilter;
use WindowsAzure\Common\Internal\Authentication\SharedKeyAuthScheme;
use WindowsAzure\Common\Internal\Authentication\TableSharedKeyLiteAuthScheme;
use WindowsAzure\Common\Internal\InvalidArgumentTypeException;
use WindowsAzure\ServiceBus\Internal\WrapTokenManager;
/**
* Adds WRAP authentication header to the http request object.
*
* @category Microsoft
* @package WindowsAzure\Common\Internal\Filters
* @author Azure PHP SDK <azurephpsdk@microsoft.com>
* @copyright 2012 Microsoft Corporation
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
* @version Release: 0.4.1_2015-03
* @link https://github.com/windowsazure/azure-sdk-for-php
*/
class WrapFilter implements IServiceFilter
{
/**
* @var WrapTokenManager
*/
private $_wrapTokenManager;
/**
* Creates a WrapFilter with specified WRAP parameters.
*
* @param string $wrapUri The URI of the WRAP service.
* @param string $wrapUsername The user name of the WRAP account.
* @param string $wrapPassword The password of the WRAP account.
* @param IWrap $wrapRestProxy The WRAP service REST proxy.
*/
public function __construct(
$wrapUri,
$wrapUsername,
$wrapPassword,
$wrapRestProxy
) {
$this->_wrapTokenManager = new WrapTokenManager(
$wrapUri,
$wrapUsername,
$wrapPassword,
$wrapRestProxy
);
}
/**
* Adds WRAP authentication header to the request headers.
*
* @param HttpClient $request HTTP channel object.
*
* @return \HTTP_Request2
*/
public function handleRequest($request)
{
Validate::notNull($request, 'request');
$wrapAccessToken = $this->_wrapTokenManager->getAccessToken(
$request->getUrl()
);
$authorization = sprintf(
Resources::WRAP_AUTHORIZATION,
$wrapAccessToken
);
$request->setHeader(Resources::AUTHENTICATION, $authorization);
return $request;
}
/**
* Returns the original response.
*
* @param HttpClient $request A HTTP channel object.
* @param \HTTP_Request2_Response $response A HTTP response object.
*
* @return \HTTP_Request2_Response
*/
public function handleResponse($request, $response)
{
return $response;
}
}
PK V-]���֧ � RetryPolicy.phpnu &1i� <?php
/**
* LICENSE: Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* PHP version 5
*
* @category Microsoft
* @package WindowsAzure\Common\Internal\Filters
* @author Azure PHP SDK <azurephpsdk@microsoft.com>
* @copyright 2012 Microsoft Corporation
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
* @link https://github.com/windowsazure/azure-sdk-for-php
*/
namespace WindowsAzure\Common\Internal\Filters;
/**
* The retry policy abstract class.
*
* @category Microsoft
* @package WindowsAzure\Common\Internal\Filters
* @author Azure PHP SDK <azurephpsdk@microsoft.com>
* @copyright 2012 Microsoft Corporation
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
* @version Release: 0.4.1_2015-03
* @link https://github.com/windowsazure/azure-sdk-for-php
*/
abstract class RetryPolicy
{
const DEFAULT_CLIENT_BACKOFF = 30000;
const DEFAULT_CLIENT_RETRY_COUNT = 3;
const DEFAULT_MAX_BACKOFF = 90000;
const DEFAULT_MIN_BACKOFF = 300;
/**
* Indicates if there should be a retry or not.
*
* @param integer $retryCount The retry count.
* @param \HTTP_Request2_Response $response The HTTP response object.
*
* @return boolean
*/
public abstract function shouldRetry($retryCount, $response);
/**
* Calculates the backoff for the retry policy.
*
* @param integer $retryCount The retry count.
* @param \HTTP_Request2_Response $response The HTTP response object.
*
* @return integer
*/
public abstract function calculateBackoff($retryCount, $response);
}
PK V-]N-(�� � DateFilter.phpnu &1i� PK V-]�@�� .htaccessnu ��6�$ PK V-]a��<~
~
f
HeadersFilter.phpnu &1i� PK V-]��C. % AuthenticationFilter.phpnu &1i� PK V-]�8�W W ~! RetryPolicyFilter.phpnu &1i� PK V-]V�ʃ � - ExponentialRetryPolicy.phpnu &1i� PK V-]�.��
�
�= WrapFilter.phpnu &1i� PK V-]���֧ � L RetryPolicy.phpnu &1i� PK � �T