forked from hans/lwt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathajax_show_sentences.php
More file actions
31 lines (24 loc) · 1.05 KB
/
ajax_show_sentences.php
File metadata and controls
31 lines (24 loc) · 1.05 KB
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
<?php
/**************************************************************
"Learning with Texts" (LWT) is released into the Public Domain.
This applies worldwide.
In case this is not legally possible, any entity is granted the
right to use this work for any purpose, without any conditions,
unless such conditions are required by law.
Developed by J. Pierre in 2011
***************************************************************/
/**************************************************************
Call: ajax_show_sentences.php?...
... lang=[langid] ... language
... word=[word] ... word in lowercase
... sentctl=[sentctl] ... sentence js control
Show sentences in edit_texts.php, etc.
***************************************************************/
include "connect.inc.php";
include "settings.inc.php";
include "utilities.inc.php";
$lang = $_POST['lang'] + 0;
$word = stripTheSlashesIfNeeded($_POST['word']);
$ctl = stripTheSlashesIfNeeded($_POST['ctl']);
echo get20Sentences($lang,$word,$ctl, (int) getSettingWithDefault('set-term-sentence-count'));
?>