Skip to content

Commit

Permalink
Update home.php
Browse files Browse the repository at this point in the history
Signed-off-by: Isaac Hernán <[email protected]>
  • Loading branch information
Isaaker authored Aug 18, 2023
1 parent 312dc55 commit a169e7b
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions home.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,26 +30,6 @@
<main>
<body>

<!--- Check Browser compatibility --->

<?php

// Get the user agent string.
$user_agent = $_SERVER['HTTP_USER_AGENT'];

// Check if the user agent string matches any of the unsupported browsers or platforms.
if (preg_match('/(Internet Explorer 9|Safari 13\.1\.2|Opera 12|Firefox 20|ELINKS|Lynx|w3m)/i', $user_agent)) {

// Redirect to a page that tells the user that their browser is not supported.
header('Location: incompatible-browser.php');

exit;

}
?>


<a href="./about.html"><button>ℹ️ Acerca de...</button></a>
<br>
Expand Down

0 comments on commit a169e7b

Please sign in to comment.