forked from Shades75/SMF-Garage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
modification.xml
1278 lines (1165 loc) · 71.5 KB
/
modification.xml
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
<?xml version="1.0"?>
<!DOCTYPE modification SYSTEM "http://www.simplemachines.org/xml/modification">
<modification xmlns="http://www.simplemachines.org/xml/modification" xmlns:smf="http://www.simplemachines.org/">
<!-- This information needs to be the same as that in the package-info.xml. -->
<id>RRasco:SMFGarage</id>
<version>2.3</version>
<file name="$boarddir/index.php">
<operation>
<search position="before"><![CDATA['findmember' => array('Subs-Auth.php', 'JSMembers'),]]></search>
<add><![CDATA[
'garage' => array('Garage.php', 'Garage'),
'garagemanagement' => array('GarageManagement.php', 'GarageManagement'),
'garagesettings' => array('GarageSettings.php', 'GarageSettings'), ]]></add>
</operation>
</file>
<file name="$themedir/index.template.php">
<operation>
<search position="after"><![CDATA[;
// Show right to left and the character set for ease of translating.]]></search>
<add><![CDATA[, $smfgSettings]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[echo '
</head>
<body>';]]></search>
<add><![CDATA[// Define indices
if(!isset($context['lightbox'])) $context['lightbox'] = 0;
if(!isset($context['form_validation'])) $context['form_validation'] = 0;
if(!isset($context['dynamicoptionlist'])) $context['dynamicoptionlist'] = 0;
if(!isset($context['smfg_ajax'])) $context['smfg_ajax'] = 0;
echo '
<script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/jquery-1.6.1.min.js"></script>
<script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/jquery.preload.min.js"></script>
';
if($smfgSettings['enable_lightbox'] || isset($_REQUEST['area']) && $_REQUEST['area'] == 'forumprofile') {
if($context['lightbox'] || isset($_REQUEST['area']) && $_REQUEST['area'] == 'forumprofile') {
echo '
<!-- Lightbox Includes -->
<link rel="stylesheet" href="', $settings['default_theme_url'], '/css/shadowbox.css" type="text/css" media="screen" />
<script type="text/javascript" src="', $settings['default_theme_url'], '/css/shadowbox.js"></script>
<script type="text/javascript">
Shadowbox.init();
</script>
';
}
}
if($context['form_validation']) {
echo '
<!-- Form Validation Includes -->
<script language="JavaScript" src="', $settings['default_theme_url'], '/scripts/gen_validatorv2.js" type="text/javascript"></script>
';
}
if($context['dynamicoptionlist']) {
echo '
<!-- Dynamic Option List Includes -->
<script language="javascript" type="text/javascript" src="', $settings['default_theme_url'], '/scripts/dynamicoptionlist.js"></script>
';
}
if($context['smfg_ajax']) {
echo '
<!-- AJAX For Image Regens -->
<link rel="stylesheet" href="', $settings['default_theme_url'], '/css/jquery-ui-1.8.13.custom.css" type="text/css" media="screen" />
<script language="javascript" type="text/javascript" src="', $settings['default_theme_url'], '/scripts/jquery-ui-1.8.13.custom.min.js"></script>
<script language="javascript" type="text/javascript" src="', $settings['default_theme_url'], '/scripts/smfg_ajax.js"></script>
';
}
echo '
<script language="javascript" type="text/javascript" src="', $settings['default_theme_url'], '/scripts/jquery.tipTip.minified.js"></script>
<link rel="stylesheet" href="', $settings['default_theme_url'], '/css/smfg_tips.css" type="text/css" media="screen" />
<script language="javascript" type="text/javascript" src="', $settings['default_theme_url'], '/scripts/jquery.jeditable.mini.js"></script>
<script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/jquery-smfg.js"></script>
<script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/garage_functions.js"></script>
';
echo '
</head>
<body>';
]]></add>
</operation>
</file>
<file name="$sourcedir/Admin.php">
<operation>
<search position="before"><![CDATA[loadTemplate('Admin', 'admin');]]></search>
<add><![CDATA[
//Load the garage language.
loadLanguage('Garage');]]></add>
</operation>
<operation>
<search position="before"><![CDATA[
'sengines' => array(
'label' => $txt['search_engines'],
'enabled' => in_array('sp', $context['admin_features']),
'file' => 'ManageSearchEngines.php',
'icon' => 'engines.gif',
'function' => 'SearchEngines',
'permission' => 'admin_forum',
'subsections' => array(
'stats' => array($txt['spider_stats']),
'logs' => array($txt['spider_logs']),
'spiders' => array($txt['spiders']),
'settings' => array($txt['settings']),
),
),
),
),]]></search>
<add><![CDATA[
'garage' => array(
'title' => $txt['smfg_garage'],
'permission' => array('manage_garage_settings', 'manage_garage'),
'areas' => array(
'garagesettings' => array(
'label' => $txt['smfg_settings'],
'file' => 'GarageSettings.php',
'function' => 'GarageSettings',
'icon' => 'server.gif',
'permission' => array('manage_garage_settings'),
'subsections' => array(
'general' => array($txt['smfg_general'], 'manage_garage_settings'),
'menusettings' => array($txt['smfg_menu'], 'manage_garage_settings'),
'indexsettings' => array($txt['smfg_index'], 'manage_garage_settings'),
'imagesettings' => array($txt['smfg_images'], 'manage_garage_settings'),
'videosettings' => array($txt['smfg_videos'], 'manage_garage_settings'),
'modulesettings' => array($txt['smfg_modules'], 'manage_garage_settings'),
),
),
'garagemanagement' => array(
'label' => $txt['smfg_management'],
'file' => 'GarageManagement.php',
'function' => 'GarageManagement',
'icon' => 'corefeatures.gif',
'permission' => array('manage_garage'),
'subsections' => array(
'business' => array($txt['smfg_businesses'], 'manage_garage'),
'categories' => array($txt['smfg_categories'], 'manage_garage'),
'makesmodels' => array($txt['smfg_mm'], 'manage_garage'),
'products' => array($txt['smfg_products'], 'manage_garage'),
'tracks' => array($txt['smfg_tracks'], 'manage_garage'),
'other' => array($txt['smfg_other'], 'manage_garage'),
'tools' => array($txt['smfg_tools'], 'manage_garage'),
'pending' => array($txt['smfg_pending'], 'manage_garage'),
),
),
),
),]]></add>
</operation>
<operation>
<search position="before"><![CDATA[isAllowedTo(array(]]></search>
<add><![CDATA['manage_garage_settings', 'manage_garage', ]]></add>
</operation>
</file>
<file name="$sourcedir/Subs.php">
<operation>
<search position="before"><![CDATA[function constructPageIndex($base_url, &$start, $max_value, $num_per_page, $flexible_start = false]]></search>
<add><![CDATA[, $type = "none"]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[$base_link = '<a class="navPages" href="' . ($flexible_start ? $base_url : strtr($base_url, array('%' => '%%')) . ';start=%1$d') . '">%2$s</a> ';]]></search>
<add><![CDATA[if($type == "blog") {
$typeStart = "blog_";
$tabType = "#blog";
} else if($type == "guestbook") {
$typeStart = "gb_";
$tabType = "#guestbook";
} else {
$typeStart = '';
$tabType = '';
}
//$base_link = '<a class="navPages" href="' . ($flexible_start ? $base_url : strtr($base_url, array('%' => '%%')) . ';start=%1$d') . '">%2$s</a> ';
$base_link = '<a class="navPages" href="' . ($flexible_start ? $base_url : strtr($base_url, array('%' => '%%')) . ';'.$typeStart.'start=%1$d'.$tabType) . '">%2$s</a> ';]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[if (preg_match('~action(=|%3d)(?!dlattach)~i', $imgtag) != 0)
$imgtag = preg_replace('~action(?:=|%3d)(?!dlattach)~i', 'action-', $imgtag);]]></search>
<add><![CDATA[//if (preg_match('~action(=|%3d)(?!dlattach)~i', $imgtag) != 0)
if (preg_match('~action(=|%3d)(?!dlattach)(?!garage)~i', $imgtag) != 0)
//$imgtag = preg_replace('~action(?:=|%3d)(?!dlattach)~i', 'action-', $imgtag);
$imgtag = preg_replace('~action(=|%3d)(?!dlattach)(?!garage)~i', 'action-', $imgtag);]]></add>
</operation>
<operation>
<search position="before"><![CDATA['home' => array(
'title' => $txt['home'],
'href' => $scripturl,
'show' => true,
'sub_buttons' => array(
),
'is_last' => $context['right_to_left'],
),]]></search>
<add><![CDATA[
'garage' => array(
'title' => $txt['smfg_garage'],
'href' => $scripturl . '?action=garage',
'show' => true,
'sub_buttons' => array(
),
),]]></add>
</operation>
<operation>
<search position="before"><![CDATA[$context['allow_admin'] = allowedTo(array(]]></search>
<add><![CDATA['manage_garage_settings', 'manage_garage', ]]></add>
</operation>
</file>
<file name="$sourcedir/Subs-Post.php">
<operation>
<search position="replace"><![CDATA[return $matches[1] . preg_replace('~action(=|%3d)(?!dlattach)~i', 'action-', $matches[2]) . '[/img]';]]></search>
<add><![CDATA[//return $matches[1] . preg_replace('~action(=|%3d)(?!dlattach)~i', 'action-', $matches[2]) . '[/img]'; //edit by SMF Garage
return $matches[1] . preg_replace('~action(=|%3d)(?!dlattach)(?!garage)~i', 'action-', $matches[2]) . '[/img]';]]></add>
</operation>
</file>
<file name="$sourcedir/ManagePermissions.php">
<operation>
<search position="before"><![CDATA[$groupLevels['board']['restrict'] = array(]]></search>
<add><![CDATA[
'view_garage',
'browse_vehicles',
'view_vehicles',
'own_vehicle',
'search_vehicles',
'browse_insurance',
'view_insurance',
'browse_shops',
'view_shops',
'browse_garages',
'view_garages',
'browse_qms',
'view_qms',
'browse_dynos',
'view_dynos',
'browse_laps',
'view_laps',
'post_comments',]]></add>
</operation>
<operation>
<search position="before"><![CDATA[$groupLevels['board']['moderator'] = array_merge($groupLevels['board']['standard'], array(]]></search>
<add><![CDATA[
'manage_garage_settings',
'manage_garage_general',
'manage_garage_menu',
'manage_garage_index',
'manage_garage_images',
'manage_garage_videos',
'manage_garage_modules',
'manage_garage',
'manage_garage_businesses',
'manage_garage_categories',
'manage_garage_makes_models',
'manage_garage_products',
'manage_garage_tools',
'manage_garage_tracks',
'manage_garage_other',
'manage_garage_pending',
'edit_all_vehicles',
'edit_all_comments',
'limit_exemption',
'post_comments',
'own_vehicle',]]></add>
</operation>
<operation>
<search position="before"><![CDATA['administrate',]]></search>
<add><![CDATA[
'garage',
'garage_acp',]]></add>
</operation>
<operation>
<search position="after"><![CDATA[),
),
'board' => array(]]></search>
<add><![CDATA['garage',
'garage_acp',
]]></add>
</operation>
<operation>
<search position="before"><![CDATA['profile_remote_avatar' => array(false, 'profile', 'use_avatar'),]]></search>
<add><![CDATA[
'view_garage' => array(false, 'garage', 'garage'),
'browse_vehicles' => array(false, 'garage', 'garage'),
'view_vehicles' => array(false, 'garage', 'garage'),
'own_vehicle' => array(false, 'garage', 'garage'),
'search_vehicles' => array(false, 'garage', 'garage'),
'browse_insurance' => array(false, 'garage', 'garage'),
'view_insurance' => array(false, 'garage', 'garage'),
'browse_shops' => array(false, 'garage', 'garage'),
'view_shops' => array(false, 'garage', 'garage'),
'browse_garages' => array(false, 'garage', 'garage'),
'view_garages' => array(false, 'garage', 'garage'),
'browse_qms' => array(false, 'garage', 'garage'),
'view_qms' => array(false, 'garage', 'garage'),
'browse_dynos' => array(false, 'garage', 'garage'),
'view_dynos' => array(false, 'garage', 'garage'),
'browse_laps' => array(false, 'garage', 'garage'),
'view_laps' => array(false, 'garage', 'garage'),
'post_comments' => array(false, 'garage', 'garage'),
'manage_garage_settings' => array(false, 'garage_acp', 'garage_acp'),
'manage_garage_general' => array(false, 'garage_acp', 'garage_acp'),
'manage_garage_menu' => array(false, 'garage_acp', 'garage_acp'),
'manage_garage_index' => array(false, 'garage_acp', 'garage_acp'),
'manage_garage_images' => array(false, 'garage_acp', 'garage_acp'),
'manage_garage_videos' => array(false, 'garage_acp', 'garage_acp'),
'manage_garage_modules' => array(false, 'garage_acp', 'garage_acp'),
'manage_garage' => array(false, 'garage_acp', 'garage_acp'),
'manage_garage_businesses' => array(false, 'garage_acp', 'garage_acp'),
'manage_garage_categories' => array(false, 'garage_acp', 'garage_acp'),
'manage_garage_makes_models' => array(false, 'garage_acp', 'garage_acp'),
'manage_garage_products' => array(false, 'garage_acp', 'garage_acp'),
'manage_garage_tools' => array(false, 'garage_acp', 'garage_acp'),
'manage_garage_tracks' => array(false, 'garage_acp', 'garage_acp'),
'manage_garage_other' => array(false, 'garage_acp', 'garage_acp'),
'manage_garage_pending' => array(false, 'garage_acp', 'garage_acp'),
'edit_all_vehicles' => array(false, 'garage_acp', 'garage_acp'),
'edit_all_comments' => array(false, 'garage_acp', 'garage_acp'),
'limit_exemption' => array(false, 'garage_acp', 'garage_acp'),]]></add>
</operation>
<operation>
<search position="before"><![CDATA[$leftPermissionGroups = array(
'general',
'calendar',
'maintenance',
'member_admin',
'topic',
'post',]]></search>
<add><![CDATA[
'garage',]]></add>
</operation>
<operation>
<search position="before"><![CDATA[$context['non_guest_permissions'] = array(]]></search>
<add><![CDATA[
'manage_garage_settings',
'manage_garage_general',
'manage_garage_menu',
'manage_garage_index',
'manage_garage_images',
'manage_garage_videos',
'manage_garage_modules',
'manage_garage',
'manage_garage_businesses',
'manage_garage_categories',
'manage_garage_makes_models',
'manage_garage_products',
'manage_garage_tools',
'manage_garage_tracks',
'manage_garage_other',
'manage_garage_pending',
'edit_all_vehicles',
'edit_all_comments',
'limit_exemption',
'post_comments',
'own_vehicle',]]></add>
</operation>
</file>
<file name="$sourcedir/Security.php">
<operation>
<search position="before"><![CDATA[static $heavy_permissions = array(]]></search>
<add><![CDATA[
'manage_garage',
'manage_garage_settings',]]></add>
</operation>
</file>
<file name="$sourcedir/Profile.php">
<operation>
<search position="before"><![CDATA[require_once($sourcedir . '/Subs-Menu.php');]]></search>
<add><![CDATA[
// We need our functions!
require_once('GarageFunctions.php');
loadLanguage('Garage');
// Load settings
loadSmfgConfig();]]></add>
</operation>
<operation>
<search position="before"><![CDATA[updateMemberData($memID, $profile_vars);]]></search>
<add><![CDATA[
// Update garage notification options
if(!isset($_POST['pm_opt_out'])) $_POST['pm_opt_out'] = 0;
if(!isset($_POST['email_opt_out'])) $_POST['email_opt_out'] = 0;
if(!isset($_POST['gb_opt_out'])) $_POST['gb_opt_out'] = 0;
if($_POST['pm_opt_out'] != '' && $_POST['email_opt_out'] != '') {
$request = $smcFunc['db_query']('', '
UPDATE {db_prefix}garage_notifications
SET pm_opt_out = {int:pm_opt_out}, email_opt_out = {int:email_opt_out}
WHERE user_id = {int:memID}',
array (
'pm_opt_out' => $_POST['pm_opt_out'],
'email_opt_out' => $_POST['email_opt_out'],
'memID' => $memID,
)
);
}
if($_POST['gb_opt_out'] != '') {
$request = $smcFunc['db_query']('', '
SELECT id
FROM {db_prefix}garage_notifications_misc
WHERE user_id = {int:memID}',
array (
'memID' => $memID,
)
);
$numRows = $smcFunc['db_num_rows']($request);
$smcFunc['db_free_result']($request);
if($numRows == 0) {
$request = $smcFunc['db_insert']('insert',
'{db_prefix}garage_notifications_misc',
array(
'user_id' => 'int', 'gb_opt_out' => 'int',
),
array(
$memID, $_POST['gb_opt_out'],
)
);
} else {
$request = $smcFunc['db_query']('', '
UPDATE {db_prefix}garage_notifications_misc
SET gb_opt_out = {int:gb_opt_out}
WHERE user_id = {int:memID}',
array (
'gb_opt_out' => $_POST['gb_opt_out'],
'memID' => $memID,
)
);
}
}]]></add>
</operation>
<operation>
<search position="before"><![CDATA[$context['page_title'] = $txt['profile'] . (isset($txt[$current_area]) ? ' - ' . $txt[$current_area] : '');]]></search>
<add><![CDATA[
// Get vehicle data
$request = $smcFunc['db_query']('', '
SELECT v.id, CONCAT_WS(" ", v.made_year, mk.make, md.model)
FROM {db_prefix}garage_vehicles AS v, {db_prefix}garage_makes AS mk, {db_prefix}garage_models AS md
WHERE v.user_id = {int:memID}
AND v.make_id = mk.id
AND v.model_id = md.id
AND v.main_vehicle = 1
AND v.pending != "1"
AND mk.pending != "1"
AND md.pending != "1"',
array(
'memID' => $memID,
)
);
list($context['member']['vid'],
$context['member']['vehicle']) = $smcFunc['db_fetch_row']($request);
$smcFunc['db_free_result']($request);
// Get total vehicles
$request = $smcFunc['db_query']('', '
SELECT COUNT(id)
FROM {db_prefix}garage_vehicles
WHERE user_id = {int:memID}
GROUP BY user_id',
array(
'memID' => $memID,
)
);
list($context['member']['total_vehicles']) = $smcFunc['db_fetch_row']($request);
$smcFunc['db_free_result']($request);]]></add>
</operation>
<operation>
<search position="after"><![CDATA[// What if this is the newest member?]]></search>
<add><![CDATA[// Update garage notification options
if(!isset($_POST['pm_opt_out'])) $_POST['pm_opt_out'] = 0;
if(!isset($_POST['email_opt_out'])) $_POST['email_opt_out'] = 0;
if(!isset($_POST['gb_opt_out'])) $_POST['gb_opt_out'] = 0;
if($_POST['pm_opt_out'] != '' && $_POST['email_opt_out'] != '') {
$request = $smcFunc['db_query']('', '
UPDATE {db_prefix}garage_notifications
SET pm_opt_out = {int:pm_opt_out}, email_opt_out = {int:email_opt_out}
WHERE user_id = {int:memID}',
array (
'pm_opt_out' => $_POST['pm_opt_out'],
'email_opt_out' => $_POST['email_opt_out'],
'memID' => $memID,
)
);
}
if($_POST['gb_opt_out'] != '') {
$request = $smcFunc['db_query']('', '
SELECT id
FROM {db_prefix}garage_notifications_misc
WHERE user_id = {int:memID}',
array (
'memID' => $memID,
)
);
$numRows = $smcFunc['db_num_rows']($request);
$smcFunc['db_free_result']($request);
if($numRows == 0) {
$request = $smcFunc['db_insert']('insert',
'{db_prefix}garage_notifications_misc',
array(
'user_id' => 'int', 'gb_opt_out' => 'int',
),
array(
$memID, $_POST['gb_opt_out'],
)
);
} else {
$request = $smcFunc['db_query']('', '
UPDATE {db_prefix}garage_notifications_misc
SET gb_opt_out = {int:gb_opt_out}
WHERE user_id = {int:memID}',
array (
'gb_opt_out' => $_POST['gb_opt_out'],
'memID' => $memID,
)
);
}
}
]]></add>
</operation>
</file>
<file name="$sourcedir/Profile-Modify.php">
<operation>
<search position="before"><![CDATA[global $context, $user_profile, $user_info, $txt, $modSettings;]]></search>
<add><![CDATA[
// We need garage talk...
loadLanguage('Garage');]]></add>
</operation>
<operation>
<search position="before"><![CDATA[// What options are set?
$context['member'] += array(
'notify_announcements' => $user_profile[$memID]['notify_announcements'],
'notify_send_body' => $user_profile[$memID]['notify_send_body'],
'notify_types' => $user_profile[$memID]['notify_types'],
'notify_regularity' => $user_profile[$memID]['notify_regularity'],
);]]></search>
<add><![CDATA[
// Get Garage pending notification options
$request = $smcFunc['db_query']('', '
SELECT user_id, pm_opt_out, email_opt_out
FROM {db_prefix}garage_notifications
WHERE user_id = {int:memID}',
array (
'memID' => $memID,
)
);
list($context['memID'],
$context['pm_opt_out'],
$context['email_opt_out']) = $smcFunc['db_fetch_row']($request);
$smcFunc['db_free_result']($request);
// And misc notifications
$request = $smcFunc['db_query']('', '
SELECT user_id, gb_opt_out
FROM {db_prefix}garage_notifications_misc
WHERE user_id = {int:memID}',
array (
'memID' => $memID,
)
);
list($context['userID'],
$context['gb_opt_out']) = $smcFunc['db_fetch_row']($request);
$smcFunc['db_free_result']($request);
// We need our functions!
require_once('GarageFunctions.php');
loadLanguage('Garage');
// Load settings
loadSmfgConfig();
if($context['pm_opt_out'] == 1) $context['pm_opt_out_check'] = " checked=\"checked\"";
if($context['email_opt_out'] == 1) $context['email_opt_out_check'] = " checked=\"checked\"";
if($context['gb_opt_out'] == 1) $context['gb_opt_out_check'] = " checked=\"checked\"";
if(!isset($context['pm_opt_out_check'])) $context['pm_opt_out_check'] = "";
if(!isset($context['email_opt_out_check'])) $context['email_opt_out_check'] = "";
if(!isset($context['gb_opt_out_check'])) $context['gb_opt_out_check'] = "";]]></add>
</operation>
</file>
<file name="$themedir/Profile.template.php">
<operation>
<search position="after"><![CDATA[;
// Display the basic information about the user]]></search>
<add><![CDATA[, $smfgSettings]]></add>
</operation>
<operation>
<search position="before"><![CDATA[if (!isset($context['disabled_fields']['location']) && !empty($context['member']['location']))
echo '
<dt>', $txt['location'], ':</dt>
<dd>', $context['member']['location'], '</dd>';]]></search>
<add><![CDATA[
// Do they have a vehicle?
if($smfgSettings['integrate_profile'] && $context['member']['vehicle']) {
echo '
<dt>', $txt['smfg_vehicle'], ' </b>(1 '.$txt['smfg_of'].' '.$context['member']['total_vehicles'].'):</dt>
<dd><a href="'.$scripturl.'?action=garage;sa=view_vehicle;VID='.$context['member']['vid'].'">', $context['member']['vehicle'], '</a></dd>';
}]]></add>
</operation>
<operation>
<search position="before"><![CDATA[<label for="notify_send_body"><input type="checkbox" id="notify_send_body" name="notify_send_body"', !empty($context['member']['notify_send_body']) ? ' checked="checked"' : '', ' class="input_check" /> ', $txt['notify_send_body'], '</label><br />';]]></search>
<add><![CDATA[
// Garage notification options
if($smfgSettings['enable_pm_pending_notify_optout']) {
echo '
<input type="hidden" name="pm_opt_out" value="0" />
<input type="checkbox" id="pm_opt_out" value="1" name="pm_opt_out"'.$context['pm_opt_out_check'].' class="check" /> ', $txt['smfg_pm_opt_out'], '<br />';
}
if($smfgSettings['enable_email_pending_notify_optout']) {
echo '
<input type="hidden" name="email_opt_out" value="0" />
<input type="checkbox" id="email_opt_out" value="1" name="email_opt_out"'.$context['email_opt_out_check'].' class="check" /> ', $txt['smfg_email_opt_out'], '<br />';
}
echo '
<input type="hidden" name="gb_opt_out" value="0" />
<input type="checkbox" id="gb_opt_out" value="1" name="gb_opt_out"'.$context['gb_opt_out_check'].' class="check" /> ', $txt['smfg_gb_opt_out'], '<br />';]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[echo '
<dt>
<strong>', $txt['signature'], ':</strong><br />
<span class="smalltext">', $txt['sig_info'], '</span><br />
<br />';]]></search>
<add><![CDATA[echo '
<dt>
<strong>', $txt['signature'], ':</strong><br />
<span class="smalltext">', $txt['sig_info'], '</span><br /><br />
<a href="'.$scripturl.'?action=garage;sa=get_gcard;u='.$_REQUEST['u'].'" rel="shadowbox;width=605;height=600" title="'.$txt['smfg_gcard_info'].'">'.$txt['smfg_get_gcard'].'</a><br />
<br />';]]></add>
</operation>
<operation>
<search position="before"><![CDATA[global $context, $settings, $options, $txt, $scripturl, $modSettings]]></search>
<add><![CDATA[, $smfgSettings]]></add>
</operation>
</file>
<file name="$sourcedir/Display.php">
<operation>
<search position="replace"><![CDATA[// What? It's not like it *couldn't* be only guests in this topic...
if (!empty($posters))
loadMemberData($posters);
$messages_request = $smcFunc['db_query']('', '
SELECT
id_msg, icon, subject, poster_time, poster_ip, id_member, modified_time, modified_name, body,
smileys_enabled, poster_name, poster_email, approved,
id_msg_modified < {int:new_from} AS is_read
FROM {db_prefix}messages
WHERE id_msg IN ({array_int:message_list})
ORDER BY id_msg' . (empty($options['view_newest_first']) ? '' : ' DESC'),
array(
'message_list' => $messages,
'new_from' => $topicinfo['new_from'],
)
);]]></search>
<add><![CDATA[// *************************************************************
// WARNING: The query check is being disabled to allow for the following subselect.
// It is imperative this is turned back on for security reasons.
// *************************************************************
$modSettings['disableQueryCheck'] = 1;
// *************************************************************
// What? It's not like it *couldn't* be only guests in this topic...
if (!empty($posters))
loadMemberData($posters);
$messages_request = $smcFunc['db_query']('', "
SELECT
m.id_msg, m.icon, m.subject, m.poster_time, m.poster_ip, m.id_member, m.modified_time, m.modified_name, m.body,
m.smileys_enabled, m.poster_name, m.poster_email, approved,
m.id_msg_modified < {int:new_from} AS isRead,
uv.vehicle, uv.vid
FROM {db_prefix}messages AS m
LEFT OUTER JOIN (
SELECT CONCAT_WS(' ', v.made_year, mk.make, md.model) AS vehicle, v.id AS vid, v.user_id
FROM {db_prefix}garage_vehicles AS v, {db_prefix}garage_makes AS mk, {db_prefix}garage_models AS md
WHERE v.make_id = mk.id
AND v.model_id = md.id
AND v.main_vehicle = 1
AND mk.pending != '1'
AND md.pending != '1'
AND v.pending != '1'
) AS uv ON uv.user_id = m.id_member
WHERE m.id_msg IN ({array_int:message_list})
ORDER BY m.id_msg" . (empty($options['view_newest_first']) ? '' : ' DESC'),
array(
'message_list' => $messages,
'new_from' => $topicinfo['new_from'],
)
);
// *************************************************************
// WARNING: The query check is being enabled, this MUST BE DONE!
// *************************************************************
$modSettings['disableQueryCheck'] = 0;
// *************************************************************]]></add>
</operation>
<operation>
<search position="before"><![CDATA[global $settings, $txt, $modSettings, $scripturl, $options, $user_info, $smcFunc]]></search>
<add><![CDATA[, $smfgSettings]]></add>
</operation>
<operation>
<search position="before"><![CDATA[$memberContext[$message['id_member']]['ip'] = $message['poster_ip'];]]></search>
<add><![CDATA[
$memberContext[$message['id_member']]['vid'] = $message['vid'];
$memberContext[$message['id_member']]['vehicle'] = $message['vehicle'];]]></add>
</operation>
<operation>
<search position="after"><![CDATA[static $counter = null;]]></search>
<add><![CDATA[// A few garage items...
require_once('GarageFunctions.php');
loadSmfgConfig();
loadLanguage('Garage');
]]></add>
</operation>
</file>
<file name="$themedir/Display.template.php">
<operation>
<search position="before"><![CDATA[// Show how many posts they have made.
if (!isset($context['disabled_fields']['posts']))
echo '
<li class="postcount">', $txt['member_postcount'], ': ', $message['member']['posts'], '</li>';]]></search>
<add><![CDATA[
if($smfgSettings['integrate_viewtopic'] && isset($message['member']['vehicle'])) {
// Show their main vehicle.
echo '
<li class="postcount">', $txt['smfg_vehicle'], ': <a href="'.$scripturl.'?action=garage;sa=view_vehicle;VID='.$message['member']['vid'].'">', $message['member']['vehicle'], '</a></li>';
}]]></add>
</operation>
<operation>
<search position="before"><![CDATA[global $context, $settings, $options, $txt, $scripturl, $modSettings]]></search>
<add><![CDATA[, $smfgSettings]]></add>
</operation>
</file>
<file name="$languagedir/index.english.php">
<operation>
<search position="end" />
<add><![CDATA[
$txt['smfg_garage'] = 'Garage';
]]></add>
</operation>
</file>
<file name="$languagedir/index.english-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['smfg_garage'] = 'Garage';
]]></add>
</operation>
</file>
<file name="$languagedir/Admin.english.php">
<operation>
<search position="end" />
<add><![CDATA[
$txt['paid_subs_view'] = 'View Subscriptions';
$txt['managegarage_settings'] = 'Manage Garage Settings';
$txt['settings_general'] = 'This menu allows you to set your basic garage configuration options.';
$txt['settings_menu'] = 'This menu allows you to enable/disable the links available in the main garage menu.';
$txt['settings_index'] = 'This menu allows you to change the options and physical layout of the main garage page.';
$txt['settings_images'] = 'This menu allows you to set your garage image options.';
$txt['settings_videos'] = 'This menu allows you to set your garage video options.';
$txt['settings_modules'] = 'This menu allows you to enable/disable the various modules of SMF Garage and other related settings.';
$txt['managegarage_management'] = 'Garage Management';
$txt['management_business'] = 'This menu will allow you to enable/disable, edit, or delete businesses.';
$txt['management_categories'] = 'This menu will allow you to create, enable/disable, edit, or delete modification categories.';
$txt['management_makesmodels'] = 'This menu will allow you to create, enable/disable, edit, or delete makes and models.';
$txt['management_products'] = 'This menu will allow you to creat, enable/disable, edit, or delete modification products.';
$txt['management_tracks'] = 'This menu will allow you to create, enable/disable, edit, or delete tracks. It also allows for management of track conditions and lap types.';
$txt['management_other'] = 'This menu will allow you to manage various other types in the garage.';
$txt['management_tools'] = 'Here you can use the provided utilities to optimize the database. The database will first be checked and you will be presented with your options prior to modifying the database or files.';
$txt['management_pending'] = 'Any pending items will be shown here for you to approve, edit, or delete. Any items that have been disabled will also show here until they are re-approved.';]]></add>
</operation>
</file>
<file name="$languagedir/Help.english.php">
<operation>
<search position="end" />
<add><![CDATA[
$helptxt['year_range'] = 'This is the earliest year you want to appear as a selection for a new vehicle. Format CCYY.';
$helptxt['year_offset'] = 'Amount of years offset from current year for latest year you want to appear for a new vehicle.';
$helptxt['vehicle_quota'] = 'This is the max limit of vehicles per user. This can be overridden by assigning \'Exempt from Limits\' permissions.';
$helptxt['vehicles_per_page'] = 'This controls the number of vehicles that will be displayed per page under the various menu items; Browse, Quartermiles, Dynoruns, and Laptimes.';
$helptxt['user_make_submission'] = 'Will allow for users to submit makes to the database which do not already exist.';
$helptxt['user_model_submission'] = 'Will allow for users to submit models to the database which do not already exist.';
$helptxt['user_business_submission'] = 'Will allow for users to submit businesses to the database which do not already exist.';
$helptxt['user_product_submission'] = 'Will allow for users to submit modification products to the database which do not already exist.';
$helptxt['pending_pm'] = 'Enable pending PM notifications on submitted items which require approval.';
$helptxt['pm_opt_out'] = 'Allow users on the pending notification list to opt out of PM notifications.';
$helptxt['pending_email'] = 'Enable pending email notifications on submitted items which require approval.';
$helptxt['email_opt_out'] = 'Allow users on the pending notification list to opt out of email notifications.';
$helptxt['pending_subject'] = 'Subject for pending PM and email notifications.';
$helptxt['pending_sender_id'] = 'ID of the user in which PMs will be sent from.';
$helptxt['integrate_viewtopic'] = 'Show user\'s main vehicle with profile information in posts.';
$helptxt['integrate_profile'] = 'Show user\'s main vehicle information in their user profile.';
$helptxt['rating_system'] = 'Select which type of rating you would like to use. Cumulative will total all votes together (ie. 91/100) and Average will average all the votes (ie. 9.1/10).';
$helptxt['members_notify'] = 'All users on this list will receive PM and email notifications on all pending items which require approval. These users will have additional options in their profile settings to opt out of PM and email notifications.';
$helptxt['featured_vehicle'] = 'You may disable the featured vehicle or select which method to identify a featured vehicle by. You may specify a vehicle ID, choose a block which will show its top vehicle, or select a random vehicle on each refresh.';
$helptxt['featured_vehicle_image_required'] = 'This option ensures an image is displayed on the Featured Vehicle block. The \'Random\' option will only display vehicles with images attached to them. \'From vehicle ID\' and \'From block\' options will display a \'No Image\' place holder for vehicle with no images attached to them.';
$helptxt['featured_vehicle_id'] = 'If featured vehicle is set to \'From vehicle ID\', use the ID of the vehicle you want to feature.';
$helptxt['featured_vehicle_block'] = 'If featured vehicle is set to \'From block\', choose a block to determine the vehicle to feature.';
$helptxt['featured_vehicle_description'] = 'You may choose to add a description below the featured vehicle. Leave this blank to disable.';
$helptxt['columns_index'] = 'You may choose to show all the enabled blocks on the front page with one or two columns.';
$helptxt['black_management'] = 'Here you can enable/disable, re-order, and set the limits for each of the blocks on the main garage page.';
$helptxt['store_remote_locally'] = 'You can choose to either store remote images locally or link to their remote locations. All images will be thumbnailed and thumbnails will always be stored locally.<br /><br />This setting is not retroactive, for example, if you choose to store remote images locally and then choose to not store them locally then all previously stored images will remain stored locally unless you delete and re-upload the image.';
$helptxt['enable_lightbox'] = 'Lightbox is the effects module for displaying images.';
$helptxt['gallery_limit'] = 'The max number of images allowed in each gallery. Each vehicle, modification, quartermile, dynorun, and laptime is considered its own gallery.';
$helptxt['gallery_limit_video'] = 'The max number of videos allowed in each gallery. Each vehicle, modification, quartermile, dynorun, and laptime is considered its own gallery.';
$helptxt['upload_directory'] = 'This is the directory where images and thumbnails will be stored. The path is relative to your forum root and should not use a starting forward slash, and must have an ending forward slash.<br /><br /><b>Default:</b> \'<i>Garage/uploads/\'</i><br /><br />A cache directory should have been automatically created in this location on installation. Original file uploads are stored in the upload directory, while watermarked versions of images and thumbnails are stored in the cache directory. If the cache directory does not exist, the garage attempts to create it on install, on image upload, and on this page load. If it has failed to created the directory, you may have to manually create it.';
$helptxt['watermark_source'] = 'This is the path to the image you would like to use as a watermark. The path is relative to your forum root and should not use a starting forward slash.<br /><br /><b>Default:</b> \'<i>Themes/default/images/watermark.png\'</i>';
$helptxt['IM_convert'] = 'SMF Garage utilizes ImageMagick for watermarks and thumbnails, provide the path to the ImageMagick \'convert\' directory. The path is relative to your forum root and must use a starting forward slash, and should not have an ending forward slash.<br /><br /><b>Default:</b> \'<i>/usr/bin/convert\'</i>';
$helptxt['IM_composite'] = 'SMF Garage utilizes ImageMagick for watermarks and thumbnails, provide the path to the ImageMagick \'composite\' directory. The path is relative to your forum root and must use a starting forward slash, and should not have an ending forward slash.<br /><br /><b>Default:</b> \'<i>/usr/bin/composite\'</i>';
$helptxt['create_model'] = 'First select a make, then enter the model you would like to create.';
$helptxt['create_product'] = 'First select a manufacturer, then enter the product you would like to create.';
$helptxt['garage_settings'] = '
<ul>
<li>
<b>General</b><br />
Modify general settings for the garage. Year ranges, vehicle quotas, date format, pagination options, user submission and approvals, and notification options for pending items.
</li><li>
<b>Menu</b><br />
Configure the main garage menu tabs.
</li><li>
<b>Index Page</b><br />
Modify the look and layout of the main garage page. Featured vehicle options. Also allows for enable/disable, re-order, or set the limits for the number of vehicles to display per block.
</li><li>
<b>Images</b><br />
Modify image settings, enable/display galleries for each module, remote image handling, set filesize options, upload directory, watermark configuration, and ImageMagick directories.
</li><li>
<b>Modules</b><br />
Enable/disable the various garage modules and set pertinent options for each module.
</li>
</ul>';
$helptxt['garage_management'] = '
<ul>
<li>
<b>Businesses</b><br />
Approve, enable/disable, edit, or delete businesses.
</li><li>
<b>Categories</b><br />
Re-order, edit, or delete modification categories.
</li><li>
<b>Makes/Models</b><br />
Approve, enable/disable, edit, or delete makes or models.
</li><li>
<b>Products</b><br />
Approve, enable/disable, edit, or delete modification products.
</li><li>
<b>Tracks</b><br />
Approve, enable/disable, edit or delete tracks. Also allows to re-order, edit, or delete track conditions and lap types.
</li><li>
<b>Other</b><br />
Allows to re-order, edit, or delete; premium types, engine types, service types, and currency types.
</li><li>
<b>Tools</b><br />
Utilities to help optimize the database. This utility will find any existing files not listed in the database, and vice-versa, find any database entries missing files and remove them from the database if you approve the action after it returns the results to you.
</li><li>
<b>Pending</b><br />
Any pending or disabled items will display here. Only items which require approval can be pending, but by disabling an item it will also show in this list until it is re-approved.
</li>
</ul>';]]></add>
</operation>
</file>
<file name="$languagedir/Errors.english.php">
<operation>
<search position="end" />
<add><![CDATA[
$txt['cannot_view_garage'] = 'You can\'t view the garage because you don\'t have permission to.';
$txt['cannot_browse_vehicles'] = 'You are not allowed to browse vehicles.';
$txt['cannot_view_vehicles'] = 'You cannot view vehicles based on your permissions.';
$txt['cannot_own_vehicle'] = 'You cannot create a vehicle based on your permissions.';
$txt['cannot_search_vehicles'] = 'You are not allowed to search vehicles.';
$txt['cannot_browse_insurance'] = 'You are not allowed to browse insurance companies.';
$txt['cannot_view_insurance'] = 'You can\'t view insurance based on your permissions.';
$txt['cannot_browse_shops'] = 'You are not allowed to browse shops.';
$txt['cannot_view_shops'] = 'You can\'t view shops based on your permissions.';
$txt['cannot_browse_garages'] = 'You are not allowed to browse garages.';
$txt['cannot_view_garages'] = 'You can\'t view garages based on your permissions.';
$txt['cannot_browse_qms'] = 'You are not allowed to browse quartermile runs.';
$txt['cannot_view_qms'] = 'You can\'t view quartermile runs based on your permissions.';
$txt['cannot_browse_dynos'] = 'You are not allowed to browse dyno runs.';
$txt['cannot_view_dynos'] = 'You can\'t view dyno runs based on your permissions.';
$txt['cannot_browse_laps'] = 'You are not allowed to browse lap times.';
$txt['cannot_view_laps'] = 'You can\'t view lap times based on your permissions.';
$txt['cannot_post_comments'] = 'You are not allowed to post comments in the garage.';
$txt['cannot_manage_garage_settings'] = 'You are not allowed to manage the garage settings.';
$txt['cannot_manage_garage_general'] = 'You are not allowed to manage the garage\'s general settings.';
$txt['cannot_manage_garage_menu'] = 'You are not allowed to manage the garage menu.';
$txt['cannot_manage_garage_index'] = 'You are not allowed to manage the garage index page.';
$txt['cannot_manage_garage_images'] = 'You are not allowed to manage image settings.';
$txt['cannot_manage_garage_modules'] = 'You are not allowed to manage module settings.';
$txt['cannot_manage_garage_quotas'] = 'You are not allowed to manage quota settings.';
$txt['cannot_manage_garage'] = 'You are not allowed to manage garage content.';
$txt['cannot_manage_garage_businesses'] = 'You are not allowed to manage businesses.';
$txt['cannot_manage_garage_categories'] = 'You are not allowed to manage modification categories.';
$txt['cannot_manage_garage_makes_models'] = 'You are not allowed to manage makes/models.';
$txt['cannot_manage_garage_products'] = 'You are not allowed to manage products.';
$txt['cannot_manage_garage_tools'] = 'You are not allowed to use garage tools.';
$txt['cannot_manage_garage_tracks'] = 'You are not allowed to manage tracks.';
$txt['cannot_manage_garage_other'] = 'You are not allowed to manage these settings.';
$txt['garage_filesize_error'] = 'The file you are attempting to upload exceeds the maximum filesize of '.$smfgSettings['max_image_kbytes'].' kilobytes. Please click back and select a file that meets the filesize restrictions.';
$txt['garage_resolution_error'] = 'The image you are attempting to upload exceeds the maximum file resolution of '.$smfgSettings['max_image_resolution'].'x'.$smfgSettings['max_image_resolution'].'. Please click back and select an image that meets the resolution restrictions or resize the image to meet them.';
$txt['garage_no_image_supplied'] = 'You did not select an image, please go back and select an image before submitting.';
$txt['garage_video_unsupported'] = 'The video you are attempting to upload is not a supported video site. Please use a video sharing site listed on the supported sites list.';
$txt['garage_video_title_required'] = 'You have submitted a video with no title, a title is required if you wish to submit a video.';
$txt['garage_rating_error2'] = 'You are not allowed to rate your own vehicle.';
$txt['garage_owner_error'] = 'This vehicle does not belong to you, quit trying to edit other people\'s vehicles.';
$txt['garage_edit_comment_error'] = 'You cannot edit other user\'s comments.';
$txt['garage_rating_error'] = 'You cannot remove other user\'s ratings.';
$txt['garage_double_rating_error'] = 'You cannot rate the same vehicle more than once.';
$txt['garage_gallery_limit_error'] = 'This gallery already has the maximum number of images allowed. Before adding more images you must delete one or more existing images.';
$txt['garage_gallery_limit_video_error'] = 'This gallery already has the maximum number of videos allowed. Before adding more videos you must delete one or more existing videos';
$txt['garage_vehicle_limit_error'] = 'Your garage has already reached the maximum number of vehicles allowed. Before adding more vehicles you must delete one or more existing vehicles.';
$txt['garage_submit_make_error'] = 'The make you are trying to submit already exists, there is no need to re-submit the make. To use the desired make, go back and select it from the \'Make\' drop down.';
$txt['garage_submit_model_error'] = 'The model you are trying to submit already exists, there is no need to re-submit the model. To use the desired model, go back and select the appropriate make from the \'Make\' drop down, the select the model from the \'Model\' drop down.';
$txt['garage_submit_business_error'] = 'The business you are trying to submit already exists, there is no need to re-submit the business. To use the desired business, go back and select it from the \'Business\' drop down.';
$txt['garage_submit_product_error'] = 'The product you are trying to submit already exists, there is no need to re-submit the product. To use the desired product, go back and select it from the \'Product\' drop down.';
$txt['garage_submit_track_error'] = 'The track you are trying to submit already exists, there is no need to re-submit the track. To use the desired track, go back and select it from the \'Track\' drop down.';
$txt['garage_required_image_error'] = 'The administrator has chosen to require an image with this submission. Please go back and select an image to submit.';
$txt['garage_disabled_module_error'] = 'This module is disabled. Please contact the administrator if you feel this is an error.';
$txt['garage_nonexistent_member_error'] = 'The member name you supplied does not match any current members. Please go back and try again.';
$txt['garage_pending_vehicle_error'] = 'The vehicle you are attempting to view is currently pending, unless you are the vehicle owner or have permission to view pending items, you cannot view this vehicle at this time.';
$txt['garage_pending_item_error'] = 'The item you are attempting to view is currently pending, unless you have permission to view pending items you cannot view this item at this time.';
$txt['garage_disabled_error'] = 'The garage has been disabled at this time for maintenance. Please check back later or contact the administrator if you feel this is an error.';
$txt['garage_no_search_criteria'] = 'You must select criteria to search for. Make sure you check the box next to the criteria you would like to search.';
$txt['garage_no_direct_page_access'] = 'Sorry this page can not be access directly.';
$txt['garage_no_vehicle'] = 'Vehicle does not exist.';
$txt['garage_no_modification'] = 'Modification does not exist.';
$txt['garage_no_quartermile'] = 'Quartermile does not exist.';
$txt['garage_no_dynorun'] = 'Dynorun does not exist.';
$txt['garage_no_laptime'] = 'Laptime does not exist.';