printline
header Freeport BBS
name Message Permissions Menu
printheader
printline
print

columns 2
option {
   name List Accept List
   value 1
   run /usr/local/bin/tctrl -ly
}

option {
   name List Deny List
   value 4
   run /usr/local/bin/tctrl -ln
}

option {
   name Add Users to Accept List
   value 2
   run /usr/local/bin/tctrl -ay
}

option {
   name Add Users to Deny List
   value 5
   run /usr/local/bin/tctrl -an
}

option {
   name Delete Users from Accept List
   value 3
   run /usr/local/bin/tctrl -dy
}

option {
   name Delete Users from Deny List
   value 6
   run /usr/local/bin/tctrl -dn
}

print
columns 1

option {
   name Change Current Permissions
   menu telmenu_changecurrent
}

option {
   name Change Default Permissions
   menu telmenu_changedefault
}

option {
   name Set Current Permissions to Default Permissions
   run /usr/local/bin/tctrl -u
}

print
print -n Current Permissions: `/usr/local/bin/tctrl -lp`
print -n Default Permissions: `/usr/local/bin/tctrl -ld`

option {
   value Q
   noprint
   exit
}

option {
   value B
   noprint
   menu /usr/local/xenmenu-0.8a/menus/config
}

option {
   value H
   noprint
   menu /usr/local/xenmenu-0.8a/menus/help/tel
}

print
printline
center Enter Q to Quit - Enter H for Help
center Enter B to go Back to the Previous Menu
printline
print
print -n Local Time: `date +%I:%M%p`
