"; print "Please try to Login again "; L1s=$11s L1=$11 Decima1nya = $tulis Status keadaan masing-masing Saklar Oleh : Setiawan Copyright 2000 Setiawan Widya Mandala Surabaya, Allright Reserved.
"; #print "Password 1= $c_password
"; #print "Password 2= $c_password2
"; #print "Tangga1 = $date"; exit; }
###### selesai pengkonfirmasi password
######
$password=$c_password; ## 3 baris kebawah untuk perintah membuka file status perintah untuk saklar open (DATA2, "$lokasi_data_saklar"); $tulis_hasil_saklar=
Listing Program "periksa.pl"
#print("Content-Type: text/html\n\n"); #print "Hasilnya dalam desimal : $tulis hasil";
if ($tulis hasil saklar =- /\n$/) bukan karakter chop($tulis_hasil saklar);
## untuk memastikan number,
}
if ($tulis hasil =- /\n$/) karakter chop($tulis hasil);
## untuk memastikan number, bukan
}
#print "Data
$tulis_hasil
## 31 if (kebawah) untuk perintah status perintah saklar if ($tulls_hasll saklar eq , 1') { #1 $tulis='l'; $15s=0;$14s=0;$13s=0;$12s=0;$11s=1; #1 i f ($tulis hasll saklar eq , 2')
{ #2 $tulis='2'; $15s=0;$14s=0;$13s=0;$12s=1;$11s=0; #2
i f ($tulls hasil saklar eq , 3')
{ #3 $tulis='3' ; $15s=0;$14s=0;$13s=0;$12s=1;$11s=1; #3
if ($tulis hasil - saklar eq , 4' ) { #4 $tulis='4' ; $15s=0;$14s=0;$13s=1;$12s=0;$11s=0; #4 if ($tulls hasll saklar eq '5' ) { #5 $tulis='5' ; $15s=0;$14s=0;$13s=1;$12s=0;$11s=1; #5 if
($tulis hasil saklar eq , 6') { #6 $tulis='6' ; $15s=0;$14s=0;$13s=1;$12s=1;$11s=0; #6
if
($tulis hasil saklar eq '7' ) { #7 $tulis='7' ; $15s=0;$14s=0;$13s=1;$12s=1;$11s=1; #7
if ($tulis hasil saklar eq '8' ) { #8 $tulis='S' ; $15s=0;$14s=1;$13s=0;$12s=0;$11s=0; #8 i f ($tulis hasil saklar eq '9' )
{ #9 $tulis='9' ; $15s=0;$14s=1;$13s=0;$12s=0;$11s=1; #9
if ($tulis hasil saklar eq , 10' ) { #10 $tulis='10' ; $15s=0;$14s=1;$13s=0;$12s=1;$11s=0; #10 }
if ($tulis - hasil saklar eq '11' ) $tulis='l1';
{
#11
Listing Program "periksa.p'"
$15s=0;$14s=1;$13s=0;$12s=1;$11s=1; #11 i f ($tu1is hasil sak1ar eq '12' )
{ #12 $tu1is='12'; $15s=0;$14s=1;$13s=1;$12s=0;$11s=0; #12
if ($tu1is hasi1 sak1ar eq '13' ) { #13 $tu1is='13' ; $15s=0;$14s=1;$13s=1;$12s=0;$11s=1; #13 i f ($tu1is hasil sak1ar eq '14' )
{ #14 $tu1is='14' ; $15s=0;$14s=1;$13s=1;$12s=1;$11s=0; #14
if
($tulis hasil sak1ar eq , 15' ) \ #15 $tu1is='15' ; $15s=0;$14s=1;$13s=1;$12s=1;$11s=1; #15
if ($tulis hasi1 sak1ar eq '16' ) { #16 $tu1is='16' ; $15s=1;$14s=0;$13s=0;$12s=0;$11s=0; #16 if ($tulis hasi1 sak1ar eq '17' ) { #17 $tu1is='17' ; $15s=1;$14s=0;$13s=0;$12s=0;$11s=1; #17 if
($tulis hasi1 sak1ar eq '18' ) { #18 $tu1is='lS' ; $15s=1;$14s=0;$13s=0;$12s=1;$11s=0; #18
if ($tulis hasi1- sak1ar eq '19' ) { #19 $tu1is='19' ; $15s=1;$14s=0;$13s=0;$12s=1;$11s=1; #19 if ($tulis hasi1 sak1ar eq '20' ) { #20 $tu1is='20'; $15s=1;$14s=0;$13s=1;$12s=0;$11s=0; #20 if
($tu1is hasi1 sak1ar eq '21' ) { #21 $tu1is='21'; $15s=1;$14s=0;$13s=1;$12s=0;$11s=1; #21
if ($tu1is hasi1 sak1ar eq '22' ) { #22 $tu1is='22'; $15s=1;$14s=0;$13s=1;$12s=1;$11s=0; #22 if
($tu1is hasi1 sak1ar eq '23' ) \ #23 $tu1is='23'; $15s=1;$14s=0;$13s=1;$12s=1;$11s=1; #23
if ($tulis hasi1 sak1ar eq '24' ) { #24 $tu1is='24'; $15s=1;$14s=1;$13s=0;$12s=0;$11s=0; #24 if ($tu1is hasil sak1ar eq '25' ) { #25 $tu1is='25' ; $15s=1;$14s=1;$13s=0;$12s=0;$11s=1; #25 if ($tulis hasil sak1ar eq '26' ) { #26 $tu1is='26' ; $15s=1;$14s=1;$13s=0;$12s=1;$11s=0; #26
Listing Program "periksa.pl"
if ($tulis hasil saklar eq '27' ) { #27 $tu1is='27' ; $15s=1;$14s=1;$13s=0;$12s=1;$11s=1; #27 i f ($tulis hasi1 sak1ar eq '28' )
{ #28 $tu1is='28' ; $15s=1;$14s=1;$13s=1;$12s=0;$11s=0; #28
if ($tu1is hasil sak1ar eq '29' ) { #29 $tu1is='29'; $15s=1;$14s=1;$13s=1;$12s=0;$11s=1; #29 if ($tu1is hasi1 sak1ar eq '30' ) { #30 $tu1is='30' ; $15s=1;$14s=1;$13s=1;$12s=1;$11s=0; #30 if ($tulis hasi1 sak1ar eq '31' ) { #31 $tu1is='31' ; $15s=1;$14s=1;$13s=1;$12s=1;$11s=1; #31
## ka1au semua kondisi diatas tidak terpenuhi, apakah $tu1is - hasi1 - sak1ar=0 ?? i f ($tu1is_hasil sak1ar eq 0) { #31 $tu1is='31'; $15s=0;$14s=0;$13s=0;$12s=0;$11s=0; #31
####5 baris ke bawah hanya untuk periksa saja #print "
"; #print "L2s=$12s
"; #print "L3s=$13s
"; #print "L4s=$14s
"; #print "L5s=$15s
";
## 31 if untuk perintah status beban if ($tu1is_hasi1 eq '1') { #1 $tu1is='1'; $15=0;$14=0;$13=0;$12=0;$11=1; #1 if ($tu1is - hasil eq '2' ) { #2 $tu1is='2'; $15=0;$14=0;$13=0;$12=1;$11=0; #2 i f ($tu1is - hasi1 eq '3' ) { #3
$tu1is='3'; $15=0;$14=0;$13=0;$12=1;$11=1; #3
if ($tu1is hasi1 eq '4' ) { #4 $tu1is='4'; $15=0;$14=0;$13=1;$12=0;$11=0; #4 if ($tu1is - hasi1 eq '5' ) { #5 $tu1is='5' ; $15=0;$14=0;$13=1;$12=0;$11=1; #5 if ($tu1is - hasil eq , 6' ) $tu1is='6';
(
#6
Listing Program "periksa.pl"
$15=0;$14=0;$13=1;$12=1;$11=0; #6 if ($tulis hasil eq , 7 ' ) \ #7 $tulis='7'; $15=0;$14=0;$13=1;$12=1;$11=1; #7 if
($tulis hasil eq '8' ) \ #8 $tulis='8'; $15=0;$14=1;$13=0;$12=0;$11=0; #8
if ($tulis - hasil eq '9' ) { #9 $tulis='9' ; $15=0;$14=1;$13=0;$12=0;$11=1; #9 if ($tulis_hasil eq '10') { #10 $tulis='10'; $15=0;$14=1;$13=0;$12=1;$11=0; #10 }
if ($tulis_hasil eq '11') { #11 $tu1is=' 11' ; $15=0;$14=1;$13=0;$12=1;$11=1; #11 if ($tulis - hasil eq '12' ) { #12 $tulis='12'; $15=0;$14=1;$13=1;$12=0;$11=0; #12 if
($tulis hasil eq '13' ) \ #13 $tulis='13'; $15=0;$14=1;$13=1;$12=0;$11=1; #13
if ($tulis hasil eq '14' ) \ #14 $tulis='14'; $15=0;$14=1;$13=1;$12=1;$11=0; #14 if ($tulis hasil eq '15' ) \ #15 $tulis='15'; $15=0;$14=1;$13=1;$12=1;$11=1; #15 if ($tulis hasil eq '16' ) { #16 $tulis='16'; $15=1;$14=0;$13=0;$12=0;$11=0; #16 if
($tulis hasil eq '17' ) \ #17 $tulis='17'; $15=1;$14=0;$13=0;$12=0;$11=1; #17
if ($tulis hasil eq '18' ) { #18 $tulis='18'; $15=1;$14=0;$13=0;$12=1;$11=0; #18 if
($tulis - hasil eq '19' ) { #19 $tulis='19'; $15=1;$14=0;$13=0;$12=1;$11=1; #19
if
($tulis_hasil eq '20' ) \ #20 $tu1is='20'; $15=1;$14=0;$13=1;$12=0;$11=0; #20
if
($tulis_hasil eq '21' ) { #21 $tulis='21'; $15=1;$14=0;$13=1;$12=0;$11=1; #21
Listing Program "periksa.pl"
if ($tulis hasil eq '22' ) { #22 $tulis='22' ; $15=1;$14=0;$13=1;$12=1;$11=0; #22 if ($tulis hasil eq '23' ) { #23 $tulis='23'; $15=1;$14=0;$13=1;$12=1;$11=1; #23 if ($tulis hasil eq '24' ) { #24 $tulis='24' ; $15=1;$14=1;$13=0;$12=0;$11=0; #24 if ($tulis hasil eq '25' ) { #25 $tulis='25' ; $15=1;$14=1;$13=0;$12=0;$11=1; #25 if
($tulis hasil eq '26' ) { #26 $tulis='26'; $15=1;$14=1;$13=0;$12=1;$11=0; #26
if
($tulis hasil eq '27' ) { #27 $tulis='27'; $15=1;$14=1;$13=0;$12=1;$11=1; #27
if
($tulis - hasil eq '28' ) { #28 $tulis='28'; $15=1;$14=1;$13=1;$12=0;$11=0; #28
if ($tulis hasil eq '29' ) { #29 $tulis='29'; $15=1;$14=1;$13=1;$12=0;$11=1; #29 if
($tulis - hasil eq '30' ) { #30 $tulis='30'; $15=1;$14=1;$13=1;$12=1;$11=0; #30
if
($tulis hasil eq '31' ) { #31 $tulis='31'; $15=1;$14=1;$13=1;$12=1;$11=1; #31
## kalau semua kondisi diatas tidak terpenuhi, apakah $tulis hasil=O ??
if ($tulis_hasil eq 0) { #31 $tulis='31'; $15=0;$14=0;$13=0;$12=0;$11=0; #31
$co1or1=""; Send color1=""; $tanda hidup="$color1Hidup Send color1"; $tanda-mati="Mati"; $huruf_petunjuk="";
#print #print #print #print
"
"; "L2=$12
"; "L3=$13
"; "L4=$14
";
Listing Program "periksa.pl"
#print "L5=$15
";
### pengenalan untuk masing-masing SAKLAR dari $l(n)s ke $status saklar(n) i f ($lls eq 1) { $status saklarl="$tanda_hidup"; $elsl="I"; # tanda untuk pilihan selain else }
if ($12s eq 1) $status saklar2="$tanda_hidup"; $elsl="I"; # tanda untuk pilihan selain else }
if ($13s eq 1) $status saklar3="$tanda hldup"; $els1="I"; # tanda untuk pilihan selain else ($14s eq 1) $status saklar4="$tanda_hidup"; $els1="I"; # tanda untuk pilihan selain else
if
($15s eq 1) $status_saklar5="$tanda hidup"; $elsl="I"; # tanda untuk pilihan selain else
if
}
if ($lls ne 1) $status sak1ar1="$tanda_mati"; }
($12s ne 1) $status sak1ar2="$tanda_rnati";
if }
if ($13s ne 1) $status saklar3="$tanda_mati"; } if
($14s ne 1) $status saklar4="$tanda mati";
}
if ($15s ne 1) Sstatus sak1ar5="$tanda_mati"; }
### pengenalan untuk masing-masing LOAD dari $l(n) ($ll eq 1) { $statusl="$tanda_hidup"; $els1="l"; # tanda untuk pilihan selain else
if
if ($12 eq 1) $status2="$tanda hidup"; $els1="1"; # tanda untuk pilihan selain else }
if ($13 eq 1) $status3="$tanda_hidup"; $e1s1="I"; # tanda untuk pilihan se1ain else }
($14 eq 1) $status4="$tanda_hidup"; $e1s1="I"; # tanda untuk pilihan selain else
if
ke $status(n)
Listing Program "periksa.pl"
($lS eq 1) $statusS="$tanda_hidup"; $elsl="l"; # tanda untuk pi1ihan selain else
if
}
($11 ne 1) $statusl="$tanda mati";
if }
($12 ne 1) $status2="$tanda mati";
if }
if ($13 ne 1) $status3="$tanda mati"; }
if ($14 ne 1) $status4="$tanda mati"; }
if ($lS ne 1) $statusS="$tanda mati"; }
#print #print #print #print #print #print
"
"; "Ll=$statusl ($11)
"; "L2=$status2 ($12)
"; "L3=$status3 ($13)
"; "L4=$status4 ($14)
"; "LS=$statusS ($lS)
";
############################## Tulisan HTML ################ print «ETULIS;
Berbasis Web
NRP : 5103094040
E-mail : andi\@mail.wima.ac.id