-
Notifications
You must be signed in to change notification settings - Fork 399
/
Copy pathtripit_rendezvous.php
75 lines (68 loc) · 3.04 KB
/
tripit_rendezvous.php
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
<?php
require_once "locale.php";
require_once "db_pdo.php";
require_once "tripit_common.php";
$uid = $_SESSION["uid"];
if (!$uid || empty($uid)) {
print _("Not logged in, aborting");
exit();
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title><?php echo sprintf(_('OpenFlights: %s'), _('TripIt')); ?></title>
<link rel="stylesheet" href="/css/style_reset.min.css" type="text/css">
<link rel="stylesheet" href="/openflights.css" type="text/css">
<link rel="stylesheet" href="/css/tripit.css" type="text/css">
<link rel="stylesheet" href="/css/jquery-ui.min.css" type="text/css">
<script type="text/javascript" src="<?php echo fileUrlWithDate("/js/jquery.min.js"); ?>"></script>
<script type="text/javascript" src="<?php echo fileUrlWithDate("/js/jquery-ui.min.js"); ?>"></script>
<script type="text/javascript" src="/js/tripit.js"></script>
</head>
<body onload="rendezvousPageInit()">
<div id="contexthelp">
<h1><?php echo _("Link your TripIt Account"); ?></h1>
<p><?php
echo _("To import flights via TripIt, you'll need to authorize OpenFlights to access your TripIt account. OpenFlights will only be able to look at (but not modify) your TripIt data.");
?></p>
<div id="loginPathSelection">
<h2 style="border-bottom: none; font-weight: 600"><?php
echo _("How do you login to your TripIt account?"); ?></h2>
<button class="ui-button ui-widget ui-state-default ui-corner-all loginSelector" id="loginPathNative">
<span class="ui-button-text">
<?php echo _("I use my"); ?>
<img style="margin-bottom: -2px; width: 43px; height:20px;" src="/img/tripit-logo-43x20.png" alt="TripIt">
<?php echo _("email and password to login."); ?>
</span>
</button>
<button class="ui-button ui-widget ui-state-default ui-corner-all loginSelector" id="loginPathPartner">
<span class="ui-button-text">
<?php echo _("I use"); ?><br>
<span class="partnerLoginList">
<span class="tripit_sprites_soc tripit_sprites_soc_google">Google</span><br>
<span class="tripit_sprites_soc tripit_sprites_soc_yahoo">Yahoo</span><br>
<span class="tripit_sprites_soc tripit_sprites_soc_fb">Facebook</span><br>
</span><br>
<?php echo _("to login."); ?>
</span>
</button>
</div>
<div id="loginPathPartnerHelp">
<?php echo _("Logging in with a partner is a"); ?> <b><?php echo _("2 step process"); ?></b>.
<ol>
<li>
<a href="javascript:openTripItLogin()"><?php echo _("Click here to login to your TripIt account."); ?></a>
<?php echo _("You can skip this step if you're already logged in."); ?>
<?php echo _("After you've logged in, close the popup window to come back here."); ?>
</li>
<li>
<a href="tripit_rendezvous_start.php">
<?php echo _("Click here to connect your TripIt account to OpenFlights."); ?>
</a>
</li>
</ol>
</div>
</div>
</body>
</html>