-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
43 lines (42 loc) · 1.76 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
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pages</title>
<link rel="stylesheet" href="css/app.min.css">
</head>
<body style="background: #2E2E2E;">
<div class="row">
<div class="large-12 columns">
<div style="
padding: 20px 30px;
background: #4A64A3;
border-radius: 3px;
margin-top: 20px;
/* box-shadow: 0 0 5px #2C3856; */
border: 2px solid #3B5CAC;
">
<p class="text-center"><img src="images/logo.png" alt=""></p>
<div class="row">
<?php
// show list of files
$files = scandir(dirname(__FILE__));
foreach ($files as $i => $name) {
if (strlen($name) > 4) {
if (substr($name, -4) == '.php' && substr($name, 0,1) != '_' && !in_array($name, array('index.php','header.php','footer.php'))) {
$show_name = ucwords(str_replace(array('_','-'), array(' ',' '), substr($name, 0,-4)));
?>
<div class="columns small-6 medium-4 large-3"><a href="<?php echo $name ?>" class="button expanded" target="_blank" ><?php echo $show_name ?></a></div>
<?php
}
}
}
?>
</div>
</div>
</div>
</div>
</body>
</html>