#!/usr/bin/perl -wT -I. use strict; use CGI; use Tinderbox3::Header; use Tinderbox3::DB; use Tinderbox3::Login; my $p = new CGI; my $dbh = get_dbh(); my ($login, $cookie) = check_session($p, $dbh); header($p, $login, $cookie, "Administrate Tinderbox"); print "\n"; my $sth = $dbh->prepare("SELECT tree_name FROM tbox_tree"); $sth->execute(); while (my $tree_info = $sth->fetchrow_arrayref()) { my $tree = $tree_info->[0]; my @actions; push @actions, "Sheriff"; push @actions, "Edit"; push @actions, "View"; print "\n"; } print "\n"; print "
Trees
$tree (" . join(' | ', @actions) . ")
Add Tree
\n"; footer($p); $dbh->disconnect;