<?php
$BASE_LIB="../lib";
-$BASE_BIN="/usr/bin";
+$BASE_DATA="../db";
+$BACULA_USER="paulr";
+
+global $BASE_DATA, $BASE_LIB, $BACULA_USER, $argv;
require_once "$BASE_LIB/lib.php";
$arc_device = $argv[4];
$drive_index = $argv[5];
+$changer = $changer_dev;
+global $changer;
+
+switch($command) {
+ case "unload":
+ unload_tape();
+ break;
+ case "load":
+ load_tape();
+ break;
+ case "loaded":
+ loaded_tape();
+ break;
+ case "list":
+ list_tapes();
+ break;
+ case "slots":
+ num_slots();
+ break;
+ case "listall":
+ listall();
+ break;
+ case "transfer":
+ transfer();
+ break;
+}
+
+function unload_tape()
+{
+ global $BASE_DATA, $BASE_LIB, $BACULA_USER, $changer, $argv;
+
+}
+
+function load_tape()
+{
+ global $BASE_DATA, $BASE_LIB, $BACULA_USER, $changer, $argv;
+
+}
+
+function loaded_tape()
+{
+ global $BASE_DATA, $BASE_LIB, $BACULA_USER, $changer, $argv;
+
+}
+
+function list_tapes()
+{
+ global $BASE_DATA, $BASE_LIB, $BACULA_USER, $changer, $argv;
+
+}
+
+function num_slots()
+{
+ global $BASE_DATA, $BASE_LIB, $BACULA_USER, $changer, $argv;
+
+}
+
+function listall()
+{
+ global $BASE_DATA, $BASE_LIB, $BACULA_USER, $changer, $argv;
+
+}
+function transfer()
+{
+ global $BASE_DATA, $BASE_LIB, $BACULA_USER, $changer, $argv;
+
+}
?>
\ No newline at end of file