HEX
Server: Apache
System: Linux srv4.garantili.com.tr 4.18.0-477.21.1.lve.1.el8.x86_64 #1 SMP Tue Sep 5 23:08:35 UTC 2023 x86_64
User: yenicep (1023)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //home/yenicep/public_html/stores.php
<?php 

  $iPod = strpos($_SERVER['HTTP_USER_AGENT'],"iPod");
    $iPhone = strpos($_SERVER['HTTP_USER_AGENT'],"iPhone");
    $iPad = strpos($_SERVER['HTTP_USER_AGENT'],"iPad");
    $android = strpos($_SERVER['HTTP_USER_AGENT'],"Android");

    function redirect($url){
      if (!headers_sent()){    
        header('Location: '.$url);
        exit;
      } else {  
        echo '<script type="text/javascript">';
        echo 'window.location.href="'.$url.'";';
        echo '</script>';
        echo '<noscript>';
        echo '<meta http-equiv="refresh" content="0;url='.$url.'" />';
        echo '</noscript>'; exit;
      }
   }

   if($iPad||$iPhone||$iPod){
      $url = "https://apps.apple.com/us/app/yenicep-kasko/id6444737334";
      redirect($url);
   } elseif($android){
      $url = "https://play.google.com/store/apps/details?id=com.ekspar.kasko.yenicep";
      redirect($url);
   } else {
      $url = "https://play.google.com/store/apps/details?id=com.ekspar.kasko.yenicep";
      redirect($url);
   }


?>