#!/usr/bin/cbsi <% THEME=$(uci get kagera.webui.theme) TIMEOUT=$(uci get kagera.webui.timeout) if [ "${GET_option}" == "logout" ]; then eval $(sessmgr -l -r "index.sh?option=overview") elif [ "${POST_sessopen}" == "1" ] && [ -n "${POST_sesspass}" ]; then sleep 3 eval $(sessmgr -u "${POST_sessuser}" -p "${POST_sesspass}" -b "${COOKIE_browser_time}" -a "${HTTP_USER_AGENT}" -i "${REMOTE_ADDR}" -t "${TIMEOUT}" -r "index.sh?option=${GET_option}") fi eval $(sessmgr -c "${COOKIE_kagera_sid}" -u "${COOKIE_kagera_usr}" -e "${COOKIE_kagera_exp}" -b "${COOKIE_browser_time}" -a "${HTTP_USER_AGENT}" -i "${REMOTE_ADDR}" -t "${TIMEOUT}") [ -f /usr/lib/kagera/config/${GET_option}.cbsi ] || GET_option="overview" if [ -n "${GET_refresh}" ]; then echo "Content-type: text/plain; charset=utf-8" if [ -n "${VALIDSESS}" ]; then if [ "${GET_runcommand}" == "1" ]; then if [ -n "${POST_commands}" ]; then echo "" echo "${POST_commands}" | tr -d "\r" > /tmp/run.sh sh /tmp/run.sh rm -f /tmp/run.sh fi else /usr/bin/cbsi /usr/lib/kagera/config/${GET_option}.cbsi fi fi exit fi echo "Content-type: text/html; charset=utf-8" . /etc/version %> Kagera Router Management Utility <% if [ "${VALIDSESS}" == "1" ]; then %>
<% /usr/bin/cbsi -t ${GET_option} /usr/lib/kagera/config/${GET_option}.cbsi %>
<% else %>

<%@ Authorization Required %>


<% fi %>
L