forked from gharlan/alfred-github-workflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
server.php
66 lines (60 loc) · 1.47 KB
/
server.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
<?php
if (preg_match('/\.(?:png|jpg|jpeg|gif)$/', $_SERVER['REQUEST_URI'])) {
return false;
}
require 'workflow.php';
Workflow::init();
if (!isset($_GET['access_token'])) {
echo 'FAILURE (missing access_token parameter)!';
exit;
}
Workflow::setAccessToken($_GET['access_token']);
Workflow::cacheWarmup();
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>alfred-github-workflow</title>
<style>
* {
margin: 0;
padding: 0;
}
body {
background: #999;
font-family: 'Helvetica Neue', sans-serif;
font-size: 14pt;
}
div {
padding-top: 200px;
width: 450px;
margin: 0 auto;
}
img {
display: block;
float: left;
margin-right: 20px;
}
p {
padding-top: 20px;
}
span {
background: #444;
color: #fff;
padding: 5px;
margin-bottom: 5px;
display: inline-block;
}
</style>
</head>
<body>
<div>
<img src="icon.png" width="125" height="125"/>
<p>
<span>alfred-github-workflow is ready.</span><br>
<span>Have fun.</span>
</p>
</div>
</body>
</html>