<?php include 'src/gallery.php'; gallery::init(); function isMobile() { return preg_match("/(android|avantgo|blackberry|bolt|boost|cricket|docomo|fone|hiptop|mini|mobi|palm|phone|pie|tablet|up\\.browser|up\\.link|webos|wos)/i", $_SERVER["HTTP_USER_AGENT"]); } ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title><?php echo end(explode('/', gallery::$name)); ?> </title> <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> <?php if (isMobile()) { ?> <link rel="stylesheet" href="css/blueimp-gallery_mobile.css"> <?php } else { ?> <link rel="stylesheet" href="css/blueimp-gallery.css"> <?php } ?>