} else if (PO==1){ if (IP==102){
} if (header.indexOf("GET /SW1Q1") >= 0){TSW1=S1O;} else if (header.indexOf("GET /SW1Q0") >= 0){TSW1=S1C;} if (TSW1==S1C and PO<2) {
} else if (TSW1==S1O and PO<2){
} else if (TSW1==S1O and (PO==2)){
} else if (TSW1==S1C and (PO==2)){
} if (header.indexOf("GET /SW2Q1") >= 0) {TSW2=S2O;} else if (header.indexOf("GET /SW2Q0") >= 0){TSW2=S2C;} if (TSW2==S2C and PO<2) {} else if (TSW2==S2O and PO<2){} else if (TSW2==S2O and (PO==2)){
} else if (TSW2==S2C and (PO==2)){
} if (header.indexOf("GET /SW3Q1") >= 0) {TSW3=S3O;} else if (header.indexOf("GET /SW3Q0") >= 0){TSW3=S3C;} if (TSW3==S3C and PO<2) {} else if (TSW3==S3O and PO<2){} else if (TSW3==S3O and (PO==2)){
} else if (TSW3==S3C and (PO==2)){
} if (PO!=2){ if (header.indexOf("GET /SW4Q1") >= 0) {TSW4=S4O;} else if (header.indexOf("GET /SW4Q0") >= 0){TSW4=S4C;} if (TSW4==S4C) {
} else {} if (header.indexOf("GET /SW5Q1") >= 0) {TSW5=S5O;} else if (header.indexOf("GET /SW5Q0") >= 0){TSW5=S5C;} if (TSW5==S5C) {} if (header.indexOf("GET /SW6Q1") >= 0) {TSW6=S6O;} else if (header.indexOf("GET /SW6Q0") >= 0){TSW6=S6C;} if (TSW6==S6C) {} else {} if (header.indexOf("GET /SW7Q1") >= 0) {TSW7=S7O;} else if (header.indexOf("GET /SW7Q0") >= 0){TSW7=S7C;} if (TSW7==S7C) {} else {} if (header.indexOf("GET /SW8Q1") >= 0) {TSW8=S8O;} else if (header.indexOf("GET /SW8Q0") >= 0){TSW8=S8C;} if (TSW8==S8C) {
} } if (header.indexOf("GET /NEWT0") >= 0){NEWT=0;} else if (header.indexOf("GET /NEWT1") >= 0){NEWT=1; unsigned long epochTime = timeClient.getEpochTime(); timeClient.update(); String formattedTime = timeClient.getFormattedTime(); } if (NEWT==1) {
} client.println(WiFi.SSID()); _ client.println(H); : client.println(M); : client.println(S); if (header.indexOf("GET /DDT0") >= 0){DDT=0;} else if (header.indexOf("GET /DDT1") >= 0) {DDT=1;} if (DDT==1) {
if (header.indexOf("GET /RST2") >= 0) {epromw();} else if (header.indexOf("GET /RST1") >= 0){
} if (header.indexOf("GET /PO0") >= 0){PO=0;} else if (header.indexOf("GET /PO1") >= 0){PO=1;} else if (header.indexOf("GET /PO2") >= 0){PO=2;} if (PO==0) {} else if (PO==1) {} else if (PO==2) {} if (header.indexOf("GET /WIID00") >= 0){WIID=0;} else if (header.indexOf("GET /WIID01") >= 0){WIID=1;} else if (header.indexOf("GET /WIID02") >= 0){WIID=2;} else if (header.indexOf("GET /WIID03") >= 0){WIID=3;} else if (header.indexOf("GET /WIID10") >= 0){WIID=10;} else if (header.indexOf("GET /WIID11") >= 0){WIID=11;} else if (header.indexOf("GET /WIID12") >= 0){WIID=12;} else if (header.indexOf("GET /WIID13") >= 0){WIID=13;} else if (header.indexOf("GET /WIID15") >= 0){WIID=15;} else if (header.indexOf("GET /WIID20") >= 0){WIID=20;} else if (header.indexOf("GET /WIID30") >= 0){WIID=30;} else if (header.indexOf("GET /WIID98") >= 0){WIID=98;} else if (header.indexOf("GET /WIID99") >= 0){WIID=99;} if (WIID==0){} else if (WIID==1){} else if (WIID==2){} else if (WIID==3){} else if (WIID==10){} else if (WIID==11){} else if (WIID==12){} else if (WIID==13){} else if (WIID==15){} else if (WIID==20){} else if (WIID==30){} else if (WIID==98){} else if (WIID==99){} if (TSW0==S0C) {
} if (header.indexOf("GET /IP0") >= 0 and IP<130) {IP=IP+1; String IPW = String(IP);
} else if (header.indexOf("GET /IP0") >= 0 and IP==130) {IP=101;
} else {String IPW = String(IP);
} if (header.indexOf("GET /eep1") >= 0) {if (iri==1 and (SWA1==irip or SWA2==irip or SWA3==irip or SWA4==irip or SWA5==irip or SWA6==irip or SWA7==irip or SWA8==irip or SWA0==irip)){} else if (iro==1 and (SWA1==irop or SWA2==irop or SWA3==irop or SWA4==irop or SWA5==irop or SWA6==irop or SWA7==irop or SWA8==irop or SWA0==irop)){} else { EEPROM.commit(); delay (1000);}} else {} if (header.indexOf("GET /RS2") >= 0) {ESP.restart();} else if (header.indexOf("GET /RS1") >= 0){
} if (header.indexOf("GET /showsw0") >= 0 and showsw<8) {showsw=showsw+1; String showsww = String(showsw);
} else if (header.indexOf("GET /showsw0") >= 0 and showsw==8) {showsw=0;
} else {String showsww = String(showsw);
} if (header.indexOf("GET /iro0") >= 0){iro=0;} else if (header.indexOf("GET /iro1") >= 0){iro=1;} if (iro==1) {} else {} if (header.indexOf("GET /iri0") >= 0){iri=0;} else if (header.indexOf("GET /iri1") >= 0){iri=1;} if (iri==1) {
} if ((showsw==0 and SW0==D0) or (showsw==1 and SW1==D0) or (showsw==2 and SW2==D0) or (showsw==3 and SW3==D0) or (showsw==4 and SW4==D0) or (showsw==5 and SW5==D0) or (showsw==6 and SW6==D0) or (showsw==7 and SW7==D0) or (showsw==8 and SW8==D0)) {String showsww = String(showsw);
} else if ((showsw==0 and SW0==D1) or (showsw==1 and SW1==D1) or (showsw==2 and SW2==D1) or (showsw==3 and SW3==D1) or (showsw==4 and SW4==D1) or (showsw==5 and SW5==D1) or (showsw==6 and SW6==D1) or (showsw==7 and SW7==D1) or (showsw==8 and SW8==D1)) {String showsww = String(showsw);
} else if ((showsw==0 and SW0==D2) or (showsw==1 and SW1==D2) or (showsw==2 and SW2==D2) or (showsw==3 and SW3==D2) or (showsw==4 and SW4==D2) or (showsw==5 and SW5==D2) or (showsw==6 and SW6==D2) or (showsw==7 and SW7==D2) or (showsw==8 and SW8==D2)) {String showsww = String(showsw);
} else if ((showsw==0 and SW0==D3) or (showsw==1 and SW1==D3) or (showsw==2 and SW2==D3) or (showsw==3 and SW3==D3) or (showsw==4 and SW4==D3) or (showsw==5 and SW5==D3) or (showsw==6 and SW6==D3) or (showsw==7 and SW7==D3) or (showsw==8 and SW8==D3)) {String showsww = String(showsw);
} else if ((showsw==0 and SW0==D4) or (showsw==1 and SW1==D4) or (showsw==2 and SW2==D4) or (showsw==3 and SW3==D4) or (showsw==4 and SW4==D4) or (showsw==5 and SW5==D4) or (showsw==6 and SW6==D4) or (showsw==7 and SW7==D4) or (showsw==8 and SW8==D4)) {String showsww = String(showsw);
} else if ((showsw==0 and SW0==D5) or (showsw==1 and SW1==D5) or (showsw==2 and SW2==D5) or (showsw==3 and SW3==D5) or (showsw==4 and SW4==D5) or (showsw==5 and SW5==D5) or (showsw==6 and SW6==D5) or (showsw==7 and SW7==D5) or (showsw==8 and SW8==D5)) {String showsww = String(showsw);
} else if ((showsw==0 and SW0==D6) or (showsw==1 and SW1==D6) or (showsw==2 and SW2==D6) or (showsw==3 and SW3==D6) or (showsw==4 and SW4==D6) or (showsw==5 and SW5==D6) or (showsw==6 and SW6==D6) or (showsw==7 and SW7==D6) or (showsw==8 and SW8==D6)) {String showsww = String(showsw);
} else if ((showsw==0 and SW0==D7) or (showsw==1 and SW1==D7) or (showsw==2 and SW2==D7) or (showsw==3 and SW3==D7) or (showsw==4 and SW4==D7) or (showsw==5 and SW5==D7) or (showsw==6 and SW6==D7) or (showsw==7 and SW7==D7) or (showsw==8 and SW8==D7)) {String showsww = String(showsw);
} else if ((showsw==0 and SW0==D8) or (showsw==1 and SW1==D8) or (showsw==2 and SW2==D8) or (showsw==3 and SW3==D8) or (showsw==4 and SW4==D8) or (showsw==5 and SW5==D8) or (showsw==6 and SW6==D8) or (showsw==7 and SW7==D8) or (showsw==8 and SW8==D8)) {String showsww = String(showsw);
} else if ((showsw==0 and SW0==TX) or (showsw==1 and SW1==TX) or (showsw==2 and SW2==TX) or (showsw==3 and SW3==TX) or (showsw==4 and SW4==TX) or (showsw==5 and SW5==TX) or (showsw==6 and SW6==TX) or (showsw==7 and SW7==TX) or (showsw==8 and SW8==TX)) {String showsww = String(showsw);
} else if ((showsw==0 and SW0==RX) or (showsw==1 and SW1==RX) or (showsw==2 and SW2==RX) or (showsw==3 and SW3==RX) or (showsw==4 and SW4==RX) or (showsw==5 and SW5==RX) or (showsw==6 and SW6==RX) or (showsw==7 and SW7==RX) or (showsw==8 and SW8==RX)) {String showsww = String(showsw);
} if (header.indexOf("GET /SWAP0") >= 0){if (showsw==0){SWA0=D0;}else if (showsw==1){SWA1=D0;}else if (showsw==2){SWA2=D0;}else if (showsw==3){SWA3=D0;}else if (showsw==4){SWA4=D0;}else if (showsw==5){SWA5=D0;}else if (showsw==6){SWA6=D0;}else if (showsw==7){SWA7=D0;}else if (showsw==8){SWA8=D0;}} else if (header.indexOf("GET /SWAP1") >= 0){if (showsw==0){SWA0=D1;}else if (showsw==1){SWA1=D1;}else if (showsw==2){SWA2=D1;}else if (showsw==3){SWA3=D1;}else if (showsw==4){SWA4=D1;}else if (showsw==5){SWA5=D1;}else if (showsw==6){SWA6=D1;}else if (showsw==7){SWA7=D1;}else if (showsw==8){SWA8=D1;}} else if (header.indexOf("GET /SWAP2") >= 0){if (showsw==0){SWA0=D2;}else if (showsw==1){SWA1=D2;}else if (showsw==2){SWA2=D2;}else if (showsw==3){SWA3=D2;}else if (showsw==4){SWA4=D2;}else if (showsw==5){SWA5=D2;}else if (showsw==6){SWA6=D2;}else if (showsw==7){SWA7=D2;}else if (showsw==8){SWA8=D2;}} else if (header.indexOf("GET /SWAP3") >= 0){if (showsw==0){SWA0=D3;}else if (showsw==1){SWA1=D3;}else if (showsw==2){SWA2=D3;}else if (showsw==3){SWA3=D3;}else if (showsw==4){SWA4=D3;}else if (showsw==5){SWA5=D3;}else if (showsw==6){SWA6=D3;}else if (showsw==7){SWA7=D3;}else if (showsw==8){SWA8=D3;}} else if (header.indexOf("GET /SWAP4") >= 0){if (showsw==0){SWA0=D4;}else if (showsw==1){SWA1=D4;}else if (showsw==2){SWA2=D4;}else if (showsw==3){SWA3=D4;}else if (showsw==4){SWA4=D4;}else if (showsw==5){SWA5=D4;}else if (showsw==6){SWA6=D4;}else if (showsw==7){SWA7=D4;}else if (showsw==8){SWA8=D4;}} else if (header.indexOf("GET /SWAP5") >= 0){if (showsw==0){SWA0=D5;}else if (showsw==1){SWA1=D5;}else if (showsw==2){SWA2=D5;}else if (showsw==3){SWA3=D5;}else if (showsw==4){SWA4=D5;}else if (showsw==5){SWA5=D5;}else if (showsw==6){SWA6=D5;}else if (showsw==7){SWA7=D5;}else if (showsw==8){SWA8=D5;}} else if (header.indexOf("GET /SWAP6") >= 0){if (showsw==0){SWA0=D6;}else if (showsw==1){SWA1=D6;}else if (showsw==2){SWA2=D6;}else if (showsw==3){SWA3=D6;}else if (showsw==4){SWA4=D6;}else if (showsw==5){SWA5=D6;}else if (showsw==6){SWA6=D6;}else if (showsw==7){SWA7=D6;}else if (showsw==8){SWA8=D6;}} else if (header.indexOf("GET /SWAP7") >= 0){if (showsw==0){SWA0=D7;}else if (showsw==1){SWA1=D7;}else if (showsw==2){SWA2=D7;}else if (showsw==3){SWA3=D7;}else if (showsw==4){SWA4=D7;}else if (showsw==5){SWA5=D7;}else if (showsw==6){SWA6=D7;}else if (showsw==7){SWA7=D7;}else if (showsw==8){SWA8=D7;}} else if (header.indexOf("GET /SWAP8") >= 0){if (showsw==0){SWA0=D8;}else if (showsw==1){SWA1=D8;}else if (showsw==2){SWA2=D8;}else if (showsw==3){SWA3=D8;}else if (showsw==4){SWA4=D8;}else if (showsw==5){SWA5=D8;}else if (showsw==6){SWA6=D8;}else if (showsw==7){SWA7=D8;}else if (showsw==8){SWA8=D8;}} else if (header.indexOf("GET /SWAPT") >= 0){if (showsw==0){SWA0=TX;}else if (showsw==1){SWA1=TX;}else if (showsw==2){SWA2=TX;}else if (showsw==3){SWA3=TX;}else if (showsw==4){SWA4=TX;}else if (showsw==5){SWA5=TX;}else if (showsw==6){SWA6=TX;}else if (showsw==7){SWA7=TX;}else if (showsw==8){SWA8=TX;}} else if (header.indexOf("GET /SWAPR") >= 0){if (showsw==0){SWA0=RX;}else if (showsw==1){SWA1=RX;}else if (showsw==2){SWA2=RX;}else if (showsw==3){SWA3=RX;}else if (showsw==4){SWA4=RX;}else if (showsw==5){SWA5=RX;}else if (showsw==6){SWA6=RX;}else if (showsw==7){SWA7=RX;}else if (showsw==8){SWA8=RX;}} if ((showsw==0 and SWA0==D0) or (showsw==1 and SWA1==D0) or (showsw==2 and SWA2==D0) or (showsw==3 and SWA3==D0) or (showsw==4 and SWA4==D0) or (showsw==5 and SWA5==D0) or (showsw==6 and SWA6==D0) or (showsw==7 and SWA7==D0) or (showsw==8 and SWA8==D0)) {} else if ((showsw==0 and SWA0==D1) or (showsw==1 and SWA1==D1) or (showsw==2 and SWA2==D1) or (showsw==3 and SWA3==D1) or (showsw==4 and SWA4==D1) or (showsw==5 and SWA5==D1) or (showsw==6 and SWA6==D1) or (showsw==7 and SWA7==D1) or (showsw==8 and SWA8==D1)) {} else if ((showsw==0 and SWA0==D2) or (showsw==1 and SWA1==D2) or (showsw==2 and SWA2==D2) or (showsw==3 and SWA3==D2) or (showsw==4 and SWA4==D2) or (showsw==5 and SWA5==D2) or (showsw==6 and SWA6==D2) or (showsw==7 and SWA7==D2) or (showsw==8 and SWA8==D2)) {} else if ((showsw==0 and SWA0==D3) or (showsw==1 and SWA1==D3) or (showsw==2 and SWA2==D3) or (showsw==3 and SWA3==D3) or (showsw==4 and SWA4==D3) or (showsw==5 and SWA5==D3) or (showsw==6 and SWA6==D3) or (showsw==7 and SWA7==D3) or (showsw==8 and SWA8==D3)) {} else if ((showsw==0 and SWA0==D4) or (showsw==1 and SWA1==D4) or (showsw==2 and SWA2==D4) or (showsw==3 and SWA3==D4) or (showsw==4 and SWA4==D4) or (showsw==5 and SWA5==D4) or (showsw==6 and SWA6==D4) or (showsw==7 and SWA7==D4) or (showsw==8 and SWA8==D4)) {if (iri==0){} else {}} else if ((showsw==0 and SWA0==D5) or (showsw==1 and SWA1==D5) or (showsw==2 and SWA2==D5) or (showsw==3 and SWA3==D5) or (showsw==4 and SWA4==D5) or (showsw==5 and SWA5==D5) or (showsw==6 and SWA6==D5) or (showsw==7 and SWA7==D5) or (showsw==8 and SWA8==D5)) {} else if ((showsw==0 and SWA0==D6) or (showsw==1 and SWA1==D6) or (showsw==2 and SWA2==D6) or (showsw==3 and SWA3==D6) or (showsw==4 and SWA4==D6) or (showsw==5 and SWA5==D6) or (showsw==6 and SWA6==D6) or (showsw==7 and SWA7==D6) or (showsw==8 and SWA8==D6)) {} else if ((showsw==0 and SWA0==D7) or (showsw==1 and SWA1==D7) or (showsw==2 and SWA2==D7) or (showsw==3 and SWA3==D7) or (showsw==4 and SWA4==D7) or (showsw==5 and SWA5==D7) or (showsw==6 and SWA6==D7) or (showsw==7 and SWA7==D7) or (showsw==8 and SWA8==D7)) {} else if ((showsw==0 and SWA0==D8) or (showsw==1 and SWA1==D8) or (showsw==2 and SWA2==D8) or (showsw==3 and SWA3==D8) or (showsw==4 and SWA4==D8) or (showsw==5 and SWA5==D8) or (showsw==6 and SWA6==D8) or (showsw==7 and SWA7==D8) or (showsw==8 and SWA8==D8)) {} else if ((showsw==0 and SWA0==TX) or (showsw==1 and SWA1==TX) or (showsw==2 and SWA2==TX) or (showsw==3 and SWA3==TX) or (showsw==4 and SWA4==TX) or (showsw==5 and SWA5==TX) or (showsw==6 and SWA6==TX) or (showsw==7 and SWA7==TX) or (showsw==8 and SWA8==TX)) {if (iro==0){} else {}} else if ((showsw==0 and SWA0==RX) or (showsw==1 and SWA1==RX) or (showsw==2 and SWA2==RX) or (showsw==3 and SWA3==RX) or (showsw==4 and SWA4==RX) or (showsw==5 and SWA5==RX) or (showsw==6 and SWA6==RX) or (showsw==7 and SWA7==RX) or (showsw==8 and SWA8==RX)) {} if (header.indexOf("GET /SSP0") >= 0){if (showsw==0){SS0=0;}else if (showsw==1){SS1=0;}else if (showsw==2){SS2=0;}else if (showsw==3){SS3=0;}else if (showsw==4){SS4=0;}else if (showsw==5){SS5=0;}else if (showsw==6){SS6=0;}else if (showsw==7){SS7=0;}else if (showsw==8){SS8=0;}} else if (header.indexOf("GET /SSP1") >= 0){if (showsw==0){SS0=1;}else if (showsw==1){SS1=1;}else if (showsw==2){SS2=1;}else if (showsw==3){SS3=1;}else if (showsw==4){SS4=1;}else if (showsw==5){SS5=1;}else if (showsw==6){SS6=1;}else if (showsw==7){SS7=1;}else if (showsw==8){SS8=1;}} else if (header.indexOf("GET /SSP2") >= 0){if (showsw==0){SS0=2;}else if (showsw==1){SS1=2;}else if (showsw==2){SS2=2;}else if (showsw==3){SS3=2;}else if (showsw==4){SS4=2;}else if (showsw==5){SS5=2;}else if (showsw==6){SS6=2;}else if (showsw==7){SS7=2;}else if (showsw==8){SS8=2;}} else if (header.indexOf("GET /SSP3") >= 0){if (showsw==0){SS0=3;}else if (showsw==1){SS1=3;}else if (showsw==2){SS2=3;}else if (showsw==3){SS3=3;}else if (showsw==4){SS4=3;}else if (showsw==5){SS5=3;}else if (showsw==6){SS6=3;}else if (showsw==7){SS7=3;}else if (showsw==8){SS8=3;}} if ((showsw==0 and SS0==0) or (showsw==1 and SS1==0) or (showsw==2 and SS2==0) or (showsw==3 and SS3==0) or (showsw==4 and SS4==0) or (showsw==5 and SS5==0) or (showsw==6 and SS6==0) or (showsw==7 and SS7==0) or (showsw==8 and SS8==0)) {} else if ((showsw==0 and SS0==1) or (showsw==1 and SS1==1) or (showsw==2 and SS2==1) or (showsw==3 and SS3==1) or (showsw==4 and SS4==1) or (showsw==5 and SS5==1) or (showsw==6 and SS6==1) or (showsw==7 and SS7==1) or (showsw==8 and SS8==1)) {} else if ((showsw==0 and SS0==2) or (showsw==1 and SS1==2) or (showsw==2 and SS2==2) or (showsw==3 and SS3==2) or (showsw==4 and SS4==2) or (showsw==5 and SS5==2) or (showsw==6 and SS6==2) or (showsw==7 and SS7==2) or (showsw==8 and SS8==2)) {} else if ((showsw==0 and SS0==3) or (showsw==1 and SS1==3) or (showsw==2 and SS2==3) or (showsw==3 and SS3==3) or (showsw==4 and SS4==3) or (showsw==5 and SS5==3) or (showsw==6 and SS6==3) or (showsw==7 and SS7==3) or (showsw==8 and SS8==3)) {} if (header.indexOf("GET /SWPP0") >= 0){if (showsw==1){SWP1=0;}else if (showsw==2){SWP2=0;}else if (showsw==3){SWP3=0;}else if (showsw==4){SWP4=0;}else if (showsw==5){SWP5=0;}else if (showsw==6){SWP6=0;}else if (showsw==7){SWP7=0;}else if (showsw==8){SWP8=0;}} else if (header.indexOf("GET /SWPP1") >= 0){if (showsw==1){SWP1=1;}else if (showsw==2){SWP2=1;}else if (showsw==3){SWP3=1;}else if (showsw==4){SWP4=1;}else if (showsw==5){SWP5=1;}else if (showsw==6){SWP6=1;}else if (showsw==7){SWP7=1;}else if (showsw==8){SWP8=1;}} else if (header.indexOf("GET /SWPP2") >= 0){if (showsw==1){SWP1=2;}else if (showsw==2){SWP2=2;}else if (showsw==3){SWP3=2;}else if (showsw==4){SWP4=2;}else if (showsw==5){SWP5=2;}else if (showsw==6){SWP6=2;}else if (showsw==7){SWP7=2;}else if (showsw==8){SWP8=2;}} if ((showsw==1 and SWP1==0) or (showsw==2 and SWP2==0) or (showsw==3 and SWP3==0) or (showsw==4 and SWP4==0) or (showsw==5 and SWP5==0) or (showsw==6 and SWP6==0) or (showsw==7 and SWP7==0) or (showsw==8 and SWP8==0)) {} else if ((showsw==1 and SWP1==1) or (showsw==2 and SWP2==1) or (showsw==3 and SWP3==1) or (showsw==4 and SWP4==1) or (showsw==5 and SWP5==1) or (showsw==6 and SWP6==1) or (showsw==7 and SWP7==1) or (showsw==8 and SWP8==1)) {} else if ((showsw==1 and SWP1==2) or (showsw==2 and SWP2==2) or (showsw==3 and SWP3==2) or (showsw==4 and SWP4==2) or (showsw==5 and SWP5==2) or (showsw==6 and SWP6==2) or (showsw==7 and SWP7==2) or (showsw==8 and SWP8==2)) {} if (header.indexOf("GET /SSOP0") >= 0){if (showsw==0){SSO0=0;}else if (showsw==1){SSO1=0;}else if (showsw==2){SSO2=0;}else if (showsw==3){SSO3=0;}else if (showsw==4){SSO4=0;}else if (showsw==5){SSO5=0;}else if (showsw==6){SSO6=0;}else if (showsw==7){SSO7=0;}else if (showsw==8){SSO8=0;}} else if (header.indexOf("GET /SSOP1") >= 0){if (showsw==0){SSO0=1;}else if (showsw==1){SSO1=1;}else if (showsw==2){SSO2=1;}else if (showsw==3){SSO3=1;}else if (showsw==4){SSO4=1;}else if (showsw==5){SSO5=1;}else if (showsw==6){SSO6=1;}else if (showsw==7){SSO7=1;}else if (showsw==8){SSO8=1;}} if ((showsw==0 and SSO0==0) or (showsw==1 and SSO1==0) or (showsw==2 and SSO2==0) or (showsw==3 and SSO3==0) or (showsw==4 and SSO4==0) or (showsw==5 and SSO5==0) or (showsw==6 and SSO6==0) or (showsw==7 and SSO7==0) or (showsw==8 and SSO8==0)) {
} else if ((showsw==0 and SSO0==1) or (showsw==1 and SSO1==1) or (showsw==2 and SSO2==1) or (showsw==3 and SSO3==1) or (showsw==4 and SSO4==1) or (showsw==5 and SSO5==1) or (showsw==6 and SSO6==1) or (showsw==7 and SSO7==1) or (showsw==8 and SSO8==1)) {
} if (header.indexOf("GET /shtmw0") >= 0 and shtm<5) {shtm=shtm+1; String shtmw = String(shtm);
} else if (header.indexOf("GET /shtmw0") >= 0 and shtm==5) {shtm=0;
} else {if (shtm>0){String shtmw = String(shtm);
} else {
}} if (shtm!=0){ if (header.indexOf("GET /WP10") >= 0){if (shtm==1){WA1=0;}else if (shtm==2){WB1=0;}else if (shtm==3){WC1=0;}else if (shtm==4){WD1=0;}else if (shtm==5){WE1=0;}} else if (header.indexOf("GET /WP11") >= 0){if (shtm==1){WA1=1;}else if (shtm==2){WB1=1;}else if (shtm==3){WC1=1;}else if (shtm==4){WD1=1;}else if (shtm==5){WE1=1;}} if ((shtm==1 and WA1==0) or (shtm==2 and WB1==0) or (shtm==3 and WC1==0) or (shtm==4 and WD1==0)or (shtm==5 and WE1==0)) {
} else if ((shtm==1 and WA1==1) or (shtm==2 and WB1==1) or (shtm==3 and WC1==1)or (shtm==4 and WD1==1)or (shtm==5 and WE1==1)) {
} if (header.indexOf("GET /WP20") >= 0){if (shtm==1){WA2=0;}else if (shtm==2){WB2=0;}else if (shtm==3){WC2=0;}else if (shtm==4){WD2=0;}else if (shtm==5){WE2=0;}} else if (header.indexOf("GET /WP21") >= 0){if (shtm==1){WA2=1;}else if (shtm==2){WB2=1;}else if (shtm==3){WC2=1;}else if (shtm==4){WD2=1;}else if (shtm==5){WE2=1;}} if ((shtm==1 and WA2==0) or (shtm==2 and WB2==0) or (shtm==3 and WC2==0) or (shtm==4 and WD2==0)or (shtm==5 and WE2==0)) {} else if ((shtm==1 and WA2==1) or (shtm==2 and WB2==1) or (shtm==3 and WC2==1) or (shtm==4 and WD2==1)or (shtm==5 and WE2==1)) {} if (header.indexOf("GET /WP30") >= 0){if (shtm==1){WA3=0;}else if (shtm==2){WB3=0;}else if (shtm==3){WC3=0;}else if (shtm==4){WD3=0;}else if (shtm==5){WE3=0;}} else if (header.indexOf("GET /WP31") >= 0){if (shtm==1){WA3=1;}else if (shtm==2){WB3=1;}else if (shtm==3){WC3=1;}else if (shtm==4){WD3=1;}else if (shtm==5){WE3=1;}} if ((shtm==1 and WA3==0) or (shtm==2 and WB3==0) or (shtm==3 and WC3==0) or (shtm==4 and WD3==0)or (shtm==5 and WE3==0)) {} else if ((shtm==1 and WA3==1) or (shtm==2 and WB3==1) or (shtm==3 and WC3==1) or (shtm==4 and WD3==1)or (shtm==5 and WE3==1)) {} if (header.indexOf("GET /WP40") >= 0){if (shtm==1){WA4=0;}else if (shtm==2){WB4=0;}else if (shtm==3){WC4=0;}else if (shtm==4){WD4=0;}else if (shtm==5){WE4=0;}} else if (header.indexOf("GET /WP41") >= 0){if (shtm==1){WA4=1;}else if (shtm==2){WB4=1;}else if (shtm==3){WC4=1;}else if (shtm==4){WD4=1;}else if (shtm==5){WE4=1;}} if ((shtm==1 and WA4==0) or (shtm==2 and WB4==0) or (shtm==3 and WC4==0) or (shtm==4 and WD4==0)or (shtm==5 and WE4==0)) {} else if ((shtm==1 and WA4==1) or (shtm==2 and WB4==1) or (shtm==3 and WC4==1) or (shtm==4 and WD4==1)or (shtm==5 and WE4==1)) {} if (header.indexOf("GET /WP50") >= 0){if (shtm==1){WA5=0;}else if (shtm==2){WB5=0;}else if (shtm==3){WC5=0;}else if (shtm==4){WD5=0;}else if (shtm==5){WE5=0;}} else if (header.indexOf("GET /WP51") >= 0){if (shtm==1){WA5=1;}else if (shtm==2){WB5=1;}else if (shtm==3){WC5=1;}else if (shtm==4){WD5=1;}else if (shtm==5){WE5=1;}} if ((shtm==1 and WA5==0) or (shtm==2 and WB5==0) or (shtm==3 and WC5==0) or (shtm==4 and WD5==0)or (shtm==5 and WE5==0)) {
} else if ((shtm==1 and WA5==1) or (shtm==2 and WB5==1) or (shtm==3 and WC5==1) or (shtm==4 and WD5==1)or (shtm==5 and WE5==1)) {
} if (header.indexOf("GET /WP60") >= 0){if (shtm==1){WA6=0;}else if (shtm==2){WB6=0;}else if (shtm==3){WC6=0;}else if (shtm==4){WD6=0;}else if (shtm==5){WE6=0;}} else if (header.indexOf("GET /WP61") >= 0){if (shtm==1){WA6=1;}else if (shtm==2){WB6=1;}else if (shtm==3){WC6=1;}else if (shtm==4){WD6=1;}else if (shtm==5){WE6=1;}} if ((shtm==1 and WA6==0) or (shtm==2 and WB6==0) or (shtm==3 and WC6==0) or (shtm==4 and WD6==0)or (shtm==5 and WE6==0)) {
} else if ((shtm==1 and WA6==1) or (shtm==2 and WB6==1) or (shtm==3 and WC6==1) or (shtm==4 and WD6==1)or (shtm==5 and WE6==1)) {
} if (header.indexOf("GET /WP70") >= 0){if (shtm==1){WA7=0;}else if (shtm==2){WB7=0;}else if (shtm==3){WC7=0;}else if (shtm==4){WD7=0;}else if (shtm==5){WE7=0;}} else if (header.indexOf("GET /WP71") >= 0){if (shtm==1){WA7=1;}else if (shtm==2){WB7=1;}else if (shtm==3){WC7=1;}else if (shtm==4){WD7=1;}else if (shtm==5){WE7=1;}} if ((shtm==1 and WA7==0) or (shtm==2 and WB7==0) or (shtm==3 and WC7==0) or (shtm==4 and WD7==0)or (shtm==5 and WE7==0)) {
} else if ((shtm==1 and WA7==1) or (shtm==2 and WB7==1) or (shtm==3 and WC7==1) or (shtm==4 and WD7==1)or (shtm==5 and WE7==1)) {
} if (header.indexOf("GET /HOP0") >= 0 and ((shtm==1 and HOA<23) or (shtm==2 and HOB<23) or (shtm==3 and HOC<23) or (shtm==4 and HOD<23) or (shtm==5 and HOE<23))){ if (shtm==1){HOA=HOA+1;String HOPW = String(HOA);
} else if (shtm==2){HOB=HOB+1;String HOPW = String(HOB);
} else if (shtm==3){HOC=HOC+1;String HOPW = String(HOC);
} else if (shtm==4){HOD=HOD+1;String HOPW = String(HOD);
} else if (shtm==5){HOE=HOE+1;String HOPW = String(HOE);
} } else if (header.indexOf("GET /HOP0") >= 0 and ((shtm==1 and HOA==23) or (shtm==2 and HOB==23) or (shtm==3 and HOC==23) or (shtm==4 and HOD==23) or (shtm==5 and HOE==23))){if (shtm==1){HOA=25;}else if (shtm==2){HOB=25;}else if (shtm==3){HOC=25;}else if (shtm==4){HOD=25;}else if (shtm==5){HOE=25;}
} else if (header.indexOf("GET /HOP0") >= 0 and ((shtm==1 and HOA==25) or (shtm==2 and HOB==25) or (shtm==3 and HOC==25) or (shtm==4 and HOD==25) or (shtm==5 and HOE==25))){if (shtm==1){HOA=0;}else if (shtm==2){HOB=0;}else if (shtm==3){HOC=0;}else if (shtm==4){HOD=0;}else if (shtm==5){HOE=0;}
} else if (header.indexOf("GET ") >= 0 and ((shtm==1 and HOA==25) or (shtm==2 and HOB==25) or (shtm==3 and HOC==25) or (shtm==4 and HOD==25) or (shtm==5 and HOE==25))){if (shtm==1){HOA=25;}else if (shtm==2){HOB=25;}else if (shtm==3){HOC=25;}else if (shtm==4){HOD=25;}else if (shtm==5){HOE=25;}
} else {if (shtm==1){String HOPW = String(HOA);
} else if (shtm==2){String HOPW = String(HOB);
} else if (shtm==3){String HOPW = String(HOC);
} else if (shtm==4){String HOPW = String(HOD);
} else if (shtm==5){String HOPW = String(HOE);
} } if (header.indexOf("GET /MOP0") >= 0 and ((shtm==1 and MOA<59) or (shtm==2 and MOB<59) or (shtm==3 and MOC<59) or (shtm==4 and MOD<59) or (shtm==5 and MOE<59))){ if (shtm==1){MOA=MOA+1;String MOPW = String(MOA);} else if (shtm==2){MOB=MOB+1;String MOPW = String(MOB);} else if (shtm==3){MOC=MOC+1;String MOPW = String(MOC);} else if (shtm==4){MOD=MOD+1;String MOPW = String(MOD);} else if (shtm==5){MOE=MOE+1;String MOPW = String(MOE);}} else if (header.indexOf("GET /MOP0") >= 0 and ((shtm==1 and MOA==59) or (shtm==2 and MOB==59) or (shtm==3 and MOC==59)or (shtm==4 and MOD==59)or (shtm==5 and MOE==59))){if (shtm==1){MOA=0;}else if (shtm==2){MOB=0;}else if (shtm==3){MOC=0;}else if (shtm==4){MOD=0;}else if (shtm==5){MOE=0;} } else {if (shtm==1){String MOPW = String(MOA);} else if (shtm==2){String MOPW = String(MOB);} else if (shtm==3){String MOPW = String(MOC);} else if (shtm==4){String MOPW = String(MOD);} else if (shtm==5){String MOPW = String(MOE);}} if (header.indexOf("GET /HCP0") >= 0 and ((shtm==1 and HCA<23) or (shtm==2 and HCB<23) or (shtm==3 and HCC<23) or (shtm==4 and HCD<23) or (shtm==5 and HCE<23))){ if (shtm==1){HCA=HCA+1;String HCPW = String(HCA);} else if (shtm==2){HCB=HCB+1;String HCPW = String(HCB);} else if (shtm==3){HCC=HCC+1;String HCPW = String(HCC);} else if (shtm==4){HCD=HCD+1;String HCPW = String(HCD);} else if (shtm==5){HCE=HCE+1;String HCPW = String(HCE);} } else if (header.indexOf("GET /HCP0") >= 0 and ((shtm==1 and HCA==23) or (shtm==2 and HCB==23) or (shtm==3 and HCC==23) or (shtm==4 and HCD==23) or (shtm==5 and HCE==23))){if (shtm==1){HCA=25;}else if (shtm==2){HCB=25;}else if (shtm==3){HCC=25;}else if (shtm==4){HCD=25;}else if (shtm==5){HCE=25;} } else if (header.indexOf("GET /HCP0") >= 0 and ((shtm==1 and HCA==25) or (shtm==2 and HCB==25) or (shtm==3 and HCC==25) or (shtm==4 and HCD==25) or (shtm==5 and HCE==25))){if (shtm==1){HCA=0;}else if (shtm==2){HCB=0;}else if (shtm==3){HCC=0;}else if (shtm==4){HCD=0;}else if (shtm==5){HCE=0;} } else if (header.indexOf("GET ") >= 0 and ((shtm==1 and HCA==25) or (shtm==2 and HCB==25) or (shtm==3 and HCC==25) or (shtm==4 and HCD==25) or (shtm==5 and HCE==25))){if (shtm==1){HCA=25;}else if (shtm==2){HCB=25;}else if (shtm==3){HCC=25;}else if (shtm==4){HCD=25;}else if (shtm==5){HCE=25;} } else {if (shtm==1){String HCPW = String(HCA);} else if (shtm==2){String HCPW = String(HCB);} else if (shtm==3){String HCPW = String(HCC);} else if (shtm==4){String HCPW = String(HCD);} else if (shtm==5){String HCPW = String(HCE);} } if (header.indexOf("GET /MCP0") >= 0 and ((shtm==1 and MCA<59) or (shtm==2 and MCB<59) or (shtm==3 and MCC<59) or (shtm==4 and MCD<59) or (shtm==5 and MCE<59))){ if (shtm==1){MCA=MCA+1;String MOPW = String(MCA);} else if (shtm==2){MCB=MCB+1;String MOPW = String(MCB);} else if (shtm==3){MCC=MCC+1;String MOPW = String(MCC);} else if (shtm==4){MCD=MCD+1;String MOPW = String(MCD);} else if (shtm==5){MCE=MCE+1;String MOPW = String(MCE);}} else if (header.indexOf("GET /MCP0") >= 0 and ((shtm==1 and MCA==59) or (shtm==2 and MCB==59) or (shtm==3 and MCC==59) or (shtm==4 and MCD==59) or (shtm==5 and MCE==59))){if (shtm==1){MCA=0;}else if (shtm==2){MCB=0;}else if (shtm==3){MCC=0;}else if (shtm==4){MCD=0;}else if (shtm==5){MCE=0;} } else {if (shtm==1){String MOPW = String(MCA);
} else if (shtm==2){String MOPW = String(MCB);
} else if (shtm==3){String MOPW = String(MCC);
} else if (shtm==4){String MOPW = String(MCD);
} else if (shtm==5){String MOPW = String(MCE);
}} if (header.indexOf("GET /SW1P0") >= 0){if (shtm==1){SW1A=0;}else if (shtm==2){SW1B=0;}else if (shtm==3){SW1C=0;}else if (shtm==4){SW1D=0;}else if (shtm==5){SW1E=0;}} else if (header.indexOf("GET /SW1P1") >= 0){if (shtm==1){SW1A=1;}else if (shtm==2){SW1B=1;}else if (shtm==3){SW1C=1;}else if (shtm==4){SW1D=1;}else if (shtm==5){SW1E=1;}} if ((shtm==1 and SW1A==0) or (shtm==2 and SW1B==0) or (shtm==3 and SW1C==0) or (shtm==4 and SW1D==0) or (shtm==5 and SW1E==0)) {
} else if ((shtm==1 and SW1A==1) or (shtm==2 and SW1B==1) or (shtm==3 and SW1C==1) or (shtm==4 and SW1D==1) or (shtm==5 and SW1E==1)) {
} if (header.indexOf("GET /SW2P0") >= 0){if (shtm==1){SW2A=0;}else if (shtm==2){SW2B=0;}else if (shtm==3){SW2C=0;}else if (shtm==4){SW2D=0;}else if (shtm==5){SW2E=0;}} else if (header.indexOf("GET /SW2P1") >= 0){if (shtm==1){SW2A=1;}else if (shtm==2){SW2B=1;}else if (shtm==3){SW2C=1;}else if (shtm==4){SW2D=1;}else if (shtm==5){SW2E=1;}} if ((shtm==1 and SW2A==0) or (shtm==2 and SW2B==0) or (shtm==3 and SW2C==0) or (shtm==4 and SW2D==0) or (shtm==5 and SW2E==0)) {} else if ((shtm==1 and SW2A==1) or (shtm==2 and SW2B==1) or (shtm==3 and SW2C==1) or (shtm==4 and SW2D==1) or (shtm==5 and SW2E==1)) {} if (header.indexOf("GET /SW3P0") >= 0){if (shtm==1){SW3A=0;}else if (shtm==2){SW3B=0;}else if (shtm==3){SW3C=0;}else if (shtm==4){SW3D=0;}else if (shtm==5){SW3E=0;}} else if (header.indexOf("GET /SW3P1") >= 0){if (shtm==1){SW3A=1;}else if (shtm==2){SW3B=1;}else if (shtm==3){SW3C=1;}else if (shtm==4){SW3D=1;}else if (shtm==5){SW3E=1;}} if ((shtm==1 and SW3A==0) or (shtm==2 and SW3B==0) or (shtm==3 and SW3C==0) or (shtm==4 and SW3D==0) or (shtm==5 and SW3E==0)) {} else if ((shtm==1 and SW3A==1) or (shtm==2 and SW3B==1) or (shtm==3 and SW3C==1) or (shtm==4 and SW3D==1) or (shtm==5 and SW3E==1)) {} if (header.indexOf("GET /SW4P0") >= 0){if (shtm==1){SW4A=0;}else if (shtm==2){SW4B=0;}else if (shtm==3){SW4C=0;}else if (shtm==4){SW4D=0;}else if (shtm==5){SW4E=0;}} else if (header.indexOf("GET /SW4P1") >= 0){if (shtm==1){SW4A=1;}else if (shtm==2){SW4B=1;}else if (shtm==3){SW4C=1;}else if (shtm==4){SW4D=1;}else if (shtm==5){SW4E=1;}} if ((shtm==1 and SW4A==0) or (shtm==2 and SW4B==0) or (shtm==3 and SW4C==0) or (shtm==4 and SW4D==0) or (shtm==5 and SW4E==0)) {
} else if ((shtm==1 and SW4A==1) or (shtm==2 and SW4B==1) or (shtm==3 and SW4C==1) or (shtm==4 and SW4D==1) or (shtm==5 and SW4E==1)) {
} if (header.indexOf("GET /SW5P0") >= 0){if (shtm==1){SW5A=0;}else if (shtm==2){SW5B=0;}else if (shtm==3){SW5C=0;}else if (shtm==4){SW5D=0;}else if (shtm==5){SW5E=0;}} else if (header.indexOf("GET /SW5P1") >= 0){if (shtm==1){SW5A=1;}else if (shtm==2){SW5B=1;}else if (shtm==3){SW5C=1;}else if (shtm==4){SW5D=1;}else if (shtm==5){SW5E=1;}} if ((shtm==1 and SW5A==0) or (shtm==2 and SW5B==0) or (shtm==3 and SW5C==0) or (shtm==4 and SW5D==0) or (shtm==5 and SW5E==0)) {
} else if ((shtm==1 and SW5A==1) or (shtm==2 and SW5B==1) or (shtm==3 and SW5C==1) or (shtm==4 and SW5D==1) or (shtm==5 and SW5E==1)) {
} if (header.indexOf("GET /SW6P0") >= 0){if (shtm==1){SW6A=0;}else if (shtm==2){SW6B=0;}else if (shtm==3){SW6C=0;}else if (shtm==4){SW6D=0;}else if (shtm==5){SW6E=0;}} else if (header.indexOf("GET /SW6P1") >= 0){if (shtm==1){SW6A=1;}else if (shtm==2){SW6B=1;}else if (shtm==3){SW6C=1;}else if (shtm==4){SW6D=1;}else if (shtm==5){SW6E=1;}} if ((shtm==1 and SW6A==0) or (shtm==2 and SW6B==0) or (shtm==3 and SW6C==0) or (shtm==4 and SW6D==0) or (shtm==5 and SW6E==0)) {} else if ((shtm==1 and SW6A==1) or (shtm==2 and SW6B==1) or (shtm==3 and SW6C==1) or (shtm==4 and SW6D==1) or (shtm==5 and SW6E==1)) {} if (header.indexOf("GET /SW7P0") >= 0){if (shtm==1){SW7A=0;}else if (shtm==2){SW7B=0;}else if (shtm==3){SW7C=0;}else if (shtm==4){SW7D=0;}else if (shtm==5){SW7E=0;}} else if (header.indexOf("GET /SW7P1") >= 0){if (shtm==1){SW7A=1;}else if (shtm==2){SW7B=1;}else if (shtm==3){SW7C=1;}else if (shtm==4){SW7D=1;}else if (shtm==5){SW7E=1;}} if ((shtm==1 and SW7A==0) or (shtm==2 and SW7B==0) or (shtm==3 and SW7C==0) or (shtm==4 and SW7D==0) or (shtm==5 and SW7E==0)) {} else if ((shtm==1 and SW7A==1) or (shtm==2 and SW7B==1) or (shtm==3 and SW7C==1) or (shtm==4 and SW7D==1) or (shtm==5 and SW7E==1)) {} if (header.indexOf("GET /SW8P0") >= 0){if (shtm==1){SW8A=0;}else if (shtm==2){SW8B=0;}else if (shtm==3){SW8C=0;}else if (shtm==4){SW8D=0;}else if (shtm==5){SW8E=0;}} else if (header.indexOf("GET /SW8P1") >= 0){if (shtm==1){SW8A=1;}else if (shtm==2){SW8B=1;}else if (shtm==3){SW8C=1;}else if (shtm==4){SW8D=1;}else if (shtm==5){SW8E=1;}} if ((shtm==1 and SW8A==0) or (shtm==2 and SW8B==0) or (shtm==3 and SW8C==0) or (shtm==4 and SW8D==0) or (shtm==5 and SW8E==0)) {
} else if ((shtm==1 and SW8A==1) or (shtm==2 and SW8B==1) or (shtm==3 and SW8C==1) or (shtm==4 and SW8D==1) or (shtm==5 and SW8E==1)) {
} } script> //禁用滾動腳本 var mo=function(e){e.preventDefault();}; function stop(){ document.body.style.overflow='hidden'; document.addEventListener('touchmove',mo,{passive:false}); } stop(); //禁用滾動腳本結束