This file contains 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
function userAgentDetails($ua) | |
{ | |
$ua = $ua==null ? $_SERVER['HTTP_USER_AGENT'] : $ua; | |
$browser = ''; | |
$platform = ''; | |
$b_icon = 'mdi mdi-close-circle'; | |
$p_icon = 'mdi mdi-close-circle'; | |
$browser_list = [ |
This file contains 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 | |
function case_converter( $keyword, $transform='lowercase' ){ | |
$low = array('a','b','c','ç','d','e','f','g','ğ','h','ı','i','j','k','l','m','n','o','ö','p','r','s','ş','t','u','ü','v','y','z','q','w','x'); | |
$upp = array('A','B','C','Ç','D','E','F','G','Ğ','H','I','İ','J','K','L','M','N','O','Ö','P','R','S','Ş','T','U','Ü','V','Y','Z','Q','W','X'); | |
if( $transform=='uppercase' OR $transform=='u' ) | |
{ | |
$keyword = str_replace( $low, $upp, $keyword ); |
This file contains 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 | |
function turkishCharacterFixer($string) | |
{ | |
// = <0x9d> | |
// Some Special Characters | |
$find = ['•', '“', 'â€', '‘', '’']; | |
$repl = ['•', '“', '”', '‘', '’']; |
This file contains 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 | |
// Türkçe Ülke AD ve Kodları (Array) @halillusion | |
$countries = array( | |
'TR' => 'Türkiye', | |
'VI' => 'ABD Virgin Adaları', | |
'AF' => 'Afganistan', | |
'AX' => 'Aland Adaları', | |
'DE' => 'Almanya', |
This file contains 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
<select> | |
<option value="TR">Türkiye</option> | |
<option value="VI">ABD Virgin Adaları</option> | |
<option value="AF">Afganistan</option> | |
<option value="AX">Aland Adaları</option> | |
<option value="DE">Almanya</option> | |
<option value="US">Amerika Birleşik Devletleri</option> | |
<option value="UM">Amerika Birleşik Devletleri Küçük Dış Adaları</option> | |
<option value="AS">Amerikan Samoası</option> | |
<option value="AD">Andora</option> |