web/cineconf/index.php
author Raphael Velt <raph.velt@gmail.com>
Sun, 08 Sep 2013 14:23:14 +0200
changeset 942 620ba7e347c1
parent 902 da2081e8c847
child 948 c670e8888357
permissions -rw-r--r--
Cineconf for Kaspar Hauser
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
836
9de4ed65f00c Added Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
     1
<?php
9de4ed65f00c Added Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
     2
838
7c4a269eb53a Trying to fix bug on ha
Raphael Velt <raph.velt@gmail.com>
parents: 836
diff changeset
     3
$config = array("rep" => basename(__DIR__));
7c4a269eb53a Trying to fix bug on ha
Raphael Velt <raph.velt@gmail.com>
parents: 836
diff changeset
     4
836
9de4ed65f00c Added Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
     5
include_once '../common.php';
838
7c4a269eb53a Trying to fix bug on ha
Raphael Velt <raph.velt@gmail.com>
parents: 836
diff changeset
     6
836
9de4ed65f00c Added Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
     7
/**
9de4ed65f00c Added Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
     8
 * Do we already have a valid Access Token or need to go get one?
9de4ed65f00c Added Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
     9
 */
9de4ed65f00c Added Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
    10
854
4c377df66569 Style adjustments for Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents: 842
diff changeset
    11
if (!isset($_SESSION['TWITTER_ACCESS_TOKEN'])) {
4c377df66569 Style adjustments for Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents: 842
diff changeset
    12
836
9de4ed65f00c Added Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
    13
	$_SESSION['TWITTER_REDIRECT_URL'] = URL_ROOT . basename(__DIR__) . '/' . basename(__FILE__);
840
9c645bec23c4 Bugfix for oauth redirects
Raphael Velt <raph.velt@gmail.com>
parents: 838
diff changeset
    14
	// Permanent redirection
9c645bec23c4 Bugfix for oauth redirects
Raphael Velt <raph.velt@gmail.com>
parents: 838
diff changeset
    15
	header("HTTP/1.1 301 Moved Permanently");
854
4c377df66569 Style adjustments for Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents: 842
diff changeset
    16
	header("Location: client.php?CONNECT=true&rep=" . basename(__DIR__));
840
9c645bec23c4 Bugfix for oauth redirects
Raphael Velt <raph.velt@gmail.com>
parents: 838
diff changeset
    17
	exit();
854
4c377df66569 Style adjustments for Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents: 842
diff changeset
    18
836
9de4ed65f00c Added Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
    19
}
9de4ed65f00c Added Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
    20
?>
9de4ed65f00c Added Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
    21
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
9de4ed65f00c Added Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
    22
   "http://www.w3.org/TR/html4/strict.dtd">
9de4ed65f00c Added Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
    23
9de4ed65f00c Added Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
    24
<html lang="fr">
854
4c377df66569 Style adjustments for Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents: 842
diff changeset
    25
	<head>
4c377df66569 Style adjustments for Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents: 842
diff changeset
    26
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
942
620ba7e347c1 Cineconf for Kaspar Hauser
Raphael Velt <raph.velt@gmail.com>
parents: 902
diff changeset
    27
		<title>Avant-Première Kaspar Hauser : Tweet Wall</title>
854
4c377df66569 Style adjustments for Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents: 842
diff changeset
    28
		<meta http-equiv="X-UA-Compatible" content="IE=9" />
4c377df66569 Style adjustments for Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents: 842
diff changeset
    29
4c377df66569 Style adjustments for Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents: 842
diff changeset
    30
		<!-- CSS -->
4c377df66569 Style adjustments for Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents: 842
diff changeset
    31
		<link rel="stylesheet" href="<?php echo(registry_url('tweetcast', 'css')); ?>" type="text/css" media="screen, projection"/>
4c377df66569 Style adjustments for Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents: 842
diff changeset
    32
    <link rel="stylesheet" href="style.css" type="text/css" media="screen, projection"/>
836
9de4ed65f00c Added Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
    33
854
4c377df66569 Style adjustments for Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents: 842
diff changeset
    34
		<!-- JAVASCRIPT -->
4c377df66569 Style adjustments for Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents: 842
diff changeset
    35
		<script type="text/javascript" src="<?php echo(registry_url('jquery','js'))?>"></script>
4c377df66569 Style adjustments for Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents: 842
diff changeset
    36
		<script type="text/javascript" src="<?php echo(registry_url('jquery-mousewheel','js'))?>"></script>
4c377df66569 Style adjustments for Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents: 842
diff changeset
    37
		<script type="text/javascript" src="<?php echo(registry_url('jquery-scrollto','js'))?>"></script>
4c377df66569 Style adjustments for Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents: 842
diff changeset
    38
		<script type="text/javascript" src="<?php echo(registry_url('underscore','js'))?>"></script>
4c377df66569 Style adjustments for Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents: 842
diff changeset
    39
		<script type="text/javascript" src="<?php echo(registry_url('raphael','js'))?>"></script>
4c377df66569 Style adjustments for Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents: 842
diff changeset
    40
862
9e121cf2171f Arendt corrections
Raphael Velt <raph.velt@gmail.com>
parents: 854
diff changeset
    41
		<script type="text/javascript">
9e121cf2171f Arendt corrections
Raphael Velt <raph.velt@gmail.com>
parents: 854
diff changeset
    42
			var favUser='<?php
854
4c377df66569 Style adjustments for Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents: 842
diff changeset
    43
			if (isset($_GET['favuser'])) {
862
9e121cf2171f Arendt corrections
Raphael Velt <raph.velt@gmail.com>
parents: 854
diff changeset
    44
				echo $_GET['favuser'];
9e121cf2171f Arendt corrections
Raphael Velt <raph.velt@gmail.com>
parents: 854
diff changeset
    45
			} else {
942
620ba7e347c1 Cineconf for Kaspar Hauser
Raphael Velt <raph.velt@gmail.com>
parents: 902
diff changeset
    46
				echo 'AVPKaspar';
854
4c377df66569 Style adjustments for Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents: 842
diff changeset
    47
			}
862
9e121cf2171f Arendt corrections
Raphael Velt <raph.velt@gmail.com>
parents: 854
diff changeset
    48
			?>';
9e121cf2171f Arendt corrections
Raphael Velt <raph.velt@gmail.com>
parents: 854
diff changeset
    49
		</script>
854
4c377df66569 Style adjustments for Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents: 842
diff changeset
    50
4c377df66569 Style adjustments for Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents: 842
diff changeset
    51
		<script type="text/javascript" src="script.js"></script>
4c377df66569 Style adjustments for Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents: 842
diff changeset
    52
4c377df66569 Style adjustments for Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents: 842
diff changeset
    53
	</head>
4c377df66569 Style adjustments for Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents: 842
diff changeset
    54
	<body>
4c377df66569 Style adjustments for Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents: 842
diff changeset
    55
		<div id="main">
4c377df66569 Style adjustments for Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents: 842
diff changeset
    56
			<div id="visionplayer_1101"></div>
4c377df66569 Style adjustments for Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents: 842
diff changeset
    57
4c377df66569 Style adjustments for Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents: 842
diff changeset
    58
			<script type="text/javascript" src="http://embeddedplayer.visionip.tv/embed/1101?w=836&h=440" ></script>
836
9de4ed65f00c Added Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
    59
854
4c377df66569 Style adjustments for Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents: 842
diff changeset
    60
			<div id="vizcontainer">
836
9de4ed65f00c Added Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
    61
854
4c377df66569 Style adjustments for Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents: 842
diff changeset
    62
				<div class="barre">
4c377df66569 Style adjustments for Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents: 842
diff changeset
    63
					<form id="recherche">
4c377df66569 Style adjustments for Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents: 842
diff changeset
    64
						<input autocomplete="off" class="greyed" id="inp_q" value="Rechercher" />
4c377df66569 Style adjustments for Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents: 842
diff changeset
    65
						<input id="inp_submit" type="submit" />
4c377df66569 Style adjustments for Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents: 842
diff changeset
    66
						<input id="inp_reset" type="reset" />
4c377df66569 Style adjustments for Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents: 842
diff changeset
    67
						<div id="time_controls">
4c377df66569 Style adjustments for Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents: 842
diff changeset
    68
							<div id="time_legende"></div>
4c377df66569 Style adjustments for Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents: 842
diff changeset
    69
							<div id="time_scale"></div>
4c377df66569 Style adjustments for Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents: 842
diff changeset
    70
							<a href="#" id="time_zoomout"></a>
4c377df66569 Style adjustments for Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents: 842
diff changeset
    71
							<a href="#" id="time_zoomin"></a>
4c377df66569 Style adjustments for Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents: 842
diff changeset
    72
						</div>
4c377df66569 Style adjustments for Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents: 842
diff changeset
    73
						<div id="recherche_annot">
4c377df66569 Style adjustments for Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents: 842
diff changeset
    74
							Rechercher par polémique : <span id="rech_list_annot"></span>
4c377df66569 Style adjustments for Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents: 842
diff changeset
    75
							<br />
4c377df66569 Style adjustments for Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents: 842
diff changeset
    76
						</div>
4c377df66569 Style adjustments for Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents: 842
diff changeset
    77
					</form>
4c377df66569 Style adjustments for Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents: 842
diff changeset
    78
				</div>
4c377df66569 Style adjustments for Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents: 842
diff changeset
    79
4c377df66569 Style adjustments for Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents: 842
diff changeset
    80
				<div id="tweetviz">
4c377df66569 Style adjustments for Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents: 842
diff changeset
    81
					<ul id="tweetlist"></ul>
4c377df66569 Style adjustments for Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents: 842
diff changeset
    82
					<div id="timeline"></div>
4c377df66569 Style adjustments for Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents: 842
diff changeset
    83
					<div id="scrollcont">
4c377df66569 Style adjustments for Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents: 842
diff changeset
    84
						<div id="scrollin"></div>
4c377df66569 Style adjustments for Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents: 842
diff changeset
    85
					</div>
4c377df66569 Style adjustments for Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents: 842
diff changeset
    86
				</div>
4c377df66569 Style adjustments for Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents: 842
diff changeset
    87
			</div>
4c377df66569 Style adjustments for Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents: 842
diff changeset
    88
836
9de4ed65f00c Added Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
    89
		</div>
854
4c377df66569 Style adjustments for Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents: 842
diff changeset
    90
	</body>
836
9de4ed65f00c Added Hanna Arendt
Raphael Velt <raph.velt@gmail.com>
parents:
diff changeset
    91
</html>