Begin met praten




Uiting
Taal
/////////////////////// $long_wrds=trim($invr_bzv1); // echo "
LONG WRDS ".$long_wrds; $slong_wrds=str_replace(" ","+",$long_wrds); echo ""; echo ""; echo ""; /////////////////////// // echo "
Bepaal taal van de invoer"; $taal_rslt=bepl_taal($invr_bzv1); arsort($taal_rslt); // print_r($taal_rslt); $taal_sw=0; foreach($taal_rslt as $taal_key => $taal_val) { if ($taal_sw == 0) { $taal_sw = 1; $text_taal=$taal_key; } } // echo "
TEXT TAAL ".$text_taal." INVR TAAL ".$invr_taal; $invr_taal=$text_taal; if($invr_taal== null) { $invr_land="nederland"; $invr_taal="Nederlands"; } /////// // echo "
INVR FILE ".urlencode($invr_file); $invr_file=str_replace("!","",$invr_file); if (substr($invr_file,2,4) == "data") { $rchs_dtls=explode("/",$invr_file); // print_r($rchs_dtls); $rchs_corp=$rchs_dtls[2]; $rchs_file=$rchs_dtls[3]; // echo "

"; } // echo "
INVR CORP ".$invr_corp." INVR NAME ".$invr_name." INVR bzv1 ".$invr_bzv1." INVR bzv2 ".$invr_bzv2."INVR LGRM ".$invr_lgrm." INVR CHBT ".$invr_chbt." INVR FILE ".$invr_file." INVR DOMN ".$invr_domn." INVR SESS ".$invr_sess; echo "
UTTERANCE ".$invr_bzv1; echo "
De taal is ".$invr_taal; if ($userip != "81.207.16.26") { // echo "This action cannot be completed for this IP Address. Please contact us"; // exit; } $requester= $_SERVER["HTTP_REFERER"]; // echo "
REFERRER ".$requester; $invr_ipad=$userip; $date = gmdate("Y-m-d"); setlocale(LC_ALL, 'nl_NL'); $localtime = localtime(); $tijd=$localtime[2].":".$localtime[1].":".$localtime[0]; $date = gmdate("Y-m-d")." ".$tijd; // echo $date; $smta_rslt=""; $sw=0; echo "
"; $aiml_rslt=xtrt_aiml($invr_bzv1); // print_r($aiml_rslt); if (count($aiml_rslt) > 0) { foreach ($aiml_rslt as $aiml_key => $aiml_val) { // echo "
".$aiml_key."
"; $aiml_itms=explode("@",$aiml_key); // print_r($aiml_itms); $aiml_ptrn=$aiml_itms[2]; $aiml_tmpl=$aiml_itms[3]; $aiml_intn=$aiml_itms[2]; // echo "
".$aiml_ptrn."
".$aiml_tmpl." Intent ".$aiml_intn."
"; if ($irelt != $aiml_intn and $aiml_intn != "admin_added_aiml" and $an < 4 and $aiml_intn != "admin_added.aiml") { $an=$an+1; $irelt=$aiml_intn; $aiml_intn=str_replace(","," ",$aiml_intn); $aiml_intn=str_replace("-"," ",$aiml_intn); $saiml_intn=str_replace(" ","+",$aiml_intn); // echo "
".$aiml_ptrn."
".$aiml_tmpl." Intent ".$aiml_intn."
"; // echo ""; // echo "
".$aiml_intn."

"; } } } $tlkd_rslt=smta_tlkd($invr_bzv1."@scnd"); $smta_rslt=smta_tlkd($invr_bzv1."@tlkd"); echo "
"; $invr_bzv1=strtolower($invr_bzv1); // echo "
INVR BZV1 ".$invr_bzv1; foreach($smta_rslt as $smta_key => $smta_val) { $smta_key=strtolower($smta_key); // echo ""; $smta_text=trim($smta_key); $smta_text=str_replace("@ ","@",$smta_key); $smta_text=str_replace(",","",$smta_text); $smta_text=str_replace(" ","",$smta_text); $smta_text=str_replace(" ","",$smta_text); $smta_text=trim($smta_text); $smta_itms=explode("@",$smta_text); asort($smta_itms); // print_r($smta_itms); $smta_sgmt=$smta_itms[1]; if ($smta_sgmt == $invr_bzv1) { $prmr_rslt=xtrt_xxxx($smta_val,$invr_taal,"tlkd"); // print_r($prmr_rslt); // echo ""; } foreach($smta_itms as $itms_key => $itms_val) { // echo ""; } } echo "
".$smta_key."
".$smta_val."
SMTA VAL ".$smta_val."
".$itms_val."
"; ////////////////////// BUILD IPAD TABLE AND COUNTERS //////////// $sql0 = "SELECT * FROM `$invr_tabl` where `rchs` like '%$invr_bzv1%' or `lnks` like '%$invr_bzv1%' or `domn` like '%$invr_bzv1%' order by `domn`,`lnks`, `rchs` asc "; mysql_query("SET CHARACTER SET utf8"); mysql_query("SET NAMES utf8"); $tablresult = mysql_query($sql0, $link); $tabl_num = mysql_num_rows($tablresult); $corp_num=$tabl_num; // echo "
Aantallen ".$sql0." ".$tabl_num." SQL "; while ($row = mysql_fetch_assoc($tablresult)) { $tabl_ipad="LINGVISTICA"; $id=$row['id']; $ipad=$row['ipad']; $ipad_array[$ipad]=$ipad_array[$ipad]+1; $domn=$row['domn']; $domn=str_replace(", ","
",$domn); $domn_array[$domn]=$domn_array[$domn]+1; $lnks=$row['lnks']; $rchs=$row['rchs']; $lnks_array[$rchs]=$lnks_array[$rchs]+1; $vrag_itms=explode("?",$lnks); foreach($vrag_itms as $vrag_key => $vrag_val) { $vrag_array[$vrag_val]=$vrag_array[$vrag_val]+1; } $rchs_array[$rchs]=$rchs_array[$rchs]+1; $taal=$row['taal']; $vgpt_array[$domn."@".$lnks."@".$rchs]=$lnks_array[$vgpt."@".$lnks."@".$rchs]+1; if ($invr_taal == null) { $invr_taal=$taal; } $levl=$row['levl']; $datm=$row['datm']; $taal_array[$taal]=$taal_array[$taal]+1; $tlnks=$tlnks+$lnks; $trchs=$trchs+$rchs; $tlevl=$tlevl+$levl; $file_find=""; } echo ""; echo ""; ksort($vrag_array); foreach($vrag_array as $vrag_key => $vrag_val) { $vrag_splt=explode($invr_bzv1,$vrag_key); // echo "
".$vrag_key; // print_r($vrag_splt); if (count($vrag_splt) > 1) { $sgmt_rslt=bepl_sgmt($vrag_key); // print_r($sgmt_rslt); foreach($sgmt_rslt as $sgmt_key => $sgmt_val) { $sgmt_array[$sgmt_key]=$sgmt_array[$sgmt_key]+1; } } } arsort($sgmt_array); print_r($sgmt_array); echo ""; foreach($sgmt_array as $array_key => $array_val) { if ($array_val > 1) { $array_wrds=explode(" ",$array_key); // print_r($array_wrds); foreach($array_wrds as $wrds_key => $wrds_val) { if (strlen($wrds_val) > 4) { if ($wrelt !== $array_key) { $wrds_array[$wrds_val]=$wrds_array[$wrds_val]+1; echo ""; $wrelt=$array_key; } } } } } echo "
Het gespreksonderwerp ".$invr_bzv1."... levert het volgende resultaat op
OnderwerpVragen
".$array_key."".$array_val."
"; arsort($wrds_array); // print_r($wrds_array); echo ""; foreach($wrds_array as $wrds_key => $wrds_val) { echo ""; } echo "
".$wrds_key."".$wrds_val."
"; // exit; // print_r($lnks_itms); $pinvr_bzv1="".$invr_bzv1.""; // echo "
PINVR BZV1".$pinvr_bzv1; echo ""; echo "
"; // echo ""; foreach($vgpt_array as $vgpt_key => $vgpt_val) { $vgpt_itms=explode("@",$vgpt_key); // print_r($lnks_itms); $pinvr_bzv1="".$invr_bzv1.""; // echo "
PINVR BZV1".$pinvr_bzv1; $domn=$vgpt_itms[0]; $lnks=$vgpt_itms[1]; $rchs=$vgpt_itms[2]; $prchs=str_replace($invr_bzv1,$pinvr_bzv1,$rchs); $plnks=str_replace($invr_bzv1,$pinvr_bzv1,$lnks); // echo "
DOMN ".$domn." LNKS ".$lnks." RCHS ".$rchs; if($drelt != $domn) { echo ""; $drelt=$domn; if($lrelt != $lnks) { echo ""; $lrelt=$lnks; if ($rrelt != $rchs) { echo ""; $rrelt=$rchs; } } } echo ""; } echo "
Reactie
Relatie
Tekstverwijzing
".$text_file." ".filesize($text_file)."
".$domn."
".substr($plnks,0,128)."...
".substr($prchs,0,128)."...
"; echo "


"; echo ""; foreach($domn_array as $domn_key => $domn_val) { echo " "; } $smts_rslt=tlkd_smts($invr_domn); $domn_dtls=explode(" ",$invr_domn); // print_r($domn_dtls); foreach($domn_dtls as $domn_key => $domn_val) { if (strlen($domn_val) > 4) { // echo " ".$domn_val; } } ///////////////////////////////////////////////////////////////////////////////////////////// if ($invr_file != null) { $text_file=$invr_file; echo "
".$invr_file." ".filesize($text_file)."
"; $open_corp=$text_file; $f = fopen($text_file, "r"); echo "
"; while ($line = fgets($f, 10000)) { // include("str-repl-nl.php"); // echo "
STRING BEFORE ".$line; $string = filter_var($line, FILTER_SANITIZE_STRING); // echo "
TITLE ".$string; // echo ""; echo "
IS DIT HET ".$line."".$string."
"; } $f = fopen($text_file, "r"); while ($line = fgets($f, 10000)) { $string=$line; // echo " IS DIT HET ".$line."".$string.""; $title_lngt=(strlen($line)-10); if (substr($line,0,10) == "THE_TITLE:") { $title=substr($line,10,$title_lngt); // $string = filter_var($title, FILTER_SANITIZE_STRING); // echo "
TITLE ".$string; $titl_pntr=ftell($f); if ($titl_sw ==0) { $titl_sw=1; $domn_titl=$title; if ($userip != "81.207.16.26") { // echo "This action cannot be completed for this IP Address. Please contact us"; // break; } break; } } $title_lngt=(strlen($line)-8); if (substr($line,0,8) == "THE_URL:") { $url_line=str_replace("THE_URL:http:","",$url_val); $url_href="https://www.semanta.nl/semanta/".$invr_file; echo "Bezoek onze openingspagina ".$invr_domn.""; $uline=urlencode($line); // echo "
URL ".$uline; $uline=str_replace("%0D%0A","",$uline); $line=urldecode($uline); $line=str_replace(".html","",$line); $line=str_replace(".htm","",$line); $line=str_replace(".php","",$line); $line=str_replace(".asp","",$line); $url=substr($line,8,$title_lngt); $sline=str_replace("http://www.","www",$line); $sline=str_replace("/","slash",$sline); $sline=str_replace(".","dot",$sline); $sline=str_replace(" ","+",$sline); // echo "
SLINE ".$sline; $url_dtls=explode("/",$line); // print_r($url_dtls); $rslt_val=""; foreach($url_dtls as $url_key => $url_val) { $url_val=str_replace("THE_URL:http:","",$url_val); $url_val=str_replace("-"," ",$url_val); $url_val=str_replace("|"," ",$url_val); $url_val=str_replace("_"," ",$url_val); $url_val=str_replace("?"," ",$url_val); $url_val=str_replace("!"," ",$url_val); $url_val=str_replace("*","",$url_val); $url_val=str_replace("="," domein ",$url_val); $url_val=str_replace("&"," ",$url_val); $url_val=str_replace("www.","",$url_val); $url_val=str_replace("."," ",$url_val); $url_val=trim($url_val); // echo "
".urlencode($url_val); $surl_val=str_replace(" ","+",$url_val); $sinvr_bzv1=str_replace(" ","+",$invr_bzv1); if ($url_val != null) { $rslt_val=$rslt_val."!!".$url_val; } } // $rslt_val=str_replace(" "," ",$rslt_val); // echo "
SEGMENTS ".$rslt_val."
".$url.""; $titl_pntr=ftell($f); $line=$sline; if ($titl_sw ==0) { $titl_sw=1; $domn_titl=$title; if ($userip != "81.207.16.26") { // echo "This action cannot be completed for this IP Address. Please contact us"; // break; } } } $str_bzv1=substr($invr_bzv1,0,64); $pos = strpos($line, $str_bzv1); if ($pos === false) { // echo "
The string '$say_key' was not found in the string '$rslt_word'"; } else { // echo "
The string ".$invr_bzv1." was found in the string ".$line; // echo " and exists at position $pos"; $rslt_text=$rslt_dtls[1]; $rslt_shrt=substr($rslt_word,0,256); $text_mtch[$rslt_shrt]=$text_mtch[$rslt_shrt]+1; // $shrt_line=substr($line,0,256); $sshrt_line=str_replace(" ","+",$line); $sinvr_bzv1=str_replace(" ","+",$invr_bzv1); // echo "
Actually length is".strlen($rslt_word); $linvr_bzv1="".$line.""; // echo "".$linvr_bzv1.""; } trim($line); $unew_mb=urlencode($line); /////////////// // $string=$invr_bzv1; // echo "
UNEW MB ".$unew_mb; $string=$unew_mb; $string=str_replace("+"," ",$unew_mb); $string=str_replace("* ","",$unew_mb); $string=str_replace(".","xsntx",$unew_mb); $string=str_replace(";","xsubx",$unew_mb); $string=str_replace("?","xqstx",$unew_mb); $string=str_replace("%00","",$string); $string=str_replace("%0A","xtabx",$string); $string=str_replace("%2C","xpstx",$string); // $string=str_replace("%2E","xprdx",$string); $string=str_replace("%0D","xcrtx",$string); $string=str_replace("%C2%B7","",$string); $string=urldecode($string); $line_dtls=explode(".",$string); // $string=urlencode($linel); // $string=str_replace("+","",$unew_mb); // $string=str_replace("+++","",$unew_mb); $unew_mb=str_replace("_","",$unew_mb); $string=str_replace("%3A","",$unew_mb); $string=str_replace("%3E"," xclsx ",$unew_mb); $string=str_replace("%3F","xqstx",$string); $string=str_replace(";"," xsubx ",$string); $string=str_replace("%0D%0A"," ",$string); $string=str_replace("%C2%BB"," xattx ",$string); $string=str_replace("%00","",$string); $string=str_replace("%0A"," xtabx ",$string); $string=str_replace("%5A","",$string); $string=str_replace("%5B","",$string); $string=str_replace("%5C","",$string); $string=str_replace("%5D"," xbrkx",$string); $string=str_replace("%7C","",$string); $string=str_replace("%2F"," ",$string); $string=str_replace("%2C","",$string); $string=str_replace("%2B","xonex",$string); $string=str_replace("%2A","xtwox",$string); $string=str_replace("%29"," xclsx ",$string); $string=str_replace("%28"," xclsx ",$string); $string=str_replace("%27","",$string); $string=str_replace(" %26 "," en ",$string); $string=str_replace("%23"," xsumx ",$string); $string=str_replace("%22"," xndrx ",$string); $string=str_replace("%21"," xurpx ",$string); $string=str_replace("%0D"," xcrtx ",$string); $string=str_replace("%C2%A9","",$string); $string=str_replace("%C2%B7","",$string); $string=str_replace("%E2%80%99","",$string); $string=str_replace("%E2%80%98","",$string); $string=str_replace("%E2%80%9D","",$string); $string=str_replace("++"," ",$string); // echo "
AFTER STRING ".$string; // $string=urldecode($string); $string=trim($string); // echo "
AFTER STRING ".$string; $full_docm=$full_docm." ".$string; ////////////////////// $line_text=$string; $line_lngt=strlen($line_text)-11; $line_flct=$line_lnes[2]; $line_tlct=$line_lnes[3]; $line_ulne=$line_lnes[4]; $line_titl=$line_lnes[5]; // echo "
LAST POS ".$last_pos." FRST POS ".$frst_pos." URL ENCODED ".urlencode($line_text); // $line_text=str_replace("+"," ",urlencode($line_text)); $sline_text=str_replace(" ","+",$line_text); $line_key=str_replace("xcrtxxtabx","",$line_key); $sline_titl=str_replace(" ","+",$line_titl); // $sline_text=str_replace("xcrtxxtabx","",$line_text); $wrds_array=explode(" ",$line_text); // echo "
WRDS ARRAY ".count($wrds_array); $wrds_array=explode(" ",$line_text); // print_r($wrds_array); $cntr_xhdr=substr_count($line_text, 'x'); // echo "
".$cntr_xhdr." ".$sline_text; // echo "
WRDS ARRAY ".count($wrds_array); //////////////// $dline=str_replace(". ","xsntx",$line); // $dline=str_replace(".","xdotx",$dline); $dline=str_replace("THE_TITLE",". THE_TITLE",$dline); $full_docm=$full_docm." ".$line; // echo "
FULL DOCM ".strlen($full_docm); $lline="".substr($line,01,128).""; echo $lline; } $stitl=str_replace(" ","+",$title); $stitl=trim($stitl); // echo"
CONTEXT ".$stitl; $full_lnes=explode(".",$full_docm); echo "
"; // echo ""; echo ""; ///////////////// $sgmt_dtls=explode("!!",$rslt_val); foreach($sgmt_dtls as $sgmt_key => $sgmt_val) { // echo "
VAL ".$sgmt_val; $val_dtls=explode(" ",$sgmt_val); if(count($val_dtls)< 6 and $sgmt_val != null) { $ssgmt_val=str_replace(" ","+",$sgmt_val); $stitle=str_replace(" ","+",$title); ?> "; // print_r($full_lnes); foreach($full_lnes as $full_key => $full_val) { $str_repl_line=$full_val; require_once("ustr-repl-nl.php"); $full_val=$str_repl_line; $full_val=str_replace("THE_TITLE:","",$full_val); /////////////////// // echo"
BEFORE FULL VAL ".$full_val; $string=str_replace("%26","en",$full_val); $string=str_replace("%C2%A9","",$string); $string=str_replace("%C2%B7","",$string); $string=str_replace("%E2%80%99","",$string); $string=str_replace("%E2%80%98","",$string); $string=str_replace("%E2%80%9D","",$string); ////////////////// $full_val=urldecode($string); $full_val=trim($full_val); // echo"
AFTER FULL VAL ".$full_val; $sfull_val=str_replace(" ","+",$full_val); $sfull_val=str_replace("++","+",$sfull_val); if(strlen($full_val) >0 and strlen($full_val) < 144 and strlen($full_val) >12 ) { $cmds_ipad=$userip; $cmds_bzv2=$text_file."[perc[".$invr_taal."[".$invr_corp."[".$full_val."[1"; // echo "
SPLT INVR BZV2 ".$cmds_bzv2."
"; include ("chbt-cmds-code-2.php"); $lrule=""; $ltitle="
"; $llchr="
"; $ltchr="
"; // echo ""; echo ""; } } echo "
Uiting
Bewerk de reactie
Reactie
Bewerk de uiting
Uiting
Bewerk de reactie
".$lrule."".strlen($full_val)."".$ltitle."".$ltchr."".substr($full_val,0,128); // echo "
".$full_val."".$ltitle."
".$ltchr."".$full_val."".$ltitle."
"; if ($invr_file == null) { $full_val=trim($invr_bzv1); // echo"
AFTER FULL VAL ".$full_val; $sfull_val=str_replace(" ","+",$full_val); $sfull_val=str_replace("++","+",$sfull_val); if(strlen($full_val) >0 and strlen($full_val) < 144 and strlen($full_val) >12 ) { $cmds_ipad=$userip; $cmds_bzv2=$text_file."[splt[".$invr_taal."[".$invr_corp."[".$full_val."[1"; // echo "
SPLT INVR BZV2 ".$cmds_bzv2."
"; // include ("chbt-cmds-code-2.php"); $lrule=""; $ltitle=""; $ltchr=""; // echo "".$lrule."".strlen($full_val)."".$ltitle."".$ltchr."".substr($full_val,0,128); // echo "".$ltchr."
".$full_val."".$ltitle."
"; } $full_lines[0]=$invr_bzv1; } echo ""; $long_wrds=trim($invr_bzv1); // echo "
LONG WRDS ".$long_wrds; $slong_wrds=str_replace(" ","+",$long_wrds); // echo ""; // echo ""; echo ""; echo ""; echo ""; echo ""; echo "
"; echo "process the text in the iframe
"; echo ""; echo ""; /////////////// ?>