OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
accscourse
/
inc
/
razorpay
/
libs
/
Requests-1.7.0
/
library
/
Requests
Server IP: 10.0.0.4
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/27/2021 03:23:49 PM
rwxr-xr-x
📁
Auth
-
08/27/2021 03:23:45 PM
rwxr-xr-x
📄
Auth.php
810 bytes
08/27/2021 03:23:50 PM
rw-rw-r--
📁
Cookie
-
08/27/2021 03:23:48 PM
rwxr-xr-x
📄
Cookie.php
12.55 KB
08/27/2021 03:23:52 PM
rw-rw-r--
📁
Exception
-
08/27/2021 03:23:50 PM
rwxr-xr-x
📄
Exception.php
1 KB
08/27/2021 03:23:53 PM
rw-rw-r--
📄
Hooker.php
708 bytes
08/27/2021 03:23:51 PM
rw-rw-r--
📄
Hooks.php
1.37 KB
08/27/2021 03:23:50 PM
rw-rw-r--
📄
IDNAEncoder.php
11.06 KB
08/27/2021 03:23:52 PM
rw-rw-r--
📄
IPv6.php
4.81 KB
08/27/2021 03:23:51 PM
rw-rw-r--
📄
IRI.php
27.8 KB
08/27/2021 03:23:53 PM
rw-rw-r--
📁
Proxy
-
08/27/2021 03:24:04 PM
rwxr-xr-x
📄
Proxy.php
813 bytes
08/27/2021 03:23:53 PM
rw-rw-r--
📁
Response
-
08/27/2021 03:24:05 PM
rwxr-xr-x
📄
Response.php
2.45 KB
08/27/2021 03:23:51 PM
rw-rw-r--
📄
SSL.php
3.93 KB
08/27/2021 03:23:52 PM
rw-rw-r--
📄
Session.php
6.99 KB
08/27/2021 03:23:51 PM
rw-rw-r--
📁
Transport
-
08/27/2021 03:23:44 PM
rwxr-xr-x
📄
Transport.php
1.19 KB
08/27/2021 03:23:52 PM
rw-rw-r--
📁
Utility
-
08/27/2021 03:22:41 PM
rwxr-xr-x
Editing: Hooks.php
Close
<?php /** * Handles adding and dispatching events * * @package Requests * @subpackage Utilities */ /** * Handles adding and dispatching events * * @package Requests * @subpackage Utilities */ class Requests_Hooks implements Requests_Hooker { /** * Registered callbacks for each hook * * @var array */ protected $hooks = array(); /** * Constructor */ public function __construct() { // pass } /** * Register a callback for a hook * * @param string $hook Hook name * @param callback $callback Function/method to call on event * @param int $priority Priority number. <0 is executed earlier, >0 is executed later */ public function register($hook, $callback, $priority = 0) { if (!isset($this->hooks[$hook])) { $this->hooks[$hook] = array(); } if (!isset($this->hooks[$hook][$priority])) { $this->hooks[$hook][$priority] = array(); } $this->hooks[$hook][$priority][] = $callback; } /** * Dispatch a message * * @param string $hook Hook name * @param array $parameters Parameters to pass to callbacks * @return boolean Successfulness */ public function dispatch($hook, $parameters = array()) { if (empty($this->hooks[$hook])) { return false; } foreach ($this->hooks[$hook] as $priority => $hooked) { foreach ($hooked as $callback) { call_user_func_array($callback, $parameters); } } return true; } }