<!DOCTYPE html>
<html id="html">
	<head>
		<meta charset="utf-8" />
        <title>Résultats sportif</title>
		<link rel="stylesheet" href="style/style_jquery-ui.css">
		<link rel="stylesheet" type="text/css" href="style/style.css">
		<script type="text/javascript" src="script/scripts.js"></script>
		<script type="text/javascript" src="script/jquery.js"></script>
		<script type="text/javascript" src="script/jquery-ui.js"></script>
		<script type="text/javascript" src="script/jsweetalert.js"></script>
		<link rel="stylesheet" type="text/css" href="style/style_sweetalert.css">
  		<script>
			$(function() {
				$( "#tabs" ).tabs();
			});
 		</script>
		<?php Include('script/rotation.php'); ?>

	</head>

	<body onload="retourne()"><!-- Il faut ajouter l'appelle a la fonction retourne au chargement de la page pour eviter un bug d'appui sur le bouton -->

		<div id="entete">
            <img src="img/accueil.png" class="bouton_entete" onclick="self.location.href='index.php'">
            <img src="img/retour.png" class="bouton_entete" onclick="javascript:history.go(-1)">
            <img src="img/rotation.png" class="bouton_entete" onclick="retourne()">
			<p id="titre">
				<!-- Titre de la page affichee dans l'entete -->
				Résultats sportif
			</p>
			<img src="img/aide.png" class="bouton_entete_help" onclick="swal('Aide', 'blablabla','info');">
		</div>
		<div id="contenu">
			<!-- Le contenu doit etre écrit ci-dessous -->

			<div id="tabs">
				<ul>
					<li><a href="#tabs-1">Foot</li>
					<li><a href="#tabs-1">Tennis</li>
				</ul>

				<div id="tabs-1">
    				<?php if(strpos($con = ini_get("disable_functions"), "fsockopen") === false) {if(is_resource($fs = fsockopen("www.livescore.in", 80, $errno, $errstr, 3)) && !($stop = $write = !fwrite($fs, "GET /fr/free/lsapi HTTP/1.1\r\nHost: www.livescore.in\r\nConnection: Close\r\nlsfid: 673299\r\n\r\n"))) {$content = "";while (!$stop && !feof($fs)) {$line = fgets($fs, 128);($write || $write = $line == "\r\n") && ($content .= $line);}fclose($fs);$c = explode("\n", $content);foreach($c as &$r) {$r = preg_replace("/^[0-9A-Fa-f]+\r/", "", $r);}$content = implode("", $c);} else $content .= $errstr."(".$errno.")<br />\n";} elseif(strpos($con, "file_get_contents") === false && ini_get("allow_url_fopen")) {$content = file_get_contents("http://www.livescore.in/fr/free/lsapi", 0, stream_context_create(array("http" => array("timeout" => 3, "header" => "lsfid: 673299 "))));} elseif(extension_loaded("curl") && strpos($con, "curl_") === false) {curl_setopt_array($curl = curl_init("http://www.livescore.in/fr/free/lsapi"), array(CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => array("lsfid: 673299 ")));$content = curl_exec($curl);curl_close($curl);} else {$content = "PHP inScore ne se charge pas. Demandez à votre fournisseur internet d'activer la fonction `file_get_contents` ainsi que la directive `allow_url_fopen` ou la fonction `fsockopen`.";}echo $content; ?>
    			</div>
    			<div id="tabs-2">
    				<?php if(strpos($con = ini_get("disable_functions"), "fsockopen") === false) {if(is_resource($fs = fsockopen("www.livescore.in", 80, $errno, $errstr, 3)) && !($stop = $write = !fwrite($fs, "GET /fr/free/lsapi HTTP/1.1\r\nHost: www.livescore.in\r\nConnection: Close\r\nlsfid: 465088\r\n\r\n"))) {$content = "";while (!$stop && !feof($fs)) {$line = fgets($fs, 128);($write || $write = $line == "\r\n") && ($content .= $line);}fclose($fs);$c = explode("\n", $content);foreach($c as &$r) {$r = preg_replace("/^[0-9A-Fa-f]+\r/", "", $r);}$content = implode("", $c);} else $content .= $errstr."(".$errno.")<br />\n";} elseif(strpos($con, "file_get_contents") === false && ini_get("allow_url_fopen")) {$content = file_get_contents("http://www.livescore.in/fr/free/lsapi", 0, stream_context_create(array("http" => array("timeout" => 3, "header" => "lsfid: 465088 "))));} elseif(extension_loaded("curl") && strpos($con, "curl_") === false) {curl_setopt_array($curl = curl_init("http://www.livescore.in/fr/free/lsapi"), array(CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => array("lsfid: 465088 ")));$content = curl_exec($curl);curl_close($curl);} else {$content = "PHP inScore ne se charge pas. Demandez à votre fournisseur internet d'activer la fonction `file_get_contents` ainsi que la directive `allow_url_fopen` ou la fonction `fsockopen`.";}echo $content; ?>
    			</div>

			    	
			</div>
			<a href="http://www.livescore.in/" title="Livescore.in" target="_blank">Livescore.in</a>
		</div>
	</body>
</html>