Commit | Line | Data |
---|---|---|
1 | <a href="?q=eject">Eject</a> | |
2 | <a href="?q=close">Close</a> | |
3 | <?php | |
4 | ||
5 | if(isset($_GET["q"])) { | |
6 | $q = $_GET["q"]; | |
7 | if($q == "eject") system("eject"); | |
8 | if($q == "close") { | |
9 | system("umount /cdrom"); | |
10 | system("eject -t"); | |
11 | } | |
12 | } | |
13 | ||
14 | ?> |