nL +D 550 H ? M x ,D"v ] q v ;6 * Z qn )ZP 0 !1 A "#a$2Qr
<?php
function pr($arr){
echo '<pre>';
print_r($arr);
}
function prx($arr){
echo '<pre>';
print_r($arr);
die();
}
function get_safe_value($con, $str) {
if(is_array($str)) {
foreach ($str as $key => $value) {
$str[$key] = trim($value);
$str[$key] = mysqli_real_escape_string($con, $str[$key]);
}
} else {
$str = trim($str);
$str = mysqli_real_escape_string($con, $str);
}
return $str;
}
function redirect($url){
?>
<script>
window.location.href="<?php echo $url?>";
</script>
<?php
}
?>