| Server IP : 50.21.180.56 / Your IP : 216.73.216.208 Web Server : Apache System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux User : ws67922704 ( 67922704) PHP Version : 8.5.13 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /kunden/proc/thread-self/cwd/wp-content/plugins_old/dhtmlxspreadsheet/codebase/php/ |
Upload File : |
<?php
/**
(c) DHTMLX Ltd, 2011
Licensing: You allowed to use this component for free under GPL or you need to obtain Commercial/Enterprise license to use it in non-GPL project
Contact: sales@dhtmlx.com
**/
class Request {
protected $settings = Array();
public function __construct() {
foreach ($_GET as $k => $v)
$this->set($k, $this->encode($v));
foreach ($_POST as $k => $v)
$this->set($k, $this->encode($v));
}
public function set($name, $value) {
$this->settings[$name] = $value;
}
public function get($name) {
if (isset($this->settings[$name]))
return $this->settings[$name];
return false;
}
public function get_all() {
return $this->settings;
}
public function encode($value) {
if (is_array($value))
foreach($value as $k => $v)
$value[$k] = $this->encode($value[$k]);
if (is_string($value))
return rawurldecode($value);
return $value;
}
}
?>