OwlCyberSecurity - MANAGER
Edit File: systemsecurity.php
<?php function SECURITY_CHECK_INPUT($unsave_input_1) { $return_value = $unsave_input_1; // Hold Temp Original Value and Data Type if ($unsave_input_1 != NULL) { $LIST_ALLOWED_CHARACTER = '0123456789qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM@-+?:/,|_ '; $unsave_input_2 = (string)$unsave_input_1; $Panjang_Unsave_Input = strlen($unsave_input_2) -1; $Nomor_Looping = 0; While ($Nomor_Looping <= $Panjang_Unsave_Input) { $Char = substr($unsave_input_2, $Nomor_Looping, 1); if (strpos($LIST_ALLOWED_CHARACTER, $Char, 0) === false) { // Some thing with this unsave input header('Location: xsystemmsg.php?msg=unexpected input character = ' . $Char); die(); } else { // Every thing OK continue the loop } $Nomor_Looping++; } // Every things looks OK return $return_value; } else { return $return_value; } }