From 87b429b8583ab10018520d7c1d7e36b217b11fbf Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 25 May 2023 18:25:16 -0500 Subject: [PATCH] Update sites.inc --- inc/sites.inc | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/inc/sites.inc b/inc/sites.inc index 53349a44..671f1f80 100755 --- a/inc/sites.inc +++ b/inc/sites.inc @@ -471,23 +471,23 @@ SITEINFO(){ sites=$(find ${!gosite}/*); i=0 for sitefile in ${sites[@]}; do site=${sitefile##*/}; site=${site/.conf/} - if (( i % 12 == 0 )) || [ $i = 0 ]; then - DIVIDER false yellow 98 - 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="LOCK"; # c=0; spc6=''; spct=$((${cw_spc6}-${#msg6})); until [ $c = ${spct} ]; do spc6="${spc6} "; c=`expr $c + 1`; done - msg7="Proxy Address & Port"; - # echo -e " ${idsST[Bold]}${idsCL[LightCyan]}${msg1}${spc1}${msg2}${spc2}${msg3}${spc3}${msg4}${spc4}${msg5}${spc5}${msg6}${spc6}${msg7}${idsST[Reset]}${idsCL[Default]}" - echo -en "${idsST[Bold]}${idsCL[LightCyan]}" - printf "%-30s %-10s %-7s %-7s %-7s %-8s %-15s\n" "##) ${msg1}" "${msg2}" "${msg3}" "${msg4}" "${msg5}" "${msg6}" "${msg7}" - echo -en "${idsST[Reset]}${idsCL[Default]}" - DIVIDER false yellow 98 - else - DIVIDER false darkGray 98 - fi + # if (( i % 12 == 0 )) || [ $i = 0 ]; then + # DIVIDER false yellow 98 + # 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="LOCK"; # c=0; spc6=''; spct=$((${cw_spc6}-${#msg6})); until [ $c = ${spct} ]; do spc6="${spc6} "; c=`expr $c + 1`; done + # msg7="Proxy Address & Port"; + # # echo -e " ${idsST[Bold]}${idsCL[LightCyan]}${msg1}${spc1}${msg2}${spc2}${msg3}${spc3}${msg4}${spc4}${msg5}${spc5}${msg6}${spc6}${msg7}${idsST[Reset]}${idsCL[Default]}" + # echo -en "${idsST[Bold]}${idsCL[LightCyan]}" + # printf "%-30s %-10s %-7s %-7s %-7s %-8s %-15s\n" "##) ${msg1}" "${msg2}" "${msg3}" "${msg4}" "${msg5}" "${msg6}" "${msg7}" + # echo -en "${idsST[Reset]}${idsCL[Default]}" + # DIVIDER false yellow 98 + # else + # DIVIDER false darkGray 98 + # fi if [ "$(grep include/proxy.conf ${sitefile})" != "" ]; then type='Proxy' server=$(grep 'set $server' ${sitefile})