From f66bab2dd267db94077908ec411a68f1cece2939 Mon Sep 17 00:00:00 2001 From: Dmitriy Simushev Date: Tue, 1 Jul 2014 08:27:27 +0000 Subject: [PATCH] Remove unused functions related with request processing --- src/mibew/libs/common/request.php | 41 ------------------------------- 1 file changed, 41 deletions(-) diff --git a/src/mibew/libs/common/request.php b/src/mibew/libs/common/request.php index f2463a62..77f4744c 100644 --- a/src/mibew/libs/common/request.php +++ b/src/mibew/libs/common/request.php @@ -15,37 +15,6 @@ * limitations under the License. */ -// Import namespaces and classes of the core -use Mibew\Settings; - -/* ajax server actions use utf-8 */ -function get_raw_param($name) -{ - if (isset($_POST[$name])) { - $value = $_POST[$name]; - if (get_magic_quotes_gpc()) { - $value = stripslashes($value); - } - - return $value; - } - die("no " . $name . " parameter"); -} -/* form processors use current Output encoding */ - -function get_param($name) -{ - if (isset($_POST[$name])) { - $value = $_POST[$name]; - if (get_magic_quotes_gpc()) { - $value = stripslashes($value); - } - - return $value; - } - die("no " . $name . " parameter"); -} - function get_get_param($name, $default = '') { if (!isset($_GET[$name]) || !$_GET[$name]) { @@ -74,13 +43,3 @@ function is_secure_request() || (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") || (isset($_SERVER["HTTP_HTTPS"]) && $_SERVER["HTTP_HTTPS"] == "on"); } - -/** - * Returns name of the current operator pages style - * - * @return string - */ -function get_page_style() -{ - return Settings::get('page_style'); -}