OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
accscourse
/
inc
/
razorpay
Server IP: 10.0.0.4
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/27/2021 03:23:32 PM
rwxr-xr-x
📄
README.md
7.11 KB
08/27/2021 03:23:42 PM
rw-rw-r--
📄
Razorpay.php
1.27 KB
08/27/2021 03:23:41 PM
rw-rw-r--
📄
composer.json
1.06 KB
08/27/2021 03:23:42 PM
rw-rw-r--
📄
composer.lock
51.4 KB
08/27/2021 03:23:41 PM
rw-rw-r--
📄
doc.md
649 bytes
08/27/2021 03:23:41 PM
rw-rw-r--
📁
libs
-
08/27/2021 03:21:32 PM
rwxr-xr-x
📁
src
-
08/27/2021 03:22:34 PM
rwxr-xr-x
📄
version.txt
6 bytes
08/27/2021 03:23:42 PM
rw-rw-r--
Editing: Razorpay.php
Close
<?php // Include Requests only if not already defined if (class_exists('Requests') === false) { require_once __DIR__.'/libs/Requests-1.7.0/library/Requests.php'; } try { Requests::register_autoloader(); if (version_compare(Requests::VERSION, '1.6.0') === -1) { throw new Exception('Requests class found but did not match'); } } catch (\Exception $e) { throw new Exception('Requests class found but did not match'); } spl_autoload_register(function ($class) { // project-specific namespace prefix $prefix = 'Razorpay\Api'; // base directory for the namespace prefix $base_dir = __DIR__ . '/src/'; // does the class use the namespace prefix? $len = strlen($prefix); if (strncmp($prefix, $class, $len) !== 0) { // no, move to the next registered autoloader return; } // get the relative class name $relative_class = substr($class, $len); // // replace the namespace prefix with the base directory, // replace namespace separators with directory separators // in the relative class name, append with .php // $file = $base_dir . str_replace('\\', '/', $relative_class) . '.php'; // if the file exists, require it if (file_exists($file)) { require $file; } });