Remove unused functions related with request processing

This commit is contained in:
Dmitriy Simushev 2014-07-01 08:27:27 +00:00
parent 27ed59eb08
commit f66bab2dd2

View File

@ -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');
}