";
// print_r($sgmt_rslt);
$say_dtls=explode(" ",$invr_bzv1);
$void_sgmt=$invr_bzv1;
// print_r($say_dtls);
// print_r($spec_rslt);
$spec_dtls=explode("@",$spec_rslt);
// print_r($spec_dtls);
// echo "
VOID SGMT ".$void_sgmt;
// print_r($sgmt_rslt);
$data_sw=0;
// echo "Responses |
";
foreach($sgmt_rslt as $sgmt_key => $sgmt_val)
{
// echo "
SGMT KEY ".$sgmt_key;
$aiml_rslt=xtrt_aiml($sgmt_key);
// print_r($aiml_rslt);
$ad=0;
foreach($aiml_rslt as $aiml_key => $aiml_val)
{
$aiml_dtls=explode("@",$aiml_key);
// print_r($aiml_dtls);
if ($ad < 6)
{
if (substr_count($sgmt_key," ") > 1)
{
$data_sw=1;
$sgmt_key=trim($sgmt_key);
if ($srelt != $sgmt_key)
{
$srelt=$sgmt_key;
echo "".$sgmt_key."
";
}
$aiml_long=$aiml_dtls[2];
$aiml_long=str_replace($sgmt_key,"...",$aiml_long);
// echo "".$sgmt_key." ".$aiml_long."... |
";
}
if (substr_count($sgmt_key," ") < 2)
{
$data_sw=1;
$sgmt_key=trim($sgmt_key);
if ($lrelt != $sgmt_key)
{
$lrelt=$sgmt_key;
echo "".$sgmt_key."
";
}
// echo "COUNT SGMT KEY SHRT ".substr_count($sgmt_key," ")."
";
$aiml_shrt=$aiml_dtls[1];
$aiml_shrt=str_replace($sgmt_key,"...",$aiml_shrt);
// echo "".$aiml_shrt."... |
";
}
$ad=$ad+1;
}
}
if ($data_sw == 0)
{
$wtvr_rslt=xtrt_xxxx($sgmt_key,$invr_taal,"wtvr",4);
foreach($wtvr_rslt as $wtvr_key => $wtvr_val)
$wtvr_dtls=explode("!!",$wtvr_key);
// print_r($wtvr_dtls);
$wtvr_domn=$wtvr_dtls[2];
echo "".$wtvr_domn." |
";
}
echo "
";
// echo "
DEEL TWEE INVR BZV1 ".$invr_bzv1." INVR BZV2 ".$invr_bzv2." INVR LNKS ".$invr_lnks." INVR RCHS ".$invr_rchs;
// echo "
SGMT KEY ".$sgmt_key." VAL ".$sgmt_val;
$tlkd_rslt=smta_tlkd($sgmt_key."@tlkd");
// print_r($tlkd_rslt);
// $tlkd_rslt=smts_tlkd($invr_bzv1);
// asort($tlkd_rslt);
foreach($tlkd_rslt as $tlkd_key => $tlkd_val)
{
// echo "
TLKD KEY ".$tlkd_key." TLKD VAL ".$tlkd_val;
$tlkd_itms=explode("@",$tlkd_key);
$tlkd_gram=$tlkd_itms[0];
$tlkd_pos=explode(" ",$tlkd_gram);
// print_r($tlkd_pos);
if (count($tlkd_pos) > 1)
{
$tlkd_mult=$tlkd_pos[0];
$tlkd_word=$tlkd_pos[1];
}
$tlkd_text=$tlkd_itms[1];
$tlkd_array[$tlkd_text."@".$tlkd_val."@".$tlkd_word]=$tlkd_array[$tlkd_text."@".$tlkd_val."@".$tlkd_word]+1;
}
asort($tlkd_array);
// echo "
";
// print_r($tlkd_array);
$srelt="xxxxxx";
$swr=0;
$swt=0;
foreach($tlkd_array as $tlkd_key => $tlkd_val)
{
$tlkd_itms=explode("@",$tlkd_key);
$tlkd_text=$tlkd_itms[0];
$tlkd_word=$tlkd_itms[1];
$tlkd_gram=$tlkd_itms[2];
$tlkd_prts=explode(".",$tlkd_word);
// print_r($tlkd_prts);
$tlkd_lnks=$tlkd_prts[0];
$tlkd_rchs=$tlkd_prts[1];
// echo "
SRELT ".$srelt." TLKD WORD ".$tlkd_word." TLKD TEXT ".$tlkd_text;
$void_sgmt=strtolower($void_sgmt);
if ($srelt != $tlkd_text and $tlkd_text != null and substr_count($tlkd_text," ") > 1)
{
$srelt=$tlkd_text;
if ($sgmt_key != $tlkd_text and $swr == 0)
{
$sgmt_key=trim($sgmt_key);
// echo "
Geen response voor ".$sgmt_key. " en ".$tlkd_text;
$void_sgmt=str_replace($sgmt_key,"".$sgmt_key."",$void_sgmt);
$smta_rslt=xtrt_xxxx($tlkd_text,$invr_taal,"wtvr",4);
foreach ($smta_rslt as $smta_key => $smta_val)
{
$smta_dtls=explode("!!",$smta_key);
$smta_lnks=$smta_dtls[3];
$smta_rchs=$smta_dtls[4];
if ($arelt != $smta_lnks)
{
echo "".substr($smta_lnks,0,64)."... |
";
$arelt=$smts_lnks;
}
}
$swr=1;
// echo "".$sgmt_key." | ".$tlkd_word."-".$tlkd_gram." |
";
// echo "".$sgmt_key." |
";
}
if ($sgmt_key == $tlkd_text and $swt == 0)
{
$sgmt_key=trim($sgmt_key);
echo "
Response voor ".$sgmt_key;
$swt=1;
// echo "
SGMT KEY ".$sgmt_key." VOID SGMT ".$void_sgmt;
// echo "
SGMT KEY ".$sgmt_key." VOID SGMT ".$void_sgmt;
// echo "".$sgmt_key." | ".$tlkd_word."-".$tlkd_gram." |
";
// echo "".$sgmt_key." |
";
$sgmt_key=trim($sgmt_key);
$void_sgmt=str_replace($sgmt_key,"".$sgmt_key."",$void_sgmt);
}
}
// echo "
SGMT KEY ".urlencode($sgmt_key)." VAL ".urlencode($itms_val);
}
}
// echo "
SGMT KEY ".$sgmt_key." VOID SGMT ".$void_sgmt;
// echo "
SGMT KEY ".$sgmt_key." VOID SGMT ".$void_sgmt;
// echo "".$sgmt_key." | ".$tlkd_word."-".$tlkd_gram." |
";
// echo "".$sgmt_key." |
";
// echo "Ik heb wel een antwoord op ".$sgmt_key." Maar niet voor ".$void_sgmt."
";
echo "
";
echo "