mirror of
https://github.com/Mibew/mibew.git
synced 2025-05-11 22:33:07 +03:00
Remove unused functions related with request processing
This commit is contained in:
parent
27ed59eb08
commit
f66bab2dd2
@ -15,37 +15,6 @@
|
|||||||
* limitations under the License.
|
* 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 = '')
|
function get_get_param($name, $default = '')
|
||||||
{
|
{
|
||||||
if (!isset($_GET[$name]) || !$_GET[$name]) {
|
if (!isset($_GET[$name]) || !$_GET[$name]) {
|
||||||
@ -74,13 +43,3 @@ function is_secure_request()
|
|||||||
|| (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on")
|
|| (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on")
|
||||||
|| (isset($_SERVER["HTTP_HTTPS"]) && $_SERVER["HTTP_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');
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user