-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsave_bilingual_formats.php
29 lines (29 loc) · 1.2 KB
/
save_bilingual_formats.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
<?php
if ($_POST['format'] == 'txt') {
require_once('bilingual-formats/scripts/save_bilingual_txt.php');
saveBilingualTxt($_POST['address1'],
$_POST['address2'],
$_POST['outputPath']);
} else if ($_POST['format'] == 'fb2') {
require_once('bilingual-formats/scripts/save_bilingual_fb2.php');
saveBilingualFb2($_POST['address1'],
$_POST['address2'],
$_POST['outputPath'],
$_POST['coverPath'],
$_POST['illustrationsDir'],
$_POST['lang1'],
$_POST['lang2'],
$_POST['coverPath'],
$_POST['bookID']);
} else if ($_POST['format'] == 'epub') {
require_once('bilingual-formats/scripts/save_bilingual_epub.php');
saveBilingualEpub($_POST['address1'],
$_POST['address2'],
$_POST['outputPath'],
$_POST['coverPath'],
$_POST['illustrationsDir'],
$_POST['lang1'],
$_POST['lang2'],
$_POST['coverPath'],
$_POST['bookID']);
}