Everything previously under www/src now are under www/ Moved style.CSS under www/ressources, to allow blocking http requests to www/lib completly Moved <head> and <header> generation under lib/PHP/output/sections.php to reduce redundancy within files. Also implemented a system to allow them to generate relatif paht for href to ressources depending on their deepness within www/ hierarchy.
12 lines
No EOL
199 B
PHP
12 lines
No EOL
199 B
PHP
<?php
|
|
function sanitize_database_input($string, $conn)
|
|
{
|
|
return $conn->real_escape_string(stripslashes($string));
|
|
}
|
|
|
|
function sanitize_displayed_input($string)
|
|
{
|
|
return htmlentities($string);
|
|
}
|
|
|
|
?>
|