File "autoload.php"

Full path: /home/kosmetik/public_html/wp-content/plugins/powerpack-elements/includes/vendor/recaptcha/autoload.php
File size: 433 B
MIME-type: text/x-php
Charset: utf-8

Download   Open   Edit   Advanced Editor   Back

<?php

spl_autoload_register(function ($class) {
    if (substr($class, 0, 10) !== 'ReCaptcha\\') {
        return;
    }
    $class = str_replace('\\', '/', $class);
    $path = dirname(__FILE__) . '/' . $class . '.php';
    if (is_readable($path)) {
        require_once $path;
        return;
    }
    $path = dirname(__FILE__) . '/../tests/' . $class . '.php';
    if (is_readable($path)) {
        require_once $path;
    }
});