";
$docb = false;
$word = "cats";
if (isset($_GET['word'])) $word = urldecode($_GET['word']);
if (isset($_POST['word'])) $word = urldecode($_POST['word']);
$words=explode(";", $word);
$options = "word: '" . $words[sizeof($words) - 1] . "'";
if (isset($_GET['format'])) {
$options.=", " . " format: '" . strtolower(urldecode($_GET['format'])) . "'";
} else if (isset($_POST['format'])) {
$options.=", " . " format: '" . strtolower(urldecode($_POST['format'])) . "'";
}
if (strpos($options, "explicit") !== false) {
$lprefix="'," . $cnt . ",1,0]";
$fprefix="[" . $cnt . ",'";
$hbit="['id','childLabel','parent','size','color']";
}
if (isset($_GET['type'])) {
$options.=", " . " type: '" . strtolower(urldecode($_GET['type'])) . "'";
} else if (isset($_POST['type'])) {
$options.=", " . " type: '" . strtolower(urldecode($_POST['type'])) . "'";
}
if (sizeof($words) > 1) {
$words[0] = str_replace("'", " ", str_replace('"', ' ', $words[0]));
if (strpos(strtolower($words[0]), "explicit") !== false) {
$options.=", " . " format: 'explicit'";
$fprefix="[" . $cnt . ",'";
$lprefix="'," . $cnt . ",1,0]";
$lprefix="',-1,1,0]";
$hbit="['id','childLabel','parent','size','color']";
} else { //if (strpos(strtolower($words[0]), "implicit") !== false) {
$options.=", " . " format: 'implicit'";
}
if (strpos(strtolower($words[0]), "double") !== false) {
$options.=", " . " type: 'double'";
} else if (strpos(strtolower($words[0]), "prefix") !== false) {
$options.=", " . " type: 'prefix'";
} else if (strpos(strtolower($words[0]), "suffix") !== false) {
$options.=", " . " type: 'suffix'";
}
} else {
$options.=", " . " format: 'implicit'";
}
if (strpos($options, "explicit") !== false) {
$fextras="