You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
297 B
PHP
19 lines
297 B
PHP
<?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>';
|
|
}
|
|
?>
|