- WordPress core y plugins - Tema Twenty Twenty-Four configurado - Plugin allow-unfiltered-html.php simplificado - .gitignore configurado para excluir wp-config.php y uploads 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
25 lines
713 B
PHP
25 lines
713 B
PHP
<?php
|
|
/**
|
|
* Braintree PHP Library
|
|
* Creates class_aliases for old class names replaced by PSR-4 Namespaces
|
|
*/
|
|
|
|
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'autoload.php');
|
|
|
|
if (version_compare(PHP_VERSION, '5.4.0', '<')) {
|
|
throw new Braintree_Exception('PHP version >= 5.4.0 required');
|
|
}
|
|
|
|
class Braintree {
|
|
public static function requireDependencies() {
|
|
$requiredExtensions = ['xmlwriter', 'openssl', 'dom', 'hash', 'curl'];
|
|
foreach ($requiredExtensions AS $ext) {
|
|
if (!extension_loaded($ext)) {
|
|
throw new Braintree_Exception('The Braintree library requires the ' . $ext . ' extension.');
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
Braintree::requireDependencies();
|