Alıntı
function Redirect ($url, $sec = 0, $display = TRUE) {
if ((!$sec) && ($display) && (!headers_sent())) {
header('Location: ' . $url);
exit();
}
$url = '<META HTTP-EQUIV="Refresh" CONTENT="' . $sec . ';URL=' . $url . '">';
if ($display) {
echo $url;
exit();
}
return $url;
}
function LNtoBR($str) {
$str = str("/Ğ/","/Ü/","/Ş/","/İ/","/Ö/","/Ç/","/ğ/","/ü/","/ş/","/ı/","/ö/","/ç/, $str);
return $str;
}
function BRtoLN($str) {
$str = str_replace(Array("G","U","S","I","O","C","g","u", "s","i","o","c", $str);
return $str;
}
function __($text, $array) {
$text = preg_replace("/\{(\w+)\}/e", "\$array[strtolower('$1')]", $text);
return $text;
}
if ((!$sec) && ($display) && (!headers_sent())) {
header('Location: ' . $url);
exit();
}
$url = '<META HTTP-EQUIV="Refresh" CONTENT="' . $sec . ';URL=' . $url . '">';
if ($display) {
echo $url;
exit();
}
return $url;
}
function LNtoBR($str) {
$str = str("/Ğ/","/Ü/","/Ş/","/İ/","/Ö/","/Ç/","/ğ/","/ü/","/ş/","/ı/","/ö/","/ç/, $str);
return $str;
}
function BRtoLN($str) {
$str = str_replace(Array("G","U","S","I","O","C","g","u", "s","i","o","c", $str);
return $str;
}
function __($text, $array) {
$text = preg_replace("/\{(\w+)\}/e", "\$array[strtolower('$1')]", $text);
return $text;
}