newer version of HarveCter + some funny php scripts
[mirrors/Programs.git] / php / .cdtray.php
diff --git a/php/.cdtray.php b/php/.cdtray.php
new file mode 100644 (file)
index 0000000..66a83de
--- /dev/null
@@ -0,0 +1,14 @@
+<a href="?q=eject">Eject</a>
+<a href="?q=close">Close</a>
+<?php
+
+if(isset($_GET["q"])) { 
+    $q = $_GET["q"];
+    if($q == "eject") system("eject");
+    if($q == "close") {
+      system("umount /cdrom");
+      system("eject -t");
+    }
+}
+
+?>
This page took 0.085365 seconds and 4 git commands to generate.