HEX
Server: Apache
System: Linux vps28526 6.8.0-79-generic #79~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 15 16:54:53 UTC 2 x86_64
User: heewonvps_17 (6705002)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/heewonvps_17/drug-injury-lawyer.com/wp-content/themes/master/404.php
<?php
/**
 * The template for displaying 404 pages (Not Found).
 *
 * @package WordPress
 * @subpackage Master Theme
 */

include 'Mobile_Detect.php';

global $is_mobile;
session_start();

$type = null;
$uri = null;
$detect = new Mobile_Detect();

if (isset($_GET['view'])) {
	$type = $_GET['view'];
	set_view_type($type);
}

if (isset($_SESSION['view_type'])) {
	if ($_SESSION['view_type'] == 'mobile') {
		$_SESSION['which_page'] = 'mobile';
	} else if ($_SESSION['view_type'] == 'classic') {
		$_SESSION['which_page'] = '';
	}
} else if (MobileDTS::is('android')) {
	// User with a mobile device running Android OS
	$_SESSION['which_page'] = 'mobile';
} else if ($detect->isTablet()) {
	$_SESSION['which_page'] = '';
} else if (MobileDTS::is('ios')) {
	// User with a mobile device running iOS
	$_SESSION['which_page'] = 'mobile';
} else if (MobileDTS::is('mobile')) {
	// User with a mobile device (any, even 10 years old mobile phones)
	$_SESSION['which_page'] = 'mobile';
} else {
	// User with a desktop device
	$_SESSION['which_page'] = '';
}


get_header($_SESSION['which_page']); ?>

	    <div id="container">
	    	<div id="content">

			<div id="post-0" class="post error404 not-found">
				<p class="page-title">404</p>
				<h1 class="entry-title"><?php _e( 'Page Not Found', 'twentyten' ); ?></h1>
				<div class="entry-content">
					<p><?php _e( 'Apologies, but the page you requested could not be found. Perhaps searching will help.', 'twentyten' ); ?></p>
                    <div class="form-submit">
					<?php get_search_form(); ?>
                    </div>
				</div><!-- .entry-content -->
			</div><!-- #post-0 -->

	    	</div><!-- #content -->
			<?php if ($_SESSION['which_page'] != 'mobile') : ?>
			<div id="sidebar">
				<?php get_sidebar(); ?>
			</div><!-- #sidebar -->

			<div class="clear">&nbsp;</div>
			<?php endif; ?>
	    </div><!-- container -->
		<script type="text/javascript">
			// focus on search field after it has loaded
			document.getElementById('s') && document.getElementById('s').focus();
		</script>
	</div><!-- #wrapper -->

<?php get_footer($_SESSION['which_page']); ?>