This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Funció de filtrat universal | |
function f($d) { | |
if (is_array($d)) return array_map('f', $d); | |
return htmlspecialchars(strip_tags(trim($d)), ENT_QUOTES, 'UTF-8'); | |
} | |
// Funció per camps numèrics | |
function fn($d) { | |
return ctype_digit($d) ? (int)$d : 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Funció de filtrat universal | |
function f($d) { | |
if (is_array($d)) return array_map('f', $d); | |
return htmlspecialchars(strip_tags(trim($d)), ENT_QUOTES, 'UTF-8'); | |
} | |
// Funció per camps numèrics | |
function fn($d) { | |
return ctype_digit($d) ? (int)$d : 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
@session_start(); | |
unset($_SESSION['NAMA_USER']); | |
$_SESSION['intentos'] = 0; | |
if(isset($_SESSION['NAMA_USER'])) | |
{ | |
header("location:index.php"); | |
} | |
?> | |
<!DOCTYPE html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Funció de filtrat universal | |
function f($d) { | |
if (is_array($d)) return array_map('f', $d); | |
return htmlspecialchars(strip_tags(trim($d)), ENT_QUOTES, 'UTF-8'); | |
} | |
// Funció per camps numèrics | |
function fn($d) { | |
return ctype_digit($d) ? (int)$d : 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Funció de filtrat universal | |
function f($d) { | |
if (is_array($d)) return array_map('f', $d); | |
return htmlspecialchars(strip_tags(trim($d)), ENT_QUOTES, 'UTF-8'); | |
} | |
// Funció per camps numèrics | |
function fn($d) { | |
return ctype_digit($d) ? (int)$d : 0; |