diff --git a/inc/sites.inc b/inc/sites.inc index d32642fa..bebb93c2 100755 --- a/inc/sites.inc +++ b/inc/sites.inc @@ -670,45 +670,57 @@ SITEINFO(){ if [ $f -eq 0 ]; then echo -e "\033[K" echo -e "\033[K" - echo -e "\033[K (${idsCL[Green]}s${idsCL[Default]})ave, (${idsCL[Red]}c${idsCL[Default]})ancel" + echo -e "\033[K (${idsCL[Green]}s${idsCL[Default]})ave, (${idsCL[Red]}c${idsCL[Default]})ancel, (${idsCL[Green]}e${idsCL[Default]})xit" echo -e "\033[K" echo -e "\033[K" echo -e "\033[K" echo -e "\033[7A" fi - echo -en "\n\033[K${idsCL[LightCyan]}Enter the line number to edit: ${idsCL[Default]}" - read -n 1 edit - case "${edit}" in - 0) ;; - 1) [ "${type}" == "HTTP" ] && type='Proxy' || type='HTTP';; - 2) ;; - 3) [ "${hsts}" == "-" ] && hsts='Yes' || hsts='-';; - 4) [ "${wbskt}" == "-" ] && wbskt='Yes' || wbskt='-';; - 5) [ "${explt}" == "-" ] && explt='Yes' || explt='-';; - 6) [ "${lock}" == "-" ] && lock='Yes' || lock='-';; - 7) - echo -e "\033[K\n\033[K" - echo -en "\033[KEnter new Proxy Address: " - read server - echo -e "\033[5A"; echo -e "\033[K"; echo -e "\033[K"; echo -e "\033[K"; echo -e "\033[K"; echo -e "\033[K"; echo -e "\033[5A" - ;; - 8) [ "${scheme}" == "http" ] && scheme='https' || scheme='http';; - # 8) - # echo -e "\033[K\n\033[K" - # echo -en "\033[KEnter new Proxy Scheme (http/https): " - # read scheme - # echo -e "\033[5A"; echo -e "\033[K"; echo -e "\033[K"; echo -e "\033[K"; echo -e "\033[K"; echo -e "\033[K"; echo -e "\033[5A" - # ;; - 9) - echo -e "\033[K\n\033[K" - echo -en "\033[KEnter new Proxy Port: " - read port - echo -e "\033[5A"; echo -e "\033[K"; echo -e "\033[K"; echo -e "\033[K"; echo -e "\033[K"; echo -e "\033[K"; echo -e "\033[5A" - ;; + while [ "${edit^}" != "E" ]; do + echo -en "\n\033[K${idsCL[LightCyan]}Enter the line number to edit: ${idsCL[Default]}" + read -n 1 edit + + case "${edit}" in + 0) ;; + 1) [ "${type}" == "HTTP" ] && type='Proxy' || type='HTTP';; + 2) ;; + 3) [ "${hsts}" == "-" ] && hsts='Yes' || hsts='-';; + 4) [ "${wbskt}" == "-" ] && wbskt='Yes' || wbskt='-';; + 5) [ "${explt}" == "-" ] && explt='Yes' || explt='-';; + 6) [ "${lock}" == "-" ] && lock='Yes' || lock='-';; + 7) + echo -e "\033[K\n\033[K" + echo -en "\033[KEnter new Proxy Address: " + read server + echo -e "\033[5A"; echo -e "\033[K"; echo -e "\033[K"; echo -e "\033[K"; echo -e "\033[K"; echo -e "\033[K"; echo -e "\033[5A" + ;; + 8) [ "${scheme}" == "http" ] && scheme='https' || scheme='http';; + # 8) + # echo -e "\033[K\n\033[K" + # echo -en "\033[KEnter new Proxy Scheme (http/https): " + # read scheme + # echo -e "\033[5A"; echo -e "\033[K"; echo -e "\033[K"; echo -e "\033[K"; echo -e "\033[K"; echo -e "\033[K"; echo -e "\033[5A" + # ;; + 9) + echo -e "\033[K\n\033[K" + echo -en "\033[KEnter new Proxy Port: " + read port + echo -e "\033[5A"; echo -e "\033[K"; echo -e "\033[K"; echo -e "\033[K"; echo -e "\033[K"; echo -e "\033[K"; echo -e "\033[5A" + ;; - [Cc]) echo -e "\n\n\n"; exit 0;; - esac + [Ee]) + echo -e "\n\n\n" + exit 0 + ;; + [Cc]) + echo -e "\n\033[K\033[14A"; + echo -e "\033[K\n\033[K\n\033[K\n\033[K\n\033[K\n\033[K\n\033[K\n\033[K\n\033[K\n\033[K\n\033[K\n\033[K\n\033[K\n\033[K"; + echo -e "\033[14A" + + ;; + esac + done # [ "$edit" = "7" ] && echo -e "\033[5A"; echo -e "\033[K"; echo -e "\033[K"; echo -e "\033[K"; echo -e "\033[K"; echo -e "\033[K"; echo -e "\033[5A" echo -e "\033[12A" else