<html><head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8">
    <title>RotateVideo</title>
    <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0">
    <link rel="stylesheet" type="text/css" href="style.css">
<script>
if (navigator.userAgent.search(/Cydia/) != -1) {
	document.body.classList.add("cydia");
}
</script>
</head>
<body>

<body class="pinstripe">
<dialog>
	<panel>
<?php
// apache_request_headers()
// X-Machine: iPhone5,2
// X-Cydia-Cf: 793.00
//
// $_SERVER['HTTP_X_MACHINE'] = iPhone5,2
// $_SERVER['HTTP_X_CYDIA_CF'] = 793.00
// $_SERVER['HTTP_USER_AGENT'] = ... Cydia/1.1.8 CyF/793.00

$cfversion = $_SERVER['HTTP_X_CYDIA_CF'];
$device = $_SERVER['HTTP_X_MACHINE'];

// 847.24 = 7.1
// 847.26 = 7.1.1
// 1129.15 = 8.0
// 1240.10 = 9.0

if (($cfversion > 1129.15 && $cfversion < 1240.10) || ($cfversion >= 1300.0)) {
?>
		<fieldset style="background-color: #da2647; color: white;">
			<div>
<?php
	//echo "This iOS version is supported only for test";
	echo "You can't install in this device!";
}
else if ($cfversion < 793.00) {
?>
		<fieldset style="background-color: #da2647; color: white;">
			<div>
<?php
	echo "You can't install in this device!";
}
else {
?>
		<fieldset style="background-color: #6bcb8d;">
			<div>
<?php
	echo "This device is compatible.";
}

?>
			</div>
		</fieldset>
	</panel>
	<panel>
		<fieldset>
			<div>
				<p>RotateVideo
				<br />
				<br />
				<br />Supports iOS 6.1 ~ 7.x and 9.0.x
				<br />
				<br />
				<br /><span style="text-decoration:line-through;">* adds RotationLock button on overlay view while playing videos</span>
				<br />
				<br />* auto-rotate video view as video's aspect ratio
				<br />
				<br />
				<br />Not compatible with LandscapeVideos.
				<br />
				<br />Only compatible with apps using system default player.
				<br />
				<br />This tweak can't be worked with apps having own playing method even if using system default player.
				<br />
				<br />Only works with fullscreen player.
				<br />
				<br />
				<br /><span style="text-decoration:line-through;">Only testers can download for now.</span>
				<br />Only for me.
				<br />
				<br />
				<br />
				<!--<br /><img src="depiction01.png" width="100%" />
				<br />-->
				<br /><img src="depiction02.png" width="100%" />
				<br />
				<br />
				<br /><iframe width="100%" height="360" src="//www.youtube.com/embed/IS0PWCzNECI?rel=0&amp;vq=hd720" frameborder="0" allowfullscreen></iframe>
				<br /><iframe width="100%" height="360" src="//www.youtube.com/embed/tv9W80bLWQY?rel=0&amp;vq=hd720" frameborder="0" allowfullscreen></iframe>
				<br /><iframe width="100%" height="360" src="//www.youtube.com/embed/tlPB53AxngA?rel=0&amp;vq=hd720" frameborder="0" allowfullscreen></iframe>
				<br />
				</p>
			</div>
		</fieldset>
	</panel>
	<panel>
        <fieldset>
        	<a href="changes.html" target="_blank"> 
				<img class="icon" src="http://cache.saurik.com/crystal/32x32/apps/clock.png"/>
				<div><label>Recent Changes</label></div>
			</a>
			<a href="http://apt.thebigboss.org/packagesfordev.php?name=AskToCall" target="_blank">
				<img class="icon" src="http://cache.saurik.com/cydia/icon/cydia.png"/>
				<div><label>More by deVbug</label></div>
			</a>
        </fieldset>
    </panel>
	<panel>
		<p><strong>In this version</strong></p>
		<fieldset>
			<div>
v1.1-1
<br />fix for Videos app on iOS 9.0.x
			</div>
		</fieldset>
	</panel>
</dialog>

</body>
</html>