summaryrefslogtreecommitdiff
path: root/includes/sys_page.php
blob: e499cd57e89953f022e25bef958c7a7b1de6b584 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php

function strip_request_item($name) {
	return preg_replace(
		"/([^\p{L}\p{P}\p{Z}\p{N}]{1,})/ui",
		'',
		strip_tags($_REQUEST[$name])
	);
}

function strip_request_item_nl($name) {
	return preg_replace(
		"/([^\p{L}\p{P}\p{Z}\p{N}\n]{1,})/ui",
		'',
		strip_tags($_REQUEST[$name])
	);
}

function error($msg) {
	return '<p class="error">' . $msg . '</p>';
}

function success($msg) {
	return '<p class="success">' . $msg . '</p>';
}
?>