File manager - Edit - /home/proidvn/me.proid.vn/wp-content/plugins/wp-all-import-pro/src/Http/Request.php
Back
<?php namespace Wpai\Http; class Request { private $content; public function __construct($content) { $this->content = $content; } public function getRawContent() { return $this->content; } public function getJsonParams() { if(!empty($this->content) && $this->content !== "null") { $jsonDecodedContent = json_decode($this->content, true); if (is_null($jsonDecodedContent)) { throw new \Exception('Invalid JSON Provided'); } return $jsonDecodedContent; } } public function get($element, $default = null) { if(isset($_GET[$element])) { return $_GET[$element]; } else { return $default; } } }
| ver. 1.4 |
Github
|
.
| PHP 8.0.30 | Generation time: 0.15 |
proxy
|
phpinfo
|
Settings