-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
96 lines (83 loc) · 3.31 KB
/
index.php
File metadata and controls
96 lines (83 loc) · 3.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<?php
// ########### Google Analytics
// Copyright 2009 Google Inc. All Rights Reserved.
$GA_ACCOUNT = "MO-6506635-7";
$GA_PIXEL = "/ga.php";
function googleAnalyticsGetImageUrl() {
global $GA_ACCOUNT, $GA_PIXEL;
$url = "";
$url .= $GA_PIXEL . "?";
$url .= "utmac=" . $GA_ACCOUNT;
$url .= "&utmn=" . rand(0, 0x7fffffff);
$referer = $_SERVER["HTTP_REFERER"];
$query = $_SERVER["QUERY_STRING"];
$path = $_SERVER["REQUEST_URI"];
if (empty($referer)) {
$referer = "-";
}
$url .= "&utmr=" . urlencode($referer);
if (!empty($path)) {
$url .= "&utmp=" . urlencode($path);
}
$url .= "&guid=ON";
return str_replace("&", "&", $url);
}
// ###########
// jours de la semaine en français
$days[0] = 'dimanche';
$days[1] = 'lundi';
$days[2] = 'mardi';
$days[3] = 'mercredi';
$days[4] = 'jeudi';
$days[5] = 'vendredi';
$days[6] = 'samedi';
// récupération du jour de la semaine (le chiffre)
$day = date('w', time());
echo '<?xml version="1.0" encoding="utf-8"?>';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="apple-mobile-web-app-status-bar-style" content="black"/>
<meta content="minimum-scale=1.0, width=device-width, maximum-scale=0.6667, user-scalable=no" name="viewport" />
<link href="style.css" rel="stylesheet" type="text/css" />
<title>watchout! programme TV sur iPhone</title>
<meta content="tv television program programme iphone france paf français apple" name="Keywords" />
<meta content="Le programme TV sur iPhone!" name="description" />
<link rel="apple-touch-icon" href="http://cache.scallioncorp.com/watchout/img/home-icon.png" />
<meta name="verify-v1" content="4S2PhWFYxGN12RA9Z4NJ1UFRBjeqwcfil8B8mJSNvfg=" />
</head>
<body>
<div id="header">
<ul id="week">
<li><a class="tab" href="#<?php echo $days[($day+1)%7] ?>">demain</a></li>
<?php for ($i=2; $i<7; $i++): ?>
<li><a class="tab" href="#<?php echo $days[($day+$i)%7] ?>"><?php echo $days[($day+$i)%7] ?></a></li>
<?php endfor ?>
</ul>
<ul id="tab">
<li id="tab-now" class="tab unselected selected"><a class="tab" href="#now">actuellement</a></li>
<li id="tab-tonight" class="tab unselected"><a class="tab" href="#tonight">ce soir</a></li>
<li id="tab-night" class="tab unselected"><a class="tab" href="#night">soirée</a></li>
</ul>
</div>
<div id="channels">
<ul id="listLeft" class="channels">
<?php include('channelList.php')?>
</ul>
<ul id="listRight" class="channels">
<?php $_GET['time']='night'; include('channelList.php') ?>
</ul>
</div>
<div id="footer">
<!--span>poweredby.grafenko</span>
<span><a href="mailto:watchout@scallioncorp.com">watchout@scallioncorp.com</a></span-->
<!-- Google Analytics -->
<img src="<?php echo googleAnalyticsGetImageUrl(); ?>" style="display:none;" alt="google analytics"/>
</div>
<script type="text/javascript" charset="utf-8" src="http://cache.scallioncorp.com/watchout/mootools-merged.js"></script>
<script type="text/javascript" charset="utf-8" src="http://cache.scallioncorp.com/watchout/iphone.js"></script>
</body>
</html>