summaryrefslogtreecommitdiff
path: root/includes/sys_page.php
blob: 2af5f7290a5ae8575f8cdace1f716ddff0efbc6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php

function strip_request_item($name) {
	return preg_replace(
		"/([^\p{L}\p{P}\p{Z}\p{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>';
}
?>