-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
43 lines (42 loc) · 1.19 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
<?php
$home_dir = trim(`wslpath "$(wslvar USERPROFILE)"`);
$exports = $home_dir . "/OneDrive/Documents/Backup/Twitter";
$export_dirs = glob($exports . "/*", GLOB_ONLYDIR);
?>
<!doctype html>
<html>
<head>
<style>
fieldset { display: flex; flex-direction: column; }
fieldset > * { margin: 1em; }
</style>
</head>
<body>
<form method="get" action="run.php">
<fieldset>
<div>Username: <select name="user">
<?php
foreach ($export_dirs as $dir) {
echo "<option>$dir</option>";
}
?>
</select>
<div>Start date: <input type="date" name="datestart" value="2012-01-01"></div>
<div>End date: <input type="date" name="dateend" value="2012-06-01"></div>
<div>Hide name: <input type="checkbox" name="compact"></div>
<div>Retweets: <input type="checkbox" name="retweets"></div>
<div>Replies: <input type="checkbox" name="replies"></div>
<div>Color: <select name="hue">
<option value="120">Green</option>
<option value="0">Red</option>
<option value="240">Blue</option>
</select></div>
<div>Pages: <select name="pages">
<option value="even">Even</option>
<option value="odd">Odd</option>
</select></div>
<input type="submit">
</fieldset>
</form>
</body>
</html>