PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
| Dir : /home/jairosvt/public_html/publicidadaf/lib/max/Delivery/ |
| Server: Linux server2.noticiasdecolima.com 4.18.0-553.30.1.el8_10.x86_64 #1 SMP Tue Nov 26 02:30:26 EST 2024 x86_64 IP: 107.161.180.42 |
| Dir : /home/jairosvt/public_html/publicidadaf/lib/max/Delivery/base64.php |
<?php
/*
+---------------------------------------------------------------------------+
| Revive Adserver |
| http://www.revive-adserver.com |
| |
| Copyright: See the COPYRIGHT.txt file. |
| License: GPLv2 or later, see the LICENSE.txt file. |
+---------------------------------------------------------------------------+
*/
/**
* @package MaxDelivery
* @subpackage base64
*/
/**
* A function to encode a string using a URL-safe alphabet
*
* @param string $string The string to be encoded.
*
* @return string The URL-safe encoded string
*/
function MAX_base64EncodeUrlSafe($string) {
// Encodes a string using the RFC3548 "Filename Safe Alphabet"
$search = array('+', '/', '=');
$replace = array('-', '~', '');
$string = base64_encode($string);
return str_replace($search, $replace, $string);
}
/**
* A function to encode a string using a URL-safe alphabet
*
* @param string $string The encoded string to be decoded.
*
* @return string The decoded string
*/
function MAX_base64DecodeUrlSafe($string) {
// Decodes a string using the RFC3548 "Filename Safe Alphabet"
$search = array('-', '~');
$replace = array('+', '/');
$string = str_replace($search, $replace, $string);
return base64_decode($string);
}
?>