eplacements' => array(),
'transliterate' => true
);
$options = array_merge($defaults, $options);
$char_map = array(
// Latin
'À' => 'A', 'Á' => 'A', 'Â' => 'A', 'Ã' => 'A', 'Ä' => 'A', 'Å' => 'A', 'Æ' => 'AE', 'Ç' => 'C',
'È' => 'E', 'É' => 'E', 'Ê' => 'E', 'Ë' => 'E', 'Ì' => 'I', 'Í' => 'I', 'Î' => 'I', 'Ï' => 'I',
'Ð' => 'D', 'Ñ' => 'N', 'Ò' => 'O', 'Ó' => 'O', 'Ô' => 'O', 'Õ' => 'O', 'Ö' => 'O', 'Ő' => 'O',
'Ø' => 'O', 'Ù' => 'U', 'Ú' => 'U', 'Û' => 'U', 'Ü' => 'U', 'Ű' => 'U', 'Ý' => 'Y', 'Þ' => 'TH',
'ß' => 'ss',
'à' => 'a', 'á' => 'a', 'â' => 'a', 'ã' => 'a', 'ä' => 'a', 'å' => 'a', 'æ' => 'ae', 'ç' => 'c',
'è' => 'e', 'é' => 'e', 'ê' => 'e', 'ë' => 'e', 'ì' => 'i', 'í' => 'i', 'î' => 'i', 'ï' => 'i',
'ð' => 'd', 'ñ' => 'n', 'ò' => 'o', 'ó' => 'o', 'ô' => 'o', 'õ' => 'o', 'ö' => 'o', 'ő' => 'o',
'ø' => 'o', 'ù' => 'u', 'ú' => 'u', 'û' => 'u', 'ü' => 'u', 'ű' => 'u', 'ý' => 'y', 'þ' => 'th',
'ÿ' => 'y',
// Latin symbols
'©' => '(c)',
// Greek
'Α' => 'A', 'Β' => 'B', 'Γ' => 'G', 'Δ' => 'D', 'Ε' => 'E', 'Ζ' => 'Z', 'Η' => 'H', 'Θ' => '8',
'Ι' => 'I', 'Κ' => 'K', 'Λ' => 'L', 'Μ' => 'M', 'Ν' => 'N', 'Ξ' => '3', 'Ο' => 'O', 'Π' => 'P',
'Ρ' => 'R', 'Σ' => 'S', 'Τ' => 'T', 'Υ' => 'Y', 'Φ' => 'F', 'Χ' => 'X', 'Ψ' => 'PS', 'Ω' => 'W',
'Ά' => 'A', 'Έ' => 'E', 'Ί' => 'I', 'Ό' => 'O', 'Ύ' => 'Y', 'Ή' => 'H', 'Ώ' => 'W', 'Ϊ' => 'I',
'Ϋ' => 'Y',
'α' => 'a', 'β' => 'b', 'γ' => 'g', 'δ' => 'd', 'ε' => 'e', 'ζ' => 'z', 'η' => 'h', 'θ' => '8',
'ι' => 'i', 'κ' => 'k', 'λ' => 'l', 'μ' => 'm', 'ν' => 'n', 'ξ' => '3', 'ο' => 'o', 'π' => 'p',
'ρ' => 'r', 'σ' => 's', 'τ' => 't', 'υ' => 'y', 'φ' => 'f', 'χ' => 'x', 'ψ' => 'ps', 'ω' => 'w',
'ά' => 'a', 'έ' => 'e', 'ί' => 'i', 'ό' => 'o', 'ύ' => 'y', 'ή' => 'h', 'ώ' => 'w', 'ς' => 's',
'ϊ' => 'i', 'ΰ' => 'y', 'ϋ' => 'y', 'ΐ' => 'i',
// Turkish
'Ş' => 'S', 'İ' => 'I', 'Ç' => 'C', 'Ü' => 'U', 'Ö' => 'O', 'Ğ' => 'G',
'ş' => 's', 'ı' => 'i', 'ç' => 'c', 'ü' => 'u', 'ö' => 'o', 'ğ' => 'g',
// Russian
'А' => 'A', 'Б' => 'B', 'В' => 'V', 'Г' => 'G', 'Д' => 'D', 'Е' => 'E', 'Ё' => 'Yo', 'Ж' => 'Zh',
'З' => 'Z', 'И' => 'I', 'Й' => 'J', 'К' => 'K', 'Л' => 'L', 'М' => 'M', 'Н' => 'N', 'О' => 'O',
'П' => 'P', 'Р' => 'R', 'С' => 'S', 'Т' => 'T', 'У' => 'U', 'Ф' => 'F', 'Х' => 'H', 'Ц' => 'C',
'Ч' => 'Ch', 'Ш' => 'Sh', 'Щ' => 'Sh', 'Ъ' => '', 'Ы' => 'Y', 'Ь' => '', 'Э' => 'E', 'Ю' => 'Yu',
'Я' => 'Ya',
'а' => 'a', 'б' => 'b', 'в' => 'v', 'г' => 'g', 'д' => 'd', 'е' => 'e', 'ё' => 'yo', 'ж' => 'zh',
'з' => 'z', 'и' => 'i', 'й' => 'j', 'к' => 'k', 'л' => 'l', 'м' => 'm', 'н' => 'n', 'о' => 'o',
'п' => 'p', 'р' => 'r', 'с' => 's', 'т' => 't', 'у' => 'u', 'ф' => 'f', 'х' => 'h', 'ц' => 'c',
'ч' => 'ch', 'ш' => 'sh', 'щ' => 'sh', 'ъ' => '', 'ы' => 'y', 'ь' => '', 'э' => 'e', 'ю' => 'yu',
'я' => 'ya',
// Ukrainian
'Є' => 'Ye', 'І' => 'I', 'Ї' => 'Yi', 'Ґ' => 'G',
'є' => 'ye', 'і' => 'i', 'ї' => 'yi', 'ґ' => 'g',
// Czech
'Č' => 'C', 'Ď' => 'D', 'Ě' => 'E', 'Ň' => 'N', 'Ř' => 'R', 'Š' => 'S', 'Ť' => 'T', 'Ů' => 'U',
'Ž' => 'Z',
'č' => 'c', 'ď' => 'd', 'ě' => 'e', 'ň' => 'n', 'ř' => 'r', 'š' => 's', 'ť' => 't', 'ů' => 'u',
'ž' => 'z',
// Polish
'Ą' => 'A', 'Ć' => 'C', 'Ę' => 'e', 'Ł' => 'L', 'Ń' => 'N', 'Ó' => 'o', 'Ś' => 'S', 'Ź' => 'Z',
'Ż' => 'Z',
'ą' => 'a', 'ć' => 'c', 'ę' => 'e', 'ł' => 'l', 'ń' => 'n', 'ó' => 'o', 'ś' => 's', 'ź' => 'z',
'ż' => 'z',
// Latvian
'Ā' => 'A', 'Č' => 'C', 'Ē' => 'E', 'Ģ' => 'G', 'Ī' => 'i', 'Ķ' => 'k', 'Ļ' => 'L', 'Ņ' => 'N',
'Š' => 'S', 'Ū' => 'u', 'Ž' => 'Z',
'ā' => 'a', 'č' => 'c', 'ē' => 'e', 'ģ' => 'g', 'ī' => 'i', 'ķ' => 'k', 'ļ' => 'l', 'ņ' => 'n',
'š' => 's', 'ū' => 'u', 'ž' => 'z'
);
$str = preg_replace(array_keys($options['replacements']), $options['replacements'], $str);
if ($options['transliterate']) {
$str = str_replace(array_keys($char_map), $char_map, $str);
}
$str = preg_replace('/[^\p{L}\p{Nd}]+/u', $options['delimiter'], $str);
$str = preg_replace('/(' . preg_quote($options['delimiter'], '/') . '){2,}/', '$1', $str);
$str = mb_substr($str, 0, ($options['limit'] ? $options['limit'] : mb_strlen($str, 'UTF-8')), 'UTF-8');
$str = trim($str, $options['delimiter']);
return $options['lowercase'] ? mb_strtolower($str, 'UTF-8') : $str;
}
}
if (!function_exists("ntv_spor")) {
function ntv_spor()
{
$content = '{"coverageId":"ab1450da-9d77-479c-8ab7-f46b2533b2dc","options":{"lang":"tr-TR","betCode":true,"sportId":1,"origin":"ntvspor.net","timeZone":3}}';
$curl = curl_init("https://brdg-d2d66d21-7796-4d6c-a6d5-7fee80f9d915.azureedge.net/livescore/matchlist");
curl_setopt($curl, CURLOPT_TIMEOUT, "3");
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HEADER, 0);
curl_setopt($curl, CURLOPT_ENCODING, "UTF-8");
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_POSTFIELDS, $content);
curl_setopt($curl, CURLOPT_HTTPHEADER, explode("\n", "Host: brdg-d2d66d21-7796-4d6c-a6d5-7fee80f9d915.azureedge.net
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:70.0) Gecko/20100101 Firefox/70.0
Accept: */*
Accept-Language: tr-TR,tr;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate, br
Referer: https://www.ntvspor.net/canli-skorlar
Content-Type: application/json
Origin: https://www.ntvspor.net
Content-Length: 143
Connection: keep-alive
Pragma: no-cache
Cache-Control: no-cache
TE: Trailers"));
$curlResult = curl_exec($curl);
curl_close($curl);
return $curlResult;
}
}
if (!function_exists("get_sahadan_data")) :
function get_sahadan_data($url)
{
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_TIMEOUT, "3");
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HEADER, 0);
curl_setopt($curl, CURLOPT_ENCODING, "UTF-8");
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl, CURLOPT_HTTPHEADER, explode("\n", "Host: api.performfeeds.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:70.0) Gecko/20100101 Firefox/70.0
Accept: */*
Accept-Language: tr-TR,tr;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Referer: https://www.sahadan.com/mac/lamia-vs-panaitolikos/karsilastirma/edzbuv68669fiar77pbcyx3l6
Pragma: no-cache
Cache-Control: no-cache"));
$curlResult = curl_exec($curl);
curl_close($curl);
return $curlResult;
}
endif;
if (!function_exists("misli_curl")) :
function misli_curl($url)
{
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_TIMEOUT, "3");
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HEADER, 0);
curl_setopt($curl, CURLOPT_ENCODING, "UTF-8");
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl, CURLOPT_HTTPHEADER, explode("\n", "Host: www.misli.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:70.0) Gecko/20100101 Firefox/70.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: tr-TR,tr;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Cookie: _pk_id.718.d9b3=e7baf62bda74dd1d.1569941775.3.1570876473.1570875458.; _fbp=fb.1.1569941776564.751091627; _ga=GA1.2.225670636.1569941778; ASP.NET_SessionId=rcilxltbll5ctypfs5laziky; BIGipServerML-Web-Prod=369164298.20480.0000; VLCV1OK=1; OfferMiner_ID=NKFBPGHEJXXLQHFD20191012014013; _gid=GA1.2.1858073997.1570833614; _pk_ses.718.d9b3=1; VL_CM_0=%7B%22Items%22%3A%5B%7B%22K%22%3A%22VL_LastPageViewTime%22%2C%22V%22%3A%222019-10-12%252013%253A34%253A32%22%2C%22E%22%3A%222021-10-01%2013%3A34%3A32%22%7D%2C%7B%22K%22%3A%22VL_TotalDuration%22%2C%22V%22%3A%221069%22%2C%22E%22%3A%222021-10-01%2013%3A34%3A32%22%7D%2C%7B%22K%22%3A%22VL_FirstVisitTime%22%2C%22V%22%3A%222019-10-12%252001%253A40%253A13%22%2C%22E%22%3A%222021-10-01%2001%3A40%3A13%22%7D%2C%7B%22K%22%3A%22VL_TotalPV%22%2C%22V%22%3A%2213%22%2C%22E%22%3A%222021-10-01%2013%3A34%3A32%22%7D%2C%7B%22K%22%3A%22VL_TotalVisit%22%2C%22V%22%3A%222%22%2C%22E%22%3A%222021-10-01%2013%3A17%3A37%22%7D%2C%7B%22K%22%3A%22OfferMiner_ID%22%2C%22V%22%3A%22NKFBPGHEJXXLQHFD20191012014013%22%2C%22E%22%3A%222021-10-01%2001%3A40%3A13%22%7D%2C%7B%22K%22%3A%22OM_INW%22%2C%22V%22%3A%221%22%2C%22E%22%3A%222021-10-01%2001%3A40%3A13%22%7D%2C%7B%22K%22%3A%22VLTVisitorC%22%2C%22V%22%3A%22%257B%2522data%2522%253A%257B%257D%257D%22%2C%22E%22%3A%222021-10-01%2013%3A34%3A33%22%7D%2C%7B%22K%22%3A%22OM_rDomain%22%2C%22V%22%3A%22https%253A%252F%252Fwww.misli.com%252F%22%2C%22E%22%3A%222021-10-01%2013%3A25%3A41%22%7D%2C%7B%22K%22%3A%22VL_LastPVTimeForTD%22%2C%22V%22%3A%222019-10-12%252013%253A34%253A32%22%2C%22E%22%3A%222019-10-12%2014%3A04%3A32%22%7D%2C%7B%22K%22%3A%22VL_PVCountInVisit%22%2C%22V%22%3A%2210%22%2C%22E%22%3A%222019-10-12%2014%3A04%3A32%22%7D%2C%7B%22K%22%3A%22VL_VisitStartTime%22%2C%22V%22%3A%222019-10-12%252013%253A17%253A37%22%2C%22E%22%3A%222019-10-12%2013%3A47%3A37%22%7D%2C%7B%22K%22%3A%22VL_LastVisitTime%22%2C%22V%22%3A%222019-10-12%252013%253A17%253A37%22%2C%22E%22%3A%222021-10-01%2013%3A17%3A37%22%7D%2C%7B%22K%22%3A%22VL_LastVisitResumes%22%2C%22V%22%3A%221%22%2C%22E%22%3A%222019-10-12%2013%3A47%3A37%22%7D%5D%7D
Upgrade-Insecure-Requests: 1
Pragma: no-cache
Cache-Control: no-cache"));
$curlResult = curl_exec($curl);
curl_close($curl);
return str_replace(array("\n", "\t", "\r"), '', $curlResult);
}
endif;
if (!function_exists("misli_popular")) {
function misli_popular($url)
{
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_TIMEOUT, "3");
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HEADER, 0);
curl_setopt($curl, CURLOPT_ENCODING, "UTF-8");
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl, CURLOPT_HTTPHEADER, explode("\n", "Host: apivx.misli.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:80.0) Gecko/20100101 Firefox/80.0
Accept: */*
Accept-Language: tr-TR,tr;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate, br
Access-Control-Request-Method: GET
Referer: https://www.misli.com/
Origin: https://www.misli.com
Connection: keep-alive
Pragma: no-cache
Cache-Control: no-cache"));
$curlResult = curl_exec($curl);
curl_close($curl);
return $curlResult;
}
}
if (!function_exists("iddaa_bulten")) :
function iddaa_bulten($type)
{
$curl = curl_init("https://api.iddaa.com.tr/sportsprogram/" . $type);
curl_setopt($curl, CURLOPT_TIMEOUT, "3");
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HEADER, 0);
curl_setopt($curl, CURLOPT_ENCODING, "UTF-8");
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl, CURLOPT_HTTPHEADER, array(
"Host: api.iddaa.com.tr",
"User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:70.0) Gecko/20100101 Firefox/70.0",
"Accept: application/json, text/plain, */*",
"Accept-Language: tr-TR,tr;q=0.8,en-US;q=0.5,en;q=0.3",
"Accept-Encoding: gzip, deflate, br",
"Content-Type: application/json;charset=utf-8"
));
curl_setopt($curl, CURLOPT_POST, 1);
if ($type == 1) {
curl_setopt($curl, CURLOPT_POSTFIELDS, '["1_1","2_87","2_7_2.5","2_101_2.5","2_89"]');
} elseif ($type == 2) {
curl_setopt($curl, CURLOPT_POSTFIELDS, '["1_2","2_114","2_622","2_107","2_621"]');
}
$curlResult = curl_exec($curl);
curl_close($curl);
return $curlResult;
}
endif;
if (!function_exists("iddaa_market")) :
function iddaa_market($sport_code, $code)
{
$curl = curl_init("https://api.iddaa.com.tr/sportsprogram/markets/$sport_code/" . $code);
curl_setopt($curl, CURLOPT_TIMEOUT, "3");
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HEADER, 0);
curl_setopt($curl, CURLOPT_ENCODING, "UTF-8");
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
$curlResult = curl_exec($curl);
curl_close($curl);
return json_decode($curlResult, true);
}
endif;
if (!function_exists("sahadan")) :
function sahadan($type = "all", $date)
{
date_default_timezone_set('Europe/Istanbul');
switch ($type) {
case 'football':
$url_code = "https://www.sahadan.com/perform/p0/ajax/components/competition/livescores/json?sports[]=Soccer&matchDate=" . $date;
break;
case 'basketball':
$url_code = "https://www.sahadan.com/perform/p0/ajax/components/competition/livescores/json?sports[]=Basketball&matchDate=" . $date;
break;
case 'all':
$url_code = "https://www.sahadan.com/perform/p0/ajax/components/competition/livescores/json?sports[]=Soccer&sports[]=Basketball&matchDate=" . $date;
break;
default:
$url_code = "https://www.sahadan.com/perform/p0/ajax/components/competition/livescores/json?sports[]=Soccer&sports[]=Basketball&matchDate=" . $date;
break;
}
$curl = curl_init($url_code);
curl_setopt($curl, CURLOPT_TIMEOUT, "3");
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HEADER, 0);
curl_setopt($curl, CURLOPT_ENCODING, "UTF-8");
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
$curlResult = curl_exec($curl);
curl_close($curl);
return json_decode($curlResult, true);
}
endif;
if (!function_exists("sahadan_update")) :
function sahadan_update($type = "all", $date)
{
date_default_timezone_set('Europe/Istanbul');
switch ($type) {
case 'football':
$url_code = "https://www.sahadan.com/perform/p0/ajax/components/competition/livescores/json-update?sports[]=Soccer&matchDate=" . $date;
break;
case 'basketball':
$url_code = "https://www.sahadan.com/perform/p0/ajax/components/competition/livescores/json-update?sports[]=Basketball&matchDate=" . $date;
break;
case 'all':
$url_code = "https://www.sahadan.com/perform/p0/ajax/components/competition/livescores/json-update?sports[]=Soccer&sports[]=Basketball&matchDate=" . $date;
break;
default:
$url_code = "https://www.sahadan.com/perform/p0/ajax/components/competition/livescores/json-update?sports[]=Soccer&sports[]=Basketball&matchDate=" . $date;
break;
}
$curl = curl_init($url_code);
curl_setopt($curl, CURLOPT_TIMEOUT, "3");
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HEADER, 0);
curl_setopt($curl, CURLOPT_ENCODING, "UTF-8");
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
$curlResult = curl_exec($curl);
curl_close($curl);
return json_decode($curlResult, true);
}
endif;
if (!function_exists("sahadan_date")) :
function sahadan_date($tarih, $type = "all")
{
date_default_timezone_set('Europe/Istanbul');
switch ($type) {
case 'football':
$url_code = "https://www.sahadan.com/perform/p0/ajax/components/competition/livescores/json?sports[]=Soccer&matchDate=" . $tarih;
break;
case 'basketball':
$url_code = "https://www.sahadan.com/perform/p0/ajax/components/competition/livescores/json?sports[]=Basketball&matchDate=" . $tarih;
break;
case 'all':
$url_code = "https://www.sahadan.com/perform/p0/ajax/components/competition/livescores/json?sports[]=Soccer&sports[]=Basketball&matchDate=" . $tarih;
break;
default:
$url_code = "https://www.sahadan.com/perform/p0/ajax/components/competition/livescores/json?sports[]=Soccer&sports[]=Basketball&matchDate=" . $tarih;
break;
}
$curl = curl_init($url_code);
curl_setopt($curl, CURLOPT_TIMEOUT, "3");
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HEADER, 0);
curl_setopt($curl, CURLOPT_ENCODING, "UTF-8");
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
$curlResult = curl_exec($curl);
curl_close($curl);
return json_decode($curlResult, true);
}
endif;
if (!function_exists("sahadan_lig")) :
function sahadan_lig()
{
$curl = curl_init("https://www.sahadan.com/perform/p0/ajax/components/competition-list?ajaxViewName=competitions&type=TYPE_TOP&countryId%5B%5D=6kd6webenogylfgwt2aa9l6vx&groupsLoadingMode=sync");
curl_setopt($curl, CURLOPT_TIMEOUT, "3");
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HEADER, 0);
curl_setopt($curl, CURLOPT_ENCODING, "UTF-8");
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
$curlResult = curl_exec($curl);
curl_close($curl);
$json_return = json_decode($curlResult, true)['data']['html'];
preg_match_all('@
(.*?) (.*?) @si', $json_return, $lig_list);
return $lig_list;
}
endif;
if (!function_exists("sahadan_puan_durumu")) :
function sahadan_puan_durumu($url)
{
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_TIMEOUT, "3");
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HEADER, 0);
curl_setopt($curl, CURLOPT_ENCODING, "UTF-8");
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
$curlResult = curl_exec($curl);
curl_close($curl);
return $curlResult;
}
endif;
if (!function_exists("sahadan_fikstur_lig")) {
function sahadan_fikstur_lig()
{
$curl = curl_init("https://www.sahadan.com/perform/p0/ajax/components/competition-list?ajaxViewName=competitions&type=TYPE_TOP&countryId%5B%5D=6kd6webenogylfgwt2aa9l6vx&groupsLoadingMode=sync");
curl_setopt($curl, CURLOPT_TIMEOUT, "3");
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HEADER, 0);
curl_setopt($curl, CURLOPT_ENCODING, "UTF-8");
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
$curlResult = curl_exec($curl);
curl_close($curl);
return json_decode($curlResult, true)['data']['html'];
}
}
if (!function_exists("zamantr")) :
function zamantr($girdi)
{
$cikti = date("l d F", $girdi);
$aylarIng = array(
"January", "February", "March", "April", "May", "June",
"July", "August", "September", "October", "November", "December"
);
$gunlerIng = array("Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday");
$aylar = array(
"Ocak", "Şubat", "Mart", "Nisan", "Mayıs", "Haziran",
"Temmuz", "Ağustos", "Eylül", "Ekim", "Kasım", "Aralık"
);
$gunler = array("Pazartesi", "Salı", "Çarşamba", "Perşembe", "Cuma", "Cumartesi", "Pazar");
$cikti = str_replace($aylarIng, $aylar, $cikti);
$cikti = str_replace($gunlerIng, $gunler, $cikti);
return $cikti;
}
endif;
if (!function_exists("misli_bulten")) {
function misli_bulten($bet_type = "SOCCER")
{
$curl = curl_init("https://apivx.misli.com/api/web/v1/sportsbook/event/0?sportType=" . $bet_type . "&betType=PRE_EVENT");
curl_setopt($curl, CURLOPT_TIMEOUT, "3");
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HEADER, 0);
curl_setopt($curl, CURLOPT_ENCODING, "UTF-8");
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl, CURLOPT_HTTPHEADER, explode("\n", "Host: apivx.misli.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:80.0) Gecko/20100101 Firefox/80.0
Accept: text/plain, */*
Accept-Language: tr-TR,tr;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate, br
Origin: https://www.misli.com
Connection: keep-alive
Referer: https://www.misli.com/iddaa/futbol
Pragma: no-cache
Cache-Control: no-cache"));
$curlResult = curl_exec($curl);
curl_close($curl);
return $curlResult;
}
}
if (!function_exists("wp_is_mobile")) :
function wp_is_mobile()
{
if (empty($_SERVER['HTTP_USER_AGENT'])) {
$is_mobile = false;
} elseif (
strpos($_SERVER['HTTP_USER_AGENT'], 'Mobile') !== false // Many mobile devices (all iPhone, iPad, etc.)
|| strpos($_SERVER['HTTP_USER_AGENT'], 'Android') !== false
|| strpos($_SERVER['HTTP_USER_AGENT'], 'Silk/') !== false
|| strpos($_SERVER['HTTP_USER_AGENT'], 'Kindle') !== false
|| strpos($_SERVER['HTTP_USER_AGENT'], 'BlackBerry') !== false
|| strpos($_SERVER['HTTP_USER_AGENT'], 'Opera Mini') !== false
|| strpos($_SERVER['HTTP_USER_AGENT'], 'Opera Mobi') !== false
) {
$is_mobile = true;
} else {
$is_mobile = false;
}
return $is_mobile;
}
endif;
if (!function_exists("misli_market")) :
function misli_market($code)
{
$curl = curl_init("https://apivx.misli.com/api/web/v1/sportsbook/event/$code/single");
curl_setopt($curl, CURLOPT_TIMEOUT, "3");
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HEADER, 0);
curl_setopt($curl, CURLOPT_ENCODING, "UTF-8");
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl, CURLOPT_HTTPHEADER, explode("\n", "Host: apivx.misli.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:80.0) Gecko/20100101 Firefox/80.0
Accept: text/plain, */*
Accept-Language: tr-TR,tr;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate, br
Origin: https://www.misli.com
Connection: keep-alive
Referer: https://www.misli.com/iddaa/futbol
Pragma: no-cache
Cache-Control: no-cache"));
$curlResult = curl_exec($curl);
curl_close($curl);
return $curlResult;
}
endif;
if (!function_exists("misli_canli")) :
function misli_canli()
{
$content = '{"betTypeId":"45"}';
$curl = curl_init("https://www.misli.com/Bet/GetLiveBetLeft");
curl_setopt($curl, CURLOPT_TIMEOUT, "3");
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HEADER, 0);
curl_setopt($curl, CURLOPT_ENCODING, "UTF-8");
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_POSTFIELDS, $content);
curl_setopt($curl, CURLOPT_HTTPHEADER, explode("\n", "Host: www.misli.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:70.0) Gecko/20100101 Firefox/70.0
Accept: application/json, text/plain, */*
Accept-Language: tr-TR,tr;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate, br
Content-Type: application/json;charset=utf-8
X-Requested-With: XMLHttpRequest
Content-Length: " . strlen($content) . "
Origin: https://www.misli.com
Connection: keep-alive
Referer: https://www.misli.com/canli-iddaa/futbol
Cookie: ASP.NET_SessionId=r5jbvnpivmvkekqmmn4agf3v; BIGipServerML-Web-Prod=268501002.20480.0000
Pragma: no-cache
Cache-Control: no-cache"));
$curlResult = curl_exec($curl);
curl_close($curl);
return $curlResult;
}
endif;
if (!function_exists('mbs_to_string')) :
function mbs_to_string($int)
{
$search_int = array(1, 2, 3, 4, 5, 6);
$find_str = array('bir', 'iki', 'uc', 'dort', 'bes', 'alti');
return str_replace($search_int, $find_str, $int);
}
endif;
if (!function_exists('cs_status')) :
function cs_status($str)
{
$search = array(1, 2);
$find = array('up', 'down');
return str_replace($search, $find, $str);
}
endif;
if (!function_exists("misli_live_left")) {
function misli_live_left($page, $bet_type = 45)
{
$content = '{"PageIndex":' . $page . ',"PageSize":50,"BetTypeId":"45","EventType":null,"MBC":null,"IsTV":null,"IsLiveEvent":null,"IsLiveStream":null,"NoData":false}';
$curl = curl_init("https://www.misli.com/Bet/GetBetListLive");
curl_setopt($curl, CURLOPT_TIMEOUT, "3");
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HEADER, 0);
curl_setopt($curl, CURLOPT_ENCODING, "UTF-8");
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_POSTFIELDS, $content);
curl_setopt($curl, CURLOPT_HTTPHEADER, explode("\n", "Host: www.misli.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:70.0) Gecko/20100101 Firefox/70.0
Accept: application/json, text/plain, */*
Accept-Language: tr-TR,tr;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate, br
Content-Type: application/json;charset=utf-8
X-Requested-With: XMLHttpRequest
Content-Length: " . strlen($content) . "
Origin: https://www.misli.com
Connection: keep-alive
Referer: https://www.misli.com/iddaa-futbol
Pragma: no-cache
Cache-Control: no-cache"));
$curlResult = curl_exec($curl);
curl_close($curl);
return $curlResult;
}
}
if (!function_exists("misli_curl")) :
function misli_curl($url)
{
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_TIMEOUT, "3");
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HEADER, 0);
curl_setopt($curl, CURLOPT_ENCODING, "UTF-8");
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl, CURLOPT_HTTPHEADER, explode("\n", "Host: www.misli.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:70.0) Gecko/20100101 Firefox/70.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: tr-TR,tr;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Cookie: _pk_id.718.d9b3=e7baf62bda74dd1d.1569941775.3.1570876473.1570875458.; _fbp=fb.1.1569941776564.751091627; _ga=GA1.2.225670636.1569941778; ASP.NET_SessionId=rcilxltbll5ctypfs5laziky; BIGipServerML-Web-Prod=369164298.20480.0000; VLCV1OK=1; OfferMiner_ID=NKFBPGHEJXXLQHFD20191012014013; _gid=GA1.2.1858073997.1570833614; _pk_ses.718.d9b3=1; VL_CM_0=%7B%22Items%22%3A%5B%7B%22K%22%3A%22VL_LastPageViewTime%22%2C%22V%22%3A%222019-10-12%252013%253A34%253A32%22%2C%22E%22%3A%222021-10-01%2013%3A34%3A32%22%7D%2C%7B%22K%22%3A%22VL_TotalDuration%22%2C%22V%22%3A%221069%22%2C%22E%22%3A%222021-10-01%2013%3A34%3A32%22%7D%2C%7B%22K%22%3A%22VL_FirstVisitTime%22%2C%22V%22%3A%222019-10-12%252001%253A40%253A13%22%2C%22E%22%3A%222021-10-01%2001%3A40%3A13%22%7D%2C%7B%22K%22%3A%22VL_TotalPV%22%2C%22V%22%3A%2213%22%2C%22E%22%3A%222021-10-01%2013%3A34%3A32%22%7D%2C%7B%22K%22%3A%22VL_TotalVisit%22%2C%22V%22%3A%222%22%2C%22E%22%3A%222021-10-01%2013%3A17%3A37%22%7D%2C%7B%22K%22%3A%22OfferMiner_ID%22%2C%22V%22%3A%22NKFBPGHEJXXLQHFD20191012014013%22%2C%22E%22%3A%222021-10-01%2001%3A40%3A13%22%7D%2C%7B%22K%22%3A%22OM_INW%22%2C%22V%22%3A%221%22%2C%22E%22%3A%222021-10-01%2001%3A40%3A13%22%7D%2C%7B%22K%22%3A%22VLTVisitorC%22%2C%22V%22%3A%22%257B%2522data%2522%253A%257B%257D%257D%22%2C%22E%22%3A%222021-10-01%2013%3A34%3A33%22%7D%2C%7B%22K%22%3A%22OM_rDomain%22%2C%22V%22%3A%22https%253A%252F%252Fwww.misli.com%252F%22%2C%22E%22%3A%222021-10-01%2013%3A25%3A41%22%7D%2C%7B%22K%22%3A%22VL_LastPVTimeForTD%22%2C%22V%22%3A%222019-10-12%252013%253A34%253A32%22%2C%22E%22%3A%222019-10-12%2014%3A04%3A32%22%7D%2C%7B%22K%22%3A%22VL_PVCountInVisit%22%2C%22V%22%3A%2210%22%2C%22E%22%3A%222019-10-12%2014%3A04%3A32%22%7D%2C%7B%22K%22%3A%22VL_VisitStartTime%22%2C%22V%22%3A%222019-10-12%252013%253A17%253A37%22%2C%22E%22%3A%222019-10-12%2013%3A47%3A37%22%7D%2C%7B%22K%22%3A%22VL_LastVisitTime%22%2C%22V%22%3A%222019-10-12%252013%253A17%253A37%22%2C%22E%22%3A%222021-10-01%2013%3A17%3A37%22%7D%2C%7B%22K%22%3A%22VL_LastVisitResumes%22%2C%22V%22%3A%221%22%2C%22E%22%3A%222019-10-12%2013%3A47%3A37%22%7D%5D%7D
Upgrade-Insecure-Requests: 1
Pragma: no-cache
Cache-Control: no-cache"));
$curlResult = curl_exec($curl);
curl_close($curl);
return str_replace(array("\n", "\t", "\r"), null, $curlResult);
}
endif;
if (!function_exists('sehir_replace')) {
function sehir_replace($source)
{
$from = array(
'Adiyaman',
'Agri',
'Aydin',
'Balikesir',
'Bilecik',
'Canakkale',
'Cankırı',
'Corum',
'Diyarbakir',
'Elazig',
'Eskisehir',
'Gümüshane',
'İsparta',
'Kirklareli',
'Kirsehir',
'Kutahya',
'Kahramanmaras',
'Mugla',
'Mus',
'Nevsehir',
'Nigde',
'Tekirdag',
'Sanliurfa',
'Usak',
'Kirikkale',
'Sirnak',
'Bartin',
'İgdir',
'Karabuk',
);
$to = array(
'Adıyaman',
'Ağrı',
'Aydın',
'Balıkesir',
'Bilecik',
'Çanakkale',
'Çankırı',
'Çorum',
'Diyarbakır',
'Elazığ',
'Eskişehir',
'Gümüşhane',
'Isparta',
'Kırklareli',
'Kırşehir',
'Kütahya',
'Kahramanmaraş',
'Muğla',
'Muş',
'Nevşehir',
'Niğde',
'Tekirdağ',
'Şanlıurfa',
'Uşak',
'Kırıkkale',
'Şırnak',
'Bartın',
'Iğdır',
'Karabük',
);
return str_replace($from, $to, $source);
}
}
if (!function_exists("sehir_array")) {
function sehir_array()
{
$list = array(
1 => 'Adana',
2 => 'Adıyaman',
3 => 'Afyonkarahisar',
4 => 'Ağrı',
5 => 'Amasya',
6 => 'Ankara',
7 => 'Antalya',
8 => 'Artvin',
9 => 'Aydın',
10 => 'Balıkesir',
11 => 'Bilecik',
12 => 'Bingöl',
13 => 'Bitlis',
14 => 'Bolu',
15 => 'Burdur',
16 => 'Bursa',
17 => 'Çanakkale',
18 => 'Çankırı',
19 => 'Çorum',
20 => 'Denizli',
21 => 'Diyarbakır',
22 => 'Edirne',
23 => 'Elazığ',
24 => 'Erzincan',
25 => 'Erzurum',
26 => 'Eskişehir',
27 => 'Gaziantep',
28 => 'Giresun',
29 => 'Gümüşhane',
30 => 'Hakkâri',
31 => 'Hatay',
32 => 'Isparta',
33 => 'Mersin',
34 => 'İstanbul',
35 => 'İzmir',
36 => 'Kars',
37 => 'Kastamonu',
38 => 'Kayseri',
39 => 'Kırklareli',
40 => 'Kırşehir',
41 => 'Kocaeli',
42 => 'Konya',
43 => 'Kütahya',
44 => 'Malatya',
45 => 'Manisa',
46 => 'Kahramanmaraş',
47 => 'Mardin',
48 => 'Muğla',
49 => 'Muş',
50 => 'Nevşehir',
51 => 'Niğde',
52 => 'Ordu',
53 => 'Rize',
54 => 'Sakarya',
55 => 'Samsun',
56 => 'Siirt',
57 => 'Sinop',
58 => 'Sivas',
59 => 'Tekirdağ',
60 => 'Tokat',
61 => 'Trabzon',
62 => 'Tunceli',
63 => 'Şanlıurfa',
64 => 'Uşak',
65 => 'Van',
66 => 'Yozgat',
67 => 'Zonguldak',
68 => 'Aksaray',
69 => 'Bayburt',
70 => 'Karaman',
71 => 'Kırıkkale',
72 => 'Batman',
73 => 'Şırnak',
74 => 'Bartın',
75 => 'Ardahan',
76 => 'Iğdır',
77 => 'Yalova',
78 => 'Karabük',
79 => 'Kilis',
80 => 'Osmaniye',
81 => 'Düzce',
);
return $list;
}
}
if (!function_exists("plaka_to_sehir")) {
function plaka_to_sehir($id)
{
$nameList = array(
1 => 'Adana',
2 => 'Adıyaman',
3 => 'Afyonkarahisar',
4 => 'Ağrı',
5 => 'Amasya',
6 => 'Ankara',
7 => 'Antalya',
8 => 'Artvin',
9 => 'Aydın',
10 => 'Balıkesir',
11 => 'Bilecik',
12 => 'Bingöl',
13 => 'Bitlis',
14 => 'Bolu',
15 => 'Burdur',
16 => 'Bursa',
17 => 'Çanakkale',
18 => 'Çankırı',
19 => 'Çorum',
20 => 'Denizli',
21 => 'Diyarbakır',
22 => 'Edirne',
23 => 'Elazığ',
24 => 'Erzincan',
25 => 'Erzurum',
26 => 'Eskişehir',
27 => 'Gaziantep',
28 => 'Giresun',
29 => 'Gümüşhane',
30 => 'Hakkâri',
31 => 'Hatay',
32 => 'Isparta',
33 => 'Mersin',
34 => 'İstanbul',
35 => 'İzmir',
36 => 'Kars',
37 => 'Kastamonu',
38 => 'Kayseri',
39 => 'Kırklareli',
40 => 'Kırşehir',
41 => 'Kocaeli',
42 => 'Konya',
43 => 'Kütahya',
44 => 'Malatya',
45 => 'Manisa',
46 => 'Kahramanmaraş',
47 => 'Mardin',
48 => 'Muğla',
49 => 'Muş',
50 => 'Nevşehir',
51 => 'Niğde',
52 => 'Ordu',
53 => 'Rize',
54 => 'Sakarya',
55 => 'Samsun',
56 => 'Siirt',
57 => 'Sinop',
58 => 'Sivas',
59 => 'Tekirdağ',
60 => 'Tokat',
61 => 'Trabzon',
62 => 'Tunceli',
63 => 'Şanlıurfa',
64 => 'Uşak',
65 => 'Van',
66 => 'Yozgat',
67 => 'Zonguldak',
68 => 'Aksaray',
69 => 'Bayburt',
70 => 'Karaman',
71 => 'Kırıkkale',
72 => 'Batman',
73 => 'Şırnak',
74 => 'Bartın',
75 => 'Ardahan',
76 => 'Iğdır',
77 => 'Yalova',
78 => 'Karabük',
79 => 'Kilis',
80 => 'Osmaniye',
81 => 'Düzce',
82 => 'Lefkoşa',
83 => 'Bakü',
84 => 'Amsterdam',
);
$nameList = array_reverse($nameList, true);
foreach ($nameList as $key_sehir => $value_sehir) {
$plaka_id[$key_sehir] = $key_sehir;
$sehir_name[$key_sehir] = $value_sehir;
}
return str_replace($plaka_id, $sehir_name, $id);
}
}
if (!function_exists("sortAssociativeArrayByKey")) :
function sortAssociativeArrayByKey($array, $key, $direction)
{
switch ($direction) {
case "ASC":
usort($array, function ($first, $second) use ($key) {
return $first[$key] <=> $second[$key];
});
break;
case "DESC":
usort($array, function ($first, $second) use ($key) {
return $second[$key] <=> $first[$key];
});
break;
default:
break;
}
return $array;
}
endif;
if (!function_exists("get_url_doviz_auth")) {
function get_url_doviz_auth($url)
{
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_TIMEOUT, "3");
curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.122 Safari/534.30");
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HEADER, 1);
curl_setopt($curl, CURLOPT_ENCODING, "UTF-8");
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
$curlResult = curl_exec($curl);
curl_close($curl);
return str_replace(array("\n", "\t", "\r"), null, $curlResult);
}
}
if (!function_exists("get_url_doviz")) {
function get_url_doviz($url, $auth)
{
preg_match_all('@/coins/(.*?)/daily@si', $url, $coin_name);
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_TIMEOUT, "1");
curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.122 Safari/534.30");
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HEADER, 0);
curl_setopt($curl, CURLOPT_ENCODING, "UTF-8");
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl, CURLOPT_HTTPHEADER, [
'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/117.0',
'Accept: */*',
'Accept-Language: en-US,en;q=0.5',
'X-Requested-With: XMLHttpRequest',
'Authorization: Bearer ' . $auth
]);
$curlResult = curl_exec($curl);
curl_close($curl);
return str_replace(["\n", "\t", "\r"], '', $curlResult);
}
}
if(!function_exists('get_namaz_city')) {
function get_namaz_city($city_id = null) {
$nameListEzan = [
9146 => 'Adana',
9158 => 'Adiyaman',
9167 => 'Afyonkarahi̇sar',
9185 => 'Ağri',
9192 => 'Aksaray',
9198 => 'Amasya',
9205 => 'Ankara',
9222 => 'Antalya',
9238 => 'Ardahan',
9244 => 'Artvi̇n',
9252 => 'Aydin',
9269 => 'Balikesi̇r',
9285 => 'Bartin',
9288 => 'Batman',
9294 => 'Bayburt',
9297 => 'Bi̇leci̇k',
17889 => 'Bi̇ngöl',
9309 => 'Bi̇tli̇s',
9315 => 'Bolu',
9324 => 'Burdur',
9335 => 'Bursa',
9347 => 'Çanakkale',
9357 => 'Çankiri',
9367 => 'Çorum',
19020 => 'Deni̇zli̇',
9397 => 'Di̇yarbakir',
9411 => 'Düzce',
9419 => 'Edi̇rne',
9428 => 'Elaziğ',
9439 => 'Erzi̇ncan',
9448 => 'Erzurum',
9467 => 'Eski̇şehi̇r',
9478 => 'Gazi̇antep',
9486 => 'Gi̇resun',
9501 => 'Gümüşhane',
9506 => 'Hakkari̇',
9510 => 'Hatay',
9521 => 'Iğdir',
9525 => 'Isparta',
9541 => 'İstanbul',
9560 => 'İzmi̇r',
9571 => 'Kahramanmaraş',
9580 => 'Karabük',
9584 => 'Karaman',
9590 => 'Kars',
9597 => 'Kastamonu',
9615 => 'Kayseri̇',
9628 => 'Ki̇li̇s',
9631 => 'Kirikkale',
17903 => 'Kirklareli̇',
20039 => 'Kirşehi̇r',
9648 => 'Kocaeli̇',
9656 => 'Konya',
9682 => 'Kütahya',
9694 => 'Malatya',
9707 => 'Mani̇sa',
9723 => 'Mardi̇n',
9731 => 'Mersi̇n',
9741 => 'Muğla',
9751 => 'Muş',
9757 => 'Nevşehi̇r',
9762 => 'Ni̇ğde',
9768 => 'Ordu',
9784 => 'Osmani̇ye',
9791 => 'Ri̇ze',
9800 => 'Sakarya',
9809 => 'Samsun',
9824 => 'Şanliurfa',
9835 => 'Si̇i̇rt',
9840 => 'Si̇nop',
9849 => 'şirnak',
9856 => 'Si̇vas',
9872 => 'Teki̇rdağ',
9880 => 'Tokat',
9891 => 'Trabzon',
9908 => 'Tunceli̇',
9915 => 'Uşak',
9920 => 'Van',
9931 => 'Yalova',
9949 => 'Yozgat',
9955 => 'Zonguldak',
];
if($city_id) {
return $nameListEzan[$city_id];
}
return $nameListEzan;
}
}