no real work, just some frame work stuff
[php-bacula-disk-changer.git] / bin / pbdc.php
1 <?php
2
3 $BASE_LIB="../lib";
4 $BASE_DATA="../db";
5 $BASE_BIN="/usr/bin";
6
7 require_once "$BASE_LIB/lib.php";
8
9 if(!isset($argv[1])) {
10         echo "Usage: ".$argv[0]."  command\n";
11         echo "\tbacula-config - outputs bacula config\n";
12         echo "\tinit - inits the bacula php changer stuff\n";
13         echo "\tadd-disk - adds a disk\n";
14         echo "\tdisks - lists current disks\n";
15         echo "\tstatus - prints status (whats where in which slot, drive, etc)\n";
16         exit(0);
17 }
18
19 $command = $argv[1];
20
21 ?>