PHP Classes

File: App/Views/Home/index.php

Recommend this page to a friend!
  Classes of Muhammad Umer Farooq   What is My Browser   App/Views/Home/index.php   Download  
File: App/Views/Home/index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: What is My Browser
Show the details of the current user browser
Author: By
Last change:
Date: 5 years ago
Size: 6,858 bytes
 

Contents

Class file image Download
<?=view('nav');?>
<?php
  $info
= new \Zest\UserInfo\UserInfo();
?>
<title>WhatsMyBrowser</title>
    <header class="bg-info text-white">
      <div class="container text-center">
        <h1>You are using <?php if(is_array($info->osVersion()))
                        {
                            foreach (
$info->osVersion() as $key => $value) {
                              foreach (
$value as $key => $value) {
                                echo
$value;
                              }
                            }
                        } else {
                          echo
$info->osVersion();
                        }
                  
?></h1>
        <p class="lead">Share this with your support team! Just send them the link below:</p>
        <h3>Coming soon</h3>
      </div>
    </header>
    <section id="">
      <div class="container">
        <div class="row">
          <div class="col-lg-10 mx-auto">
            <h2>Browser details</h2>
          </div>
          <div class="col-lg-8 mx-auto">
            <p>We?ve detected the following details about your browser. This information may help support teams troubleshoot issues you?re experiencing with their website.</p>
                <table class="table table-hover">
                <tbody>
                  <tr>
                    <td>Operating System</td>
                    <td><?php if(is_array($info->osVersion()))
                        {
                            foreach (
$info->osVersion() as $key => $value) {
                              foreach (
$value as $key => $value) {
                                echo
$value;
                              }
                            }
                        } else {
                          echo
$info->osVersion();
                        }
                  
?></td>
                  </tr>
                 <!-- <?php //if ($info->isMobile() === true) { ?>
                  <tr>
                    <td>Device Name</td>
                    <td><?php //var_dump($info->deviceName())?></td>
                  </tr>
                  <tr>
                    <td>Device Type</td>
                    <td>Smartphone/Mobile</td>
                  </tr>
                  <?php //} else //{ ?>
<tr>
                    <td>Device Type</td>
                    <td>PC</td>
                  </tr>
                <?php //} ?> -->
                  <tr>
                    <td>Ip address</td>
                    <td><?=$info->ip();?> </td>
                  </tr>
                  <tr>
                    <td>Cookies enabled</td>
                    <td><span id='cookie'><noscript><span>Not detected</span></noscript></span></td>
                  </tr>
                  <tr>
                    <td>Java installed</td>
                    <td><span id='java'><noscript><span>Not detected</span></noscript></span></td>
                  </tr>
                  <tr>
                    <td>Websockets supported</td>
                    <td id='socket'></td>
                  </tr>
                  <tr>
                    <td>Browser size</td>
                    <td><span id='window'><noscript><span>Not detected</span></noscript></span></td>
                  </tr>
                  <tr>
                    <td>Screen size</td>
                    <td id='screen'><noscript><span>Not detected</span></noscript></td>
                  </tr>
                  <tr>
                    <td>Color depth</td>
                    <td id='color'><noscript><span>Not detected</span></noscript></td>
                  </tr>
                  <tr>
                    <td>AdBlock enabled</td>
                    <td id='ads'><noscript><span>Not detected</span></noscript></td>
                  </tr>
                </tbody>
              </table>
              <p>Your full user agent string is: <br>
                <span id='agent'></span>
              </p>
          </div>

          <div class="col-lg-10 mx-auto">
             <span id='faqs'></span>
             <h4>What browser am I using?</h4>
             <p>You?re using <?=$info->browser()['browser'];?> <?=round($info->browserVersion())?>, If you believe this is incorrect, then please email us at lablnet01@gmail.com to let us know!.</p>
             <h4>What is my browser?</h4>
             <p>Your browser is a software application that lets you visit web pages on the Internet. Popular browsers include Google Chrome, Firefox, Safari, and Internet Explorer. Currently, Google Chrome is the most widely used browser in the world, and is also considered one of the fastest and most secure.</p>
            <h4>Why is my browser info important?</h4>
            <p>Different browsers have different capabilities. And although these differences may seem minor, it?s common for websites to work fine on one browser but poorly on another. The information on this page may help support teams troubleshoot technical issues specific to your browser.</p>
            <h4>What is an IP address?</h4>
            <p>An IP address is a set of numbers that identifies your device, and which can be tied to your online activity. Some users may not want their browsing history associated with their IP address, and might therefore opt to use a Virtual Private Network (VPN) for an extra layer of security and privacy. We recommend looking into <a href='https://www.top10vpn.com/best-vpn/' >one of these VPN services</a> to secure your online activity.</p>
            <h4 id='contact'>Contact us</h4>
            <p>Feel free to contact us at lablnet01@gmail.com if you have any questions or concerns. Additionally, please let us know if you have any feedback or suggestions for improving this site ? we?d love to hear from you!</p>
          </div>
        </div>
      </div>
    </section>
    <header class="bg-primary text-white" style="background-color: #529953!important;">
      <div class="container text-center">
        <h1>Share this with your support team now!</h1>
        <h3>Coming soon</h3>
      </div>
    </header>
<?=view('footer');?>
<script src="/js/ads.js"></script>
<script type="text/javascript">
function jqUpdateSize(){var e=$(window).width(),t=$(window).height();$("#window").append(e+" X "+t)}$(document).ready(jqUpdateSize),$("#screen").text(screen.width+" X "+screen.height),$("#color").text(screen.colorDepth+" Bit"),navigator.cookieEnabled?$("#cookie").text("Yes"):$("#cookie").text("No"),navigator.javaEnabled()?$("#java").text("Yes"):$("#java").text("No"),document.getElementById("UvVnockXDeKh")?$("#ads").text("Yes"):$("#ads").text("No"),window.WebSocket?$("#socket").text("Yes"):$("#socket").text("No"),$("#agent").text(navigator.userAgent);


</script>