This commit is contained in:
2023-05-24 22:19:12 -05:00
parent 406532c52f
commit cb22161622
2 changed files with 30 additions and 1 deletions

View File

@@ -436,4 +436,31 @@ NEWSITE(){
${SCRIPT} newsite
exit 0
fi
}
}
VIEWSITEINFO(){
cw_spc1=20
cw_spc2=7
cw_spc3=7
cw_spc4=7
cw_spc5=7
# cw_spc6=15
echo -e "${idsCL[LightGreen]}Site Information ${idsCL[Default]}"
DIVIDER false yellow 120
msg1="Site Address"; c=0; spc1=''; spct=$((${cw_spc1}-${#msg1})); until [ $c = ${spct} ]; do spc1="${spc1} "; c=`expr $c + 1`; done
msg2="Type"; c=0; spc2=''; spct=$((${cw_spc2}-${#msg2})); until [ $c = ${spct} ]; do spc2="${spc2} "; c=`expr $c + 1`; done
msg3="SSL"; c=0; spc3=''; spct=$((${cw_spc3}-${#msg3})); until [ $c = ${spct} ]; do spc3="${spc3} "; c=`expr $c + 1`; done
msg4="HSTS"; c=0; spc4=''; spct=$((${cw_spc4}-${#msg4})); until [ $c = ${spct} ]; do spc4="${spc4} "; c=`expr $c + 1`; done
msg5="WBSKT"; c=0; spc5=''; spct=$((${cw_spc5}-${#msg5})); until [ $c = ${spct} ]; do spc5="${spc5} "; c=`expr $c + 1`; done
msg6="Proxy Host"; # c=0; spc6=''; spct=$((${cw_spc6}-${#msg6})); until [ $c = ${spct} ]; do spc6="${spc6} "; c=`expr $c + 1`; done
echo -e "${msg1}${spc1}${msg2}${spc2}${msg3}${spc3}${msg4}${spc4}${msg5}${spc5}${msg6}${spc7}"
DIVIDER false yellow 120
}

View File

@@ -1232,6 +1232,8 @@ GUI(){
delsite) DELSITE ${2} ${3} ${4} ${5};;
delsites) DELSITES;;
newsite) NEWSITE ${2} ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10} ${11} ${12} ${13} ${14} ${15} ${16} ${17} ${18} ${19} ${20} ${21} ${22} ${23} ${24} ${25};;
siteinfo) VIEWSITEINFO;;
update) ;;
update-nodes)
if [ "${2}" == "report" ]; then