HOME SHELL

NULLCOMMUNITY
 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 / kurumsal40.snrsoft.com.tr / yonetim /

Server Ip : 172.67.216.244




Filename/home/cuneytsener53/kurumsal40.snrsoft.com.tr/yonetim/system.php
Size2.09 kb
Permissionrw-r--r--
Owner
Create time02-Mar-2025 05:46
Last modified27-Dec-2021 14:10
Last accessed04-Apr-2025 12:48
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
<?php
function oturumKontrol($DB,$pgs){
if($_SESSION['email'] && $_SESSION['pass'] )
{
$email = trim($_SESSION['email']);
$pass = trim($_SESSION['pass']);
$login_kontrol = $DB->query("SELECT * FROM yonetim WHERE email = '{$email}' and pass = '{$pass}'")->fetch(PDO::FETCH_ASSOC);
if ( $login_kontrol ){
if($pgs == 0)
{
header("Location: index.php");
}

}
else {
if($pgs != 0)
{
header("Location: ozy.php");
exit();
}

}
}
else {
if ($pgs != 0)
{
header("Location: index.php");
exit();
}


}
}

function seo($s)
{
$find = array('Ç', 'Ş', 'Ğ', 'Ü', 'İ', 'Ö', 'ç', 'ş', 'ğ', 'ü', 'ö', 'ı', '+', '#');
$replace = array('c', 's', 'g', 'u', 'i', 'o', 'c', 's', 'g', 'u', 'o', 'i', 'plus', 'sharp');
$s = strtolower(str_replace($find, $replace, $s));
$s = preg_replace("@[^A-Za-z0-9\-_\.\+]@i", ' ', $s);
$s = trim(preg_replace('/\s+/', ' ', $s));
$s = str_replace(' ', '-', $s);

return $s;
}
$ayar = $DB->query("select * from ayarlar where ayar_id=1")->fetch(PDO::FETCH_ASSOC);
$menuler = $DB->query("select * from menuler where id=1")->fetch(PDO::FETCH_ASSOC);

function TemizVeri($mVar){
if(is_array($mVar)){
foreach($mVar as $gVal => $gVar){
if(!is_array($gVar)){
$mVar[$gVal] = htmlspecialchars(strip_tags(urldecode(addslashes(stripslashes(stripslashes(trim(htmlspecialchars_decode($gVar)))))))); // -> Dizi olmadığını fark edip temizledik.
}else{
$mVar[$gVal] = TemizVeri($gVar);
}
}
}else{
$mVar = htmlspecialchars(strip_tags(urldecode(addslashes(stripslashes(stripslashes(trim(htmlspecialchars_decode($mVar)))))))); // -> Dizi olmadığını fark edip temizledik.
}
return $mVar;

}

function ipAl()
{
if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
$ip = $_SERVER['HTTP_CLIENT_IP'];
} elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
$ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
} else {
$ip = $_SERVER['REMOTE_ADDR'];
}
return $ip;
}



?>