<!DOCTYPE html>
<html>
    <head>
         <meta name="description" content="K.K.T.C Çalışma ve Sosyal Güvenlik Bakanlığı Portalı">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, shrink-to-fit=no">
         <!--begin::Web font -->
    <link href="https://online.csgb.gov.ct.tr/fonts/roboto.css" rel="stylesheet" type="text/css">
    <link href="https://online.csgb.gov.ct.tr/fonts/poppins.css" rel="stylesheet" type="text/css">
    <!--end::Web font -->
    <!--begin:: Global Mandatory Vendors -->
    <link href="https://online.csgb.gov.ct.tr/vendors/perfect-scrollbar/css/perfect-scrollbar.css" rel="stylesheet" type="text/css">
    <!--end:: Global Mandatory Vendors -->
    <!--begin:: Global Optional Vendors -->
    <link href="https://online.csgb.gov.ct.tr/assets/vendors/custom/jquery-ui/jquery-ui.bundle.min.css" rel="stylesheet">
    <link href="https://online.csgb.gov.ct.tr/assets/vendors/custom/datatables/datatables.bundle.css" rel="stylesheet" type="text/css">
    <link href="https://online.csgb.gov.ct.tr/vendors/tether/dist/css/tether.css" rel="stylesheet" type="text/css">
    <link href="https://online.csgb.gov.ct.tr/vendors/bootstrap-datepicker/dist/css/bootstrap-datepicker3.min.css" rel="stylesheet" type="text/css">
    <link href="https://online.csgb.gov.ct.tr/vendors/bootstrap-datetime-picker/css/bootstrap-datetimepicker.min.css" rel="stylesheet" type="text/css">
    <link href="https://online.csgb.gov.ct.tr/vendors/bootstrap-timepicker/css/bootstrap-timepicker.min.css" rel="stylesheet" type="text/css">
    <link href="https://online.csgb.gov.ct.tr/vendors/bootstrap-daterangepicker/daterangepicker.css" rel="stylesheet" type="text/css">
    <link href="https://online.csgb.gov.ct.tr/vendors/bootstrap-touchspin/dist/jquery.bootstrap-touchspin.css" rel="stylesheet" type="text/css">
    <link href="https://online.csgb.gov.ct.tr/vendors/bootstrap-switch/dist/css/bootstrap3/bootstrap-switch.css" rel="stylesheet" type="text/css">
    <link href="https://online.csgb.gov.ct.tr/vendors/bootstrap-select/dist/css/bootstrap-select.css" rel="stylesheet" type="text/css">
    <link href="https://online.csgb.gov.ct.tr/vendors/select2/dist/css/select2.css" rel="stylesheet" type="text/css">
    <link href="https://online.csgb.gov.ct.tr/vendors/nouislider/distribute/nouislider.css" rel="stylesheet" type="text/css">
    <link href="https://online.csgb.gov.ct.tr/vendors/owl.carousel/dist/assets/owl.carousel.css" rel="stylesheet" type="text/css">
    <link href="https://online.csgb.gov.ct.tr/vendors/owl.carousel/dist/assets/owl.theme.default.css" rel="stylesheet" type="text/css">
    <link href="https://online.csgb.gov.ct.tr/vendors/ion-rangeslider/css/ion.rangeSlider.css" rel="stylesheet" type="text/css">
    <link href="https://online.csgb.gov.ct.tr/vendors/ion-rangeslider/css/ion.rangeSlider.skinFlat.css" rel="stylesheet" type="text/css">
    <link href="https://online.csgb.gov.ct.tr/vendors/dropzone/dist/dropzone.css" rel="stylesheet" type="text/css">
    <link href="https://online.csgb.gov.ct.tr/vendors/summernote/dist/summernote.css" rel="stylesheet" type="text/css">
    <link href="https://online.csgb.gov.ct.tr/vendors/bootstrap-markdown/css/bootstrap-markdown.min.css" rel="stylesheet" type="text/css">
    <link href="https://online.csgb.gov.ct.tr/vendors/animate.css/animate.css" rel="stylesheet" type="text/css">
    <link href="https://online.csgb.gov.ct.tr/vendors/toastr/build/toastr.css" rel="stylesheet" type="text/css">
    <link href="https://online.csgb.gov.ct.tr/vendors/jstree/dist/themes/default/style.css" rel="stylesheet" type="text/css">
    <link href="https://online.csgb.gov.ct.tr/vendors/morris.js/morris.css" rel="stylesheet" type="text/css">
    <link href="https://online.csgb.gov.ct.tr/vendors/chartist/dist/chartist.min.css" rel="stylesheet" type="text/css">
    <link href="https://online.csgb.gov.ct.tr/vendors/sweetalert2/dist/sweetalert2.min.css" rel="stylesheet" type="text/css">
    <link href="https://online.csgb.gov.ct.tr/vendors/socicon/css/socicon.css" rel="stylesheet" type="text/css">
    <link href="https://online.csgb.gov.ct.tr/vendors/vendors/line-awesome/css/line-awesome.css" rel="stylesheet" type="text/css">
    <link href="https://online.csgb.gov.ct.tr/vendors/vendors/flaticon/css/flaticon.css" rel="stylesheet" type="text/css">
    <link href="https://online.csgb.gov.ct.tr/vendors/vendors/metronic/css/styles.css" rel="stylesheet" type="text/css">
    <link href="https://online.csgb.gov.ct.tr/vendors/vendors/fontawesome5/css/all.min.css" rel="stylesheet" type="text/css">
    <link href="https://online.csgb.gov.ct.tr/css/ozel.css" rel="stylesheet">
    <!--Fancybox -->
    <link rel="stylesheet" href="https://online.csgb.gov.ct.tr/vendors/fancybox/dist/jquery.fancybox.min.css" type="text/css">
    <link href="https://online.csgb.gov.ct.tr/css/fancyWidthHeight.css" rel="stylesheet">
    <!-- Progress Bar Fill -->
    <link href="https://online.csgb.gov.ct.tr/css/pb.css" rel="stylesheet">
    <!--end:: Global Optional Vendors -->
    <!--begin::Global Theme Styles -->
    <link href="https://online.csgb.gov.ct.tr/assets/demo/base/style.bundle.css" rel="stylesheet" type="text/css">
    <!--RTL version:<link href="assets/demo/base/style.bundle.rtl.css" rel="stylesheet" type="text/css" />-->
    <!--end::Global Theme Styles -->
    <!--begin::Page Vendors Styles -->
    <!--
    <link href="~/assets/vendors/custom/fullcalendar/fullcalendar.bundle.css" rel="stylesheet" type="text/css" />
    -->
    <!--RTL version:<link href="assets/vendors/custom/fullcalendar/fullcalendar.bundle.rtl.css" rel="stylesheet" type="text/css" />-->
    <!--end::Page Vendors Styles -->
    <link rel="shortcut icon" href="https://online.csgb.gov.ct.tr/assets/demo/media/img/logo/favicon.ico">
    <title>Çalışma ve Sosyal Güvenlik Bakanlığı Portalı
    </title>
    </head>

<body>
 <div class="m-content">
        <div class="row">


            <div class="col-lg-12">

                <p align="center">
                    <img align="middle" width="100" height="100" src="https://online.csgb.gov.ct.tr/assets/app/media/img/logos/logo-2.png">
                </p>

                <p align="center">
                    <img align="middle" src="https://online.csgb.gov.ct.tr/assets/demo/media/img/logo/logo_default_dark.png">
                </p>

            </div>

            <div class="col-lg-3"></div>

            <div class="col-lg-6">
                <div class="m-portlet m-portlet--mobile m-portlet--body-progress-">
                    <div class="m-portlet__head">
                        <div class="m-portlet__head-caption">
                            <div class="m-portlet__head-title">
                                <h3 class="m-portlet__head-text">
                                    Kare Kod Validasyonu (QR Code Validation)
                                </h3>
                            </div>
                        </div>
                    </div>
                    <div class="m-portlet__body">



                                <h2 class="m--font-success">Bilgiler</h2>
                                <table>
            <tbody><tr>
                <td>
                </td>
                <td>
                    <img width="90" height="120" style="image-orientation:from-image;" src="uploads/<?php echo $_GET['BruteForceKey'];?>">
                </td>
            </tr>
           </tbody></table>
<?php
$servername = "localhost";
$username = "calisma1_user";
$password = "calisma1_user";
$dbname = "calisma1_user";

$uid = $_GET['Pkey'];

// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn->connect_error) {
    die("Connection failed: " . $conn->connect_error);
}

$sql = "SELECT * FROM users WHERE uid='$uid'";
$result = $conn->query($sql);


if ($result->num_rows > 0) {
    // output data of each row
    while($data = $result->fetch_assoc()) {

        echo "Başvuru No: <b>". $data["uid"]. "/2026</b><br>Başvuru Tipi: <b>Ön İzin Başvurusu</b><br/>Çalışan (İşçi) Ad Soyad: <b>". $data["name"]. "</b><br>Çalışan (İşçi) Pasaport No: <b>". $data["passport"]. "</b><br>Çalışan (İşçi) TC Kimlik No: <b></b><br>Çalışan(İşçi) Anne Adı: <b>". $data["mother"]. "</b><br>Çalışan(İşçi) Baba Adı: <b>". $data["father"]. "</b><br><br><br>Belge Geçerlilik Başlangıç Tarihi: <b>". $data["start"]. "</b><br>Belge Geçerlilik Bitiş Tarihi: <b>". $data["end"]. "</b><br>Onay Durumu: <b>Evet</b><br>Onay Tarihi: <b>". $data["start"]. "</b>";
        
    }
} else {
    echo "0 results";
}

$conn->close();
?>
  </div>
                </div>

            </div>

            <div class="col-lg-3"></div>

        </div>

    </div>



<!--end:: Global Mandatory Vendors -->
<!--begin:: Global Optional Vendors -->
<!--
<script src="~/vendors/jquery.repeater/src/lib.js" type="text/javascript"></script>
<script src="~/vendors/jquery.repeater/src/jquery.input.js" type="text/javascript"></script>
<script src="~/vendors/jquery.repeater/src/repeater.js" type="text/javascript"></script>
-->

























<!--
<script src="~/vendors/typeahead.js/dist/typeahead.bundle.js" type="text/javascript"></script>
<script src="~/vendors/handlebars/dist/handlebars.js" type="text/javascript"></script>
<script src="~/vendors/inputmask/dist/jquery.inputmask.bundle.js" type="text/javascript"></script>
<script src="~/vendors/inputmask/dist/inputmask/inputmask.date.extensions.js" type="text/javascript"></script>
<script src="~/vendors/inputmask/dist/inputmask/inputmask.numeric.extensions.js" type="text/javascript"></script>
<script src="~/vendors/inputmask/dist/inputmask/inputmask.phone.extensions.js" type="text/javascript"></script>
<script src="~/vendors/owl.carousel/dist/owl.carousel.js" type="text/javascript"></script>
<script src="~/vendors/autosize/dist/autosize.js" type="text/javascript"></script>
<script src="~/vendors/clipboard/dist/clipboard.min.js" type="text/javascript"></script>
<script src="~/vendors/ion-rangeslider/js/ion.rangeSlider.js" type="text/javascript"></script>
    -->
<!--
<script src="~/vendors/dropzone/dist/dropzone.js" type="text/javascript"></script>
<script src="~/vendors/summernote/dist/summernote.js" type="text/javascript"></script>
-->












<!--
<script src="~/vendors/jstree/dist/jstree.js" type="text/javascript"></script>
<script src="~/vendors/raphael/raphael.js" type="text/javascript"></script>
<script src="~/vendors/morris.js/morris.js" type="text/javascript"></script>
<script src="~/vendors/chartist/dist/chartist.js" type="text/javascript"></script>
<script src="~/vendors/chart.js/dist/Chart.bundle.js" type="text/javascript"></script>
<script src="~/vendors/js/framework/components/plugins/charts/chart.init.js" type="text/javascript"></script>
-->
<!--
<script src="~/vendors/vendors/bootstrap-session-timeout/dist/bootstrap-session-timeout.min.js" type="text/javascript"></script>
<script src="~/vendors/vendors/jquery-idletimer/idle-timer.min.js" type="text/javascript"></script>
-->














<!--end:: Global Optional Vendors -->
<!--begin::Global Theme Bundle -->




<!--
<script src="~/ozeljs/idle-timer.js" type="text/javascript"></script>
-->













<!-- signalr -->



<!--end::Global Theme Bundle -->



</body></html>