-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdid.php
More file actions
17 lines (17 loc) · 802 Bytes
/
did.php
File metadata and controls
17 lines (17 loc) · 802 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<html><head><title>did</title></head><body>
<?
$tasks = ['exe', 'med', 'study', 'clean'];
$arg = preg_replace("/[^a-z A-Z0-9]+/", "", $_POST['did']);
if ($arg != "") system("./did $arg");
echo "..." . $arg;
?>
<pre><? system("./did"); ?></pre><br/>
<form method="post" action="did.php">
Today:
<?foreach ($tasks as $task) echo "<button type=\"submit\" name=\"did\" value=\"" . $task . "\"> " . $task . " </button>";?>
<br/><br/><br/>
Yest..:
<?foreach ($tasks as $task) echo "<button type=\"submit\" name=\"did\" value=\"" . $task . " yest\"> " . $task . " </button>";?>
<br/><br/><br/>
<button type="submit" name="did" value=""> refresh </button>
</form></body></html>