-
Notifications
You must be signed in to change notification settings - Fork 2
/
config_defaults.php
840 lines (833 loc) · 23.1 KB
/
config_defaults.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
<?php
if (count(get_included_files()) == 1) {header('location: http://' . $_SERVER['HTTP_HOST']); exit();}
$defaults = array(
'config' => array(
'system_online' => array(
'name' => 'system_online',
'value' => 'all',
'description' => 'system status',
'type' => 'select|all,no submissions,admin only',
'required' => '',
'allowed' => ''
),
'offline_text' => array(
'name' => 'offline_text',
'value' => 'The [company_name] Submission Manager is currently offline.',
'description' => 'text displayed when system is offline <span class="small">(HTML allowed)</span>',
'type' => 'textarea',
'required' => '',
'allowed' => 'html'
),
'instruction_text' => array(
'name' => 'instruction_text',
'value' => '<p class="header">How to use the [company_name] Submission Manager:</p>' . "\n" . '<p><b>If you already have an account, you do not need to use this form.<br><img src="arrow_left_2.png" alt="arrow left" width="16" height="13" style="vertical-align: middle;"> Please login using the form on the left.</b></p>' . "\n" . '<ol>' . "\n" . '<li>Fill in all of your contact information. If you are submitting work for someone else, fill in <u>your</u> contact info and fill in the name of the person your are submitting for in the “writer name” field.</li>' . "\n" . '<li>Fill in the title(s) of the work(s) you are submitting. If you are submitting multiple works, separate titles with commas.</li>' . "\n" . '<li>Use the browse button to find the file on your computer that you would like to submit. Select the file and click on the <b>open</b> button. Your file will then appear in the “file” field.</li>' . "\n" . '<li>If you wish you can fill in the comments field with any additional information you’d like to send, then click <b>submit</b>.</li>' . "\n" . '<li>You will then have the option to review your information and confirm that it is correct. Hit <b>continue</b> and you’re done.</li>' . "\n" . '</ol>',
'description' => 'text to be displayed above submission form <span class="small">(HTML allowed)</span>',
'type' => 'textarea',
'required' => '',
'allowed' => 'html'
),
'submission_text' => array(
'name' => 'submission_text',
'value' => 'Thank you for your submission. You can check the status of your submission at any time by visiting [app_url] and logging into your account.',
'description' => 'text to be displayed and emailed to user after submission <span class="small">(HTML allowed)</span>',
'type' => 'textarea',
'required' => '',
'allowed' => 'html'
),
'redirect_url' => array(
'name' => 'redirect_url',
'value' => '',
'description' => 'redirect URL after submission (leave blank for default confirmation)',
'type' => 'text',
'required' => '',
'allowed' => ''
),
'test_mode' => array(
'name' => 'test_mode',
'value' => '',
'description' => 'no emails are sent',
'type' => 'checkbox',
'required' => '',
'allowed' => ''
),
'timezone' => array(
'name' => 'timezone',
'value' => 0,
'description' => 'local timezone',
'type' => 'select|timezones',
'required' => '',
'allowed' => ''
),
'dst' => array(
'name' => 'dst',
'value' => 'Y',
'description' => 'adjust for daylight saving time',
'type' => 'checkbox',
'required' => '',
'allowed' => ''
),
'company_name' => array(
'name' => 'company_name',
'value' => '',
'description' => 'your company’s name',
'type' => 'text',
'required' => 'Y',
'allowed' => ''
),
'show_company_name' => array(
'name' => 'show_company_name',
'value' => 'Y',
'description' => 'display company name in header',
'type' => 'checkbox',
'required' => '',
'allowed' => ''
),
'logo_path' => array(
'name' => 'logo_path',
'value' => '',
'description' => 'path to your company’s logo (relative to document root)',
'type' => 'text',
'required' => '',
'allowed' => ''
),
'app_url' => array(
'name' => 'app_url',
'value' => '',
'description' => 'absolute URL to Submission Manager',
'type' => 'text',
'required' => 'Y',
'allowed' => ''
),
'fonts' => array(
'name' => 'fonts',
'value' => 'Arial, Times New Roman',
'description' => 'comma separated list of fonts',
'type' => 'text',
'required' => '',
'allowed' => ''
),
'font_size' => array(
'name' => 'font_size',
'value' => 10,
'description' => 'base font size',
'type' => 'text',
'required' => '',
'allowed' => 'zero'
),
'color_background' => array(
'name' => 'color_background',
'value' => 'white',
'description' => 'color name or HEX value',
'type' => 'text',
'required' => '',
'allowed' => ''
),
'color_foreground' => array(
'name' => 'color_foreground',
'value' => '#EFEFEF',
'description' => 'color name or HEX value',
'type' => 'text',
'required' => '',
'allowed' => ''
),
'color_form' => array(
'name' => 'color_form',
'value' => '#DFDFDF',
'description' => 'color name or HEX value',
'type' => 'text',
'required' => '',
'allowed' => ''
),
'color_text' => array(
'name' => 'color_text',
'value' => 'black',
'description' => 'color name or HEX value',
'type' => 'text',
'required' => '',
'allowed' => ''
),
'color_link' => array(
'name' => 'color_link',
'value' => '#325287',
'description' => 'color name or HEX value',
'type' => 'text',
'required' => '',
'allowed' => ''
),
'color_link_hover' => array(
'name' => 'color_link_hover',
'value' => 'red',
'description' => 'color name or HEX value',
'type' => 'text',
'required' => '',
'allowed' => ''
),
'border_radius' => array(
'name' => 'border_radius',
'value' => 5,
'description' => 'rounding of borders (in pixels)',
'type' => 'text',
'required' => '',
'allowed' => 'zero'
),
'submission_limit' => array(
'name' => 'submission_limit',
'value' => 0,
'description' => 'limit of simutaneous submissions (0 for no limit)',
'type' => 'text',
'required' => '',
'allowed' => 'zero'
),
'pagination_limit' => array(
'name' => 'pagination_limit',
'value' => 100,
'description' => 'limit of results per page in admin area (0 for no limit)',
'type' => 'text',
'required' => '',
'allowed' => 'zero'
),
'default_sort_order' => array(
'name' => 'default_sort_order',
'value' => 'ascending',
'description' => 'default sort order',
'type' => 'select|ascending,descending',
'required' => '',
'allowed' => ''
),
'upload_path' => array(
'name' => 'upload_path',
'value' => '',
'description' => 'absolute server path for storing file uploads. use forward slashes (“/”) with trailing slash',
'type' => 'text',
'required' => 'Y',
'allowed' => ''
),
'general_dnr_email' => array(
'name' => 'general_dnr_email',
'value' => '',
'description' => 'general DO NOT REPLY email address for notifications',
'type' => 'text',
'required' => 'Y',
'allowed' => ''
),
'admin_email' => array(
'name' => 'admin_email',
'value' => '',
'description' => 'main administrator email address for help',
'type' => 'text',
'required' => 'Y',
'allowed' => ''
),
'mail_method' => array(
'name' => 'mail_method',
'value' => 'mail',
'description' => 'outgoing mail method',
'type' => 'select|mail,sendmail,smtp',
'required' => '',
'allowed' => ''
),
'smtp_secure' => array(
'name' => 'smtp_secure',
'value' => '',
'description' => 'SMTP security protocol',
'type' => 'select|NULL,ssl,tls',
'required' => '',
'allowed' => ''
),
'smtp_port' => array(
'name' => 'smtp_port',
'value' => '',
'description' => 'SMTP port number',
'type' => 'text',
'required' => '',
'allowed' => ''
),
'smtp_auth' => array(
'name' => 'smtp_auth',
'value' => '',
'description' => 'SMTP authorization',
'type' => 'checkbox',
'required' => '',
'allowed' => ''
),
'smtp_host' => array(
'name' => 'smtp_host',
'value' => '',
'description' => 'SMTP host name',
'type' => 'text',
'required' => '',
'allowed' => ''
),
'smtp_username' => array(
'name' => 'smtp_username',
'value' => '',
'description' => 'SMTP user name',
'type' => 'text',
'required' => '',
'allowed' => ''
),
'smtp_password' => array(
'name' => 'smtp_password',
'value' => '',
'description' => 'SMTP password',
'type' => 'text',
'required' => '',
'allowed' => ''
),
'submission_price' => array(
'name' => 'submission_price',
'value' => '0.00',
'description' => 'submission price',
'type' => 'text',
'required' => '',
'allowed' => 'zero'
),
'currency_symbol' => array(
'name' => 'currency_symbol',
'value' => '$',
'description' => 'currency symbol',
'type' => 'text',
'required' => '',
'allowed' => ''
),
'success_result_code' => array(
'name' => 'success_result_code',
'value' => 0,
'description' => 'successful payment result code',
'type' => 'text',
'required' => '',
'allowed' => ''
),
'payment_redirect_method' => array(
'name' => 'payment_redirect_method',
'value' => 'GET',
'description' => 'payment variables method',
'type' => 'select|GET,POST,cURL',
'required' => '',
'allowed' => ''
),
'cc_exp_date_format' => array(
'name' => 'cc_exp_date_format',
'value' => 'MMYYYY',
'description' => 'credit card expiration date format',
'type' => 'select|MMYYYY,MM-YYYY,YYYYMM,YYYY-MM',
'required' => '',
'allowed' => ''
),
'captcha_version' => array(
'name' => 'captcha_version',
'value' => 2,
'description' => 'Google reCAPTCHA version',
'type' => 'select|2,3',
'required' => '',
'allowed' => ''
),
'captcha_site_key' => array(
'name' => 'captcha_site_key',
'value' => '',
'description' => 'Google reCAPTCHA site key',
'type' => 'text',
'required' => '',
'allowed' => ''
),
'captcha_secret_key' => array(
'name' => 'captcha_secret_key',
'value' => '',
'description' => 'Google reCAPTCHA secret key',
'type' => 'text',
'required' => '',
'allowed' => ''
),
'mysqldump_path' => array(
'name' => 'mysqldump_path',
'value' => 'mysqldump',
'description' => 'path to mysqldump',
'type' => 'text',
'required' => '',
'allowed' => ''
),
'csp' => array(
'name' => 'csp',
'value' => 'default-src \'self\'; script-src \'self\' \'nonce-[nonce]\' \'unsafe-inline\'; style-src \'self\' \'unsafe-inline\';',
'description' => 'Content Security Policy',
'type' => 'text',
'required' => '',
'allowed' => ''
),
'exclude_countries' => array(
'name' => 'exclude_countries',
'value' => '',
'description' => 'comma separated list of excluded country codes (use "USA_only" to exclude all but USA)',
'type' => 'text',
'required' => '',
'allowed' => ''
),
'send_mail_staff' => array(
'name' => 'send_mail_staff',
'value' => 'Y',
'description' => 'send staff email notifications',
'type' => 'checkbox',
'required' => '',
'allowed' => ''
),
'send_mail_contact' => array(
'name' => 'send_mail_contact',
'value' => 'Y',
'description' => 'send submitter email notifications',
'type' => 'checkbox',
'required' => '',
'allowed' => ''
),
'allow_withdraw' => array(
'name' => 'allow_withdraw',
'value' => '',
'description' => 'allow submitters to withdraw their own submissions',
'type' => 'checkbox',
'required' => '',
'allowed' => ''
),
'show_date_paid' => array(
'name' => 'show_date_paid',
'value' => '',
'description' => 'show date paid on submissions page',
'type' => 'checkbox',
'required' => '',
'allowed' => ''
),
'show_payment_fields' => array(
'name' => 'show_payment_fields',
'value' => '',
'description' => 'show credit card fields on submission forms',
'type' => 'checkbox',
'required' => '',
'allowed' => ''
),
'check_updates' => array(
'name' => 'check_updates',
'value' => 'Y',
'description' => 'check for new versions of Submission Manager',
'type' => 'checkbox',
'required' => '',
'allowed' => ''
)
),
'action_types' => array(
1 => array(
'action_type_id' => 1,
'name' => 'accept',
'description' => '',
'status' => 'accepted',
'active' => 'Y',
'access_groups' => '1,2,3,4,5',
'from_reader' => '',
'subject' => 'Congratulations from [company_name]!',
'body' => 'Dear [writer]:' . "\n\n" . 'Congratulations! Your submission "[title]" has been selected for publication in [company_name].' . "\n\n" . '[message]' . "\n\n" . 'Sincerely,' . "\n\n" . 'The Editors of [company_name]'
),
2 => array(
'action_type_id' => 2,
'name' => 'withdraw',
'description' => '',
'status' => 'withdrawn',
'active' => 'Y',
'access_groups' => '1,2,3,4,5',
'from_reader' => '',
'subject' => 'Your submission to [company_name]',
'body' => 'Dear [writer]:' . "\n\n" . 'Your submission "[title]" has been withdrawn from consideration by [company_name].' . "\n\n" . '[message]' . "\n\n" . 'Sincerely,' . "\n\n" . 'The Editors of [company_name]'
),
3 => array(
'action_type_id' => 3,
'name' => 'forward 1',
'description' => '',
'status' => 'received',
'active' => 'Y',
'access_groups' => '1,2,3,4,5',
'from_reader' => '',
'subject' => '[company_name] submission #[submission_id] forwarded by [reader]',
'body' => '[reader] has forwarded you the submission "[title]" by [writer]. Please visit [app_url] to log in and check your forwarded submissions.' . "\n\n" . '[message]'
),
4 => array(
'action_type_id' => 4,
'name' => 'forward 2',
'description' => '',
'status' => 'received',
'active' => 'Y',
'access_groups' => '1,2,3,4,5',
'from_reader' => '',
'subject' => '[company_name] submission #[submission_id] forwarded by [reader]',
'body' => '[reader] has forwarded you the submission "[title]" by [writer]. Please visit [app_url] to log in and check your forwarded submissions.' . "\n\n" . '[message]'
),
5 => array(
'action_type_id' => 5,
'name' => 'forward 3',
'description' => '',
'status' => 'received',
'active' => 'Y',
'access_groups' => '1,2,3,4,5',
'from_reader' => '',
'subject' => '[company_name] submission #[submission_id] forwarded by [reader]',
'body' => '[reader] has forwarded you the submission "[title]" by [writer]. Please visit [app_url] to log in and check your forwarded submissions.' . "\n\n" . '[message]'
),
6 => array(
'action_type_id' => 6,
'name' => 'forward 4',
'description' => '',
'status' => 'received',
'active' => 'Y',
'access_groups' => '1,2,3,4,5',
'from_reader' => '',
'subject' => '[company_name] submission #[submission_id] forwarded by [reader]',
'body' => '[reader] has forwarded you the submission "[title]" by [writer]. Please visit [app_url] to log in and check your forwarded submissions.' . "\n\n" . '[message]'
),
7 => array(
'action_type_id' => 7,
'name' => 'reject 1',
'description' => '',
'status' => 'declined',
'active' => 'Y',
'access_groups' => '1,2,3,4,5',
'from_reader' => '',
'subject' => 'Your submission to [company_name]',
'body' => 'Dear Writer:' . "\n\n" . 'We appreciate the opportunity to read your work, but unfortunately this submission was not a right fit for [company_name].' . "\n\n" . 'Thank you for trying us.' . "\n\n" . 'Sincerely,' . "\n\n" . 'The Editors of [company_name]'
),
8 => array(
'action_type_id' => 8,
'name' => 'reject 2',
'description' => '',
'status' => 'declined',
'active' => 'Y',
'access_groups' => '1,2,3,4,5',
'from_reader' => '',
'subject' => 'Your submission to [company_name]',
'body' => 'Dear [writer]:' . "\n\n" . 'Thank you for sending us "[title]". We really enjoyed this piece, but we didn\'t feel it was right for [company_name].' . "\n\n" . 'We hope that you will continue to send us your work.' . "\n\n" . 'Sincerely,' . "\n\n" . 'The Editors of [company_name]'
),
9 => array(
'action_type_id' => 9,
'name' => 'reject 3',
'description' => '',
'status' => 'declined',
'active' => 'Y',
'access_groups' => '1,2,3,4,5',
'from_reader' => '',
'subject' => 'Your submission to [company_name]',
'body' => 'Dear [writer]:' . "\n\n" . 'Thank you for sending us "[title]".' . "\n\n" . '[message]' . "\n\n" . 'Unfortunately this particular piece was not a right fit for [company_name], but we were very impressed by your writing. We hope that you will feel encouraged by this short note and send us something else.' . "\n\n" . 'We look forward to reading more.' . "\n\n" . 'Sincerely,' . "\n\n" . 'The Editors of [company_name]'
),
10 => array(
'action_type_id' => 10,
'name' => 'reject 4',
'description' => '',
'status' => 'declined',
'active' => 'Y',
'access_groups' => '1,2,3,4,5',
'from_reader' => '',
'subject' => 'Your submission to [company_name]',
'body' => '[message]'
)
),
'file_types' => array(
'doc' => array('ext' => 'doc'),
'docx' => array('ext' => 'docx'),
'pdf' => array('ext' => 'pdf'),
'rtf' => array('ext' => 'rtf'),
'txt' => array('ext' => 'txt')
),
'fields' => array(
'first_name' => array(
'field' => 'first_name',
'name' => 'first name',
'type' => 'text',
'section' => 'contact',
'value' => '',
'maxlength' => 50,
'enabled' => 'Y',
'required' => 'Y'
),
'last_name' => array(
'field' => 'last_name',
'name' => 'last name',
'type' => 'text',
'section' => 'contact',
'value' => '',
'maxlength' => 50,
'enabled' => 'Y',
'required' => 'Y'
),
'email' => array(
'field' => 'email',
'name' => 'email',
'type' => 'text',
'section' => 'contact',
'value' => '',
'maxlength' => 50,
'enabled' => 'Y',
'required' => 'Y'
),
'company' => array(
'field' => 'company',
'name' => 'company',
'type' => 'text',
'section' => 'contact',
'value' => '',
'maxlength' => 50,
'enabled' => 'Y',
'required' => ''
),
'address1' => array(
'field' => 'address1',
'name' => 'address 1',
'type' => 'text',
'section' => 'contact',
'value' => '',
'maxlength' => 50,
'enabled' => 'Y',
'required' => 'Y'
),
'address2' => array(
'field' => 'address2',
'name' => 'address 2',
'type' => 'text',
'section' => 'contact',
'value' => '',
'maxlength' => 50,
'enabled' => 'Y',
'required' => ''
),
'city' => array(
'field' => 'city',
'name' => 'city',
'type' => 'text',
'section' => 'contact',
'value' => '',
'maxlength' => 50,
'enabled' => 'Y',
'required' => 'Y'
),
'state' => array(
'field' => 'state',
'name' => 'state',
'type' => 'select',
'section' => 'contact',
'value' => '',
'maxlength' => 2,
'enabled' => 'Y',
'required' => ''
),
'zip' => array(
'field' => 'zip',
'name' => 'zip',
'type' => 'text',
'section' => 'contact',
'value' => '',
'maxlength' => 50,
'enabled' => 'Y',
'required' => ''
),
'country' => array(
'field' => 'country',
'name' => 'country',
'type' => 'select',
'section' => 'contact',
'value' => 'USA',
'maxlength' => 3,
'enabled' => 'Y',
'required' => 'Y'
),
'phone' => array(
'field' => 'phone',
'name' => 'phone',
'type' => 'text',
'section' => 'contact',
'value' => '',
'maxlength' => 50,
'enabled' => 'Y',
'required' => ''
),
'password' => array(
'field' => 'password',
'name' => 'password',
'type' => 'password',
'section' => 'contact',
'value' => '',
'maxlength' => 72,
'enabled' => 'Y',
'required' => 'Y'
),
'password2' => array(
'field' => 'password2',
'name' => 'confirm password',
'type' => 'password',
'section' => 'contact',
'value' => '',
'maxlength' => 72,
'enabled' => 'Y',
'required' => 'Y'
),
'mailing_list' => array(
'field' => 'mailing_list',
'name' => 'join our mailing list',
'type' => 'checkbox',
'section' => 'contact',
'value' => 'Y',
'maxlength' => 1,
'enabled' => 'Y',
'required' => ''
),
'writer' => array(
'field' => 'writer',
'name' => 'writer name',
'type' => 'text',
'section' => 'submission',
'value' => '',
'maxlength' => 50,
'enabled' => 'Y',
'required' => ''
),
'title' => array(
'field' => 'title',
'name' => 'submission title',
'type' => 'text',
'section' => 'submission',
'value' => '',
'maxlength' => 255,
'enabled' => 'Y',
'required' => 'Y'
),
'genre_id' => array(
'field' => 'genre_id',
'name' => 'genre',
'type' => 'select',
'section' => 'submission',
'value' => '',
'maxlength' => 100,
'enabled' => 'Y',
'required' => ''
),
'file' => array(
'field' => 'file',
'name' => 'file',
'type' => 'file',
'section' => 'submission',
'value' => '',
'maxlength' => 1048576,
'enabled' => 'Y',
'required' => 'Y'
),
'comments' => array(
'field' => 'comments',
'name' => 'comments',
'type' => 'textarea',
'section' => 'submission',
'value' => '',
'maxlength' => 3000,
'enabled' => 'Y',
'required' => ''
),
'cc_number' => array(
'field' => 'cc_number',
'name' => 'credit card number',
'type' => 'text',
'section' => 'payment',
'value' => '',
'maxlength' => 50,
'enabled' => 'Y',
'required' => ''
),
'cc_exp_month' => array(
'field' => 'cc_exp_month',
'name' => 'expiration month',
'type' => 'select',
'section' => 'payment',
'value' => '',
'maxlength' => 2,
'enabled' => 'Y',
'required' => ''
),
'cc_exp_year' => array(
'field' => 'cc_exp_year',
'name' => 'expiration year',
'type' => 'select',
'section' => 'payment',
'value' => '',
'maxlength' => 4,
'enabled' => 'Y',
'required' => ''
),
'cc_csc' => array(
'field' => 'cc_csc',
'name' => 'card security code',
'type' => 'text',
'section' => 'payment',
'value' => '',
'maxlength' => 4,
'enabled' => 'Y',
'required' => ''
)
),
'genres' => array(
1 => array(
'genre_id' => 1,
'name' => 'poetry',
'submission_limit' => 0,
'redirect_url' => '',
'price' => '0.00',
'active' => 'Y',
'blind' => ''
),
2 => array(
'genre_id' => 2,
'name' => 'fiction',
'submission_limit' => 0,
'redirect_url' => '',
'price' => '0.00',
'active' => 'Y',
'blind' => ''
),
3 => array(
'genre_id' => 3,
'name' => 'nonfiction',
'submission_limit' => 0,
'redirect_url' => '',
'price' => '0.00',
'active' => 'Y',
'blind' => ''
)
),
'groups' => array(
'admin' => array(
'name' => 'admin',
'allowed_forwards' => 'admin,editor,1,2,3,4,5',
'blind' => ''
),
'editor' => array(
'name' => 'editor',
'allowed_forwards' => 'admin,editor,1,2,3,4,5',
'blind' => ''
),
1 => array(
'name' => 1,
'allowed_forwards' => 'admin,editor,1,2,3,4,5',
'blind' => ''
),
2 => array(
'name' => 2,
'allowed_forwards' => 'admin,editor,1,2,3,4,5',
'blind' => ''
),
3 => array(
'name' => 3,
'allowed_forwards' => 'admin,editor,1,2,3,4,5',
'blind' => ''
),
4 => array(
'name' => 4,
'allowed_forwards' => 'admin,editor,1,2,3,4,5',
'blind' => ''
),
5 => array(
'name' => 5,
'allowed_forwards' => 'admin,editor,1,2,3,4,5',
'blind' => ''
)
)
);
foreach ($defaults['config'] as $key => $value) {$config_defaults[$key] = $value['value'];}
?>