LiteSpeed Linux server2.poyrazhosting.com 3.10.0-962.3.2.lve1.5.77.el7.x86_64 #1 SMP Mon Dec 12 07:06:14 EST 2022 x86_64 safemode : OFF MySQL: OFF | Perl: OFF | cURL: ON | WGet: OFF > / home / cuneytsener53 / saglik1.snrsoft.com.tr / includes / | Server Ip : 104.21.78.54 |
Filename | /home/cuneytsener53/saglik1.snrsoft.com.tr/includes/language.php |
Size | 1.16 kb |
Permission | rw-r--r-- |
Owner | |
Create time | 02-Mar-2025 05:46 |
Last modified | 21-Mar-2023 16:16 |
Last accessed | 04-Apr-2025 15:32 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
<?php
# Dil seçimi yapılmışsa
if($_GET['language']) {
# Dil seçimini session'a ata.
$_SESSION['dil'] = $_GET['language'];
# Anasayfa'ya yönlendir.
header("Location:index.php");
}
?>
<?php
$sqldil = $db->prepare("select * from dil order by sira asc limit 1");
$sqldil->execute();
while($dils = $sqldil->fetch(PDO::FETCH_ASSOC)){
?>
<?php
if ($_SESSION['dil'] == "$dils[kisa_ad]") {
$dil = "$dils[kisa_ad]";
}
?>
<?php }?>
<?php
$sqldil2 = $db->prepare("select * from dil order by sira asc limit 1,999");
$sqldil2->execute();
while($dils2 = $sqldil2->fetch(PDO::FETCH_ASSOC)){
?>
<?php
if ($_SESSION['dil'] == "$dils2[kisa_ad]") {
$dil = "$dils2[kisa_ad]";
}
?>
<?php }?>
<?php
if(!$_SESSION["dil"])
{
?>
<?php
$sqldil = $db->prepare("select * from dil where varsayilan='1' order by id asc limit 1");
$sqldil->execute();
$dils = $sqldil->fetch(PDO::FETCH_ASSOC);
?>
<?php
$_SESSION['dil'] = "$dils[kisa_ad]";
$dil = "$dils[kisa_ad]";
?>
<?php
}
# Dil dosyamızı include ediyoruz
include 'includes/lang/'.$dil.'.php';
?>
# Dil seçimi yapılmışsa
if($_GET['language']) {
# Dil seçimini session'a ata.
$_SESSION['dil'] = $_GET['language'];
# Anasayfa'ya yönlendir.
header("Location:index.php");
}
?>
<?php
$sqldil = $db->prepare("select * from dil order by sira asc limit 1");
$sqldil->execute();
while($dils = $sqldil->fetch(PDO::FETCH_ASSOC)){
?>
<?php
if ($_SESSION['dil'] == "$dils[kisa_ad]") {
$dil = "$dils[kisa_ad]";
}
?>
<?php }?>
<?php
$sqldil2 = $db->prepare("select * from dil order by sira asc limit 1,999");
$sqldil2->execute();
while($dils2 = $sqldil2->fetch(PDO::FETCH_ASSOC)){
?>
<?php
if ($_SESSION['dil'] == "$dils2[kisa_ad]") {
$dil = "$dils2[kisa_ad]";
}
?>
<?php }?>
<?php
if(!$_SESSION["dil"])
{
?>
<?php
$sqldil = $db->prepare("select * from dil where varsayilan='1' order by id asc limit 1");
$sqldil->execute();
$dils = $sqldil->fetch(PDO::FETCH_ASSOC);
?>
<?php
$_SESSION['dil'] = "$dils[kisa_ad]";
$dil = "$dils[kisa_ad]";
?>
<?php
}
# Dil dosyamızı include ediyoruz
include 'includes/lang/'.$dil.'.php';
?>