initial commit
This commit is contained in:
commit
5f95d9cef6
55 changed files with 12483 additions and 0 deletions
18
demo/php/include/functions.inc.php
Normal file
18
demo/php/include/functions.inc.php
Normal file
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
|
||||
function fatal_error($msg, $status = '505 Internal Server Error') {
|
||||
header('Status: '.$status);
|
||||
|
||||
echo $msg."\n";
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
function sanitize_path_request($path_info) {
|
||||
return preg_replace(
|
||||
array('|^/|', '/[^A-Za-z0-9\-\.]/'),
|
||||
array('', ''),
|
||||
$path_info
|
||||
);
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue