Avatar

hard to read :(

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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
<?php

error_reporting(E_ALL);
@ini_set('max_execution_time', 950 * 60);
@set_time_limit (950 * 60);
@set_magic_quotes_runtime(false);

require_once(dirname(__FILE__) . '/functions/versioning.php');
$ac47dce07480d6b2ac2710552e49bcafd2 =
	md5(
		base64_encode(base64_encode(base64_encode($thisVersion))) .
		'acp' .
		base64_encode(base64_encode($thisVersion)) .
		'rulz' .
		base64_encode($thisVersion)
	) .
	base64_encode(base64_encode($thisVersion))
;


function u_gpc_unescape($ac4fa52fb1dd55bf646d23624ea290374c){
	if((get_magic_quotes_gpc() == 1)){
		$ac4fa52fb1dd55bf646d23624ea290374c = stripslashes($ac4fa52fb1dd55bf646d23624ea290374c);
	}
	return $ac4fa52fb1dd55bf646d23624ea290374c;
}


function u_escape($ac4fa52fb1dd55bf646d23624ea290374c, $acab1d150de9cb80eb9fe0eb2c3d245a0f = false, $ac4d5e97d3c7ead114b08e06d44d28c75c = false) {
	if ( !$acab1d150de9cb80eb9fe0eb2c3d245a0f ) $ac4fa52fb1dd55bf646d23624ea290374c = u_gpc_unescape($ac4fa52fb1dd55bf646d23624ea290374c);
	if ( version_compare(phpversion(),"4.3.0")=="-1" ) {
		return mysql_escape_string($ac4fa52fb1dd55bf646d23624ea290374c);
	} else {
		return ( $ac4d5e97d3c7ead114b08e06d44d28c75c ? mysql_real_escape_string($ac4fa52fb1dd55bf646d23624ea290374c, $ac4d5e97d3c7ead114b08e06d44d28c75c) : mysql_real_escape_string($ac4fa52fb1dd55bf646d23624ea290374c) );
	}
}

function dbg($acc1b70b706a96e50d16adc0ea72b6d4e9, $ac0dbe725d3c8653e7b36df8e5d7f490ac = false) {
	if ( !headers_sent() ) {
		
		header("HTTP/1.0 200 OK");
		header("Status: 200 OK");
	}
	echo '<pre>Vartype: ' . gettype($acc1b70b706a96e50d16adc0ea72b6d4e9) . "\n";
	if ( is_array($acc1b70b706a96e50d16adc0ea72b6d4e9) )
		echo 'Elements: ' . count($acc1b70b706a96e50d16adc0ea72b6d4e9) . "\n";
	elseif ( is_string($acc1b70b706a96e50d16adc0ea72b6d4e9) )
		echo 'Length: ' . strlen($acc1b70b706a96e50d16adc0ea72b6d4e9) . "\n";
	echo htmlentities( print_r($acc1b70b706a96e50d16adc0ea72b6d4e9, true) );
	if ( is_object($acc1b70b706a96e50d16adc0ea72b6d4e9) ) {
		echo "Methods:\n";
		echo htmlentities( print_r(get_class_methods($acc1b70b706a96e50d16adc0ea72b6d4e9), true) );
		if ( get_parent_class($acc1b70b706a96e50d16adc0ea72b6d4e9) )
			echo 'Parent:' . get_parent_class($acc1b70b706a96e50d16adc0ea72b6d4e9) . "\n";
	}
	echo '</pre>';
	flush();
	if ( !$ac0dbe725d3c8653e7b36df8e5d7f490ac ) exit;
}

function get_param($acf77a6b8ca977a94f0e521a0594c2ad26) {
	if ( isset($_POST[$acf77a6b8ca977a94f0e521a0594c2ad26]) ) return $_POST[$acf77a6b8ca977a94f0e521a0594c2ad26];
	if ( isset($_GET[$acf77a6b8ca977a94f0e521a0594c2ad26]) ) return $_GET[$acf77a6b8ca977a94f0e521a0594c2ad26];
	return false;
}

function writeEngine($acfa113c35001fc3f4783f6bf46112bdf6, $ac1b1765731a2288764b75469cf375dacc, $ac1b90661ffa9d49290cc8f4ec4ae9b6d6, $ac4d5e97d3c7ead114b08e06d44d28c75c) {
	
	$ac690fa296773541180814de54aee15828 = fopen ("engine.inc.php", "w");
	$ac7d0adf883b3c44178f029ba54c751b2d = fwrite($ac690fa296773541180814de54aee15828, "<?php");
	$ac7d0adf883b3c44178f029ba54c751b2d = fwrite($ac690fa296773541180814de54aee15828, "\n");
	$ac7d0adf883b3c44178f029ba54c751b2d = fwrite($ac690fa296773541180814de54aee15828, "\$db_link = mysql_connect");
	$ac7d0adf883b3c44178f029ba54c751b2d = fwrite($ac690fa296773541180814de54aee15828, "('$acfa113c35001fc3f4783f6bf46112bdf6','$ac1b1765731a2288764b75469cf375dacc','$ac1b90661ffa9d49290cc8f4ec4ae9b6d6'");
	$ac7d0adf883b3c44178f029ba54c751b2d = fwrite($ac690fa296773541180814de54aee15828, ");");
	$ac7d0adf883b3c44178f029ba54c751b2d = fwrite($ac690fa296773541180814de54aee15828, "\n");
	$ac7d0adf883b3c44178f029ba54c751b2d = fwrite($ac690fa296773541180814de54aee15828, "\$db_linkdb = mysql_select_db");
	$ac7d0adf883b3c44178f029ba54c751b2d = fwrite($ac690fa296773541180814de54aee15828, "('$ac4d5e97d3c7ead114b08e06d44d28c75c');");
	$ac7d0adf883b3c44178f029ba54c751b2d = fwrite($ac690fa296773541180814de54aee15828, "?>");
	fclose($ac690fa296773541180814de54aee15828);
}

function execQueries($ac9433f029bc97c00effcf02c25a4c7a4d, &$aca34e82fd67f88b62e38728e0e72c8314) {
	$ac6e7b796279da3c432fbbf924d0958f85 = file_get_contents($ac9433f029bc97c00effcf02c25a4c7a4d);
	
	$ac11da80231e4d2c7cb87ce4e663d71557 = preg_split("/\r?\n/", $ac6e7b796279da3c432fbbf924d0958f85);
	foreach( $ac11da80231e4d2c7cb87ce4e663d71557 as $ac62c0658282b54df311945ea5e47986b3 ) {
		if( $ac62c0658282b54df311945ea5e47986b3 != '' ) {
			$aca4cf93c5e65aeb48e0f25d362bbdadd8 = mysql_query($ac62c0658282b54df311945ea5e47986b3, $aca34e82fd67f88b62e38728e0e72c8314);
			if( $aca4cf93c5e65aeb48e0f25d362bbdadd8 != false ) {
				echo ".";
				flush();
			} else {
				echo "!";
				flush();
				echo "<!-- UPDATE QUERY FAILED: $ac62c0658282b54df311945ea5e47986b3 -->\n"; flush();
				echo "<!-- DEBUG: " . mysql_error($aca34e82fd67f88b62e38728e0e72c8314) . "-->\n";
			}
		}
	}
}




$ac8d94a7ec0e84be90c0c7c2af51953516 = "" . chr(838860800>>23) . "" . chr(0x72) . "\x33\x32" . chr(0x39) . "" . chr(062) .
"";
$ace927919a8737c6fb6d7808c98ba6e218 = "" . chr(0x61) . "" . chr(830472192>>23) . "\164";
$ac951db75c168a912782a967045aea328c = "\164";
$ac3db298d1f41f469e723e5b4dea7be0fa = "\144" . chr(905969664>>23) . "" . chr(0x5f) . "" . chr(0164) . "";
$acae389162fcc986ff6fa3f1a4f0f899dc = "\144" . chr(0x6c) . "" . chr(796917760>>23) . "" . chr(0163) . "";
$acf392f3e6f46770e64c3dccff6e7228e6 = "" . chr(0144) . "\x6c" . chr(796917760>>23) . "" . chr(838860800>>23) . "" . chr(0x64) . "";
$ac51e163b3320f46e0ebd7b37fbab73c73 = "" . chr(0123) . "" . chr(0x45) . "\122\126\105\x52" . chr(0137) . "\116" . chr(545259520>>23) . "" . chr(0x4d) . "\x45";
$aca5471013ca2b0bb0ee1e4be51be25ea8 = "" . chr(0x48) . "\124\124" . chr(0120) . "" . chr(0123) . "";
$ac57d9396014d4007356173a7114286712 = "" . chr(872415232>>23) . "\x74" . chr(973078528>>23) . "" . chr(939524096>>23) . "" . chr(0163) . "";
$ac7fdaeb6370fa9349be5f1a5e9886c797 = "\x68\164" . chr(0164) . "" . chr(0x70) . "";
$ac6ee9af3bf3df9b6d16b2cc027e6ee2a0 = "" . chr(0x50) . "\x48" . chr(671088640>>23) . "" . chr(0137) . "" . chr(696254464>>23) . "" . chr(0105) .
"\114" . chr(587202560>>23) . "";

$ac6ec67fa58204face781779ee7bc4ffd5 = (string)get_param($ac8d94a7ec0e84be90c0c7c2af51953516);
$aca5222309851556e2a242b39eeb43e3a5 = (string)get_param($ace927919a8737c6fb6d7808c98ba6e218);
$ac89200a2d0f56a6c7c82b94b1b9031277 = (string)get_param($ac951db75c168a912782a967045aea328c);
$ac047df2210ff6d1422a9a96b4386816f1 = (string)get_param($ac3db298d1f41f469e723e5b4dea7be0fa);
$ac3bf178af361bcec325192e43d867cf7e = (string)get_param($acae389162fcc986ff6fa3f1a4f0f899dc);
$ac2911a299fab8f1f2ac23f48fff3455be = (string)get_param($acf392f3e6f46770e64c3dccff6e7228e6);
$ac40b980693aba0e9004df688e2d617591    = $_SERVER[$ac51e163b3320f46e0ebd7b37fbab73c73];
$ac0d12abbe3060a632163708a4e38f8b83    = dirname(__FILE__);

$ac270d23d08061ec8bbaa3211e34162346 = ( ( isset($_SERVER[$aca5471013ca2b0bb0ee1e4be51be25ea8]) and strtolower($_SERVER[$aca5471013ca2b0bb0ee1e4be51be25ea8]) == 'on' ) ? $ac57d9396014d4007356173a7114286712 : $ac7fdaeb6370fa9349be5f1a5e9886c797 );
$ac63e0c7babae7455c1a9fb9c647e47a59    = $ac270d23d08061ec8bbaa3211e34162346 . '://' . $_SERVER[$ac51e163b3320f46e0ebd7b37fbab73c73] . str_replace('\\', '/', $_SERVER[$ac6ee9af3bf3df9b6d16b2cc027e6ee2a0]);
$ac1fe20c201b27c9e70af4edd742beba46  = base64_encode($ac63e0c7babae7455c1a9fb9c647e47a59);

$ac1d9b9d3d61196964faecbeeecf8529a7 = isset($_POST['acpauthlibconfig']);
$acb7e4ffda6a7645db6a6ccdf315a52bc8 = dirname(__FILE__) . '/authentication_db.inc.php';


$ac88d3893154a506ece027bf6f16e4e397 = isset($_POST['db']);

$acc349bda877b9500b5abe3c6ef812333c = isset($_POST['siteInfo']);



$aca27c22262c42b75aed17dd8679c666a5 = array();

if ( !file_exists('engine.inc.php') ) {
    if ( !@rename('default.engine.inc.php', 'engine.inc.php') ) {
        $aca27c22262c42b75aed17dd8679c666a5[] = "<span style=\"font-weight: bold; color: Red;\">Unable to change the file default.engine.inc.php to engine.inc.php.</span><BR>Open your /tt/admin folder on your server and change default.engine.inc.php to engine.inc.php and ensure engine.inc.php has full read/write permissions (chmod 777 on linux)";
    }
}

if ( !is_writable('engine.inc.php') ) {
    $aca27c22262c42b75aed17dd8679c666a5[] = "<span style=\"font-weight: bold; color: Red;\">Unable to write to engine.inc.php</span><br>You must first change the permissions of engine.inc.php to 777 (full read/write)<br>Change permissions and refresh this page.";
}

if( !file_exists($acb7e4ffda6a7645db6a6ccdf315a52bc8) ) {
    if ( !@rename('default.authentication_db.inc.php', 'authentication_db.inc.php') ) {
        $aca27c22262c42b75aed17dd8679c666a5[] = "<span style=\"font-weight: bold; color: Red;\">Unable to change the file default.authentication_db.inc.php to authentication_db.inc.php.</span><BR>Open your /tt/admin folder on your server and change default.authentication_db.inc.php to authentication_db.inc.php and ensure authentication_db.inc.php has full read/write permissions (chmod 777 on linux)";
    }
}

if ( !is_writable($acb7e4ffda6a7645db6a6ccdf315a52bc8) ) {
    $aca27c22262c42b75aed17dd8679c666a5[] = "<span style=\"font-weight: bold; color: Red;\">Unable to write to authentication_db.inc.php</span><br>You must first change the permissions of authentication_db.inc.php to 777 (full read/write)<br>Change permissions and refresh this page.";
}

if ( !is_writable(dirname(dirname(__FILE__)) . '/cache') ) {
    $aca27c22262c42b75aed17dd8679c666a5[] = '<span style="font-weight: bold; color: Red;">Your cache directory does not exist or does not have full write permissions.</span><br>Change the permissions of ' . dirname(dirname(__FILE__)) . '/cache so that it has full write access (CHMOD 777 on linux)<br>Change permissions and refresh this page.';
}

if ( !is_writable(dirname(dirname(__FILE__)) . '/cache/public') ) {
    $aca27c22262c42b75aed17dd8679c666a5[] = '<span style="font-weight: bold; color: Red;">Your public cache directory does not exist or does not have full write permissions.</span><br>Change the permissions of ' . dirname(dirname(__FILE__)) . '/cache/public so that it has full write access (CHMOD 777 on linux)<br>Change permissions and refresh this page.';
}

if ( !is_writable(dirname(dirname(__FILE__)) . '/cache/admin') ) {
    $aca27c22262c42b75aed17dd8679c666a5[] = '<span style="font-weight: bold; color: Red;">Your admin cache directory does not exist or does not have full write permissions.</span><br>Change the permissions of ' . dirname(dirname(__FILE__)) . '/cache/admin so that it has full write access (CHMOD 777 on linux)<br>Change permissions and refresh this page.';
}

if ( !is_writable(dirname(dirname(__FILE__)) . '/cache/avatars') ) {
    $aca27c22262c42b75aed17dd8679c666a5[] = '<span style="font-weight: bold; color: Red;">Your avatars directory does not exist or does not have full write permissions.</span><br>Change the permissions of ' . dirname(dirname(__FILE__)) . '/cache/avatars so that it has full write access (CHMOD 777 on linux)<br>Change permissions and refresh this page.';
}


if ( !function_exists('mysql_connect') ) {
    $aca27c22262c42b75aed17dd8679c666a5[] = "<span style=\"font-weight: bold; color: Red;\">The mysql_connect function is not available.</span> This is likely due to MySql not being installed or not being setup properly.  Please contact your web host or server administrator to have MySql installed properly.";
}


if ( !( function_exists('version_compare') and version_compare(PHP_VERSION, '4.3.0') > -1 ) ) {
    $aca27c22262c42b75aed17dd8679c666a5[] = "<span style=\"font-weight: bold; color: Red;\">The PHP installed on your server is too old.</span> Please contact your web host or server administrator to upgrade PHP installation on your server.";
}


$ac224591c37dd0622c7a92b60e309b45bb = ( get_param('step') == 'clear' );
$ac60a92de6bbe7cafb6096bfd386e15dc5 = false;
if ( $ac88d3893154a506ece027bf6f16e4e397 ) {
    $ac4d5e97d3c7ead114b08e06d44d28c75c = u_gpc_unescape(get_param('db'));
    $acfa113c35001fc3f4783f6bf46112bdf6 = u_gpc_unescape(get_param('host'));
    $ac1b1765731a2288764b75469cf375dacc = u_gpc_unescape(get_param('user'));
    $ac1b90661ffa9d49290cc8f4ec4ae9b6d6 = u_gpc_unescape(get_param('pass'));
    
    $ac1469d298da0aa358ff69f7895ca29f59 = @mysql_connect($acfa113c35001fc3f4783f6bf46112bdf6, $ac1b1765731a2288764b75469cf375dacc, $ac1b90661ffa9d49290cc8f4ec4ae9b6d6)
        or die("<!-- $ac1b1765731a2288764b75469cf375dacc:$ac1b90661ffa9d49290cc8f4ec4ae9b6d6@$acfa113c35001fc3f4783f6bf46112bdf6 --><b>Failed to connect to server.</b><br>Information entered is incorrect.<BR>Please check your username, password, and hostname that you entered.<P><a href=\"javascript:window.history.go(-1);\">Back</a>");
    if ( isset($_POST['cdb']) ) {
        $ac0edd82594aed2ebd42cda2f717ad902b = "CREATE DATABASE `$ac4d5e97d3c7ead114b08e06d44d28c75c`";
        $ac5791f83e18778e8f26bfb1553598cae4 = mysql_query($ac0edd82594aed2ebd42cda2f717ad902b, $ac1469d298da0aa358ff69f7895ca29f59);
        $acba25cb3d25abddc3f05f27ee4ca812d8 = ( $ac5791f83e18778e8f26bfb1553598cae4 ? '' : mysql_error($ac1469d298da0aa358ff69f7895ca29f59));
    }
    $ac4cb90572a433f39ca276250833fa4537 = @mysql_select_db($ac4d5e97d3c7ead114b08e06d44d28c75c, $ac1469d298da0aa358ff69f7895ca29f59)
        or die("<b>Database Does not exist.</b><BR>Please check/verify your database name and re-enter it.<P><a href=\"javascript:window.history.go(-1);\">Back</a>");
    $ac24a50896b936b2b51f0abe264503a747 = mysql_query("SHOW TABLES LIKE 'tt_%'", $ac1469d298da0aa358ff69f7895ca29f59);
    $ac7688bcbaa9ab9d52f5668737e5240dd0 = ( !$ac24a50896b936b2b51f0abe264503a747 ? 0 : mysql_num_rows($ac24a50896b936b2b51f0abe264503a747) );
    if ( $ac7688bcbaa9ab9d52f5668737e5240dd0 > 0 ) {
        $ac60a92de6bbe7cafb6096bfd386e15dc5 = true;
        if ( $ac224591c37dd0622c7a92b60e309b45bb ) {
            $ac000e73bc01d78e42b9c5c663fea29805 = array(
                'tt_address_entry',
                'tt_address_group',
                'tt_admin',
                'tt_admin_b_log',
                'tt_admin_p',
                'tt_announce',
                'tt_auths',
                'tt_backend',
                'tt_blocked',
                'tt_calendar',
                'tt_can_response',
                'tt_category',
                'tt_cport',
                'tt_cport_d',
                'tt_cpriority',
                'tt_cstatus',
                'tt_desk',
                'tt_em_actions',
                'tt_em_filter',
                'tt_em_filter_mails',
                'tt_faqadmin',
                'tt_faqarticles',
                'tt_faqattachdata',
                'tt_faqattachinfo',
                'tt_faqbackend',
                'tt_faqcategory',
                'tt_faqcomment',
                'tt_faqfields',
                'tt_faqfieldsdata',
                'tt_faqindexes',
                'tt_faqrate',
                'tt_faqsearch',
                'tt_faqsubscribers',
                'tt_faqsync',
                'tt_faqusers',
                'tt_faqterms',
                'tt_fields',
                'tt_fieldsc',
                'tt_filelib',
                'tt_filelib_fdata',
                'tt_filelib_finfo',
                'tt_files_data',
                'tt_files_info',
                'tt_layout_op',
                'tt_pm',
                'tt_pop',
                'tt_pop_breaks',
                'tt_pop_log',
                'tt_res_closed',
                'tt_response_time',
                'tt_stat',
                'tt_subscribe',
                'tt_ticket',
                'tt_ticket_dat',
                'tt_ticket_spam',
                'tt_ticket_spam_d',
                'tt_todo',
                'tt_trapperr',
                'tt_trapperrlogs',
                'tt_tshoot',
                'tt_user_email',
                'tt_userfields',
                'tt_userfieldsc',
                'tt_users'
            );
            foreach ( $ac000e73bc01d78e42b9c5c663fea29805 as $aca6c165e00ed739ba38f403c5c96c59c9 ) mysql_query("DROP TABLE `$aca6c165e00ed739ba38f403c5c96c59c9`", $ac1469d298da0aa358ff69f7895ca29f59);
            $ac60a92de6bbe7cafb6096bfd386e15dc5 = false;
        }
    } else {
        writeEngine($acfa113c35001fc3f4783f6bf46112bdf6, $ac1b1765731a2288764b75469cf375dacc, $ac1b90661ffa9d49290cc8f4ec4ae9b6d6, $ac4d5e97d3c7ead114b08e06d44d28c75c);
    }
}



?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>SupportTrio Setup</title>
<style>
body, td, p {
    font-size: 80%;
    font-family: Arial, Helvetica, sans-serif;
    color: #000000;
}
</style>
</head>

<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<div align="center">
  <p>
  <table width="750" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td>&nbsp;</td>
      <td height="40"><font color="#003366" size="4" face="Arial, Helvetica, sans-serif"><strong>SupportTrio
        <font color="#6699CC">(Installer)</font></strong></font></td>
    </tr>
    <tr>
      <td colspan="2"><hr width="100%" size="1" noshade></td>
    </tr>
<?php

if ( count($aca27c22262c42b75aed17dd8679c666a5) > 0 ) {
?>
    <tr valign="top">
      <td width="227">
        <table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
          <tr>
            <td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
                <tr>
                  <td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">1</font></div></td>
                  <td bgcolor="#F4F4F4"><font color="#666666">Serial &amp; License</font></td>
                </tr>
              </table></td>
          </tr>
        </table>
        <table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
          <tr>
            <td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
                <tr>
                  <td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">2</font></div></td>
                  <td bgcolor="#F4F4F4"><font color="#666666">License Verification </font></td>
                </tr>
              </table></td>
          </tr>
        </table>
        <table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
          <tr>
            <td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
                <tr>
                  <td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">3</font></div></td>
                  <td bgcolor="#F4F4F4"><font color="#666666">Database Information</font></td>
                </tr>
              </table></td>
          </tr>
        </table>
        <table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
          <tr>
            <td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
                <tr>
                  <td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">4</font></div></td>
                  <td bgcolor="#F4F4F4"><font color="#666666">Authentication Settings</font></td>
                </tr>
              </table></td>
          </tr>
        </table>
        <table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
          <tr>
            <td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
                <tr>
                  <td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">5</font></div></td>
                  <td bgcolor="#F4F4F4"><font color="#666666">Software Settings</font></td>
                </tr>
              </table></td>
          </tr>
        </table>
        <table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
          <tr>
            <td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
                <tr>
                  <td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">6</font></div></td>
                  <td bgcolor="#F4F4F4"><font color="#666666">Finished</font></td>
                </tr>
              </table></td>
          </tr>
        </table>
      </td>
      <td width="523">
<?php
foreach ( $aca27c22262c42b75aed17dd8679c666a5 as $ac26883ec7fc37a924e1e6425103055b28 ) {
    echo "<p style='font-size: 80%;'>\n" . $ac26883ec7fc37a924e1e6425103055b28 . "</p>\n";
}
?>
      </td>
    </tr>
<?php
} elseif ( $ac6ec67fa58204face781779ee7bc4ffd5 == '' ) { ?>
    <tr valign="top">
      <td width="227"><table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#6699CC">
          <tr>
            <td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
                <tr>
                  <td width="15"><div align="center"><strong>1</strong></div></td>
                  <td width="166">Serial &amp; License</td>
                </tr>
              </table></td>
          </tr>
        </table>
        <table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
          <tr>
            <td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
                <tr>
                  <td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">2</font></div></td>
                  <td bgcolor="#F4F4F4"><font color="#666666">License Verification </font></td>
                </tr>
              </table></td>
          </tr>
        </table>
        <table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
          <tr>
            <td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
                <tr>
                  <td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">3</font></div></td>
                  <td bgcolor="#F4F4F4"><font color="#666666">Database Information </font></td>
                </tr>
              </table></td>
          </tr>
        </table>
        <table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
          <tr>
            <td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
                <tr>
                  <td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">4</font></div></td>
                  <td bgcolor="#F4F4F4"><font color="#666666">Authentication Settings</font></td>
                </tr>
              </table></td>
          </tr>
        </table>
        <table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
          <tr>
            <td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
                <tr>
                  <td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">5</font></div></td>
                  <td bgcolor="#F4F4F4"><font color="#666666">Software Settings</font></td>
                </tr>
              </table></td>
          </tr>
        </table>
        <table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
          <tr>
            <td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
                <tr>
                  <td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">6</font></div></td>
                  <td bgcolor="#F4F4F4"><font color="#666666">Finished</font></td>
                </tr>
              </table></td>
          </tr>
        </table>
      </td>
      <td width="523"> <form action="http://server1./reg/reglv.php" method="post" name="reg" id="reg">
          <table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
            <tr>
              <td><strong>Serial:
                </strong><br>
                <input name="dl_s" type="text" id="dl_s" size="60">
              </td>
            </tr>
            <tr>
              <td bgcolor="#F4F4F4">&gt;
                <a href="http://www./support/lookup.php" target="_blank"><font color="#666666">Click
                here if you do not remember your serial.</font></a></td>
            </tr>
          </table>
          <br>
          <table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
            <tr>
              <td><strong>License Terms</strong></td>
            </tr>
            <tr>
              <td bgcolor="#F4F4F4">
                <textarea name="textfield" cols="61" rows="10" wrap="VIRTUAL" readonly>ActiveCampaign Software License Agreement

BY ORDERING ACTIVECAMPAIGN SOFTWARE AND BY USING ACTIVECAMPAIGN SOFTWARE YOU ACCEPT, AGREE TO AND AGREE TO BE BOUND BY THIS LICENSE AGREEMENT.

1 - SOFTWARE INFORMATION
ActiveCampaign is the sole owner of all logos, help docs, code, and other related materials. This is a non-transferable ownership. Obtaining a license does not provide legal ownership over any of the above.

2 - COPIES OF SOFTWARE
ActiveCampaign allows you to you have one (1) unused copy of your software. The copy must be a backup copy and must not be used in any way. Your backup copy must be kept in your possession. Installed copies of the software may not exceed the number of licenses purchased.

3 - LICENSING DETAILS
For each license purchased you may use that software in one (1) location / domain. The number of active copies of software must match or be below the number of licenses that you have purchased. We reserve the right to void your technical support & upgrades and/or pursue legal action if this is violated.

4 - LIMITATIONS
With the purchase of a license you may not do the following:
-> Exceed the number of licenses purchased by using multiple copies.
-> Copy the software, help docs, code, or graphics.
-> Remove comments that exist within the code. Note: These comments are not visible to users. Only in the source code.
-> Make attempts to discover the source and or algorithms involved
-> Disclose or release any code, documentation, proprietary know-how, or content.
-> Reverse engineer or use any code / algorithms involved in any other way than direct use with the software.
-> Resell the software directly without an initial agreement with ActiveCampaign
-> Sub-License or rent any area of the software, script, or any part of the software package.
-> Transfer ownership of the software.
-> Claim ownership and/or creation of the software.

5 - WHAT WE MAY DO
ActiveCampaign reserves the right to monitor your license usage. This includes the monitoring of your license and we will never collect any information beyond license information such as serial #'s and locations of usage. ActiveCampaign also reserves the right to void your technical support/upgrades and/or pursue legal action if any part of this license agreement has been violated.

6 - LICENSE TERMS
This license agreement is automatically activated upon payment and upon receiving the ActiveCampaign software. You may terminate this agreement by erasing all copies of the software. This includes all source files, documentation, and database structures.

7 - LIABILITY
In no event shall ActiveCampaign be liable for any damages and/or losses including security issues, data, bugs, losses, or any other damages.

If you have a situation in which you feel you may be conflicting with the license agreement, please contact licenses@ with the software title and any applicable information. Each situation is met on a case-by-case basis.</textarea>
                </td>
            </tr>
          </table>
          <p>
            <input type="submit" name="Submit" value="Next &gt;">
            <input name="dl_d" type="hidden" id="dl_d" value="<?php echo $ac0d12abbe3060a632163708a4e38f8b83; ?>">
            <input name="dl_h" type="hidden" id="dl_h" value="<?php echo $ac40b980693aba0e9004df688e2d617591; ?>">
            <input name="dl_x" type="hidden" id="dl_x" value="<?php echo $ac47dce07480d6b2ac2710552e49bcafd2; ?>">
            <input name="rd7" type="hidden" id="rd7" value="<?php echo $ac1fe20c201b27c9e70af4edd742beba46; ?>">
            <input name="rd8" type="hidden" id="rd8" value="<?PHP $acd54d5568d2d3c7da6332917d5dcc1e64 = md5($thisVersion); echo substr($acd54d5568d2d3c7da6332917d5dcc1e64, 13) . substr($acd54d5568d2d3c7da6332917d5dcc1e64, 0, 13); ?>">
            <input name="rd9" type="hidden" id="rd9" value="<?PHP echo base64_encode($thisVersion); ?>">
            <input name="t" type="hidden" id="t" value="strio">
            <br>
            </p>
        </form>
        <table width="100%" border="0" cellpadding="1" cellspacing="0" bgcolor="#6699CC">
          <tr>
            <td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
                <tr bgcolor="#DFEEFF">
                  <td width="30"><div align="center"><font color="#6699CC" size="4"><strong>!</strong></font></div></td>
                  <td bgcolor="#F4F4F4"><div align="justify"><font color="#666666" size="1">Internet
                      access is required to continue with this installation. The
                      installer will connect to a central server for license verification.</font></div></td>
                </tr>
              </table></td>
          </tr>
        </table></td>
    </tr>

    <tr valign="top">
      <td width="227"><table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
          <tr>
            <td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
                <tr>
                  <td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">1</font></div></td>
                  <td bgcolor="#F4F4F4"><font color="#666666">Serial &amp; License</font></td>
                </tr>
              </table></td>
          </tr>
        </table>
        <table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
          <tr>
            <td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
                <tr>
                  <td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">2</font></div></td>
                  <td bgcolor="#F4F4F4"><font color="#666666">License Verification </font></td>
                </tr>
              </table></td>
          </tr>
        </table>
        <table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#6699CC">
          <tr>
            <td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
                <tr>
                  <td width="15"><div align="center"><strong>3</strong></div></td>
                  <td width="166">Database Information</td>
                </tr>
              </table></td>
          </tr>
        </table>
        <table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
          <tr>
            <td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
                <tr>
                  <td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">4</font></div></td>
                  <td bgcolor="#F4F4F4"><font color="#666666">Authentication Settings</font></td>
                </tr>
              </table></td>
          </tr>
        </table>
        <table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
          <tr>
            <td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
                <tr>
                  <td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">5</font></div></td>
                  <td bgcolor="#F4F4F4"><font color="#666666">Software Settings</font></td>
                </tr>
              </table></td>
          </tr>
        </table>
        <table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
          <tr>
            <td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
                <tr>
                  <td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">6</font></div></td>
                  <td bgcolor="#F4F4F4"><font color="#666666">Finished</font></td>
                </tr>
              </table></td>
          </tr>
        </table>
      </td>
      <td width="523">
        <form action="install.php" method="post" name="reg" id="reg">
          <table width="100%" border="0" cellpadding="1" cellspacing="0" bgcolor="#6699CC">
            <tr>
              <td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
                  <tr bgcolor="#DFEEFF">
                    <td width="30"><div align="center"><font color="#6699CC" size="4"><strong>!</strong></font></div></td>
                    <td bgcolor="#F4F4F4"><div align="justify"><font color="#666666" size="1">The
                        MYSQL information requested below may typically be requested
                        from your web host or system administrator.</font></div></td>
                  </tr>
                </table></td>
            </tr>
          </table>
          <br>
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr valign="top">
              <td width="50%" height="90"> <table width="95%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
                  <tr>
                    <td><strong>Database Name</strong></td>
                  </tr>
                  <tr>
                    <td bgcolor="#F4F4F4">
                      <input name="db" type="text" id="db" size="15">
                      <input name="cdb" type="checkbox" id="cdb" value="1">
                      *Create</td>
                  </tr>
                </table></td>
              <td width="50%" height="90"><div align="right">
                  <table width="95%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
                    <tr>
                      <td><b>Database Host**</b></td>
                    </tr>
                    <tr>
                      <td bgcolor="#F4F4F4"><input name="host" type="text" id="host" value="localhost"></td>
                    </tr>
                  </table>
                </div></td>
            </tr>
            <tr valign="top">
              <td width="50%"><table width="95%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
                  <tr>
                    <td><b>Database Username</b></td>
                  </tr>
                  <tr>
                    <td bgcolor="#F4F4F4"><input name="user" type="text" id="user" size="15"></td>
                  </tr>
                </table></td>
              <td width="50%"><div align="right">
                  <table width="95%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
                    <tr>
                      <td><b>Database Password</b></td>
                    </tr>
                    <tr>
                      <td bgcolor="#F4F4F4"><input name="pass" type="password" id="pass" size="15"></td>
                    </tr>
                  </table>
                </div></td>
            </tr>
          </table>
          <p>
            <input type="submit" name="Submit" value="Next &gt;">
            <input name="dr3292" type="hidden" id="dr3292" value="<?php echo $ac6ec67fa58204face781779ee7bc4ffd5; ?>">
            <input name="dl_s" type="hidden" id="dl_s" value="<?php echo $ac3bf178af361bcec325192e43d867cf7e; ?>">
            <input name="dl_dd" type="hidden" id="dl_dd" value="<?php echo $ac2911a299fab8f1f2ac23f48fff3455be; ?>">
            <br>
            </font></p>
          <p><font color="#666666" size="1">*If
            checked the installer will attempt to create the database for you.
            Should not be checked if the database already exists.<br>
            <br>
            ** This can usually be set to &quot;localhost&quot; by default.</font></p>
        </form></td>
    </tr>
<?php
} elseif ( $ac6ec67fa58204face781779ee7bc4ffd5 != '' and $ac88d3893154a506ece027bf6f16e4e397 and $ac60a92de6bbe7cafb6096bfd386e15dc5 and !$acc349bda877b9500b5abe3c6ef812333c ) {
?>
    <tr valign="top">
      <td width="227"><table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
          <tr>
            <td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
                <tr>
                  <td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">1</font></div></td>
                  <td bgcolor="#F4F4F4"><font color="#666666">Serial &amp; License</font></td>
                </tr>
              </table></td>
          </tr>
        </table>
        <table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
          <tr>
            <td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
                <tr>
                  <td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">2</font></div></td>
                  <td bgcolor="#F4F4F4"><font color="#666666">License Verification </font></td>
                </tr>
              </table></td>
          </tr>
        </table>
        <table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#6699CC">
          <tr>
            <td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
                <tr>
                  <td width="15"><div align="center"><strong>3</strong></div></td>
                  <td width="166">Database Information</td>
                </tr>
              </table></td>
          </tr>
        </table>
        <table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
          <tr>
            <td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
                <tr>
                  <td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">4</font></div></td>
                  <td bgcolor="#F4F4F4"><font color="#666666">Authentication Settings</font></td>
                </tr>
              </table></td>
          </tr>
        </table>
        <table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
          <tr>
            <td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
                <tr>
                  <td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">5</font></div></td>
                  <td bgcolor="#F4F4F4"><font color="#666666">Software Settings</font></td>
                </tr>
              </table></td>
          </tr>
        </table>
        <table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
          <tr>
            <td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
                <tr>
                  <td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">6</font></div></td>
                  <td bgcolor="#F4F4F4"><font color="#666666">Finished</font></td>
                </tr>
              </table></td>
          </tr>
        </table>
      </td>
      <td width="523">
        <form action="install.php" method="post" name="reg" id="reg">
          <table width="100%" border="0" cellpadding="1" cellspacing="0" bgcolor="#6699CC">
            <tr>
              <td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
                  <tr bgcolor="#DFEEFF">
                    <td width="30"><div align="center"><font color="#6699CC" size="4"><strong>!</strong></font></div></td>
                    <td bgcolor="#F4F4F4"><div align="justify"><font color="#666666" size="1">The
                        MYSQL information requested below may typically be requested
                        from your web host or system administrator.</font></div></td>
                  </tr>
                </table></td>
            </tr>
          </table>
          <br>
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr valign="top">
              <td width="50%" height="90"> <table width="95%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
                  <tr>
                    <td><strong>Database Name</strong></td>
                  </tr>
                  <tr>
                    <td bgcolor="#F4F4F4">
                      <input name="db" type="text" id="db" value="<?php echo $ac4d5e97d3c7ead114b08e06d44d28c75c; ?>" size="15">
                  </tr>
                </table></td>
              <td width="50%" height="90"><div align="right">
                  <table width="95%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
                    <tr>
                      <td><b>Database Host</b></td>
                    </tr>
                    <tr>
                      <td bgcolor="#F4F4F4"><input name="host" type="text" id="host" value="<?php echo $acfa113c35001fc3f4783f6bf46112bdf6; ?>"></td>
                    </tr>
                  </table>
                </div></td>
            </tr>
            <tr valign="top">
              <td width="50%"><table width="95%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
                  <tr>
                    <td><b>Database Username</b></td>
                  </tr>
                  <tr>
                    <td bgcolor="#F4F4F4"><input name="user" type="text" id="user" value="<?php echo $ac1b1765731a2288764b75469cf375dacc; ?>" size="15"></td>
                  </tr>
                </table></td>
              <td width="50%"><div align="right">
                  <table width="95%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
                    <tr>
                      <td><b>Database Password</b></td>
                    </tr>
                    <tr>
                      <td bgcolor="#F4F4F4"><input name="pass" type="password" id="pass" value="<?php echo $ac1b90661ffa9d49290cc8f4ec4ae9b6d6; ?>" size="15"></td>
                    </tr>
                  </table>
                </div></td>
            </tr>
          </table>
          <p style="border: 1px dashed #800000; padding: 5px; background-color: #DFDFDF; font-weight: bold;"><font color="#FF0000" size="3">
            Installer has found a version of SupportTrio already installed.</font><br>
            <font color="#800000" size="2">Your options are:<br>
            1) Please enter different database information and click NEXT.<br>
            2) Move/Backup you previous database data and click NEXT<br>
            3) Install can remove your old installation for you.<br>
            Do you want installer to remove found installation?
            <input name="step" type="checkbox" id="step" value="clear"></font>
          </p>
          <p>
            <input type="submit" name="Submit" value="Next &gt;">
            <input name="dr3292" type="hidden" id="dr3292" value="<?php echo $ac6ec67fa58204face781779ee7bc4ffd5; ?>">
            <input name="dl_s" type="hidden" id="dl_s" value="<?php echo $ac3bf178af361bcec325192e43d867cf7e; ?>">
            <input name="dl_dd" type="hidden" id="dl_dd" value="<?php echo $ac2911a299fab8f1f2ac23f48fff3455be; ?>">
            <br>
          </p>
        </form></td>
    </tr>
<?php
} elseif ( $ac6ec67fa58204face781779ee7bc4ffd5 != '' and $ac88d3893154a506ece027bf6f16e4e397 and !$ac1d9b9d3d61196964faecbeeecf8529a7 and !$acc349bda877b9500b5abe3c6ef812333c ) {
?>
    <tr valign="top">
      <td width="227"><table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
          <tr>
            <td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
                <tr>
                  <td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">1</font></div></td>
                  <td bgcolor="#F4F4F4"><font color="#666666">Serial &amp; License</font></td>
                </tr>
              </table></td>
          </tr>
        </table>
        <table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
          <tr>
            <td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
                <tr>
                  <td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">2</font></div></td>
                  <td bgcolor="#F4F4F4"><font color="#666666">License Verification</font></td>
                </tr>
              </table></td>
          </tr>
        </table>
        <table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
          <tr>
            <td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
                <tr>
                  <td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">3</font></div></td>
                  <td bgcolor="#F4F4F4"><font color="#666666">Database Information</font></td>
                </tr>
              </table></td>
          </tr>
        </table>
        <table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#6699CC">
          <tr>
            <td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
                <tr>
                  <td width="15"><div align="center"><strong>4</strong></div></td>
                  <td width="166">Authentication Settings</td>
                </tr>
              </table></td>
          </tr>
        </table>
        <table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
          <tr>
            <td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
                <tr>
                  <td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">5</font></div></td>
                  <td bgcolor="#F4F4F4"><font color="#666666">Software Settings</font></td>
                </tr>
              </table></td>
          </tr>
        </table>
        <table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
          <tr>
            <td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
                <tr>
                  <td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">6</font></div></td>
                  <td bgcolor="#F4F4F4"><font color="#666666">Finished</font></td>
                </tr>
              </table></td>
          </tr>
        </table>
      </td>
      <td width="523">
                <p style="font-weight: bold;font-size: 100%;">Centralized Authentication</p>
                <br/>
                <form method="POST" style="font-size: 12px;">
            <input name="dr3292" type="hidden" id="dr3292" value="<?php echo $ac6ec67fa58204face781779ee7bc4ffd5; ?>">
            <input name="dl_s" type="hidden" id="dl_s" value="<?php echo $ac3bf178af361bcec325192e43d867cf7e; ?>">
            <input name="dl_dd" type="hidden" id="dl_dd" value="<?php echo $ac2911a299fab8f1f2ac23f48fff3455be; ?>">
            <input name="act" type="hidden" id="act" value="<?php print $aca5222309851556e2a242b39eeb43e3a5; ?>">
                    <input type="hidden" name="acpauthlibconfig" value="new"/>
                    SupportTrio uses ActiveCampaign's Centralized Authentication to allow it to share login information with other
                    ActiveCampaign products.  This allows SupportTrio to use existing user accounts from other ActiveCampaign products that support
                    Centralized Authentication.  This step is completely optional, and SupportTrio can also be
                    configured to run completely standalone.
                    <br/><br/>
                    If you have another product that has been installed with Centralized Authentication turned on, please specify it's
                    database information below.  Otherwise, choose the "local" option.  Keep in mind that if you choose the "local"
                    option and install other ActiveCampaign Software in the future that has support for Centralized Authentication, you can
                    use this SupportTrio database as the Centralized Authentication database for those products.
                    <br/>
                    <br/>
                    <fieldset>
                        <legend>Existing</legend>
                        <input type="radio" name="authtype" value="remote"/> <strong>Use Existing Centralized Authentication Database</strong>
                        <br/>
                        <i>Centralized Authentication Database Information</i>
                        <br/>
                        <table border="0" cellspacing="5px">
                            <tr>
                                <td>Server</td>
                                <td><input type="text" name="ca_db_host"/></td>
                            </tr>
                            <tr>
                                <td>Database Name</td>
                                <td><input type="text" name="ca_db_database"/></td>
                            </tr>
                            <tr>
                                <td>Username</td>
                                <td><input type="text" name="ca_db_username"/></td>
                            </tr>
                            <tr>
                                <td>Password</td>
                                <td><input type="text" name="ca_db_password"/></td>
                            </tr>
                        </table>
                    </fieldset>
                    <br/><br/>
                    <fieldset>
                        <legend>Local</legend>
                        <input type="radio" name="authtype" value="local" checked/> <strong>Use Local Database For Authentication</strong>
                        <br/>
                        You should choose this option if you are upgrading an existing installation of SupportTrio that did not
                        previously use Centralized Authentication (all versions prior to 2.50).  This will create a new set
                        of Centralized Authentication tables in your SupportTrio database, and import your existing users
                        into it.
                        <br/><br/>
                        You should also choose this option if you are setting up a new installation of SupportTrio and have no other ActiveCampaign Centralized Authentication
                        Products, or you want this installation of SupportTrio to be standalone.
                    </fieldset>
                    <input type="submit" name="Submit" value="Next &gt;"/>
                </form>
            </td>
    </tr>
<?php
} elseif ( $ac1d9b9d3d61196964faecbeeecf8529a7 and !$acc349bda877b9500b5abe3c6ef812333c ) {
    
    $ace2772818e45137e3a20c1daa4b9b85d1 = u_gpc_unescape((string)get_param('acpauthlibconfig'));
    $ac9b37ea95211804e332ae7352ba288b8b = u_gpc_unescape((string)get_param('authtype'));
    $ac3074d79d2525f79e4e23c9164cbfe333 = u_gpc_unescape((string)get_param('ca_db_host'));
    $ac316596dd9f92beee3bc737a247af7d36 = u_gpc_unescape((string)get_param('ca_db_database'));
    $acf81cb8ee5269324c6ac03cae0fb77147 = u_gpc_unescape((string)get_param('ca_db_username'));
    $ac3d9a4bb03bbebbeee1eaf9fa461e3bb7 = u_gpc_unescape((string)get_param('ca_db_password'));

    if ( $ace2772818e45137e3a20c1daa4b9b85d1 == 'new' ) {
        
        if ( $ac9b37ea95211804e332ae7352ba288b8b == 'local' ) {
            
            $acbde5ce49c3406df41f779854a208aa19 = file_get_contents(dirname(__FILE__) . '/engine.inc.php');
            
            $acbde5ce49c3406df41f779854a208aa19 = preg_split('/\r?\n/', $acbde5ce49c3406df41f779854a208aa19);
            $acfa113c35001fc3f4783f6bf46112bdf6 = '';
            $aca5e3083a6d7b09d650506bd1de56fa85 = '';
            $acf7bcb0757f4ca24c9ec5107491128bee = '';
            $ac98316b2c918b294e914987e56dca23ad = '';
            foreach($acbde5ce49c3406df41f779854a208aa19 as $ac1dac93c36c8229cf6f61a78f93e1414c){
                if( preg_match("/mysql_connect\s?\('([^']*)','([^']*)','([^']*)'/", $ac1dac93c36c8229cf6f61a78f93e1414c, $acaea508c65e9d16d27c26a29ce918ddec) ) {
                    $acfa113c35001fc3f4783f6bf46112bdf6 = $acaea508c65e9d16d27c26a29ce918ddec[1];
                    $aca5e3083a6d7b09d650506bd1de56fa85 = $acaea508c65e9d16d27c26a29ce918ddec[2];
                    $acf7bcb0757f4ca24c9ec5107491128bee = $acaea508c65e9d16d27c26a29ce918ddec[3];
                } elseif( preg_match("/mysql_select_db\s?\('([^']*)'/", $ac1dac93c36c8229cf6f61a78f93e1414c, $acaea508c65e9d16d27c26a29ce918ddec) ) {
                    $ac98316b2c918b294e914987e56dca23ad = $acaea508c65e9d16d27c26a29ce918ddec[1];
                }
            }

            $ac3074d79d2525f79e4e23c9164cbfe333 = $acfa113c35001fc3f4783f6bf46112bdf6;
            $ac316596dd9f92beee3bc737a247af7d36 = $ac98316b2c918b294e914987e56dca23ad;
            $acf81cb8ee5269324c6ac03cae0fb77147 = $aca5e3083a6d7b09d650506bd1de56fa85;
            $ac3d9a4bb03bbebbeee1eaf9fa461e3bb7 = $acf7bcb0757f4ca24c9ec5107491128bee;
        }
        
        $ca_connected = @mysql_connect($ac3074d79d2525f79e4e23c9164cbfe333, $acf81cb8ee5269324c6ac03cae0fb77147, $ac3d9a4bb03bbebbeee1eaf9fa461e3bb7, true)
            or die("<!-- $ac1b1765731a2288764b75469cf375dacc:$ac1b90661ffa9d49290cc8f4ec4ae9b6d6@$acfa113c35001fc3f4783f6bf46112bdf6 --><b>Failed to connect to server.</b><br>Information entered is incorrect.<BR>Please check your username, password, and hostname that you entered.<P><a href=\"javascript:window.history.go(-1);\">Back</a>");
        $ac4cb90572a433f39ca276250833fa4537 = @mysql_select_db($ac316596dd9f92beee3bc737a247af7d36, $ca_connected)
            or die("<b>Database Does not exist.</b><BR>Please check/verify your database name and re-enter it.<P><a href=\"javascript:window.history.go(-1);\">Back</a>");
        
        $ac16220df23bcdcb9ea9092e6cc2ee318b = mysql_num_rows(mysql_query("SHOW TABLES LIKE 'acp_globalauth'", $ca_connected));
        if ( $ac16220df23bcdcb9ea9092e6cc2ee318b == 0 ) {
            execQueries('./sql/authlib_tables.sql', $ca_connected);
        }
        
        $ac16220df23bcdcb9ea9092e6cc2ee318b = mysql_num_rows(mysql_query("SHOW TABLES LIKE 'acp_globalauth'", $ca_connected));
        if ( $ac16220df23bcdcb9ea9092e6cc2ee318b == 0 ) {
            die("<b>Database table acp_globalauth does not exist!</b><BR>System tried to add it, but it failed.");
        }
        
        $ac362dc16bf9e765396d4ab2a5ad954c6c = @fopen($acb7e4ffda6a7645db6a6ccdf315a52bc8, "wb");
        if( $ac362dc16bf9e765396d4ab2a5ad954c6c == false ) {
            die("<b>The file /admin/authentication_db.inc.php MUST be writeable by your webserver, please fix this problem and reload this page</b>");
        }
        $ace60d762636f6d8a4a0758ce6fdd4a64b = <<<EOL
<?PHP
    define('ACP_AUTHDB_SERVER', '$ac3074d79d2525f79e4e23c9164cbfe333');
    define('ACP_AUTHDB_USER', '$acf81cb8ee5269324c6ac03cae0fb77147');
    define('ACP_AUTHDB_PASS', '$ac3d9a4bb03bbebbeee1eaf9fa461e3bb7');
    define('ACP_AUTHDB_DB', '$ac316596dd9f92beee3bc737a247af7d36');
?>
EOL;
        fwrite($ac362dc16bf9e765396d4ab2a5ad954c6c, $ace60d762636f6d8a4a0758ce6fdd4a64b);
        fclose($ac362dc16bf9e765396d4ab2a5ad954c6c);
        if ( filesize($acb7e4ffda6a7645db6a6ccdf315a52bc8) != strlen($ace60d762636f6d8a4a0758ce6fdd4a64b) ) {
?>
<b>System was unable to write to a file /admin/authentication_db.inc.php !</b> Please fix this problem by placing the following content to your file:<br />
<form action="" method="post">
<textarea><?php echo $ace60d762636f6d8a4a0758ce6fdd4a64b; ?></textarea><br />
<input name="retry" value="Retry" type="submit" />
<?php foreach ( $_POST as $ace7a72282fa0109ece6875bc9b58ca2a8 => $ac71d4545680a0231039275ae3b7e5647b ) echo "<input type=\"hidden\" name=\"$ace7a72282fa0109ece6875bc9b58ca2a8\" value=\"$ac71d4545680a0231039275ae3b7e5647b\" />\n"; ?>
</form>
<?php
            exit;
        }
        
        $ac38f5264bd7fde8c2eb8306deebf8f5e6 = false;
        $accaf44c52a2225cd9f86eb682c1811114 = mysql_query("SELECT * FROM acp_globalauth WHERE username = 'admin'", $ca_connected);
        if ( mysql_num_rows($accaf44c52a2225cd9f86eb682c1811114) > 0 ) $ac38f5264bd7fde8c2eb8306deebf8f5e6 = mysql_fetch_assoc($accaf44c52a2225cd9f86eb682c1811114);
    }
?>
    <tr valign="top">
      <td width="227"><table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
          <tr>
            <td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
                <tr>
                  <td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">1</font></div></td>
                  <td bgcolor="#F4F4F4"><font color="#666666">Serial &amp; License</font></td>
                </tr>
              </table></td>
          </tr>
        </table>
        <table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
          <tr>
            <td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
                <tr>
                  <td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">2</font></div></td>
                  <td bgcolor="#F4F4F4"><font color="#666666">License Verification</font></td>
                </tr>
              </table></td>
          </tr>
        </table>
        <table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
          <tr>
            <td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
                <tr>
                  <td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">3</font></div></td>
                  <td bgcolor="#F4F4F4"><font color="#666666">Database Information</font></td>
                </tr>
              </table></td>
          </tr>
        </table>
        <table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
          <tr>
            <td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
                <tr>
                  <td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">4</font></div></td>
                  <td bgcolor="#F4F4F4"><font color="#666666">Authentication Settings</font></td>
                </tr>
              </table></td>
          </tr>
        </table>
        <table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#6699CC">
          <tr>
            <td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
                <tr>
                  <td width="15"><div align="center"><strong>5</strong></div></td>
                  <td width="166">Software Settings</td>
                </tr>
              </table></td>
          </tr>
        </table>
        <table width="90%" border="0" cellpadding="1" cellspacing="0" bgcolor="#999999">
          <tr>
            <td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
                <tr>
                  <td width="15" bgcolor="#F4F4F4"><div align="center"><font color="#666666">6</font></div></td>
                  <td bgcolor="#F4F4F4"><font color="#666666">Finished</font></td>
                </tr>
              </table></td>
          </tr>
        </table>
      </td>
      <td width="523">
      <form action="install.php" method="post" name="reg" id="reg">
          <table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
            <tr>
              <td><b>Specify
                the main Url of your SupportTrio software.</b></td>
            </tr>
            <tr>
              <td bgcolor="#F4F4F4">
                <input type="text" name="murl" value="<?php print $ac270d23d08061ec8bbaa3211e34162346; ?>://<?php print $_SERVER['SERVER_NAME']; $aced7ad4890536e3810c503b195e888456 = str_replace("\\", "/", $_SERVER['PHP_SELF']); $aced7ad4890536e3810c503b195e888456 = str_replace("/admin/install.php", '', $aced7ad4890536e3810c503b195e888456); $aced7ad4890536e3810c503b195e888456 = str_replace("/admin", '', $aced7ad4890536e3810c503b195e888456); print $aced7ad4890536e3810c503b195e888456; ?>" size="60">
                <br>
                <font size="1">Do not include a trailing slash. Example = &quot;http://www.mysite.com/tt&quot;</font></td>
            </tr>
          </table>
          <br>
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr valign="top">
              <td height="90"> <table width="95%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
                  <tr>
                    <td><b>Your Name</b></td>
                  </tr>
                  <tr>
                    <td bgcolor="#F4F4F4">
<?php if ( $ac38f5264bd7fde8c2eb8306deebf8f5e6 ) { ?>
                      <input name="name" type="hidden" id="name" value="<?php echo $ac38f5264bd7fde8c2eb8306deebf8f5e6['first_name'] . ' ' . $ac38f5264bd7fde8c2eb8306deebf8f5e6['last_name']; ?>">
                      Admin user is found in global authentication table. That name will be used.
<?php } else { ?>
                      <input name="name" type="text" id="name" size="30">
<?php } ?>
                      </td>
                  </tr>
                </table></td>
              <td height="90"><div align="right">
                  <table width="95%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
                    <tr>
                      <td><b>Your E-mail Address</b></td>
                    </tr>
                    <tr>
                      <td bgcolor="#F4F4F4">
<?php if ( $ac38f5264bd7fde8c2eb8306deebf8f5e6 ) { ?>
                      <input name="email" type="hidden" value="<?php echo $ac38f5264bd7fde8c2eb8306deebf8f5e6['email']; ?>">
                      Admin user is found in global authentication table. That email will be used.
<?php } else { ?>
                        <input type="text" name="email" size="30">
<?php } ?>
                        </td>
                    </tr>
                  </table>
                </div></td>
            </tr>
            <tr valign="top">
              <td width="50%" height="90"><table width="95%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
                  <tr>
                    <td><b>Your Admin Username</b></td>
                  </tr>
                  <tr>
                    <td bgcolor="#F4F4F4">admin</td>
                  </tr>
                </table></td>
              <td width="50%" height="90"><div align="right">
                  <table width="95%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
                    <tr>
                      <td><b>Set Your Admin Password</b></td>
                    </tr>
                    <tr>
                      <td bgcolor="#F4F4F4">
<?php if ( $ac38f5264bd7fde8c2eb8306deebf8f5e6 ) { ?>
                      <input name="password" type="hidden" value="">
                      Admin user is found in global authentication table. That password will be used.
<?php } else { ?>
                        <input type="password" id="password" name="password" size="30">
<?php } ?>
                        </td>
                    </tr>
                  </table>
                </div></td>
            </tr>
            <tr valign="top">
              <td><table width="95%" border="0" cellpadding="5" cellspacing="0" bgcolor="#DFEEFF">
                  <tr>
                    <td><b>Site Name</b></td>
                  </tr>
                  <tr>
                    <td bgcolor="#F4F4F4">
                      <input name="site_name" type="text" id="site_name" value="Support Center - Powered by SupportTrio" size="30">
                      </

Refactorings

No refactoring yet !

F1e3ab214a976a39cfd713bc93deb10f

Tj Holowaychuk

September 13, 2009, September 13, 2009 15:24, permalink

No rating. Login to rate!

WTfffff

0706636fd5e30fa66019d7ffacdb5b11

Marco Valtas

September 17, 2009, September 17, 2009 02:17, permalink

1 rating. Login to rate!

Maybe you should post this code here http://thedailywtf.com/Series/CodeSOD.aspx

Your refactoring





Format Copy from initial code

or Cancel