Esempio n. 1
0
run_template2(add_word("capiō"), get_template("conj-3-io active"), ['cap', 'cap', 'cēp', 'capt'], []);
run_template2(add_word("cōnficiō"), get_template("conj-3-io active"), ['cōnfic', 'cōnfic', 'cōnfēc', 'cōnfect'], []);
run_template2(add_word("coniciō"), get_template("conj-3-io active"), ['conic', 'conic', 'coniēc', 'coniect'], []);
run_template2(add_word("cōnspiciō"), get_template("conj-3-io active"), ['cōnspic', 'cōnspic', 'cōnspex', 'cōnspect'], []);
run_template2(add_word("effugiō"), get_template("conj-3-io active"), ['effug', 'effug', 'effūg', 'effugit'], []);
run_template2(add_word("excipiō"), get_template("conj-3-io active"), ['excip', 'excip', 'excēp', 'except'], []);
run_template2(add_word("faciō"), get_template("conj-3-io active"), ['fac', 'fac', 'fēc', 'fact'], []);
run_template2(add_word("fugiō"), get_template("conj-3-io active"), ['fug', 'fug', 'fūg', 'fugit'], []);
run_template2(add_word("jaciō"), get_template("conj-3-io active"), ['jac', 'jac', 'iēc', 'jact'], []);
run_template2(add_word("īnspiciō"), get_template("conj-3-io active"), ['īnspic', 'īnspic', 'īnspex', 'īnspect'], []);
run_template2(add_word("olfaciō"), get_template("conj-3-io active"), ['olfac', 'olfac', 'olfēc', 'olfact'], []);
run_template2(add_word("perficiō"), get_template("conj-3-io active"), ['perfic', 'perfic', 'perfēc', 'perfect'], []);
run_template2(add_word("adveniō"), get_template("conj-4 active"), ['adven', 'adven', 'advēn', 'advent'], []);
run_template2(add_word("aperiō"), get_template("conj-4 active"), ['aper', 'aper', 'aperu', 'apert'], []);
run_template2(add_word("audiō"), get_template("conj-4 active"), ['aud', 'aud', 'audīv', 'audīt'], []);
run_template2(add_word("custōdiō"), get_template("conj-4 active"), ['custōd', 'custōd', 'custōdīv', 'custōdīt'], []);
run_template2(add_word("dormiō"), get_template("conj-4 active"), ['dorm', 'dorm', 'dormīv', 'dormīt'], []);
run_template2(add_word("ēsuriō"), get_template("conj-4 no-supine"), ['ēsur', 'ēsur', 'ēsurīv', ''], []);
run_template2(add_word("feriō"), get_template("conj-4 active"), ['fer', 'fer', 'ferīv', 'ferīt'], []);
run_template2(add_word("fīniō"), get_template("conj-4 active"), ['fīn', 'fīn', 'fīnīv', 'fīnīt'], []);
run_template2(add_word("impediō"), get_template("conj-4 active"), ['imped', 'imped', 'impedīv', 'impedīt'], []);
run_template2(add_word("inveniō"), get_template("conj-4 active"), ['inven', 'inven', 'invēn', 'invent'], []);
run_template2(add_word("nesciō"), get_template("conj-4 active"), ['nesc', 'nesc', 'nescīv', 'nescīt'], []);
run_template2(add_word("obdormiō"), get_template("conj-4 active"), ['obdorm', 'obdorm', 'obdormīv', 'obdormīt'], []);
run_template2(add_word("pūniō"), get_template("conj-4 active"), ['pūn', 'pūn', 'pūnīv', 'pūnīt'], []);
run_template2(add_word("sciō"), get_template("conj-4 active"), ['sc', 'sc', 'scīv', 'scīt'], []);
run_template2(add_word("veniō"), get_template("conj-4 active"), ['ven', 'ven', 'vēn', 'vent'], [['person-1', 'passive'], ['person-2', 'passive']]);
echo "DONE!!";
?>
</body></head>
Esempio n. 2
0
<?php 
if (isset($_POST['submit'])) {
    //checks if a form named submit has been added
    if (empty($_POST["word"])) {
        echo "<h3>Word field blank</h3>";
        if (empty($_POST["def"])) {
            echo "<h3>Definition field blank</h3>";
            if (empty($_POST["pos"])) {
                echo "<h3>Part of Speech not selected</h3>";
            }
        }
    } else {
        if (!check_word($_POST['word'])) {
            //checks the name part of the form to see if it already exists
            add_word($_POST);
        } else {
            print "<div><h3>That word already exists in the DB</h3></div>";
        }
    }
}
?>

<title>Dictionary | The Front Page!</title>

<div class = "head">
<link rel="stylesheet" href="jquery/jquery-ui.min.css">
<script src="jquery/external/jquery/jquery.js"></script>
<script src="jquery/jquery-ui.min.js"></script>
<link rel="stylesheet" type="text/css" href="style.css">
<link href='https://fonts.googleapis.com/css?family=Tinos:400,400italic|Crete+Round:400,400italic|Lora:400,400italic|Bitter:400,400italic|Raleway:400,500,600|Fjalla+One|Archivo+Narrow:400,700|Telex' rel='stylesheet' type='text/css'>
Esempio n. 3
0
            $w = $w[0];
            return $w;
        }
    }
}
function get_template($spart)
{
    return safe_get(0, defaultDB()->searcher()->spart($spart)->name($spart)->only_with_attr(ATTR("template", "true"))->all());
}
function run_template2($word, $t, $arg, $definition)
{
    if (!$ignore) {
        $ignore = [];
    }
    if ($word !== NULL and $definition) {
        $d = DEFINITION(defaultDB(), NULL, $word);
        $d->set_lang("en");
        $d->set_value($definition);
        $d = $word->add_definition($d);
    }
    if ($word !== NULL and $t !== NULL) {
        run_template($word, "", $t, $arg, [], [], FALSE);
    }
}
run_template2(add_word("Angla", "adjective"), get_template('adjective'), ["Angl"], "English");
run_template2(add_word("ĝuste", "adverb"), NULL, ["ĝust"], "Precisely");
run_template2(add_word("ĉar", "conjunction"), NULL, ["ĉar"], "Since");
run_template2(add_word("Aeropago", "noun"), get_template('noun'), ["Aeropag"], "Areopagus");
run_template2(add_word("ĵuri", "verb"), get_template('verb'), ["ĵur"], "Swear (jud.)");
run_template2(add_word("ĉiam", "preposition-conjunction"), NULL, ["ĉiam"], "Always");
echo "DONE!!";
Esempio n. 4
0
run_template2(add_word("arripiō"), get_template("3rd conjugation -io (full)"), ['arrip', 'arripu', 'arrept'], []);
run_template2(add_word("capiō"), get_template("3rd conjugation -io (full)"), ['cap', 'cēp', 'capt'], []);
run_template2(add_word("cōnficiō"), get_template("3rd conjugation -io (full)"), ['cōnfic', 'cōnfēc', 'cōnfect'], []);
run_template2(add_word("coniciō"), get_template("3rd conjugation -io (full)"), ['conic', 'coniēc', 'coniect'], []);
run_template2(add_word("cōnspiciō"), get_template("3rd conjugation -io (full)"), ['cōnspic', 'cōnspex', 'cōnspect'], []);
run_template2(add_word("effugiō"), get_template("3rd conjugation -io (full)"), ['effug', 'effūg', 'effugit'], []);
run_template2(add_word("excipiō"), get_template("3rd conjugation -io (full)"), ['excip', 'excēp', 'except'], []);
run_template2(add_word("faciō"), get_template("3rd conjugation -io (full)"), ['fac', 'fēc', 'fact'], []);
run_template2(add_word("fugiō"), get_template("3rd conjugation -io (full)"), ['fug', 'fūg', 'fugit'], []);
run_template2(add_word("jaciō"), get_template("3rd conjugation -io (full)"), ['jac', 'iēc', 'jact'], []);
run_template2(add_word("īnspiciō"), get_template("3rd conjugation -io (full)"), ['īnspic', 'īnspex', 'īnspect'], []);
run_template2(add_word("olfaciō"), get_template("3rd conjugation -io (full)"), ['olfac', 'olfēc', 'olfact'], []);
run_template2(add_word("perficiō"), get_template("3rd conjugation -io (full)"), ['perfic', 'perfēc', 'perfect'], []);
run_template2(add_word("adveniō"), get_template("4th conjugation (full)"), ['adven', 'advēn', 'advent'], []);
run_template2(add_word("aperiō"), get_template("4th conjugation (full)"), ['aper', 'aperu', 'apert'], []);
run_template2(add_word("audiō"), get_template("4th conjugation (full)"), ['aud', 'audīv', 'audīt'], []);
run_template2(add_word("custōdiō"), get_template("4th conjugation (full)"), ['custōd', 'custōdīv', 'custōdīt'], []);
run_template2(add_word("dormiō"), get_template("4th conjugation (full)"), ['dorm', 'dormīv', 'dormīt'], []);
run_template2(add_word("ēsuriō"), get_template("4th conjugation (full)"), ['ēsur', 'ēsurīv', ''], [['passive'], ['supine-2'], ['gerundive'], ['supine-1'], ['future', 'participle'], ['future', 'infinitive']]);
run_template2(add_word("feriō"), get_template("4th conjugation (full)"), ['fer', 'ferīv', 'ferīt'], []);
run_template2(add_word("fīniō"), get_template("4th conjugation (full)"), ['fīn', 'fīnīv', 'fīnīt'], []);
run_template2(add_word("impediō"), get_template("4th conjugation (full)"), ['imped', 'impedīv', 'impedīt'], []);
run_template2(add_word("inveniō"), get_template("4th conjugation (full)"), ['inven', 'invēn', 'invent'], []);
run_template2(add_word("nesciō"), get_template("4th conjugation (full)"), ['nesc', 'nescīv', 'nescīt'], []);
run_template2(add_word("obdormiō"), get_template("4th conjugation (full)"), ['obdorm', 'obdormīv', 'obdormīt'], []);
run_template2(add_word("pūniō"), get_template("4th conjugation (full)"), ['pūn', 'pūnīv', 'pūnīt'], []);
run_template2(add_word("sciō"), get_template("4th conjugation (full)"), ['sc', 'scīv', 'scīt'], []);
run_template2(add_word("veniō"), get_template("4th conjugation (full)"), ['ven', 'vēn', 'vent'], [['person-1', 'passive'], ['person-2', 'passive']]);
?>
</body></head>