<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<?php
### ERROR HANDLING ###

function warnError($errno, $errstr, $errfile, $errline)
{
  echo "<br><p style='padding:0px;margin:0px;background-color:white;color:black;'><b style='color:red;'>Error:</b> [$errno] $errstr <br> in file <b style='color:blue'>$errfile</b> line <b style='color:red'>$errline</b></p>";
}
set_error_handler("warnError");

if (!$_SERVER['DOCUMENT_ROOT']) {
  $_SERVER['DOCUMENT_ROOT'] = '/weblink';
}
# TODO separate file
?>

<head>
  <!-- Meta Content -->
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta name="description" content="SSA VPN, fatih meb interneti için VPN çözümü">
  <meta name="keywords" content="SSA,SSA VPN,vpn,f@tih,fatih">
  <meta name="author" content="Aliberk Sandıkçı">

  <!-- CSS Files -->
  <link rel="stylesheet" type="text/css" href="./assets/css/main.css">

  

<title>
    SSA VPN
  </title>
  <link rel="shortcut icon" href="assets/iflpanel/ssavpn.svg" type="image/x-icon">
</head>

<style>
  .inner_button_lay {
    border: 1px white solid;
    border-radius: 5px;
    padding: 0.7rem;
    background-color: #10161d;
  }

  .p_inb {
    margin-bottom: 2rem;
  }
</style>

<body>

  <header>
    <a href="/iflpanel/ssavpn/" id="hlogo" class="tmpinfo" style="margin: auto;"><img src="assets/iflpanel/ssavpn.svg"></a>
    <!-- <div class="tmpinfo">SSA VPN</div> -->
  </header>

  <div class="main-scrollable">
    <article class="plain" style="text-align:center;align-items:center;">


      <h1 class="glow">SSA VPN </h1>
      <p style="font-size:14px;">Şifreleme sayesinde Gelişmiş Güvenlik ve Gizlilik
        <br>Yüksek Hız ve Düşük Gecikme (50Mbit/s 50ms)
        <br><b>Fatih/MEB interneti ile uyumlu!</b>
      </p><br>
      <hr style="width: 100%;margin-bottom:1rem;">
      <div class="links">

        <p class="p_inb"><a class="button inner_button_lay" href="./apk/"><span>Android Uygulamasını (apk) İndir</span></a></p>
        <p class="p_inb"><a class="button inner_button_lay" href="./ssa-sertifika.pem"><span>SSA Sertifika</span></a></p>
        <p class="p_inb"><a class="button inner_button_lay" href="./kurulum/"><span>NASIL KURULUR</span></a></p>
        <p class="p_inb"><a class="button inner_button_lay" href="./odeme/"><span>ÖDEME BİLGİLERİ</span></a></p>
        <p class="p_inb"><a class="button inner_button_lay" href="./tos.html"><span>Kullanıcı Sözleşmesi</span></a></p>
        <p class="p_inb"><a class="button inner_button_lay" href="./privacy.html"><span>Gizlilik Politikası</span></a></p>
      </div>
    </article>

    <footer>
      <div class="tmpinfo">2023 &#x1f12f; Aliberk Sandıkçı</div>
    </footer>
  </div>

  <?php
  $dir = new DirectoryIterator($_SERVER['DOCUMENT_ROOT'] . "/assets/js");
  foreach ($dir as $file) {
    if ((!$file->isDot()) && str_ends_with($file, ".js") && $file != "jquery.js") {
      echo '<script src="/assets/js/' . $file . '"></script>' . PHP_EOL . '  ';
    }
  } ?>
</body>

</html>