'. PHP_EOL;
$scsi_ids = array();
@@ -108,31 +107,43 @@ function current_rascsi_config() {
foreach (range(0,7) as $id){
- echo '
';
- echo ' '. PHP_EOL;
+ echo '
'. PHP_EOL;
}
- echo '
';
+ echo '
'. PHP_EOL;
}
function get_all_files()
{
@@ -189,4 +200,4 @@ function type_string_to_rasctl_type($typestr){
-?>
+?>
\ No newline at end of file
diff --git a/src/php/rascsi.php b/src/php/rascsi.php
index 5090682..f412e97 100644
--- a/src/php/rascsi.php
+++ b/src/php/rascsi.php
@@ -1,4 +1,3 @@
-
@@ -7,71 +6,58 @@
-
-
-
-
-
+ function add_device(id) {
+ var url = "add_device.php?id=" + encodeURIComponent(id);
+ window.location.href = url;
+ }
+
+ function remove_device(id) {
+ confirm_message = "Are you sure you want to disconnect ID " + id +
+ "? This may cause unexpected behavior on the host computer if it is still running";
+ if (confirm(confirm_message)) {
+ var url = "disconnect.php?id=" + encodeURIComponent(id);
+ window.location.href = url;
+ }
+ }
+
+ function delete_file(f) {
+ if (confirm("Are you sure you want to delete " + f + "?"))
+ alert("OK");
+ }
+
+
+
+
For now, shutdown is disabled....";
- echo 'exec("sudo /sbin/shutdown -s -t 0");';
- }
-
current_rascsi_config();
?>
-
+