2) { document.getElementById('selbit').size=eval(-1 + lw); } } "; } $maybesaynext=""; $sayvoices="\n Alex en_US\n Alice it_IT\n Alva sv_SE\n Amelie fr_CA\n Anna de_DE\n Carmit he_IL\n Damayanti id_ID\n Daniel en_GB\n Diego es_AR\n Ellen nl_BE\n Fiona en-scotland\n Fred en_US\n Ioana ro_RO\n Joana pt_PT\n Jorge es_ES\n Juan es_MX\n Kanya th_TH\n Karen en_AU\n Kyoko ja_JP\n Laura sk_SK\n Lekha hi_IN\n Luca it_IT\n Luciana pt_BR\n Maged ar_SA\n Mariska hu_HU\n Mei-Jia zh_TW\n Melina el_GR\n Milena ru_RU\n Moira en_IE\n Monica es_ES\n Nora nb_NO\n Paulina es_MX\n Samantha en_US\n Sara da_DK\n Satu fi_FI\n Sin-ji zh_HK\n Tessa en_ZA\n Thomas fr_FR\n Ting-Ting zh_CN\n Veena en_IN\n Victoria en_US\n Xander nl_NL\n Yelda tr_TR\n Yuna ko_KR\n Yuri ru_RU\n Zosia pl_PL\n Zuzana cs_CZ\n "; $cvis="Curriculum Vitae"; $athing="Mac OS X Say Text to Speech"; $viframe=""; $aiframe=""; $sayprefix=""; $togo="Translations from English can happen choosing Language first."; $stylestuff=""; $ifvprefix=""; $ifaprefix=""; $wsb=""; $qqhval=''; $audio=''; $video=''; $audiotranscript=''; $langcode=''; $langsuffix=''; $htmltop=""; $origlangchange=" lang='en'>"; $langchange=$origlangchange; $zt=@file_get_contents("HTTP://www.rjmprogramming.com.au/PHP/ziptest.php"); //file_put_contents("zt.htm", $zt); if (isset($_GET['video'])) { if (strlen($_GET['video']) > 0) { $video=urldecode($_GET['video']); if (strpos($video, ".") !== false) { if (file_exists($video)) { $athing="Video " . $video; $ph.=''; $mediap.=" mediao=new Video('" . $video . "'); "; $ifaprefix="#i0=0&j0=0"; $aiframe=" "; } $ass=explode("rjmprogramming.com.au", $video); $aext="." . explode(".", $video)[-1 + sizeof(explode(".", $video))]; if (sizeof($ass) > 1) { if (file_exists('..' . str_replace($aext, ".sbv", $ass[1]))) { $audiotranscript=file_get_contents('..' . str_replace($aext, ".sbv", $ass[1])); } } else if (substr($video,0,1) == '/') { if (file_exists('..' . str_replace($aext, ".sbv", $ass[0]))) { $audiotranscript=file_get_contents('..' . str_replace($aext, ".sbv", $ass[0])); } } else { if (file_exists(str_replace($aext, ".sbv", $ass[0]))) { $audiotranscript=file_get_contents(str_replace($aext, ".sbv", $ass[0])); } } } else if (strlen($video) == 11) { // YouTube $athing="YouTube Video " . $video; $ph.=''; $ifvprefix="//www.rjmprogramming.com.au/HTMLCSS/karaoke_youtube_api.htm?youtubeid=" . $video . "&youtube_duration=161.796&email=&emoji=on&c0=on&i0=0&j0=0&i1=&j1=&i2=&j2=&i3=&j3=&i4=&j4=&i5=&j5=&i6=&j6=&i7=&j7=&i8=&j8=&i9=&j9=&i10=&j10=&i11=&j11=&i12=&j12=&i13=&j13=&i14=&j14=&i15=&j15=&i16=&j16=&i17=&j17=&i18=&j18=&i19=&j19=&i20=&j20=&i21=&j21=&i22=&j22=&i23=&j23=&i24=&j24=&i25=&j25=&i26=&j26=&i27=&j27=&i28=&j28=&i29=&j29="; $viframe=""; } } } if (isset($_POST['video'])) { if (strlen($_POST['video']) > 0) { $video=urldecode($_POST['video']); if (strpos($video, ".") !== false) { if (file_exists($video)) { $athing="Video " . $video; $ph.=''; $mediap.=" mediao=new Video('" . $video . "'); "; $ifaprefix="#i0=0&j0=0"; $aiframe=" "; } $ass=explode("rjmprogramming.com.au", $video); $aext="." . explode(".", $video)[-1 + sizeof(explode(".", $video))]; if (sizeof($ass) > 1) { if (file_exists('..' . str_replace($aext, ".sbv", $ass[1]))) { $audiotranscript=file_get_contents('..' . str_replace($aext, ".sbv", $ass[1])); } } else if (substr($video,0,1) == '/') { if (file_exists('..' . str_replace($aext, ".sbv", $ass[0]))) { $audiotranscript=file_get_contents('..' . str_replace($aext, ".sbv", $ass[0])); } } else { if (file_exists(str_replace($aext, ".sbv", $ass[0]))) { $audiotranscript=file_get_contents(str_replace($aext, ".sbv", $ass[0])); } } } else if (strlen($video) == 11) { // YouTube $athing="YouTube Video " . $video; $ph.=''; $ifvprefix="//www.rjmprogramming.com.au/HTMLCSS/karaoke_youtube_api.htm?youtubeid=" . $video . "&youtube_duration=161.796&email=&emoji=on&c0=on&i0=0&j0=0&i1=&j1=&i2=&j2=&i3=&j3=&i4=&j4=&i5=&j5=&i6=&j6=&i7=&j7=&i8=&j8=&i9=&j9=&i10=&j10=&i11=&j11=&i12=&j12=&i13=&j13=&i14=&j14=&i15=&j15=&i16=&j16=&i17=&j17=&i18=&j18=&i19=&j19=&i20=&j20=&i21=&j21=&i22=&j22=&i23=&j23=&i24=&j24=&i25=&j25=&i26=&j26=&i27=&j27=&i28=&j28=&i29=&j29="; $viframe=""; } } } if (isset($_GET['audio'])) { if (strlen($_GET['audio']) > 0) { $audio=urldecode($_GET['audio']); if (file_exists($audio)) { $athing="Audio " . $audio; $ph.=''; $mediap.=" mediao=new Audio('" . $audio . "'); "; $ifaprefix="#i0=0&j0=0"; $aiframe=" "; } $ass=explode("rjmprogramming.com.au", $audio); $aext="." . explode(".", $audio)[-1 + sizeof(explode(".", $audio))]; if (sizeof($ass) > 1) { if (file_exists('..' . str_replace($aext, ".sbv", $ass[1]))) { $audiotranscript=file_get_contents('..' . str_replace($aext, ".sbv", $ass[1])); } } else if (substr($audio,0,1) == '/') { if (file_exists('..' . str_replace($aext, ".sbv", $ass[0]))) { $audiotranscript=file_get_contents('..' . str_replace($aext, ".sbv", $ass[0])); } } else { if (file_exists(str_replace($aext, ".sbv", $ass[0]))) { $audiotranscript=file_get_contents(str_replace($aext, ".sbv", $ass[0])); } } } } if (isset($_POST['audio'])) { if (strlen($_POST['audio']) > 0) { $audio=urldecode($_POST['audio']); if (file_exists($audio)) { $athing="Audio " . $audio; $ph.=''; $mediap.=" mediao=new Audio('" . $audio . "'); "; $ifaprefix="#i0=0&j0=0"; $aiframe=" "; } $ass=explode("rjmprogramming.com.au", $audio); $aext="." . explode(".", $audio)[-1 + sizeof(explode(".", $audio))]; if (sizeof($ass) > 1) { if (file_exists('..' . str_replace($aext, ".sbv", $ass[1]))) { $audiotranscript=file_get_contents('..' . str_replace($aext, ".sbv", $ass[1])); } } else if (substr($audio,0,1) == '/') { if (file_exists('..' . str_replace($aext, ".sbv", $ass[0]))) { $audiotranscript=file_get_contents('..' . str_replace($aext, ".sbv", $ass[0])); } } else { if (file_exists(str_replace($aext, ".sbv", $ass[0]))) { $audiotranscript=file_get_contents(str_replace($aext, ".sbv", $ass[0])); } } } } if (isset($_GET['thelang'])) { if (strlen($_GET['thelang']) > 0) { $langcode=urldecode($_GET['thelang']); $sayps=explode(" " . strtolower($langcode) . "_", $sayvoices); if (sizeof($sayps) > 1) { $sayprefix="-v " . trim(explode("\n", $sayps[0])[-1 + sizeof(explode("\n", $sayps[0]))]) . " "; } $langsuffix='&thelang=' . $_GET['thelang']; $htmltop=""; $langchange=" lang='" . urldecode($_GET['thelang']) . "'>"; $togo=""; } } else if (isset($_POST['thelang'])) { if (strlen($_POST['thelang']) > 0) { $langcode=urldecode($_POST['thelang']); $sayps=explode(" " . strtolower($langcode) . "_", $sayvoices); if (sizeof($sayps) > 1) { $sayprefix="-v " . trim(explode("\n", $sayps[0])[-1 + sizeof(explode("\n", $sayps[0]))]) . " "; } $langsuffix='&thelang=' . $_POST['thelang']; $htmltop=""; $langchange=" lang='" . urldecode($_POST['thelang']) . "'>"; $togo=""; } } // https://www.rjmprogramming.com.au/HTMLCSS/karaoke_youtube_api.htm?youtubeid=Kg-CXN4jq1k&youtube_duration=161.796&email=&email=&emoji=on&c0=on&i0=1&j0=5&i1=&j1=&i2=&j2=&i3=&j3=&i4=&j4=&i5=&j5=&i6=&j6=&i7=&j7=&i8=&j8=&i9=&j9=&i10=&j10=&i11=&j11=&i12=&j12=&i13=&j13=&i14=&j14=&i15=&j15=&i16=&j16=&i17=&j17=&i18=&j18=&i19=&j19=&i20=&j20=&i21=&j21=&i22=&j22=&i23=&j23=&i24=&j24=&i25=&j25=&i26=&j26=&i27=&j27=&i28=&j28=&i29=&j29= // -4 for YouTube malalignment if (($aiframe != '' || $viframe != '') && $audiotransscript == '') { $audiotransscript="0:00:00.000,0:00:05.000 Welcome to the RJM Programming Curriculum Vitae creation via Google Speech to Text API and Mac OS X say and MyMemory API. 0:00:05.000,0:00:09.000 Up the Top 0:00:09.000,0:00:12.000 Curriculum Vitae 0:00:12.000,0:00:17.000 Header vs Footer 0:00:17.000,0:00:21.000 About me 0:00:21.000,0:00:26.000 Translation for English word Name 0:00:26.000,0:00:28.000 Name 0:00:28.000,0:00:31.000 Translation for English word Address 0:00:31.000,0:00:33.000 Address 1 of 2 0:00:33.000,0:00:35.000 Address 2 of 2 0:00:35.000,0:00:39.000 Translation for English word Phone 0:00:39.000,0:00:41.000 Phone 0:00:41.000,0:00:44.000 Translation for English word Email 0:00:44.000,0:00:46.000 Email 0:00:46.000,0:00:50.000 Translation for English words Date of Birth 0:00:50.000,0:00:52.000 Date of Birth 0:00:52.000,0:00:56.000 Translation for English word Nationality 0:00:56.000,0:01:00.000 Nationality 0:01:00.000,0:01:02.000 Experience 0:01:02.000,0:01:06.000 Experience Date Range To Present Perhaps 0:01:06.000,0:01:11.000 What I Did Experience Date Range To Present Perhaps 0:01:11.000,0:01:14.000 Older Experience Date Range 0:01:14.000,0:01:18.000 What I Did Older Experience Date Range 0:01:18.000,0:01:22.000 Education 0:01:22.000,0:01:25.000 Education Date Range To Present Perhaps 0:01:25.000,0:01:30.000 What I Studied Education Date Range To Present Perhaps 0:01:30.000,0:01:35.000 Older Education Date Range 0:01:35.000,0:01:42.000 What I Studied Older Education Date Range 0:01:42.000,0:01:46.000 Oldest Education Date Range 0:01:46.000,0:01:50.000 What I Studied Oldest Education Date Range 0:01:50.000,0:01:52.000 Skills 0:01:52.000,0:01:56.000 Skills Title 1 of 2 0:01:56.000,0:02:01.000 My Skills Skills Title 1 of 2 0:02:01.000,0:02:03.000 Skills Title 2 of 2 0:02:03.000,0:02:08.000 My Skills Skills Title 2 of 2 0:02:08.000,0:02:11.000 Languages 0:02:11.000,0:02:13.000 Languages Title 1 of 3 0:02:13.000,0:02:18.000 Proficiency Languages Title 1 of 3 0:02:18.000,0:02:21.000 Languages Title 2 of 3 0:02:21.000,0:02:26.000 Proficiency Languages Title 2 of 3 0:02:26.000,0:02:28.000 Languages Title 3 of 3 0:02:28.000,0:02:33.000 Proficiency Languages Title 3 of 3 0:02:33.000,0:02:38.000 Footer vs Header 0:02:38.000,0:02:44.000 CSS and when happy press Submit Report button, thanks. "; } $alines=explode("\n", $audiotranscript); $ialines=-1; for ($jlines=0; $jlines 0) { if (strpos(str_replace("myAgendaTemplate.html","Curriculum_Vitae_LibreOffice.html",urldecode($_GET['thetemplate'])), "Curriculum_Vitae_LibreOffice.html") !== false && strpos(urldecode($_GET['thetemplate']), "rjmprogramming.com.au") !== false) { $lot="LibreOffice Email Template "; } else { $lot="LibreOffice Template "; } $sbc=""; } } else if (isset($_POST['thetemplate'])) { if (strpos(urldecode($_POST['thetemplate']), "myAgendaTemplate.html") !== false) $cvis="Agenda"; if (strlen($_POST['thetemplate']) > 0) { if (strpos(str_replace("myAgendaTemplate.html","Curriculum_Vitae_LibreOffice.html",urldecode($_POST['thetemplate'])), "Curriculum_Vitae_LibreOffice.html") !== false && strpos(urldecode($_POST['thetemplate']), "rjmprogramming.com.au") !== false) { $lot="LibreOffice Email Template "; } else { $lot="LibreOffice Template "; } $sbc=""; } } function listurls() { global $ifvprefix, $ifaprefix, $viframe, $aiframe, $alines, $audiotranscript, $ialines; $retval=""; $retdelim=""; if ($ialines >= 0) { if ($ifaprefix != "" && $aiframe != "") { while ($ialines < sizeof($alines)) { // 0:00:21.000,0:00:26.000 $sv=(-2 + explode(":",explode(",", $alines[$ialines])[0])[0] * 60 * 60 + explode(":",explode(",", $alines[$ialines])[0])[1] * 60 + explode(".", explode(":",explode(",", $alines[$ialines])[0])[2])[0]); $ev=(-2 + explode(":",explode(",", $alines[$ialines])[1])[0] * 60 * 60 + explode(":",explode(",", $alines[$ialines])[1])[1] * 60 + explode(".", explode(":",explode(",", $alines[$ialines])[1])[2])[0]); $retval.=$retdelim . '"' . str_replace("i0=0&j0=0", "i0=" . $sv . "&j0=" . $ev . "&" . str_replace("i0=0&j0=0", "i0=" . (-2 + $sv) . "&j0=" . (-2 + $ev), $ifvprefix), $ifaprefix) . '"'; $retdelim=','; $ialines+=3; } if ($retval != "") { $retval.="];\n if (say == '') { yourlcclick+=2; } \n var vvjunk=["; } } else if ($ifvprefix != "" && $viframe != "") { while ($ialines < sizeof($alines)) { // 0:00:21.000,0:00:26.000 $sv=(-4 + explode(":",explode(",", $alines[$ialines])[0])[0] * 60 * 60 + explode(":",explode(",", $alines[$ialines])[0])[1] * 60 + explode(".", explode(":",explode(",", $alines[$ialines])[0])[2])[0]); $ev=(-4 + explode(":",explode(",", $alines[$ialines])[1])[0] * 60 * 60 + explode(":",explode(",", $alines[$ialines])[1])[1] * 60 + explode(".", explode(":",explode(",", $alines[$ialines])[1])[2])[0]); $retval.=$retdelim . '"' . str_replace("i0=0&j0=0", "i0=" . $sv . "&j0=" . $ev, $ifvprefix) . '"'; $retdelim=','; $ialines+=3; } if ($retval != "") { $retval.="];\n if (say == '') { yourlcclick+=2; } \n var vvjunk=["; } } } return $retval; } function lookup($ptoobig) { global $langcode, $maybesaynext; $mymc=""; if (str_replace("en","",$langcode) != '' && strlen(trim($ptoobig)) > 0) { $pokay=trim($ptoobig); $purl="http://api.mymemory.translated.net/get?q=" . str_replace("+","%20",urlencode($pokay)) . "&langpair=en|" . $langcode; // http://api.mymemory.translated.net/get?q=Hello%20World!&langpair=en|it#Ciao Mondo! // {"responseData":{"translatedText":"Ciao Mondo!","match":1},"quotaFinished":false,"responseDetails":"","responseStatus":200,"responderId":"242","exception_code":null,"matches":[{"id":"562784765","segment":"Hello World!","translation":"Ciao Mondo!","quality":"74","reference":null,"usage-count":97,"subject":"All","created-by":"MateCat","last-updated-by":"MateCat","create-date":"2018-05-24 22:32:33","last-update-date":"2018-05-24 22:32:33","match":1}]} if (file_exists("mym.txt")) $mymc=file_get_contents("mym.txt"); $findings=explode($purl, $mymc); if (sizeof($findings) > 1) { if (strlen(explode("\n", $findings[1])[0]) <= 1) { return $ptoobig; } else { $maybesaynext=(html_entity_decode(str_replace('\u','&#x',substr(explode("\n", $findings[1])[0],1)), ENT_QUOTES, "UTF-8")); return html_entity_decode(str_replace('\u','&#x',substr(explode("\n", $findings[1])[0],1)), ENT_QUOTES, "UTF-8") . " "; } } else { $thisf=str_replace(" "," ",file_get_contents($purl)); if (strpos($thisf, "responseData") !== false) { $fndis=false; if (strpos(strtolower($thisf), '"segment":"' . strtolower(trim($ptoobig)) . '","translation":"' . strtolower(trim($ptoobig)) . '"') !== false) { if (strpos($thisf, '"segment":"' . strtoupper(trim($ptoobig)) . '","translation":"' . strtoupper(trim($ptoobig)) . '"') !== false) { $fndis=false; } else { $fndis=true; file_put_contents("mym.txt", $mymc . $purl . "#" . trim($ptoobig) . "\n"); $maybesaynext=(trim($ptoobig)); return $ptoobig; } } if (!$fndis) { if (strpos($thisf, '{"translatedText":"') !== false) { file_put_contents("mym.txt", $mymc . $purl . "#" . explode('"', explode('{"translatedText":"', $thisf)[1])[0] . "\n"); $maybesaynext=(explode('"', explode('{"translatedText":"', $thisf)[1])[0]); return html_entity_decode(str_replace('\u','&#x',explode('"', explode('{"translatedText":"', $thisf)[1])[0]), ENT_QUOTES, "UTF-8") . " "; } else if (strpos(strtolower($thisf), '"segment":"' . strtolower(trim($ptoobig)) . '","translation":"') !== false) { $fndat=strrpos(strtolower($thisf), '"segment":"' . strtolower(trim($ptoobig)) . '","translation":"') + strlen('"segment":"' . strtolower(trim($ptoobig)) . '","translation":"'); file_put_contents("mym.txt", $mymc . $purl . "#" . explode('"', substr($thisf, $fndat))[0] . "\n"); $maybesaynext=(explode('"', substr($thisf, $fndat))[0]); return html_entity_decode(str_replace('\u','&#x',explode('"', substr($thisf, $fndat))[0]), ENT_QUOTES, "UTF-8") . " "; } else { file_put_contents("mym.txt", $mymc . $purl . "\n"); return $ptoobig; } } //else { //return $ptoobig; //} } else { return $ptoobig; } } } // \u81ea\u5df1\u7d39\u4ecb return $ptoobig; } function httpit($inu) { if (strpos(strtolower(urldecode($inu)), "http") !== false) { return $inu; } else { return urlencode("http:" . urldecode($inu)); } } function ourstr_replace($froms, $tos, $tstr) { global $qqhval; $lc=""; $prevlc=""; if ($tstr == "") return $tstr; $rs=str_replace($froms, $tos, $tstr); $xrs=substr($rs,0,1); $lc=$xrs; for ($ir=1; $ir= '0' && substr($rs,(-1 + $ir),1) <= '9') $xrs.=" "; } else if (substr($rs,$ir,1) >= '0' && substr($rs,$ir,1) <= '9') { if (substr($rs,(-1 + $ir),1) == 'f') $xrs.=" "; } else if (substr($rs,$ir,1) >= 'A' && substr($rs,$ir,1) <= 'Z') { if (substr($rs,(-1 + $ir),1) != ' ') $xrs.=" "; } $prevlc=$lc; $lc=substr($rs,$ir,1); $xrs.=substr($rs,$ir,1); } if ($lc == " ") { if ($prevlc == " ") { $qqhval=$qqhval; // more to do } $qqhval=lookup(str_replace("Translation for English word ","",str_replace("Translation for English words ","",str_replace("Translation for English Word ","",str_replace("Translation for English Words ","",$xrs))))); //substr($xrs,0,(strlen($xrs) - 1)); } return $xrs; } if (!isset($_GET['i0']) && isset($_GET['fconcept'])) { // Form findings $prompt="\n ans=prompt('What is your Survey and/or Template Form Concept? (optionally suffix by a space then LibreOffice template HTML URL (such as //www.rjmprogramming.com.au/PHP/lo_one_new.html LibreOffice Business Letter template), and/or optionally suffix by a space then email list to have potential for those emailees to redistribute this survey further afield)', 'Survey'); \n"; if (isset($_GET['ask'])) { $prompt="\n ans='" . urldecode($_GET['ask']) . "'; \n"; if (strpos(strtolower(str_replace('Curriculum Vitae ','',str_replace('Agenda ','',urldecode($_GET['ask'])))), 'http') === false) { $wsb=explode("",str_replace($origlangchange,$langchange,file_get_contents('http:' . str_replace('Curriculum Vitae ','',str_replace('Agenda ','',urldecode($_GET['ask']))))))[0])[1]; } else { $wsb=explode("",str_replace($origlangchange,$langchange,file_get_contents(str_replace('https:','http:',str_replace('Curriculum Vitae ','',str_replace('Agenda ','',urldecode($_GET['ask'])))))))[0])[1]; } $xcvs=explode("", $wsb)[0])); if (sizeof($xcvs) > 1) { if (strpos($xcvs[1], "<css>") !== false) { $huhs=explode("/*", $xcvs[1]); if (sizeof($huhs) > 1) { $stylestuff="*/ \n" . substr($xcvs[1], 0, (strlen($xcvs[1]) - (2 + strlen($huhs[-1 + sizeof($huhs)])))) . "\n /* "; } else { $stylestuff="*/ \n" . $xcvs[1] . "\n /* "; } } } } $htmlis=$htmltop . " " . str_replace("Survey Survey","Survey",str_replace('+',' ',urldecode($_GET['fconcept'])) . " Survey") . " Form Questions var athing='" . $athing . "',yourlcclick=0, ilangsuffix=-1,maybesaynext='',langsuffix='" . $langsuffix . "'; var mediao=null, owo=null, say=''; var iahelp=0, ahelp=[" . listurls() . "]; function askmyf() { var ansx=prompt('Optionally enter email list to share this Curriculum Vitae or Agenda with. A subject to email other than \"Curriculum Vitae\" or \"Agenda\" can be separated after the email list by a space. Make the email list just uppercase to send email link to form, just lowercase to send a Curriculum Vitae or Agenda report only, and a mix, both of these.', ''); if (ansx != null) { if (ansx.indexOf('@') != -1) { var xansx=ansx.split(' '); if (ansx[0] == ansx[0].toUpperCase() || ansx[0] != ansx[0].toLowerCase()) { if (xansx.length > 1) { document.getElementById('acvemail').href=document.getElementById('acvemail').href.replace('mailto:?subject=Curriculum%20Vitae','mailto:' + xansx[0].toLowerCase() + '?subject=' + encodeURIComponent(ansx.replace(xansx[0] + ' ',''))); } else { document.getElementById('acvemail').href=document.getElementById('acvemail').href.replace('mailto:?','mailto:' + xansx[0].toLowerCase() + '?'); } document.getElementById('acvemail').click(); } if (ansx[0] == ansx[0].toLowerCase() || ansx[0] != ansx[0].toUpperCase()) { document.getElementById('myf').innerHTML+=''; if (xansx.length > 1) { document.getElementById('myf').innerHTML+=''; } else { document.getElementById('myf').innerHTML+=''; } } } } } function tcheckit(iois) { var ians=1, dl=''; if (iois != null) { var aconto = (iois.contentWindow || iois.contentDocument); if (aconto != null) { if (aconto.document) { aconto = aconto.document; } if (aconto.body != null) { var bih=aconto.body.innerHTML.replace(/\>\;/g,'<').replace(/\/g,'

'); var abih=bih.split(' src=\"'); for (var ibih=1; ibih 1) { if (ans.split(' ')[eval(-1 + ans.split(' ').length)].indexOf('@') != -1) { emaillist=ans.split(' ')[eval(-1 + ans.split(' ').length)]; document.getElementById('theto').value=emaillist; ans=ans.replace(' ' + emaillist,''); document.getElementById('thesubject').value=(ans + ' Survey').replace('Survey Survey','Survey') + ' Survey (ideally using Google Chrome web browser for audio input via microphone)'; if (ans.split(' ').length > 2) iioff--; } iioff--; if (ans.split(' ')[eval(-1 + ans.split(' ').length)].toLowerCase().indexOf('http') != -1 || ans.split(' ')[eval(-1 + ans.split(' ').length)].toLowerCase().indexOf('//') != -1) { templateis=ans.split(' ')[eval(-1 + ans.split(' ').length)]; document.getElementById('thetemplate').value=templateis; document.getElementById('tiframe').src=templateis; } } document.getElementById('myconcept').value=ans; } } if (templateis != '') { document.getElementById('myconcept').value=ans.replace((' ' + templateis),''); } else { while (ans != null) { ans=prompt('Separate a survey question ' + ians + ' from an optional prompt via ? ... Cancel finishes questions to ask ... eg. What is your favourite colour?Favourite colour', ''); if (ans != null) { if (ans != '') { document.getElementById('myquestions').value+=dl + '\"' + ans + '\"'; dl=','; ians++; } } } document.getElementById('mysf').click(); } }

" . str_replace("Survey Survey","Survey",urldecode($_GET['fconcept']) . " Survey") . " " . $lot . "Form Questions

... another?

"; echo $htmlis; exit; } else if (isset($_POST['i0']) && isset($_POST['fconcept'])) { // Form findings $joff=0; $defbh="

" . str_replace("Survey Survey","Survey",str_replace('+',' ',urldecode($_POST['fconcept'])) . " Survey") . " " . $lot . "Report

... another? email?

"; if (isset($_POST['thetemplate'])) { if ($_POST['thetemplate'] != "") { if (strpos(strtolower(urldecode($_POST['thetemplate'])), 'http') === false) { $wsb=explode("",str_replace($origlangchange,$langchange,file_get_contents('http:' . urldecode($_POST['thetemplate']))))[0])[1]; } else { $wsb=explode("",str_replace($origlangchange,$langchange,file_get_contents(str_replace('https:','http:',urldecode($_POST['thetemplate'])))))[0])[1]; } $xcvs=explode("", $wsb)[0])); if (sizeof($xcvs) > 1) { if (strpos($xcvs[1], "<css>") !== false) { $huhs=explode("/*", $xcvs[1]); if (sizeof($huhs) > 1) { $stylestuff="*/ \n" . substr($xcvs[1], 0, (strlen($xcvs[1]) - (2 + strlen($huhs[-1 + sizeof($huhs)])))) . "\n /* "; } else { $stylestuff="*/ \n" . $xcvs[1] . "\n /* "; } } } while (substr($wsb,$joff,1) != '>') { $joff++; } $joff++; $defbh=str_replace("

","

",substr($wsb,$joff)); if (strpos(urldecode($_POST['thetemplate']), "Curriculum_Vitae_LibreOffice.html") !== false && strpos(urldecode($_POST['thetemplate']), "rjmprogramming.com.au") !== false) { $defbh=str_replace(" " . str_replace("Survey Survey","Survey",str_replace('+',' ',urldecode($_POST['fconcept'])) . " Survey") . " Report var athing='" . $athing . "',yourlcclick=0, ilangsuffix=-1,maybesaynext='',langsuffix='" . $langsuffix . "'; var mediao=null, owo=null, say=''; var iahelp=0, ahelp=[" . listurls() . "]; var dul=document.URL.split('#')[0].split('?')[0]; var argis=''; function askmyf() { var ansx=prompt('Optionally enter email list to share this Curriculum Vitae or Agenda with. A subject to email other than \"Curriculum Vitae\" or \"Agenda\" can be separated after the email list by a space. Make the email list just uppercase to send email link to form, just lowercase to send a Curriculum Vitae or Agenda report only, and a mix, both of these.', ''); if (ansx != null) { if (ansx.indexOf('@') != -1) { var xansx=ansx.split(' '); if (ansx[0] == ansx[0].toUpperCase() || ansx[0] != ansx[0].toLowerCase()) { if (xansx.length > 1) { document.getElementById('acvemail').href=document.getElementById('acvemail').href.replace('mailto:?subject=Curriculum%20Vitae','mailto:' + xansx[0].toLowerCase() + '?subject=' + encodeURIComponent(ansx.replace(xansx[0] + ' ',''))); } else { document.getElementById('acvemail').href=document.getElementById('acvemail').href.replace('mailto:?','mailto:' + xansx[0].toLowerCase() + '?'); } document.getElementById('acvemail').click(); } if (ansx[0] == ansx[0].toLowerCase() || ansx[0] != ansx[0].toUpperCase()) { document.getElementById('myf').innerHTML+=''; if (xansx.length > 1) { document.getElementById('myf').innerHTML+=''; } else { document.getElementById('myf').innerHTML+=''; } } } } } function initemail() { document.getElementById('aemail').href=document.getElementById('aemail').href.replace(/\ /g,'%20').replace(/\+/g,'%20') + encodeURIComponent(dul + '?fconcept=') + encodeURIComponent('" . str_replace("'","' + String.fromCharCode(39) + '",str_replace("Survey Survey","Survey",($_POST['fconcept']) . " Survey")) . " Report&" . "').replace(/\%20/g,'+'); fixemail(); } function fixemail() { var prerest=document.getElementById('aemail').href.split('?subject=')[1].split('&body=')[0]; var rest=document.getElementById('aemail').href.split('&body=')[1].split('php')[1]; document.getElementById('aemail').href=document.getElementById('aemail').href.split('?subject=')[0] + '?subject=' + (prerest) + '&body=' + encodeURIComponent('https://www.rjmprogramming.com.au/PHP/speech_supervisor.php') + (rest).replace(/\%20/g,'+'); } " . $defbh . " "; $ival=0; if ($joff == 0) { if (isset($_POST['s' . $ival])) { $htmlis=str_replace("", "
LabelValue
", $htmlis); } else { $htmlis=str_replace("", "
Value
", $htmlis); } } while (isset($_POST['i' . $ival])) { if ($joff != 0) { $farr=explode("<" . str_replace("`","'",str_replace("+"," ",urldecode($_POST['s' . $ival]))) . ">", $htmlis); if (sizeof($farr) <= 2) { $htmlis=str_replace("<" . str_replace("`","'",str_replace("+"," ",urldecode($_POST['s' . $ival]))) . ">", str_replace("+"," ",urldecode($_POST['i' . $ival])), $htmlis); } else { $prehtml=$farr[0] . "<" . str_replace("`","'",str_replace("+"," ",urldecode($_POST['s' . $ival]))) . ">"; $posthtml=str_replace("<" . str_replace("`","'",str_replace("+"," ",urldecode($_POST['s' . $ival]))) . ">", str_replace("+"," ",urldecode($_POST['i' . $ival])), $prehtml); $htmlis=str_replace($prehtml, $posthtml, $htmlis); } } else { if (isset($_POST['s' . $ival])) { $htmlis=str_replace("", "" . urldecode($_POST['s' . $ival]) . "" . urldecode($_POST['i' . $ival]) . "", $htmlis); $htmlis=str_replace("function fixemail() {", "function fixemail() { document.getElementById('aemail').href+=encodeURIComponent('s" . $ival . "=" . str_replace("'","' + String.fromCharCode(39) + '",($_POST['s' . $ival])) . "&'); ", $htmlis); $htmlis=str_replace("function fixemail() {", "function fixemail() { document.getElementById('aemail').href+=encodeURIComponent('i" . $ival . "=" . str_replace("'","' + String.fromCharCode(39) + '",($_POST['i' . $ival])) . "&'); ", $htmlis); } else { $htmlis=str_replace("", "" . urldecode($_POST['i' . $ival]) . "", $htmlis); $htmlis=str_replace("function fixemail() {", "function fixemail() { document.getElementById('aemail').href+=encodeURIComponent('i" . $ival . "=" . str_replace("'","' + String.fromCharCode(39) + '",($_POST['i' . $ival])) . "&'); ", $htmlis); } } $ival++; } if (isset($_POST['theto'])) { if (strpos(urldecode($_POST['theto']), "@") !== false) { // && strpos($htmlis, "") !== false) { $eol = PHP_EOL; $header = 'From: ' . 'rmetcalfe@rjmprogramming.com.au' . $eol; $header .= 'Reply-To: ' . 'rmetcalfe@rjmprogramming.com.au' . $eol; if (isset($_POST['thecc'])) { $header .= 'CC: ' . urldecode($_POST['thecc']) . $eol; } if (isset($_POST['thebcc'])) { $header .= 'BCC: ' . urldecode($_POST['thebcc']) . $eol; } // attachment $filename=str_replace("@", "_", str_replace(".", "_", urldecode($_POST['thesubject']) . urldecode($_POST['theto']))) . ".html"; $content = chunk_split(base64_encode(str_replace("%2b","+",str_replace(' contenteditable=',' data-alt=',$htmlis)))); $message="Please download attached webpage. "; if (sizeof(explode("\n",urldecode($_POST['thesubject']))) > 1) { $message.=str_replace("\r"," ",str_replace("\n"," ",str_replace(explode("\r",explode("\n",urldecode($_POST['thesubject']))[0])[0], "", urldecode($_POST['subject'])))); } // a random hash will be necessary to send mixed content $uid = md5(time()); $header .= "MIME-Version: 1.0\r\n"; $header .= "Content-Type: multipart/mixed; boundary=\"".$uid."\"\r\n\r\n"; $header .= "This is a multi-part message in MIME format.\r\n"; $header .= "--".$uid."\r\n"; $header .= "Content-type:text/html; charset=iso-8859-1\r\n"; $header .= "Content-Transfer-Encoding: 7bit\r\n\r\n"; $header .= $message."\r\n\r\n"; $header .= "--".$uid."\r\n"; $header .= "Content-Type: application/octet-stream; name=\"".$filename."\"\r\n"; // use different content types here $header .= "Content-Transfer-Encoding: base64\r\n"; $header .= "Content-Disposition: attachment; filename=\"".$filename."\"\r\n\r\n"; $header .= $content."\r\n\r\n"; $header .= "--".$uid."--"; try { mail(urldecode($_POST['theto']), explode("\r",explode("\n",urldecode($_POST['thesubject']))[0])[0], "", $header); //$htmlis=str_replace("inite" . "mail();"," alert('Email sent okay.'); inite" . "mail();", $htmlis); } catch (Exception $ee) { //$htmlis=str_replace("inite" . "mail();"," alert('Email not sent.'); inite" . "mail();", $htmlis); } } } echo $htmlis; exit; } else if (isset($_GET['i0']) && isset($_GET['fconcept'])) { // Form findings $joff=0; $defbh="

" . str_replace("Survey Survey","Survey",str_replace('+',' ',urldecode($_GET['fconcept'])) . " Survey") . " " . $lot . "Report

... another? email?

"; if (isset($_GET['thetemplate'])) { if ($_GET['thetemplate'] != "") { if (strpos(strtolower(urldecode($_GET['thetemplate'])), 'http') === false) { $wsb=explode("",str_replace($origlangchange,$langchange,file_get_contents('http:' . urldecode($_GET['thetemplate']))))[0])[1]; } else { $wsb=explode("",str_replace($origlangchange,$langchange,file_get_contents(str_replace('https:','http:',urldecode($_GET['thetemplate'])))))[0])[1]; } $xcvs=explode("", $wsb)[0])); if (sizeof($xcvs) > 1) { if (strpos($xcvs[1], "<css>") !== false) { $huhs=explode("/*", $xcvs[1]); if (sizeof($huhs) > 1) { $stylestuff="*/ \n" . substr($xcvs[1], 0, (strlen($xcvs[1]) - (2 + strlen($huhs[-1 + sizeof($huhs)])))) . "\n /* "; } else { $stylestuff="*/ \n" . $xcvs[1] . "\n /* "; } } } while (substr($wsb,$joff,1) != '>') { $joff++; } $joff++; $defbh=str_replace("

","

",substr($wsb,$joff)); if (strpos(urldecode($_GET['thetemplate']), "Curriculum_Vitae_LibreOffice.html") !== false && strpos(urldecode($_GET['thetemplate']), "rjmprogramming.com.au") !== false) { $defbh=str_replace(" " . str_replace("Survey Survey","Survey",str_replace('+',' ',urldecode($_GET['fconcept'])) . " Survey") . " Report var athing='" . $athing . "',yourlcclick=0, ilangsuffix=-1,maybesaynext='',langsuffix='" . $langsuffix . "'; var mediao=null, owo=null, say=''; var iahelp=0, ahelp=[" . listurls() . "]; var dul=document.URL.split('#')[0].split('?')[0]; var argis=''; function askmyf() { var ansx=prompt('Optionally enter email list to share this Curriculum Vitae or Agenda with. A subject to email other than \"Curriculum Vitae\" or \"Agenda\" can be separated after the email list by a space. Make the email list just uppercase to send email link to form, just lowercase to send a Curriculum Vitae or Agenda report only, and a mix, both of these.', ''); if (ansx != null) { if (ansx.indexOf('@') != -1) { var xansx=ansx.split(' '); if (ansx[0] == ansx[0].toUpperCase() || ansx[0] != ansx[0].toLowerCase()) { if (xansx.length > 1) { document.getElementById('acvemail').href=document.getElementById('acvemail').href.replace('mailto:?subject=Curriculum%20Vitae','mailto:' + xansx[0].toLowerCase() + '?subject=' + encodeURIComponent(ansx.replace(xansx[0] + ' ',''))); } else { document.getElementById('acvemail').href=document.getElementById('acvemail').href.replace('mailto:?','mailto:' + xansx[0].toLowerCase() + '?'); } document.getElementById('acvemail').click(); } if (ansx[0] == ansx[0].toLowerCase() || ansx[0] != ansx[0].toUpperCase()) { document.getElementById('myf').innerHTML+=''; if (xansx.length > 1) { document.getElementById('myf').innerHTML+=''; } else { document.getElementById('myf').innerHTML+=''; } } } } } function initemail() { document.getElementById('aemail').href=document.getElementById('aemail').href.replace(/\ /g,'%20').replace(/\+/g,'%20'8/*-) + encodeURIComponent(dul + '?fconcept=') + encodeURIComponent('" . str_replace("'","' + String.fromCharCode(39) + '",str_replace("Survey Survey","Survey",($_GET['fconcept']) . " Survey")) . " Report&" . "').replace(/\%20/g,'+'); fixemail(); } function fixemail() { var prerest=document.getElementById('aemail').href.split('?subject=')[1].split('&body=')[0]; var rest=document.getElementById('aemail').href.split('&body=')[1].split('php')[1]; document.getElementById('aemail').href=document.getElementById('aemail').href.split('?subject=')[0] + '?subject=' + (prerest) + '&body=' + encodeURIComponent('https://www.rjmprogramming.com.au/PHP/speech_supervisor.php') + (rest).replace(/\%20/g,'+'); } " . $defbh . " "; $ival=0; if ($joff == 0) { if (isset($_GET['s' . $ival])) { $htmlis=str_replace("", "
LabelValue
", $htmlis); } else { $htmlis=str_replace("", "
Value
", $htmlis); } } while (isset($_GET['i' . $ival])) { if ($joff != 0) { $farr=explode("<" . str_replace("`","'",str_replace("+"," ",urldecode($_GET['s' . $ival]))) . ">", $htmlis); if (sizeof($farr) <= 2) { $htmlis=str_replace("<" . str_replace("`","'",str_replace("+"," ",urldecode($_GET['s' . $ival]))) . ">", str_replace("+"," ",urldecode($_GET['i' . $ival])), $htmlis); } else { $prehtml=$farr[0] . "<" . str_replace("`","'",str_replace("+"," ",urldecode($_GET['s' . $ival]))) . ">"; $posthtml=str_replace("<" . str_replace("`","'",str_replace("+"," ",urldecode($_GET['s' . $ival]))) . ">", str_replace("+"," ",urldecode($_GET['i' . $ival])), $prehtml); $htmlis=str_replace($prehtml, $posthtml, $htmlis); } } else { if (isset($_GET['s' . $ival])) { $htmlis=str_replace("", "" . urldecode($_GET['s' . $ival]) . "" . urldecode($_GET['i' . $ival]) . "", $htmlis); $htmlis=str_replace("function fixemail() {", "function fixemail() { document.getElementById('aemail').href+=encodeURIComponent('s" . $ival . "=" . str_replace("'","' + String.fromCharCode(39) + '",($_GET['s' . $ival])) . "&'); ", $htmlis); $htmlis=str_replace("function fixemail() {", "function fixemail() { document.getElementById('aemail').href+=encodeURIComponent('i" . $ival . "=" . str_replace("'","' + String.fromCharCode(39) + '",($_GET['i' . $ival])) . "&'); ", $htmlis); } else { $htmlis=str_replace("", "" . urldecode($_GET['i' . $ival]) . "", $htmlis); $htmlis=str_replace("function fixemail() {", "function fixemail() { document.getElementById('aemail').href+=encodeURIComponent('i" . $ival . "=" . str_replace("'","' + String.fromCharCode(39) + '",($_GET['i' . $ival])) . "&'); ", $htmlis); } } $ival++; } if (isset($_GET['theto'])) { if (strpos(urldecode($_GET['theto']), "@") !== false) { // && strpos($htmlis, "") !== false) { $eol = PHP_EOL; $header = 'From: ' . 'rmetcalfe@rjmprogramming.com.au' . $eol; $header .= 'Reply-To: ' . 'rmetcalfe@rjmprogramming.com.au' . $eol; if (isset($_GET['thecc'])) { $header .= 'CC: ' . urldecode($_GET['thecc']) . $eol; } if (isset($_GET['thebcc'])) { $header .= 'BCC: ' . urldecode($_GET['thebcc']) . $eol; } // attachment $filename=str_replace("@", "_", str_replace(".", "_", urldecode($_GET['thesubject']) . urldecode($_GET['theto']))) . ".html"; $content = chunk_split(base64_encode(str_replace("%2b","+",str_replace(' contenteditable=',' data-alt=',$htmlis)))); $message="Please download attached webpage. "; if (sizeof(explode("\n",urldecode($_GET['thesubject']))) > 1) { $message.=str_replace("\r"," ",str_replace("\n"," ",str_replace(explode("\r",explode("\n",urldecode($_GET['thesubject']))[0])[0], "", urldecode($_GET['subject'])))); } // a random hash will be necessary to send mixed content $uid = md5(time()); $header .= "MIME-Version: 1.0\r\n"; $header .= "Content-Type: multipart/mixed; boundary=\"".$uid."\"\r\n\r\n"; $header .= "This is a multi-part message in MIME format.\r\n"; $header .= "--".$uid."\r\n"; $header .= "Content-type:text/html; charset=iso-8859-1\r\n"; $header .= "Content-Transfer-Encoding: 7bit\r\n\r\n"; $header .= $message."\r\n\r\n"; $header .= "--".$uid."\r\n"; $header .= "Content-Type: application/octet-stream; name=\"".$filename."\"\r\n"; // use different content types here $header .= "Content-Transfer-Encoding: base64\r\n"; $header .= "Content-Disposition: attachment; filename=\"".$filename."\"\r\n\r\n"; $header .= $content."\r\n\r\n"; $header .= "--".$uid."--"; try { mail(urldecode($_GET['theto']), explode("\r",explode("\n",urldecode($_GET['thesubject']))[0])[0], "", $header); //$htmlis=str_replace("inite" . "mail();"," alert('Email sent okay.'); inite" . "mail();", $htmlis); } catch (Exception $ee) { //$htmlis=str_replace("inite" . "mail();"," alert('Email not sent.'); inite" . "mail();", $htmlis); } } } echo $htmlis; exit; } else { $lot=""; $wsb=""; if (isset($_GET['thetemplate'])) { if (strlen($_GET['thetemplate']) > 0) { if (strpos(str_replace("myAgendaTemplate.html","Curriculum_Vitae_LibreOffice.html",urldecode($_GET['thetemplate'])), "Curriculum_Vitae_LibreOffice.html") !== false && strpos(urldecode($_GET['thetemplate']), "rjmprogramming.com.au") !== false) { $lot="LibreOffice Email Template "; } else { $lot="LibreOffice Template "; } if (trim(urldecode($_GET['thetemplate'])) != '') { if (strpos(strtolower(urldecode($_GET['thetemplate'])), 'http') === false) { $wsb=explode("",str_replace($origlangchange,$langchange,file_get_contents('http:' . urldecode($_GET['thetemplate']))))[0])[1]; } else { $wsb=explode("",str_replace($origlangchange,$langchange,file_get_contents(str_replace('https:','http:',urldecode($_GET['thetemplate'])))))[0])[1]; } } } } else if (isset($_POST['thetemplate'])) { if (strlen($_POST['thetemplate']) > 0) { if (strpos(str_replace("myAgendaTemplate.html","Curriculum_Vitae_LibreOffice.html",urldecode($_POST['thetemplate'])), "Curriculum_Vitae_LibreOffice.html") !== false && strpos(urldecode($_POST['thetemplate']), "rjmprogramming.com.au") !== false) { $lot="LibreOffice Email Template "; } else { $lot="LibreOffice Template "; } if (trim(urldecode($_POST['thetemplate'])) != '') { if (strpos(strtolower(urldecode($_POST['thetemplate'])), 'http') === false) { $wsb=explode("",str_replace($origlangchange,$langchange,file_get_contents('http:' . urldecode($_POST['thetemplate']))))[0])[1]; } else { $wsb=explode("",str_replace($origlangchange,$langchange,file_get_contents(str_replace('https:','http:',urldecode($_POST['thetemplate'])))))[0])[1]; } } } } $xcvs=explode("", $wsb)[0])); if (sizeof($xcvs) > 1) { if (strpos($xcvs[1], "<css>") !== false) { $huhs=explode("/*", $xcvs[1]); if (sizeof($huhs) > 1) { $stylestuff="*/ \n" . substr($xcvs[1], 0, (strlen($xcvs[1]) - (2 + strlen($huhs[-1 + sizeof($huhs)])))) . "\n /* "; } else { $stylestuff="*/ \n" . $xcvs[1] . "\n /* "; } } } if (isset($_POST['theto'])) { if (strpos(urldecode($_POST['theto']), "@") !== false) { // && strpos($htmlis, "") !== false) { $htmlis=$htmltop . " " . str_replace("Survey Survey","Survey",str_replace('+',' ',urldecode($_POST['concept'])) . " Survey") . " " . $lot . "Form Questions var mediao=null, owo=null, say=''; var athing='" . $athing . "',yourlcclick=0, ilangsuffix=-1,maybesaynext='',langsuffix='" . $langsuffix . "'; var iahelp=0, ahelp=[" . listurls() . "];

" . str_replace("Survey Survey","Survey",str_replace("+"," ",urldecode($_POST['concept'])) . " Survey") . " " . $lot . "Form Questions

... another?

"; $eol = PHP_EOL; $header = 'From: ' . 'rmetcalfe@rjmprogramming.com.au' . $eol; $header .= 'Reply-To: ' . 'rmetcalfe@rjmprogramming.com.au' . $eol; if (isset($_POST['thecc'])) { $header .= 'CC: ' . urldecode($_POST['thecc']) . $eol; } if (isset($_POST['thebcc'])) { $header .= 'BCC: ' . urldecode($_POST['thebcc']) . $eol; } // attachment $filename=str_replace("@", "_", str_replace(".", "_", urldecode($_POST['thesubject']) . urldecode($_POST['theto']))) . ".html"; $content = chunk_split(base64_encode(str_replace("%2b","+",$htmlis))); $message="Please download attached webpage. "; if (sizeof(explode("\n",urldecode($_POST['thesubject']))) > 1) { $message.=str_replace("\r"," ",str_replace("\n"," ",str_replace(explode("\r",explode("\n",urldecode($_POST['thesubject']))[0])[0], "", urldecode($_POST['subject'])))); } // a random hash will be necessary to send mixed content $uid = md5(time()); $header .= "MIME-Version: 1.0\r\n"; $header .= "Content-Type: multipart/mixed; boundary=\"".$uid."\"\r\n\r\n"; $header .= "This is a multi-part message in MIME format.\r\n"; $header .= "--".$uid."\r\n"; $header .= "Content-type:text/html; charset=iso-8859-1\r\n"; $header .= "Content-Transfer-Encoding: 7bit\r\n\r\n"; $header .= $message."\r\n\r\n"; $header .= "--".$uid."\r\n"; $header .= "Content-Type: application/octet-stream; name=\"".$filename."\"\r\n"; // use different content types here $header .= "Content-Transfer-Encoding: base64\r\n"; $header .= "Content-Disposition: attachment; filename=\"".$filename."\"\r\n\r\n"; $header .= $content."\r\n\r\n"; $header .= "--".$uid."--"; try { mail(urldecode($_POST['theto']), explode("\r",explode("\n",urldecode($_POST['thesubject']))[0])[0], "", $header); //$htmlis=str_replace("inite" . "mail();"," alert('Email sent okay.'); inite" . "mail();", $htmlis); } catch (Exception $ee) { //$htmlis=str_replace("inite" . "mail();"," alert('Email not sent.'); inite" . "mail();", $htmlis); } } } $ifmaybe=""; if (isset($_GET['mode'])) { if ($_GET['mode'] == "3") { $ifmaybe=""; } } $qone="Quiz"; $qlabels='"' . $qone . '","Tongue Twisters","Haiku","Animal Categorization","Vocabulary Phrases","Hangman","Survey or LibreOffice Template","Curriculum Vitae","Agenda"'; $orig_qlabels='"' . $qone . '","Tongue Twisters","Haiku","Animal Categorization","Vocabulary Phrases","Hangman","Survey or LibreOffice Template","Curriculum Vitae","Agenda"'; $qarrays='"questions","tongue_twisters","haiku","animal_categorization","vocabulary","hangman","survey","curriculum_vitae","agenda"'; $qdelims='"?","~","`","`","`","`","?","?","?"'; $qcols='"yellow","lightgreen","lightblue","lightgray","pink","cyan","orange","magenta","olive"'; $qforce=""; $qis='"What is the name that we give to the meat we get from pigs?pork", "What is the name of the metal alloy we get from zinc and copper?bronze", "What is the capital of Australia?Canberra", "Who wrote The Tale of Two Cities?Dickens", "How many legs does the Legs of Man have?three", "How many tails does a Manx cat have?none", "How many teeth does an aardvark have?none", "Which sea creature has three hearts?octopus", "Which instrument has forty-seven strings and seven pedals?harp", "In the traditional rhyme, how many mice were blind?three", "How many pedals do most modern pianos have?three"'; $qlast=0; if (isset($_GET['questions'])) { $qis=urldecode($_GET['questions']); } else if (isset($_POST['questions'])) { $qis=urldecode($_POST['questions']); } if (isset($_GET['concept'])) { $qqval=''; $qqhval=''; $qone=urldecode($_GET['concept']); $qlabels='"' . $qone . '"'; $qarrays='"questions"'; $qdelims='"?"'; $qcols='"pink"'; $qforce="0; /" . "/ "; $qins=""; if (isset($_GET['thetemplate'])) { $qins.=""; } else if (isset($_POST['thetemplate'])) { $qins.=""; } $qins.=""; $qins.=""; $qins.=""; if (strpos(explode('",', $qis)[0], "?") === false) { $xx=ourstr_replace("_"," ",substr(explode('",', ($qis . ","))[0],1)); $qins.=" "; } else if (strlen(explode("?", explode('",', ($qis . ","))[0])[0] . "?") == strlen(explode('",', $qis)[0])) { $xx=ourstr_replace("_"," ",str_replace('?','',substr(explode('",', ($qis . ","))[0],1))); $qins.=" "; } else { $xx=ourstr_replace("_"," ",substr(explode("?", explode('",', ($qis . ","))[0])[1],0)); $qins.="" . $xx . " "; } $qins.=" 0 && this.value != '" . $qqhval . "') { obv=this.value; if (sofarb[1] != null) { sofarb[0].innerHTML=this.value.replace(String.fromCharCode(32),' '); sofarb[1].innerHTML=this.value.replace(String.fromCharCode(32),' '); } prepickq(this.value); } \" type=text name=i0 id=i0 value='" . $qqhval . "' title='You need at least a space here and/or to have changed the default value for the tabbing out to be recognized as your value, and that
represents a line feed'>
"; for ($ii=1; $ii "; } else if (strlen(explode("?", explode('",', ($qis . ","))[$ii])[0] . "?") == strlen(explode('",', $qis)[$ii])) { if (substr(explode("?", explode('",', ($qis . ","))[$ii])[0],1) == "css") $qqval=$stylestuff; $xx=ourstr_replace("_"," ",str_replace('?','',substr(explode('",', ($qis . ","))[$ii],1))); $qins.=" "; } else { if (substr(explode("?", explode('",', ($qis . ","))[$ii])[1],0) == "css") $qqval=$stylestuff; $xx=ourstr_replace("_"," ",substr(explode("?", explode('",', ($qis . ","))[$ii])[1],0)); $qins.=" "; } if ($qqval != "") { $qins.="



"; } else { $qins.=" 0 && this.value != '" . $qqhval . "') { obv=this.value; if (sofarb[1] != null) { sofarb[0].innerHTML=this.value.replace(String.fromCharCode(32),' '); sofarb[1].innerHTML=this.value.replace(String.fromCharCode(32),' '); } prepickq(this.value); } \" style=display:none; type=text name=i" . $ii . " id=i" . $ii . " value='" . $qqhval . "' title='You need at least a space here and/or to have changed the default value for the tabbing out to be recognized as your value, and that
represents a line feed'>"; //
} $qlast=$ii; } $ifmaybe="

" . str_replace(" LibreOffice"," LibreOffice",$qone) . " " . $lot . "Form

" . $qins . "
"; //$ifmaybe="

" . str_replace(" LibreOffice"," LibreOffice",$qone) . " Form

" . $qins . "
"; } else if (isset($_POST['concept'])) { $qqval=''; $qqhval=''; $qone=urldecode($_POST['concept']); $qlabels='"' . $qone . '"'; $qarrays='"questions"'; $qdelims='"?"'; $qcols='"pink"'; $qforce="0; /" . "/ "; $qins=""; if (isset($_GET['thetemplate'])) { $qins.=""; } else if (isset($_POST['thetemplate'])) { $qins.=""; } $qins.=""; $qins.=""; $qins.=""; if (strpos(explode('",', $qis)[0], "?") === false) { $xx=ourstr_replace("_"," ",substr(explode('",', ($qis . ","))[0],1)); $qins.=" "; } else if (strlen(explode("?", explode('",', ($qis . ","))[0])[0] . "?") == strlen(explode('",', $qis)[0])) { $xx=ourstr_replace("_"," ",str_replace('?','',substr(explode('",', ($qis . ","))[0],1))); $qins.=" "; } else { $xx=ourstr_replace("_"," ",substr(explode("?", explode('",', ($qis . ","))[0])[1],0)); $qins.="" . $xx . " "; } $qins.=" 0 && this.value != '" . $qqhval . "') { obv=this.value; if (sofarb[1] != null) { sofarb[0].innerHTML=this.value.replace(String.fromCharCode(32),' '); sofarb[1].innerHTML=this.value.replace(String.fromCharCode(32),' '); } prepickq(this.value); } \" type=text name=i0 id=i0 value='" . $qqhval . "' title='You need at least a space here and/or to have changed the default value for the tabbing out to be recognized as your value, and that
represents a line feed'>
"; for ($ii=1; $ii "; } else if (strlen(explode("?", explode('",', ($qis . ","))[$ii])[0] . "?") == strlen(explode('",', $qis)[$ii])) { if (substr(explode("?", explode('",', ($qis . ","))[$ii])[0],1) == "css") $qqval=$stylestuff; $xx=ourstr_replace("_"," ",str_replace('?','',substr(explode('",', ($qis . ","))[$ii],1))); $qins.=" "; } else { if (substr(explode("?", explode('",', ($qis . ","))[$ii])[1],0) == "css") $qqval=$stylestuff; $xx=ourstr_replace("_"," ",substr(explode("?", explode('",', ($qis . ","))[$ii])[1],0)); $qins.=" "; } if ($qqval != "") { $qins.="



"; } else { $qins.=" 0 && this.value != '" . $qqhval . "') { obv=this.value; if (sofarb[1] != null) { sofarb[0].innerHTML=this.value.replace(String.fromCharCode(32),' '); sofarb[1].innerHTML=this.value.replace(String.fromCharCode(32),' '); } prepickq(this.value); } \" style=display:none; type=text name=i" . $ii . " id=i" . $ii . " value='" . $qqhval . "' title='You need at least a space here and/or to have changed the default value for the tabbing out to be recognized as your value, and that
represents a line feed'>"; //
} $qlast=$ii; } $ifmaybe="

" . str_replace(" LibreOffice"," LibreOffice",$qone) . " " . $lot . "Form

" . $qins . "
"; //$ifmaybe="

" . str_replace(" LibreOffice"," LibreOffice",$qone) . " Form

" . $qins . "
"; } } echo $htmltop . "\n"; ?> Speaking Quiz (at least on Google Chrome) - RJM Programming - May, 2018 ... thanks to https://www.google.com/intl/en/chrome/demos/speech.html for Speech to Text '); document.getElementById('asayx').innerHTML='Do not use ' + athing; document.getElementById('kb').focus(); setTimeout(hibafix,2000); document.getElementById('dzip').innerHTML=''; pickq();">
LibreOffice",$qone); ?> (thanks to Google Speech to Text)


<- 1 Player 2 ->


One quizzer can
key in 1 (left)
or 2 (right)






Score: 0/0