#!/bin/sh #------------------------------------------------------------------------------ # timetable.cgi - shows the circuit timetable in colorful format # # Creation: 20.01.2001 tg # Last Update: $Id$ # #------------------------------------------------------------------------------ # get main helper functions . /srv/www/include/cgi-helper # Security check_rights 'status' 'view' # Check if imond is running if [ ! -f /var/run/imond.port ] then show_html_header "$_MN_err" show_error "$_MN_err" "imond $_MN_notrun" show_html_footer exit 1 fi if [ 0$FORM_circuit -gt 0 ] then num=" $FORM_circuit" addtext="
" headtext="$_TT_for Circuit $FORM_circuit" else num="" addtext="" headtext="$_TT_for $_TT_lcr" fi table=`imond-send "timetable$num" | sed '1,10 s/.$//'` table1=`echo "$table" | sed -n '1,9 p'` table2=`echo "$table" | sed -n '11,$ p'` unset table table1=`echo "$table1" | sed ' 1 s# \{1,5\}#$k | Circuit $k | no | no | pppoe | 0.0 | 15 |