diff options
Diffstat (limited to 'httpdocs/index.php')
-rw-r--r-- | httpdocs/index.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/httpdocs/index.php b/httpdocs/index.php index 80f9f53..a697be3 100644 --- a/httpdocs/index.php +++ b/httpdocs/index.php @@ -1,6 +1,6 @@ <?php -$f = popen('/usr/bin/gpio read 27', 'r'); +$f = popen('/usr/bin/gpio read 7', 'r'); if ($f === false) { print 'Cannot access gpio'; die(); @@ -43,22 +43,22 @@ function push_it() { if (($duration > 0) && ($duration < 300)) { print 'pushing for ' . ($duration * 0.1) . ' seconds ... <br>' . "\n"; - shell_exec('/usr/bin/gpio write 28 1'); + shell_exec('/usr/bin/gpio write 9 1'); flush(); usleep(100000 * $duration); - shell_exec('/usr/bin/gpio write 28 0'); + shell_exec('/usr/bin/gpio write 9 0'); print '... done<br>' . "\n"; } } print '<html>' . "\n"; print '<head>' . "\n"; -print '<title>fileserver lights-out</title>' . "\n"; +print '<title>fenster lights-out</title>' . "\n"; if (array_key_exists('password', $_POST)) print '<meta http-equiv="refresh" content="1;/">' . "\n"; print '</head>' . "\n"; print '<body>' . "\n"; -print 'Fileserver is currently '; +print 'Fenster is currently '; if ($l == '1') print '<font color="ff0000">off</font>'; else |