This repository has been archived by the owner on May 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathselect.php
1119 lines (1037 loc) · 48.9 KB
/
select.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?
$datapath= "art/database.php";
$new_file = file($datapath);
$i=0;
foreach(file("$datapath") as $line){
$br = explode("^^",$line);
foreach($br as $brsett){
$data[$br[0]][]=$brsett;
}
$i++;
}
if($_COOKIE[awdigiecookie] == $data[settings][1] ){
$chn = channel.$change;
if($change == globe){
list($dbthisshow,$dbtexten,$dbtexveric,$dbatsec,$dbwateren,$dbwater,$dbposi,$dbtext,$dbenable,$dbfont,$dbtextpos,$dbcolor,$dbtextsize,,,$dbtxtsetting) = $data[globe];
}else{
list($dbthisshow,$dbaddess,$dbnotes,$dbtexten,$dbtext,$dbatsec,$dbsecen,$dbwateren,$dbwater,$dbtimeen,$dbttmmee,$dbenable,$dbtextpos,$dbfont,$dbcolor,$dbtextsize,$dbtexveric,$dbposi,$dbtxtsetting,$dbshadown,$dbshset,$dbzoom,$chnpwset,$dbprev,$dbfunction) = $data[$chn];
}
$dbimad =$dbaddess;
if(eregi(".txt", $dbaddess)){
if(($trxrt = @file("$dbaddess")) == true){
$dbaddess = eregi_replace("\n","", $trxrt[0]);
}else{
$dbaddess = "awdigie_logo.jpg";
}
}
function title($in){
echo "<title>$in</title>\n<center><font color=\"#0066CC\" size=\"2\"><strong>$in</strong></font></center>";
}
function notes($in){
global $data;
if($data[other][6] == Show ){ echo "<font size=2>$in</font> "; }}
function savedata($brnum,$value){
global $new_file,$change;
if($change == globe){ $lnu = 6; }else{ $lnu = ($change+1); }
if($change == other){ $lnu = 7; }
$brea = explode("^^",$new_file[$lnu]);
$brea[$brnum]="$value";
return $new_file[$lnu] = implode("^^", $brea);
}
function sameas(){
global $change;
if("$change" !== "globe"){
?>
<meta>
<table width="119" height="20" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td colspan="4"><font size="2">As same as channel</font>
</td>
</tr>
<tr>
<? if("$change" !== "1"){ ?> <td width="29" bgcolor="#F5F5F5"><font size="2"><strong>1 <br> <input type="radio" name="sameas" value="channel1" onclick="document.form.submit()"></strong></font></td> <? }?>
<? if("$change" !== "2"){ ?> <td width="28"><font size="2"><strong> 2 <br><input type="radio" name="sameas" value="channel2" onclick="document.form.submit()"> </strong></font></td> <? }?>
<? if("$change" !== "3"){ ?> <td width="27" bgcolor="#F5F5F5"><font size="2"><strong>3 <br> <input type="radio" name="sameas" value="channel3" onclick="document.form.submit()"> </strong></font></td> <? }?>
<? if("$change" !== "4"){ ?> <td width="35"><font size="2"><strong>4 <br> <input type="radio" name="sameas" value="channel4" onclick="document.form.submit()"> </strong></font></td> <? }?>
</tr>
</table>
<? }}
if ($mode == position){
if("$pos_sub" == ""){
title("Position Text");
?>
<form action="" method="get" name="form" >
<div align="center"><font size="2">Click on the image to select where<br>
the top left corner of the text should go.</font><br>
<input type="image" src="<? if($change == globe){ echo "awdigie_logo.jpg"; }else{ echo $dbaddess; } ?>" name="d">
<input name="change" type="hidden" value="<? echo $change ?>">
<input name="pos_sub" type="hidden" value="yes">
<input name="mode" type="hidden" value="<? echo $mode ?>">
<br>
<? sameas() ?>
</div>
</form>
<?
}else{
if("$sameas" == ""){ $vals = "".$d_x."-".$d_y.""; }else{ $vals = $data[$sameas][12]; }
if($change == globe){ $rb =10; }else{ $rb =12; }
savedata($rb,$vals);
$inputfile = yes;
}
}
if($mode == font){
if($font_sub == ""){
title("Text Font");
?>
<form name="form" method="post" action="">
<center><font size="2">Select a font to use for Text <br><? notes("<br></center>TTF Type fonts are used, they are stored in the folder \"fonts\". 3 sample fonts are included in awdigie.<br> <br><center>") ?>
<select name="font" size="5" id="font" onChange="document.form.font_img.src=('font_preview.php?font=' + this.options[this.selectedIndex].value )" >
<?
$dh = opendir("fonts");
while (false !== ($filename = readdir($dh))) {
if($filename !== '..' && $filename !== '.' && eregi("ttf", $filename) ){
echo "<option value=\"$filename\" "; if( $dbfont == $filename){ echo selected; } echo ">$filename</option>\n";
}
}
?>
</select>
<br>
<img src="http://profile.vmist.net/font_preview.php?font=<? echo $dbfont ?>" name="font_img" >
<br>
<input type="submit" value="Select Font">
<input name="change" type="hidden" value="<? echo $change ?>">
<input name="font_sub" type="hidden" value="yes">
<input name="mode2" type="hidden" value="<? echo $mode ?>">
<br>
<br>
<? sameas() ?>
</font> </center>
</form>
<?
}else{
if("$sameas" !== ""){ $font = $data[$sameas][13]; }
if($change == globe){ $rb =9; }else{ $rb =13; }
savedata($rb,$font);
$inputfile = yes;
}}//if font
if($mode == color){
if($font_sub == ""){
title("Text Color");
$var="select.php?mode=color&font_sub=yes&change=$change&color=";
echo "
<form name=form method=post action=\"\">
<input name=font_sub type=hidden value=yes>
<input name=mode type=hidden value=color>
<input name=change type=hidden value=$change>
<center><font size=2>Select a color to use for text</font><br><img src=\"art/color_map.gif\" width=292 height=196 border=0 usemap=\"#Map1\">
<map name=Map1>
<AREA COORDS=\"2,2,18,18\" HREF=\"".$var."330000\" >
<AREA COORDS=\"18,2,34,18\" HREF=\"".$var."333300\" >
<AREA COORDS=\"34,2,50,18\" HREF=\"".$var."336600\" >
<AREA COORDS=\"50,2,66,18\" HREF=\"".$var."339900\" >
<AREA COORDS=\"66,2,82,18\" HREF=\"".$var."33CC00\" >
<AREA COORDS=\"82,2,98,18\" HREF=\"".$var."33FF00\" >
<AREA COORDS=\"98,2,114,18\" HREF=\"".$var."66FF00\" >
<AREA COORDS=\"114,2,130,18\" HREF=\"".$var."66CC00\" >
<AREA COORDS=\"130,2,146,18\" HREF=\"".$var."669900\" >
<AREA COORDS=\"146,2,162,18\" HREF=\"".$var."666600\" >
<AREA COORDS=\"162,2,178,18\" HREF=\"".$var."663300\" >
<AREA COORDS=\"178,2,194,18\" HREF=\"".$var."660000\" >
<AREA COORDS=\"194,2,210,18\" HREF=\"".$var."FF0000\" >
<AREA COORDS=\"210,2,226,18\" HREF=\"".$var."FF3300\" >
<AREA COORDS=\"226,2,242,18\" HREF=\"".$var."FF6600\" >
<AREA COORDS=\"242,2,258,18\" HREF=\"".$var."FF9900\" >
<AREA COORDS=\"258,2,274,18\" HREF=\"".$var."FFCC00\" >
<AREA COORDS=\"274,2,290,18\" HREF=\"".$var."FFFF00\" >
<AREA COORDS=\"2,18,18,34\" HREF=\"".$var."330033\" >
<AREA COORDS=\"18,18,34,34\" HREF=\"".$var."333333\" >
<AREA COORDS=\"34,18,50,34\" HREF=\"".$var."336633\" >
<AREA COORDS=\"50,18,66,34\" HREF=\"".$var."339933\" >
<AREA COORDS=\"66,18,82,34\" HREF=\"".$var."33CC33\" >
<AREA COORDS=\"82,18,98,34\" HREF=\"".$var."33FF33\" >
<AREA COORDS=\"98,18,114,34\" HREF=\"".$var."66FF33\" >
<AREA COORDS=\"114,18,130,34\" HREF=\"".$var."66CC33\" >
<AREA COORDS=\"130,18,146,34\" HREF=\"".$var."669933\" >
<AREA COORDS=\"146,18,162,34\" HREF=\"".$var."666633\" >
<AREA COORDS=\"162,18,178,34\" HREF=\"".$var."663333\" >
<AREA COORDS=\"178,18,194,34\" HREF=\"".$var."660033\" >
<AREA COORDS=\"194,18,210,34\" HREF=\"".$var."FF0033\" >
<AREA COORDS=\"210,18,226,34\" HREF=\"".$var."FF3333\" >
<AREA COORDS=\"226,18,242,34\" HREF=\"".$var."FF6633\" >
<AREA COORDS=\"242,18,258,34\" HREF=\"".$var."FF9933\" >
<AREA COORDS=\"258,18,274,34\" HREF=\"".$var."FFCC33\" >
<AREA COORDS=\"274,18,290,34\" HREF=\"".$var."FFFF33\" >
<AREA COORDS=\"2,34,18,50\" HREF=\"".$var."330066\" >
<AREA COORDS=\"18,34,34,50\" HREF=\"".$var."333366\" >
<AREA COORDS=\"34,34,50,50\" HREF=\"".$var."336666\" >
<AREA COORDS=\"50,34,66,50\" HREF=\"".$var."339966\" >
<AREA COORDS=\"66,34,82,50\" HREF=\"".$var."33CC66\" >
<AREA COORDS=\"82,34,98,50\" HREF=\"".$var."33FF66\" >
<AREA COORDS=\"98,34,114,50\" HREF=\"".$var."66FF66\" >
<AREA COORDS=\"114,34,130,50\" HREF=\"".$var."66CC66\" >
<AREA COORDS=\"130,34,146,50\" HREF=\"".$var."669966\" >
<AREA COORDS=\"146,34,162,50\" HREF=\"".$var."666666\" >
<AREA COORDS=\"162,34,178,50\" HREF=\"".$var."663366\" >
<AREA COORDS=\"178,34,194,50\" HREF=\"".$var."660066\" >
<AREA COORDS=\"194,34,210,50\" HREF=\"".$var."FF0066\" >
<AREA COORDS=\"210,34,226,50\" HREF=\"".$var."FF3366\" >
<AREA COORDS=\"226,34,242,50\" HREF=\"".$var."FF6666\" >
<AREA COORDS=\"242,34,258,50\" HREF=\"".$var."FF9966\" >
<AREA COORDS=\"258,34,274,50\" HREF=\"".$var."FFCC66\" >
<AREA COORDS=\"274,34,290,50\" HREF=\"".$var."FFFF66\" >
<AREA COORDS=\"2,50,18,66\" HREF=\"".$var."330099\" >
<AREA COORDS=\"18,50,34,66\" HREF=\"".$var."333399\" >
<AREA COORDS=\"34,50,50,66\" HREF=\"".$var."336699\" >
<AREA COORDS=\"50,50,66,66\" HREF=\"".$var."339999\" >
<AREA COORDS=\"66,50,82,66\" HREF=\"".$var."33CC99\" >
<AREA COORDS=\"82,50,98,66\" HREF=\"".$var."33FF99\" >
<AREA COORDS=\"98,50,114,66\" HREF=\"".$var."66FF99\" >
<AREA COORDS=\"114,50,130,66\" HREF=\"".$var."66CC99\" >
<AREA COORDS=\"130,50,146,66\" HREF=\"".$var."669999\" >
<AREA COORDS=\"146,50,162,66\" HREF=\"".$var."666699\" >
<AREA COORDS=\"162,50,178,66\" HREF=\"".$var."663399\" >
<AREA COORDS=\"178,50,194,66\" HREF=\"".$var."660099\" >
<AREA COORDS=\"194,50,210,66\" HREF=\"".$var."FF0099\" >
<AREA COORDS=\"210,50,226,66\" HREF=\"".$var."FF3399\" >
<AREA COORDS=\"226,50,242,66\" HREF=\"".$var."FF6699\" >
<AREA COORDS=\"242,50,258,66\" HREF=\"".$var."FF9999\" >
<AREA COORDS=\"258,50,274,66\" HREF=\"".$var."FFCC99\" >
<AREA COORDS=\"274,50,290,66\" HREF=\"".$var."FFFF99\" >
<AREA COORDS=\"2,66,18,82\" HREF=\"".$var."3300CC\" >
<AREA COORDS=\"18,66,34,82\" HREF=\"".$var."3333CC\" >
<AREA COORDS=\"34,66,50,82\" HREF=\"".$var."3366CC\" >
<AREA COORDS=\"50,66,66,82\" HREF=\"".$var."3399CC\" >
<AREA COORDS=\"66,66,82,82\" HREF=\"".$var."33CCCC\" >
<AREA COORDS=\"82,66,98,82\" HREF=\"".$var."33FFCC\" >
<AREA COORDS=\"98,66,114,82\" HREF=\"".$var."66FFCC\" >
<AREA COORDS=\"114,66,130,82\" HREF=\"".$var."66CCCC\" >
<AREA COORDS=\"130,66,146,82\" HREF=\"".$var."6699CC\" >
<AREA COORDS=\"146,66,162,82\" HREF=\"".$var."6666CC\" >
<AREA COORDS=\"162,66,178,82\" HREF=\"".$var."6633CC\" >
<AREA COORDS=\"178,66,194,82\" HREF=\"".$var."6600CC\" >
<AREA COORDS=\"194,66,210,82\" HREF=\"".$var."FF00CC\" >
<AREA COORDS=\"210,66,226,82\" HREF=\"".$var."FF33CC\" >
<AREA COORDS=\"226,66,242,82\" HREF=\"".$var."FF66CC\" >
<AREA COORDS=\"242,66,258,82\" HREF=\"".$var."FF99CC\" >
<AREA COORDS=\"258,66,274,82\" HREF=\"".$var."FFCCCC\" >
<AREA COORDS=\"274,66,290,82\" HREF=\"".$var."FFFFCC\" >
<AREA COORDS=\"2,82,18,98\" HREF=\"".$var."3300FF\" >
<AREA COORDS=\"18,82,34,98\" HREF=\"".$var."3333FF\" >
<AREA COORDS=\"34,82,50,98\" HREF=\"".$var."3366FF\" >
<AREA COORDS=\"50,82,66,98\" HREF=\"".$var."3399FF\" >
<AREA COORDS=\"66,82,82,98\" HREF=\"".$var."33CCFF\" >
<AREA COORDS=\"82,82,98,98\" HREF=\"".$var."33FFFF\" >
<AREA COORDS=\"98,82,114,98\" HREF=\"".$var."66FFFF\" >
<AREA COORDS=\"114,82,130,98\" HREF=\"".$var."66CCFF\" >
<AREA COORDS=\"130,82,146,98\" HREF=\"".$var."6699FF\" >
<AREA COORDS=\"146,82,162,98\" HREF=\"".$var."6666FF\" >
<AREA COORDS=\"162,82,178,98\" HREF=\"".$var."6633FF\" >
<AREA COORDS=\"178,82,194,98\" HREF=\"".$var."6600FF\" >
<AREA COORDS=\"194,82,210,98\" HREF=\"".$var."FF00FF\" >
<AREA COORDS=\"210,82,226,98\" HREF=\"".$var."FF33FF\" >
<AREA COORDS=\"226,82,242,98\" HREF=\"".$var."FF66FF\" >
<AREA COORDS=\"242,82,258,98\" HREF=\"".$var."FF99FF\" >
<AREA COORDS=\"258,82,274,98\" HREF=\"".$var."FFCCFF\" >
<AREA COORDS=\"274,82,290,98\" HREF=\"".$var."FFFFFF\" >
<AREA COORDS=\"2,98,18,114\" HREF=\"".$var."0000FF\" >
<AREA COORDS=\"18,98,34,114\" HREF=\"".$var."0033FF\" >
<AREA COORDS=\"34,98,50,114\" HREF=\"".$var."0066FF\" >
<AREA COORDS=\"50,98,66,114\" HREF=\"".$var."0099FF\" >
<AREA COORDS=\"66,98,82,114\" HREF=\"".$var."00CCFF\" >
<AREA COORDS=\"82,98,98,114\" HREF=\"".$var."00FFFF\" >
<AREA COORDS=\"98,98,114,114\" HREF=\"".$var."99FFFF\" >
<AREA COORDS=\"114,98,130,114\" HREF=\"".$var."99CCFF\" >
<AREA COORDS=\"130,98,146,114\" HREF=\"".$var."9999FF\" >
<AREA COORDS=\"146,98,162,114\" HREF=\"".$var."9966FF\" >
<AREA COORDS=\"162,98,178,114\" HREF=\"".$var."9933FF\" >
<AREA COORDS=\"178,98,194,114\" HREF=\"".$var."9900FF\" >
<AREA COORDS=\"194,98,210,114\" HREF=\"".$var."CC00FF\" >
<AREA COORDS=\"210,98,226,114\" HREF=\"".$var."CC33FF\" >
<AREA COORDS=\"226,98,242,114\" HREF=\"".$var."CC66FF\" >
<AREA COORDS=\"242,98,258,114\" HREF=\"".$var."CC99FF\" >
<AREA COORDS=\"258,98,274,114\" HREF=\"".$var."CCCCFF\" >
<AREA COORDS=\"274,98,290,114\" HREF=\"".$var."CCFFFF\" >
<AREA COORDS=\"2,114,18,130\" HREF=\"".$var."0000CC\" >
<AREA COORDS=\"18,114,34,130\" HREF=\"".$var."0033CC\" >
<AREA COORDS=\"34,114,50,130\" HREF=\"".$var."0066CC\" >
<AREA COORDS=\"50,114,66,130\" HREF=\"".$var."0099CC\" >
<AREA COORDS=\"66,114,82,130\" HREF=\"".$var."00CCCC\" >
<AREA COORDS=\"82,114,98,130\" HREF=\"".$var."00FFCC\" >
<AREA COORDS=\"98,114,114,130\" HREF=\"".$var."99FFCC\" >
<AREA COORDS=\"114,114,130,130\" HREF=\"".$var."99CCCC\" >
<AREA COORDS=\"130,114,146,130\" HREF=\"".$var."9999CC\" >
<AREA COORDS=\"146,114,162,130\" HREF=\"".$var."9966CC\" >
<AREA COORDS=\"162,114,178,130\" HREF=\"".$var."9933CC\" >
<AREA COORDS=\"178,114,194,130\" HREF=\"".$var."9900CC\" >
<AREA COORDS=\"194,114,210,130\" HREF=\"".$var."CC00CC\" >
<AREA COORDS=\"210,114,226,130\" HREF=\"".$var."CC33CC\" >
<AREA COORDS=\"226,114,242,130\" HREF=\"".$var."CC66CC\" >
<AREA COORDS=\"242,114,258,130\" HREF=\"".$var."CC99CC\" >
<AREA COORDS=\"258,114,274,130\" HREF=\"".$var."CCCCCC\" >
<AREA COORDS=\"274,114,290,130\" HREF=\"".$var."CCFFCC\" >
<AREA COORDS=\"2,130,18,146\" HREF=\"".$var."000099\" >
<AREA COORDS=\"18,130,34,146\" HREF=\"".$var."003399\" >
<AREA COORDS=\"34,130,50,146\" HREF=\"".$var."006699\" >
<AREA COORDS=\"50,130,66,146\" HREF=\"".$var."009999\" >
<AREA COORDS=\"66,130,82,146\" HREF=\"".$var."00CC99\" >
<AREA COORDS=\"82,130,98,146\" HREF=\"".$var."00FF99\" >
<AREA COORDS=\"98,130,114,146\" HREF=\"".$var."99FF99\" >
<AREA COORDS=\"114,130,130,146\" HREF=\"".$var."99CC99\" >
<AREA COORDS=\"130,130,146,146\" HREF=\"".$var."999999\" >
<AREA COORDS=\"146,130,162,146\" HREF=\"".$var."996699\" >
<AREA COORDS=\"162,130,178,146\" HREF=\"".$var."993399\" >
<AREA COORDS=\"178,130,194,146\" HREF=\"".$var."990099\" >
<AREA COORDS=\"194,130,210,146\" HREF=\"".$var."CC0099\" >
<AREA COORDS=\"210,130,226,146\" HREF=\"".$var."CC3399\" >
<AREA COORDS=\"226,130,242,146\" HREF=\"".$var."CC6699\" >
<AREA COORDS=\"242,130,258,146\" HREF=\"".$var."CC9999\" >
<AREA COORDS=\"258,130,274,146\" HREF=\"".$var."CCCC99\" >
<AREA COORDS=\"274,130,290,146\" HREF=\"".$var."CCFF99\" >
<AREA COORDS=\"2,146,18,162\" HREF=\"".$var."000066\" >
<AREA COORDS=\"18,146,34,162\" HREF=\"".$var."003366\" >
<AREA COORDS=\"34,146,50,162\" HREF=\"".$var."006666\" >
<AREA COORDS=\"50,146,66,162\" HREF=\"".$var."009966\" >
<AREA COORDS=\"66,146,82,162\" HREF=\"".$var."00CC66\" >
<AREA COORDS=\"82,146,98,162\" HREF=\"".$var."00FF66\" >
<AREA COORDS=\"98,146,114,162\" HREF=\"".$var."99FF66\" >
<AREA COORDS=\"114,146,130,162\" HREF=\"".$var."99CC66\" >
<AREA COORDS=\"130,146,146,162\" HREF=\"".$var."999966\" >
<AREA COORDS=\"146,146,162,162\" HREF=\"".$var."996666\" >
<AREA COORDS=\"162,146,178,162\" HREF=\"".$var."993366\" >
<AREA COORDS=\"178,146,194,162\" HREF=\"".$var."990066\" >
<AREA COORDS=\"194,146,210,162\" HREF=\"".$var."CC0066\" >
<AREA COORDS=\"210,146,226,162\" HREF=\"".$var."CC3366\" >
<AREA COORDS=\"226,146,242,162\" HREF=\"".$var."CC6666\" >
<AREA COORDS=\"242,146,258,162\" HREF=\"".$var."CC9966\" >
<AREA COORDS=\"258,146,274,162\" HREF=\"".$var."CCCC66\" >
<AREA COORDS=\"274,146,290,162\" HREF=\"".$var."CCFF66\" >
<AREA COORDS=\"2,162,18,178\" HREF=\"".$var."000033\" >
<AREA COORDS=\"18,162,34,178\" HREF=\"".$var."003333\" >
<AREA COORDS=\"34,162,50,178\" HREF=\"".$var."006633\" >
<AREA COORDS=\"50,162,66,178\" HREF=\"".$var."009933\" >
<AREA COORDS=\"66,162,82,178\" HREF=\"".$var."00CC33\" >
<AREA COORDS=\"82,162,98,178\" HREF=\"".$var."00FF33\" >
<AREA COORDS=\"98,162,114,178\" HREF=\"".$var."99FF33\" >
<AREA COORDS=\"114,162,130,178\" HREF=\"".$var."99CC33\" >
<AREA COORDS=\"130,162,146,178\" HREF=\"".$var."999933\" >
<AREA COORDS=\"146,162,162,178\" HREF=\"".$var."996633\" >
<AREA COORDS=\"162,162,178,178\" HREF=\"".$var."993333\" >
<AREA COORDS=\"178,162,194,178\" HREF=\"".$var."990033\" >
<AREA COORDS=\"194,162,210,178\" HREF=\"".$var."CC0033\" >
<AREA COORDS=\"210,162,226,178\" HREF=\"".$var."CC3333\" >
<AREA COORDS=\"226,162,242,178\" HREF=\"".$var."CC6633\" >
<AREA COORDS=\"242,162,258,178\" HREF=\"".$var."CC9933\" >
<AREA COORDS=\"258,162,274,178\" HREF=\"".$var."CCCC33\" >
<AREA COORDS=\"274,162,290,178\" HREF=\"".$var."CCFF33\" >
<AREA COORDS=\"2,178,18,194\" HREF=\"".$var."000000\" >
<AREA COORDS=\"18,178,34,194\" HREF=\"".$var."003300\" >
<AREA COORDS=\"34,178,50,194\" HREF=\"".$var."006600\" >
<AREA COORDS=\"50,178,66,194\" HREF=\"".$var."009900\" >
<AREA COORDS=\"66,178,82,194\" HREF=\"".$var."00CC00\" >
<AREA COORDS=\"82,178,98,194\" HREF=\"".$var."00FF00\" >
<AREA COORDS=\"98,178,114,194\" HREF=\"".$var."99FF00\" >
<AREA COORDS=\"114,178,130,194\" HREF=\"".$var."99CC00\" >
<AREA COORDS=\"130,178,146,194\" HREF=\"".$var."999900\" >
<AREA COORDS=\"146,178,162,194\" HREF=\"".$var."996600\" >
<AREA COORDS=\"162,178,178,194\" HREF=\"".$var."993300\" >
<AREA COORDS=\"178,178,194,194\" HREF=\"".$var."990000\" >
<AREA COORDS=\"194,178,210,194\" HREF=\"".$var."CC0000\" >
<AREA COORDS=\"210,178,226,194\" HREF=\"".$var."CC3300\" >
<AREA COORDS=\"226,178,242,194\" HREF=\"".$var."CC6600\" >
<AREA COORDS=\"242,178,258,194\" HREF=\"".$var."CC9900\" >
<AREA COORDS=\"258,178,274,194\" HREF=\"".$var."CCCC00\" >
<AREA COORDS=\"274,178,290,194\" HREF=\"".$var."CCFF00\" >
</map></center>";
sameas();
echo '</form>';
}else{
if("$sameas" !== ""){ $color = $data[$sameas][14]; }
if($change == globe){ $rb =11; }else{ $rb =14; }
savedata($rb,$color);
$inputfile = yes;
}
}//if color
if($mode == size){
if($size_sub == ""){
title("Text Size");
?>
<form action="" method="get" name="form" >
<div align="center">
<p> </p>
<p> </p>
<? echo $size_sub ?>
<p><font size="2">Input a number that will be used for the text size.<br>
20 is recommended. <br>
<input name="textsize" type="text" size="3" maxlength="3" value="<? echo $dbtextsize ?>">
<input name="change" type="hidden" value="<? echo $change ?>">
<input name="size_sub" type="hidden" value="yes">
<input name="mode" type="hidden" value="size">
<br>
<input type="submit" value="Select Size">
<br>
<? sameas() ?>
</font></p>
</div>
</form>
<?
}else{
if("$sameas" !== ""){ $textsize = $data[$sameas][15]; }
if($change == globe){ $rb =12; }else{ $rb =15; }
savedata($rb,$textsize);
$inputfile = yes;
}}//if mode is size
if($mode == timing){
if($timing_sub == ""){
function dateset($display,$time){
global $data;
if($time == ""){ $time = time(); }
return date("$display",$time);
}
?>
<? title("Timing Settings") ?>
<table width="291" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="291" height="279">
<form action="" method="post" name="form" >
<font size="2">At this time, show <? echo $chn ?>.
<br>
Current time
<? echo date("Y : m : H : i : s") ?>
<? if($dbttmmee < time()){ echo "<br><font color=blue><br>The current time is set below</font>"; $datatt=time(); }else{ $datatt=$dbttmmee; } ?> </font>
<table width="288" border="0" cellpadding="0" cellspacing="0" bgcolor="#F4F4F4">
<tr>
<td height="30"><div align="center"><font color="#CC0000" size="2">
Year</font></div></td>
<td><div align="center"><font color="#CC0000" size="2">Month<br>
</font><font color="#CC0000" size="2">(1 - 12)</font></div></td>
<td> <div align="center"><font color="#CC0000" size="2">Day(24)</font></div></td>
<td> <div align="center"><font color="#CC0000" size="2">Hour</font></div></td>
<td><div align="center"><font color="#CC0000" size="2">Minute</font></div></td>
<td><div align="center"><font color="#CC0000" size="2">Second</font></div></td>
</tr>
<tr>
<td height="22"><div align="center"><font size="2">
<input name="year" type="text" value="<? echo dateset("Y",$datatt); ?>" size="4" >
</font></div></td>
<td><div align="center"><font size="2">
<input name="month" type="text" value="<? echo dateset("m",$datatt); ?>" size="2" >
</font></div></td>
<td><div align="center"><font size="2">
<input name="day" type="text" value="<? echo dateset("j",$datatt); ?>" size="2" >
</font></div></td>
<td><div align="center"><font size="2">
<input name="hour" type="text" value="<? echo dateset("H",$datatt); ?>" size="2" >
</font></div></td>
<td><div align="center"><font size="2">
<input name="minute" type="text" value="<? echo dateset("i",$datatt); ?>" size="2" >
</font></div></td>
<td><div align="center"><font size="2">
<input name="second" type="text" value="<? echo dateset("s",$datatt); ?>" size="2" >
</font></div></td>
</tr>
</table>
<font size="2"><br>
<? notes(" Note: You will have to be in live mode for the timer to work. Also remeber
to check the Enable Timing<br>") ?>
<center>
<input name="change" type="hidden" value="<? echo $change ?>">
<input name="timing_sub" type="hidden" value="yes">
<input name="mode" type="hidden" value="timing">
<br>
<input type="submit" name="Submit" value="Submit">
</center>
</font>
</form>
<p> </p>
</td>
</tr>
</table>
<?
}else{
$enddate = mktime ( $hour,$minute , $second , $month , $day , $year );
if($enddate < time()){ echo "<p> </p><center><font size=2 >The time has already passed</font></center><meta http-equiv=\"refresh\"content=\"3;URL=select.php?mode=timing&change=$change\">";
}else{
savedata(10,$enddate);
$inputfile = yes;
}}}
if($mode == textfile){
if($textfile_sub == ""){
$brtxtdata = explode("-",$dbtxtsets);
if($brtxtdata[0] == ""){ $brtxtdata[0] =alllines; $noset="<br><font color=blue>Default settings set</font>"; }
title("Text Settings");
?>
<table width="261" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="261" height="200"><font size="2">
<center>
<? echo $noset ?>
</center>
<br>
<? notes("When reading text messages off of a text file, there are several options that you can set to display how the text is displayed on the channel.") ?>
<br>
</font>
<form action="" method="post" name="form" >
<p> <font size="2">
<input name="display" type="radio" value="last" <? if($brtxtdata[0] == last){ echo checked; } ?> >
Display the last
<input name="thisarea1" type="text" size="3" maxlength="3" value="<? echo $brtxtdata[1]; ?>">
lines in the file <br>
<input type="radio" name="display" value="onlyline" <? if($brtxtdata[0] == onlyline){ echo checked; } ?>>
Display only this line
<input name="thisarea2" type="text"" size="3" maxlength="3" value="<? echo $brtxtdata[1]; ?>">
<br>
<input type="radio" name="display" value="alllines" <? if($brtxtdata[0] == alllines){ echo checked; } ?>>
Display all lines<br>
<input type="radio" name="display" value="rotate" <? if($brtxtdata[0] == rotate){ echo checked; } ?>>
Rotate lines<br>
<input name="change" type="hidden" value="<? echo $change ?>">
<input name="textfile_sub" type="hidden" value="yes">
<input name="mode" type="hidden" value="textfile">
</font>
<center>
<input type="submit" value="Submit">
<br>
<br>
<? sameas() ?>
</center>
</p>
</form>
<br>
</td>
</tr>
</table>
<?
}else{
if($display == "last"){ $thisarea = $thisarea1; }
if($display == "onlyline"){ $thisarea = $thisarea2; }
if("$sameas" !== ""){ $dtextfi = $data[$sameas][18]; }else{ $dtextfi = "$display-$thisarea-$fade"; }
if($change == globe){ $rb =13; }else{ $rb =18; }
savedata($rb,$dtextfi);
$inputfile = yes;
}
}
if($mode == shadow){
if($sub_shadow == ""){
$shad = explode("&",$dbtxtsetting);
function if_sel($vu,$val,$what){
if($what == ""){ $what = selected; }
if($vu == "$val"){ echo $what; }
}
title("Text Shadow");
?>
<table width="265" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="261" height="156"><center>
<form action="" method="post" name="form" >
<input name="change" type="hidden" value="<? echo $change ?>">
<input name="sub_shadow" type="hidden" value="yes">
<input name="mode" type="hidden" value="shadow">
<br>
<font size="2">Direction of shadow<br>
Up Left
<input name="direction" type="radio" value="-x-" <? if_sel($shad[0],"-x-",checked) ?>>
<img src="art/-x-.jpg" width="60" height="25" ><br>
Down Left
<input type="radio" name="direction" value="-x+" <? if_sel($shad[0],"-x+",checked) ?>>
<img src="art/-x%2B.jpg" width="60" height="25" ><br>
Down Right
<input type="radio" name="direction" value="+x+" <? if_sel($shad[0],"+x+",checked) ?>>
<img src="art/%2Bx%2B.jpg" width="60" height="25" ><br>
Up Right
<input type="radio" name="direction" value="+x-" <? if_sel($shad[0],"+x-",checked) ?>>
<img src="art/%2Bx-.jpg" ></font> <br>
<br>
<table width="214" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="101" height="53"><font size="2">Shadow <br>
Distance<br>
<select name="distance" >
<option value="1" <? if_sel($shad[1],"1",'') ?>>1 Pixel</option>
<option value="2" <? if_sel($shad[1],"2",'') ?>>2 Pixels</option>
<option value="3" <? if_sel($shad[1],"3",'') ?>>3 Pixels</option>
<option value="4" <? if_sel($shad[1],"4",'') ?>>4 Pixels</option>
<option value="5" <? if_sel($shad[1],"5",'') ?>>5 Pixels</option>
</select>
</font></td>
<td width="113">
<p><font size="2">Shadow Color<br>
<select name="shcolor" size="2" >
<option value="255_255_255" <? if_sel($shad[2],"255_255_255",'') ?>>White</option>
<option value="0_0_0" <? if_sel($shad[2],"0_0_0",'') ?>>Black</option>
<option value="255_0_0" <? if_sel($shad[2],"255_0_0",'') ?>>Red</option>
<option value="0_0_255" <? if_sel($shad[2],"0_0_255",'') ?>>Blue</option>
<option value="255_255_0" <? if_sel($shad[2],"255_255_0",'') ?>>Yellow</option>
<option value="0_0_255" <? if_sel($shad[2],"0_0_255",'') ?>>Green</option>
<option value="255 _204_51" <? if_sel($shad[2],"255 _204_51",'') ?>>Orange
</option>
<option value="153 _153 _153" <? if_sel($shad[2],"153 _153 _153",'') ?>>Grey</option>
</select>
</font></p></td>
</tr>
</table>
<br>
<input name="submit" type="submit" value="Submit">
<p>
<? sameas() ?>
</p>
</form>
</center>
</td>
</tr>
</table>
<?
}else{
if("$sameas" !== ""){ $tshad = $data[$sameas][20]; }else{ $tshad = "$direction&$distance&$shcolor"; }
if($change == globe){ $rb =15; }else{ $rb =20; }
savedata($rb,$tshad);
$inputfile = yes;
}
}
if($mode == checkimages){
echo "<center>Scaned $dbimad file...<br>Results:</center><br><br><font size=2>";
notes("Below shows what images are good and valid to use <br>with AWDigie in the selected txt file.<br><br>");
if($change == program){ $dbimad = $data[other][1]; }
foreach(file("$dbimad") as $line){
if(file_exists(ereg_replace("(\n|\r)", "", $line)) && imagecreatefromjpeg(ereg_replace("(\n|\r)", "", $line))){
echo "\"$line\" <font color=blue>Is Valid</font><br>";
}else{
echo "\"$line\" <font color=red>Is Not Valid</font><br>";
}
}
echo "</font><br><center><input type=button onClick=\"self.close()\" Value=Close></center>";
}
if($mode == zoom){
if($sub_zoom == "" ){
$brz = explode("&",$dbzoom);
if("$brz[2]" == "" && "$dothis" == "" or $reset == "reset"){
$posx = 0;
$posy = 0;
$zoom = 256;
$rotate = 0;
$dothis =zin;
$enback='';
}else{
if("$dothis" == ""){
$posx = $brz[2];
$posy = $brz[1];
$zoom = $brz[3];
$rotate = $brz[0];
$dothis =zin;
$buse = $brz[4];
if("$brz[4]" !== ""){ $enback = "yes"; }
}}
if($changed == $buse && $enback == $enchanged && $changeddsb == $dontsizeback){
if($dothis == zin){ $zoom = ($zoom + $power);
}
if($dothis == zout){ $zoom = ($zoom - $power);
}
if($dothis == zpan){
$posy =$zp_y -($zoom /2);
$posx = $zp_x-($zoom /2);
}
if($dothis == zro){
$rotate = (128 - $zp_x)+$rotate;
}
}// if other
if($zoom == 0 ){$zoom = 1;}
function radio($in){
global $buse,$enback,$change,$rotate,$brz;
if("$buse" == "$in"){ $ck = checked; }else{ $href ="onclick=\"form.submit()\""; }
if("$change" !== "$in" && "$enback" == "yes" && "$rotate" == "0" ){ echo "<input type=radio name=buse value=$in $href $ds $ck> Use Channel$in<br> \n"; }
}
$getsize=@getimagesize($dbaddess);
$getch=@getimagesize($data[channel.$buse][1]);
title("Zoom/Pan");
?>
<table width="448" height="426" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="448" height="426">
<form action="" method="get" name="form" id="form">
<? notes("<br>Here you can zoom in, zoom out, pan or rotate.<br>This will only transform the image and not any text or watermarks set.<br>If you zoom out you will notice that there is black along sides of<br>the image border, you can replace this black with another channel by clicking <br>on the \"Background Channel\" checkbox and selecting a channel. "); if($data[other][6] !== Show){ echo "<font size=2>Channel settings for zooming and panning.<br> Note zooming in can make things pixlelated</font> "; } ?>
<br><br>
<table width="457" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="260"><input type="image" name="zp" src="<? echo "zoom.php?im=$dbaddess&zoom=$zoom&posx=$posx&posy=$posy&rotate=$rotate&buse=$buse&dontsizeback=$dontsizeback"; ?>" width="256" height="256">
</td>
<td width="183"><p>
<input name="enback" type="checkbox" value="yes" onclick="form.submit()" <? if("$enback" == "yes" ){ echo checked; } if("$rotate" !== "0"){ echo disabled; } ?>>
<font size="2"> Background Channel<br>
Checking this will use a background image channel<br>
<input name="changed" type="hidden" id="changed" value=<? echo $buse ?>>
<input name="enchanged" type="hidden" id="enchanged" value=<? echo $enback ?>>
<input name="changeddsb" type="hidden" id="changeddsb" value=<? echo $dontsizeback ?>>
<br>
<? if ($enback == yes){ ?>
<input name="dontsizeback" type="checkbox" value="yes" onclick="form.submit()" <? if($dontsizeback == yes){ echo checked; } ?>>
Dont Size Background Image
<? } ?>
<br>
<br>
<?
radio(1);
radio(2);
radio(3);
radio(4);
?>
<br>
<br>
<? if($getch[0] < $getsize[0] && $zoom < 240 && "$enback" == "yes" && "$buse" !== "" && $dontsizeback !== yes){ echo '<font color=red> Images will look blurry<br>(The background image is smaller then the Channel)</font><br>'; } ?>
</font></p>
</td>
</tr>
</table>
<table width="452" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="136" height="135"><font size="2">Clicking on image will<br>
<img src="art/in.jpg" width="17" height="17"></font>
<input type="radio" name="dothis" value="zout" <? if($dothis == zout){ echo checked; } ?>>
<font size="2">Zoom out<br>
<img src="art/out.jpg" width="17" height="17" >
<input name="dothis" type="radio" value="zin" <? if($dothis == zin){ echo checked; } ?> >
Zoom in<br>
<img src="art/pan.gif" width="17" height="17" >
<input name="dothis" type="radio" value="zpan" <? if($dothis == zpan){ echo checked; } ?>>
Pan</font> <br>
<img src="art/ro.gif" width="17" height="17"><font size="2">
<input type="radio" name="dothis" value="zro" <? if($dothis == zro){ echo checked; } ?>>
Rotate</font><font size="2"> <br>
Power Control<br>
<select name="power" >
<option value="22" <? if($power == 22){ echo selected; } ?> >1</option>
<option value="44" <? if($power == 44){ echo selected; } ?> >2</option>
<option value="68" <? if($power == 68){ echo selected; } ?> >3</option>
<option value="90" <? if($power == 90){ echo selected; } ?> >4</option>
<option value="112" <? if($power == 112){ echo selected; } ?> >5</option>
</select>
</font> <br>
</td>
<td width="316"><div align="right"><font size="2">Click the "To
Channel" button <br>
to save zoom/pan<br>
<input name="rotate" type="hidden" value="<? echo $rotate ?>" >
<input name="change" type="hidden" value="<? echo $change ?>" >
<input name="posy" type="hidden" value="<? echo $posy ?>">
<input name="posx" type="hidden" value="<? echo $posx ?>">
<input name="zoom" type="hidden" value="<? echo $zoom ?>">
<input name="mode" type="hidden" value="zoom">
<input name="sub_zoom" type="submit" value="To Channel">
<br>
<br>
<? echo "<a href=\"select.php?change=$change&mode=zoom&reset=reset\">Reset</a>"; ?>
</font></div></td>
</tr>
</table>
<div align="center"></div>
</form>
</td>
</tr>
</table>
<?
}else{
if("$sameas" !== ""){ $tzoom = $data[$sameas][21]; }else{ $tzoom = "$rotate&$posy&$posx&$zoom&$buse&$dontsizeback&"; }
echo "Saving as $buse<br>";
savedata(21,"$tzoom");
$inputfile = yes;
}
}
if($mode == record){
if($sub_record == "" ){
$brr = explode("%",$data[settings][11]);
function if_select($mnum,$this){
if("$this" == ""){
if($mnum == date("n", "")){ echo selected; }
}else{
if("$this" == "$mnum"){ echo selected; } }}
function if_date($let){
global $brr;
if("$brr[2]" == ""){ return date("$let"); }else{ return date("$let", $brr[2]); }
}
title("Recording");
?>
<script language=javascript>
function alla(id,v){
for (i=0; i<2; i++){
document.getElementById(id+[i]).innerText=v;
}}
</script>
<form method="post" action="">
<table width="310" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="310"><p><font size="2"><br>
This will only record channels when they are live.<br>
Or select All Broadcast to record all of the channels in broadcasting
order. Channels will not be recorded with settings<br>
<select name="recordwhat" size="1"
onChange=" alla('what',this.options[this.selectedIndex].value)" >
<option value="all">The Broadcast</option>
<option value="Channel1">Channel1</option>
<option value="Channel2">Channel2</option>
<option value="Channel3">Channel3</option>
<option value="Channel4">Channel4</option>
</select>
</font></p>
<table width="264" border="0" cellpadding="0" cellspacing="0" bgcolor="#F4F4F4">
<tr>
<td height="15" colspan="4"><p>
<input name="start_en" type="checkbox" value="yes" <? if($brr[1] == yes){ echo checked; } ?>>
<font size="2"> Start Recording At time <br>
Current time
<? echo date("m:j:H:i") ?>
<br>
</font> </p></td>
</tr>
<tr>
<td width="74" height="52"><p align="center"><font color="#CC0000" size="2">
Month<br>
(1 - 12)<br></font>
<input name="stmonth" type="text" value="<? echo if_date("m"); ?>" size="2" >
<font color="#CC0000" size="2"> </font></p></td>
<td width="42"><div align="center"><font color="#CC0000" size="2">Day</font><br>
<input name="stday" type="text" value="<? echo if_date("j"); ?>" size="2" maxlength="2">
</div></td>
<td width="59">
<center>
<font color="#CC0000" size="2">Hour(24)</font> <br>
<input name="sthour" type="text" value="<? echo if_date("H"); ?>" size="2" maxlength="2">
</center>
</td>
<td width="69"> <center>
<font color="#CC0000" size="2">Minute</font><br>
<input name="stmin" type="text" value="<? echo if_date("i"); ?>" size="2" maxlength="2">
</font></center></td>
</tr>
</table>
<font size="2"><br>
Stop after
<input name="stop_after" type="text" size="4" value="<? echo $brr[5] ?>" >
Images <br>
<br>
Images will be saved as <strong> :<br>
rec/<a id=wdir0><? echo $brr[6] ?></a>/<a id=what0><? echo $brr[0] ?></a>_<a id=wprefex><? echo $brr[7] ?></a>xxx.jpg
</strong><br>
<br>
A Text file for later playing back will be <br>
created as:<br>
<b>txt/rec_<a id=what1><? echo $brr[0] ?></a>_<a id=wdir1><? echo $brr[6] ?></a>.txt";
</b> <br>
<input name="dir" type="text" size="10" value="<? echo $brr[6] ?>"
onchange="if(this.value == ''){ alla('wdir','<? echo $brr[6] ?>'); this.value=('<? echo $brr[6] ?>'); }else{ alla('wdir',this.value); } " >
/
<input name="prefex" type="text" size="10" value="<? echo $brr[7] ?>"
onchange="if(this.value == ''){ document.getElementById('wprefex').innerText=('<? echo $brr[7] ?>'); this.value=('<? echo $brr[7] ?>'); }else{ document.getElementById('wprefex').innerText=this.value } " >
</font> .jpg<font size="2"><br>
<input name="sub_record" type="submit" value="Submit">
<input name="change" type="hidden" value="settings" >
<input name="mode" type="hidden" value="record">
</font></td>
</tr>
</table>
</form>
<p>
<?
}else{
$brr = explode("%",$data[settings][11]);
$rec_txt= "txt/rec_".$recordwhat."_".$dir.".txt";
if(!file_exists($rec_txt)){
fopen($rec_txt,"a+");
}
if( $brr[6] !== $dir && sizeof(@file("txt/rec_$brr[0]_$brr[6].txt")) == 0 ){ unlink("txt/rec_$brr[0]_$brr[6].txt"); }//if txt file exists
if(!is_dir("rec/$dir/") ){
if(( @mkdir("rec/$dir/", 0777) ) == FALSE ){ echo "<font color=red>Cant Create The Directory <b>rec/$dir/</b></font> <br>Make sure that <b>rec/</b> has the correct permissions <br><br>"; $dont=np; }
}
$startdate = mktime ( $sthour,$stmin , "0", $stmonth , $stday , date("Y") );
if($startdate < time() && $start_en == "yes"){ echo "<font color=red>The time has already passed </font><br>"; $dont=np; }
echo "<br>$startdate<br>".time()."";
if($dont == ""){
savedata(11,"$recordwhat%$start_en%$startdate%$with_marks%$to_txt%$stop_after%$dir%$prefex");
$inputfile = yes;
}
}
}
if($mode == create_view){
title("Create View");
?>
<p align="center">
<meta http-equiv="refresh" content="10">
<img src="tv.php" width="256" height="256"><br>
<font size="2">Image will update in 10 seconds<br>
"create picture <? echo str_replace('select.php', 'tv.php', $_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']); ?>
update=10"</font> <br>
<textarea name="textarea" cols="40">
<meta http-equiv="refresh" content="10">
<img src="tv.php" width="256" height="256">
<font size="2">Image will update in 10 seconds<br>
"create picture <? echo str_replace('select.php', 'tv.php', $_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']); ?> update=10"</font>
</textarea>
</p>
<?
}
if($mode == moni){
title("Viewing $chn");
?>
<meta http-equiv="refresh" content="<? echo $uf ?>">
<center>
<img src="channels.php?size=big&chan=<? echo $chn ?>" width="256" height="256"><br>
<font size="2">Update Frequency <? for($a=1;$a<21;$a++){ $b=''; $eb=''; if($uf == $a){ $b='<b><font size=3>'; $eb= '</font></b>'; }echo " $b<a href=select.php?uf=$a&mode=moni&change=$change>$a</a>$eb \n"; } ?></font>
</center>
<?
}
if($mode == awsettings ){
if($sub_awsettings ==""){
title("AWDigie Settings");
$net = explode("^%",$data[other][8]);
$gdeset = explode("&",$data[other][9]);
?>
<script language="JavaScript">
function bytokb(input){ document.form.byte.value=input*1024; }
function kbtoby(input){ document.form.kb.value=Math.round(input/1024); }
</script>
<table width="488" height="383" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="488" height="84" bgcolor="#F7F4F4"> <form name="form" method="post" action="">
<strong>Guides</strong>
<? echo $discript ?>
<font size="2">
<? notes(" <br>
These settings will be used on the admin control panel. If an image
is above the settings below, they will be red tagged.<br>
<br>") ?>
<br>
</font>
<table width="498" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="197"> <font size="2">Max Image Size</font><br> <font size="2">Hieght
<input name="imH" type="text" id="imH" size="3" maxlength="3" value=<? echo $gdeset[0] ?>>
Width
<input name="imW" type="text" id="imW" size="3" maxlength="3" value=<? echo $gdeset[1] ?>>
</font></td>
<td width="301"><font size="2">Max Image File Size</font><br> <font size="2">
Kilobytes
<input name="imKB" type="text" id="kb" value="<? echo round($gdeset[2]/1024) ?>" size="7" onChange="bytokb(this.value)" >
Bytes
<input name="imBY" type="text" id="byte" value="<? echo $gdeset[2] ?>" size="7" onChange="kbtoby(this.value)" >
</font></td>
</tr>
</table>
<input name="sub_awsettings" type="submit" value="Set Guides"> </form>
</td>
</tr>
<tr>
<td height="239" bgcolor="#E8EAEC"><form name="form2" method="get" action="http://www.vmist.net/activeworlds/awscripts/awdigie/network_setup.php">
<table width="488" height="275" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2"><div align="center"><strong><a href="http://www.vmist.net/activeworlds/awscripts/awdigie/network.php" target="newnet">Network</a>
Settings</strong><font size="2"> <br>
<input name="tognetwork" type="checkbox" value="yes" <? if($net[1] == yes){ echo checked; } ?> >
Place this station on the AWDigie network.</font></div>