Repository navigation
Expand file tree
/
Copy pathproto_head.php
More file actions
70 lines (55 loc) · 2.4 KB
/
Copy pathproto_head.php
File metadata and controls
70 lines (55 loc) · 2.4 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
<?php
$cfg = json_decode('{
"username" : "<GATHERCONTENT_USERNAME>",
"apikey" : "<GATHERCONTENT_APIKEY>",
"account_id" : "<GATHERCONTENT_ACCOUNTID>"
}', TRUE);
include 'functions.php';
$project = FALSE;
$project_id = 0;
$projects = gc_projects($cfg);
if (array_key_exists('pid', $_GET)) {
$pid = trim(strip_tags($_GET['pid']));
if (array_key_exists($pid, $projects)) {
$project = $projects[$pid];
$project_id = $pid;
}
}
?><!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="manifest" href="site.webmanifest">
<link rel="apple-touch-icon" href="icon.png">
<!-- Place favicon.ico in the root directory -->
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/radialprogress.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.0/css/all.css" integrity="sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt" crossorigin="anonymous">
</head>
<body>
<!--[if lte IE 9]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/">upgrade your browser</a> to improve your experience and security.</p>
<![endif]-->
<nav class="navbar navbar-dark bg-dark">
<a class="navbar-brand" href="#">GatherContent Status</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<?php foreach ($projects as $pid => $p): ?>
<li class="nav-item">
<a class="nav-link" href="index.php?pid=<?php echo $pid; ?>">
<?php echo $p['name']; ?>
</a>
</li>
<?php endforeach; ?>
</ul>
</div>
</nav>