-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
60 lines (47 loc) · 1.67 KB
/
index.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
<?php
require_once 'assets/config.php';
// include this file if user is posting something to tumblr...
if($_SERVER['REQUEST_METHOD'] == 'POST') {
require 'assets/post.php';
}
// set an empty array for later
$connected_services = array();
require 'assets/oauth/authenticate.php';
?>
<!DOCTYPE html>
<html lang="en">
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Twitter + Tumblr OAuth Example App</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<link href="assets/css/flatly.min.css" rel="stylesheet">
<link href="assets/css/styles.css" rel="stylesheet">
<!--[if lt IE 9]>
<script src="//oss.maxcdn.com/libs/html5shiv/r29/html5.min.js"></script>
<script src="//oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<?php require 'assets/views/navigation.php' ?>
<div class="container">
<div class="row">
<div class="col-sm-12">
<!-- print messages -->
<?php echo $message ?>
<!-- 'welcome to my app' text -->
<?php require 'assets/views/welcome.php' ?>
</div>
</div>
<!-- show user's feeds -->
<?php require 'assets/views/feeds.php'; ?>
</div>
<!-- include our post modal -->
<?php require 'assets/views/modal.php' ?>
<script src="//code.jquery.com/jquery.js"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
<script src="assets/js/scripts.js"></script>
</body>
</html>