/
home
/
desid573
/
public_html
/
app
/
braintree
/
lib
/
/home/desid573/public_html/app/braintree/lib
mkdir
upload
Name
Size
Mode
Actions
Braintree/
-
0755
rm
ssl/
-
0755
rm
autoload.php
587
0644
edit
dl
rm
Braintree.php
713
0644
edit
dl
rm
Edit:
/home/desid573/public_html/app/braintree/lib/autoload.php
(587B)
<?php spl_autoload_register(function ($className) { if (strpos($className, 'Braintree') !== 0) { return; } $fileName = dirname(__DIR__) . '/lib/'; if ($lastNsPos = strripos($className, '\\')) { $namespace = substr($className, 0, $lastNsPos); $className = substr($className, $lastNsPos + 1); $fileName .= str_replace('\\', DIRECTORY_SEPARATOR, $namespace) . DIRECTORY_SEPARATOR; } $fileName .= str_replace('_', DIRECTORY_SEPARATOR, $className) . '.php'; if (is_file($fileName)) { require_once $fileName; } });
Save
cmd:
run