/
index.php
executable file
·94 lines (79 loc) · 2.46 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<?php
include_once 'config.php';
//unlink('cache.html')
//set_time_limit(5);
//xdebug_enable();
?>
<!DOCTYPE html>
<html>
<head>
<title>Stale Sites</title>
<script src="js/jquery.js"></script>
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="assets/css/bootstrap-responsive.css" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div class="container-fluid">
<div class="row-fluid">
<h1 class="span12" style="text-align: center">Stale Sites</h1>
</div>
<div class="row-fluid" style="text-align:center">
<img src="img/bulogo.png" width="168px" height="55px" class="img-polaroid">
</div>
<div class="row-fluid"><div class="span12"></div></div> <!-- Extra space -->
<div class="row-fluid">
<div class="span3 offset3">
<lable> <strong>Base Path</strong>:<br>
<div class="input-append">
<input class="span8" name="base-dir" id="base-dir" value="<?php echo $basePath; ?>" type="text"/>
<button type="button" name="update-button" id="update-button" value="Update" class="btn btn-primary">Update</button>
</div>
</lable>
<br><br>
<lable> <strong>Add exclude Path/s : </strong>
<div class="input-append">
<input type="text" name="exclude-dir" id="exclude-dir" value="" placeholder="comma separated input" class="span8"/>
<button type="button" name="exclude-button" id="exclude-button" class="btn btn-danger">Exclude</button>
</div>
</lable>
<small>Note: Relative paths are ignored from base path</small>
<br><br>
<strong>Current Excluded paths</strong>:
<div id = "ignoredSites">
<?php include_once("getIgnoredSites.php"); ?>
</div>
</div>
<div class="span3">
<div id="status-indicator">
<?php
if(isset($_GET['error'])) {
?>
<span class="alert alert-block alert-error">
<?=$_GET['error'];?>
</span>
<?php
}
if($basePath === null) {
?>
<span class="alert alert-block alert-error">
Please setup your base-path first.
</span>
<?php
}
?>
</div>
<!--Body content-->
<div id="main-text">
<?php
if($basePath !== null) include_once("getStaleSites.php");
?>
</div>
</div>
</div>
</div>
<script src="js/bootstrap.min.js"></script>
<script src="js/custom.js" type="text/javascript"></script>
</body>
</html>