function SaveSoundData($p_InstanceId, $p_SoundBytes) { LBD_Persistence_Save('LBD_Cached_SoundData_' . $p_InstanceId, $p_SoundBytes); }
function Get_iOS_ChunkedSound() { // detect the first request after a new sound icon click, and clear any stored data // to avoid reusing the same sound endlessly within a session // javascript player adds a timestamp querystring param ("&d=..."), so it can be detected by it $isJavaScriptPlayerRequest = array_key_exists('d', $_GET) && LBD_StringHelper::HasValue($_GET['d']); if ($isJavaScriptPlayerRequest) { // when javascript is enabled, we can detect the first request because the timestamp changed $soundClickId = LBD_StringHelper::Normalize($_GET['d']); $prevSoundClickId = LBD_Persistence_Load('prevSoundClickId'); if (0 != strcasecmp($soundClickId, $prevSoundClickId)) { Clear_iOS_SoundData(); LBD_Persistence_Save('prevSoundClickId', $soundClickId); // on first request, save for future checks } } // sound byte subset $range = GetSoundByteRange(); $rangeStart = $range['start']; $rangeEnd = $range['end']; $rangeSize = $rangeEnd - $rangeStart; // full sound bytes $soundBytes = Get_iOS_SoundData(); if (is_null($soundBytes)) { return; } $totalSize = strlen($soundBytes) - 1; // initial iOS 6.0.1 testing; leaving as fallback since we can't be sure it won't happen again: // we depend on observed behavior of invalid range requests to detect // end of sound playback, cleanup and tell AppleCoreMedia to stop requesting // invalid "bytes=rangeEnd-rangeEnd" ranges in an infinite(?) loop if ($rangeStart == $rangeEnd || $rangeEnd > $totalSize) { Clear_iOS_SoundData(); LBD_HttpHelper::BadRequest('invalid byte range'); } while (ob_get_length()) { ob_end_clean(); } ob_start(); try { // partial content response with the requested byte range header('HTTP/1.1 206 Partial Content'); $mimeType = $captcha->SoundMimeType; header("Content-Type: {$mimeType}"); header('Content-Transfer-Encoding: binary'); header('X-Robots-Tag: noindex, nofollow, noarchive, nosnippet'); header('Accept-Ranges: bytes'); header("Content-Length: {$rangeSize}"); header("Content-Range: bytes {$rangeStart}-{$rangeEnd}/{$totalSize}"); if (!array_key_exists('d', $_GET)) { // javascript player not used, we send the file directly as a download $downloadId = LBD_CryptoHelper::GenerateGuid(); header("Content-Disposition: attachment; filename=captcha_{$downloadId}.wav"); } LBD_HttpHelper::SmartDisallowCache(); $rangeBytes = substr($soundBytes, $rangeStart, $rangeSize); echo $rangeBytes; } catch (Exception $e) { header('Content-Type: text/plain'); echo $e->getMessage(); } ob_end_flush(); exit; }
public function Save() { $this->hfm6i(); if ($this->_if7zyom64ki4nd3t) { LBD_Persistence_Save($this->rdzzm(), $this->Locale); } else { LBD_Persistence_Clear($this->rdzzm()); } if ($this->_owuwfi8469xqtnkez9woi) { LBD_Persistence_Save($this->bjebj(), $this->CodeLength); } else { LBD_Persistence_Clear($this->bjebj()); } if ($this->_ivwo8o8qrpdq8sq0) { LBD_Persistence_Save($this->pl041(), $this->CodeStyle); } else { LBD_Persistence_Clear($this->pl041()); } if ($this->_i1rafmw7nwjzj977w9q7kgur14) { LBD_Persistence_Save($this->ltw2c(), $this->ImageStyle); } else { LBD_Persistence_Clear($this->ltw2c()); } if ($this->_ivr7vepg3zn5f6fg) { LBD_Persistence_Save($this->zgjpp(), $this->ImageFormat); } else { LBD_Persistence_Clear($this->zgjpp()); } if ($this->_ocdl19ipivc2uwtb) { LBD_Persistence_Save($this->ez59g(), $this->ImageWidth); } else { LBD_Persistence_Clear($this->ez59g()); } if ($this->_li43uuovb2yu9is4m0rj6qyhik) { LBD_Persistence_Save($this->nr1rv(), $this->ImageHeight); } else { LBD_Persistence_Clear($this->nr1rv()); } if ($this->_irr9hfko3p64hwzlgmelg) { LBD_Persistence_Save($this->adhy6(), $this->CustomLightColor); } else { LBD_Persistence_Clear($this->adhy6()); } if ($this->_0k74zbvxopkm5gkmghxi5vluqa) { LBD_Persistence_Save($this->nd6k6(), $this->CustomDarkColor); } else { LBD_Persistence_Clear($this->nd6k6()); } if ($this->_Ikjyrzmz6x59lho8bhw0a) { LBD_Persistence_Save($this->k3w0g(), $this->SoundEnabled); } else { LBD_Persistence_Clear($this->k3w0g()); } if ($this->_owi93zmiusygphf0slxazv6rru) { LBD_Persistence_Save($this->ry29k(), $this->SoundStyle); } else { LBD_Persistence_Clear($this->ry29k()); } if ($this->_1swl66hdqvklcr7c2o2nh) { LBD_Persistence_Save($this->kt1iw(), $this->SoundFormat); } else { LBD_Persistence_Clear($this->kt1iw()); } if ($this->_iwfgg9dqc7qc77m1) { LBD_Persistence_Save($this->jhnym(), $this->SoundRegenerationMode); } else { LBD_Persistence_Clear($this->jhnym()); } }
public function Save() { $this->a6dwj(); if ($this->_Ieisykicrgace7w3ykfi9x3tr9) { LBD_Persistence_Save($this->g193f(), $this->Locale); } else { LBD_Persistence_Clear($this->g193f()); } if ($this->_1k5ipk3w3mmgwrrhklp37s2r2x) { LBD_Persistence_Save($this->yvx04(), $this->CodeLength); } else { LBD_Persistence_Clear($this->yvx04()); } if ($this->_oq0ruwtmdlg4gwsp) { LBD_Persistence_Save($this->j2mme(), $this->CodeStyle); } else { LBD_Persistence_Clear($this->j2mme()); } if ($this->_Ohw1lk3m0zayzw0fnxwhoyg018) { LBD_Persistence_Save($this->qbsjq(), $this->ImageStyle); } else { LBD_Persistence_Clear($this->qbsjq()); } if ($this->_0f17xdutltds5a0w) { LBD_Persistence_Save($this->iuml7(), $this->ImageFormat); } else { LBD_Persistence_Clear($this->iuml7()); } if ($this->_ohw7xu1dtw1cb5081wj88) { LBD_Persistence_Save($this->ntakt(), $this->ImageWidth); } else { LBD_Persistence_Clear($this->ntakt()); } if ($this->_o3whcov424hhd5v5) { LBD_Persistence_Save($this->jv6am(), $this->ImageHeight); } else { LBD_Persistence_Clear($this->jv6am()); } if ($this->_Ofc2g2cqv7550c9zlw7lz) { LBD_Persistence_Save($this->n3em5(), $this->CustomLightColor); } else { LBD_Persistence_Clear($this->n3em5()); } if ($this->_lx2is99yo0xltd24gqgt263j6m) { LBD_Persistence_Save($this->zjn6t(), $this->CustomDarkColor); } else { LBD_Persistence_Clear($this->zjn6t()); } if ($this->_idm0uoiuc46q1fsh) { LBD_Persistence_Save($this->pp4wo(), $this->SoundEnabled); } else { LBD_Persistence_Clear($this->pp4wo()); } if ($this->_o8j4lavbrp5rr7cbw20jl) { LBD_Persistence_Save($this->ej91q(), $this->SoundStyle); } else { LBD_Persistence_Clear($this->ej91q()); } if ($this->_ol6xkbhe879bjo8v) { LBD_Persistence_Save($this->aus8k(), $this->SoundFormat); } else { LBD_Persistence_Clear($this->aus8k()); } if ($this->_ov3o64cqszd8zdwh) { LBD_Persistence_Save($this->s0nvm(), $this->SoundRegenerationMode); } else { LBD_Persistence_Clear($this->s0nvm()); } }
public function Save() { $this->d2uj9(); if ($this->_lemgnz63tei1j57i) { LBD_Persistence_Save($this->d3a37(), $this->Locale); } else { LBD_Persistence_Clear($this->d3a37()); } if ($this->_lpegxxuyz4rkklhwkw4i9) { LBD_Persistence_Save($this->ey62l(), $this->CodeLength); } else { LBD_Persistence_Clear($this->ey62l()); } if ($this->_i2ks3n6vtcr7dfepf6fmauz3d9) { LBD_Persistence_Save($this->k3tnl(), $this->CodeStyle); } else { LBD_Persistence_Clear($this->k3tnl()); } if ($this->_lrzjonvht8oe2vf714up6) { LBD_Persistence_Save($this->xjhaq(), $this->ImageStyle); } else { LBD_Persistence_Clear($this->xjhaq()); } if ($this->_lnm0om4jv4t6xz7u) { LBD_Persistence_Save($this->ua2sa(), $this->ImageFormat); } else { LBD_Persistence_Clear($this->ua2sa()); } if ($this->_Oyw4lkjd4f0wo4p8) { LBD_Persistence_Save($this->pv6uo(), $this->ImageWidth); } else { LBD_Persistence_Clear($this->pv6uo()); } if ($this->_o7l4syffx44wg07yk4555) { LBD_Persistence_Save($this->b09ng(), $this->ImageHeight); } else { LBD_Persistence_Clear($this->b09ng()); } if ($this->_1uuuv8ns0qyl9vuq) { LBD_Persistence_Save($this->aku71(), $this->CustomLightColor); } else { LBD_Persistence_Clear($this->aku71()); } if ($this->_oibbd19hrvke8iipo3afextn4p) { LBD_Persistence_Save($this->o2vta(), $this->CustomDarkColor); } else { LBD_Persistence_Clear($this->o2vta()); } if ($this->_1nux62axphc82c5j) { LBD_Persistence_Save($this->bez06(), $this->SoundStyle); } else { LBD_Persistence_Clear($this->bez06()); } if ($this->_lghtczisxfgtv9yb8fchh) { LBD_Persistence_Save($this->ougkg(), $this->SoundFormat); } else { LBD_Persistence_Clear($this->ougkg()); } }
public function Save() { $this->umgsp(); if ($this->_02nu3dhd2artbjp4i2b89nr23s) { LBD_Persistence_Save($this->zvv52(), $this->Locale); } else { LBD_Persistence_Clear($this->zvv52()); } if ($this->_O65vn65b599l4e06) { LBD_Persistence_Save($this->izqcm(), $this->CodeLength); } else { LBD_Persistence_Clear($this->izqcm()); } if ($this->_Oezjt2tl0054fw32rn61d) { LBD_Persistence_Save($this->sl85j(), $this->CodeStyle); } else { LBD_Persistence_Clear($this->sl85j()); } if ($this->_O7ayvjyrq3m2tcpcmybq9) { LBD_Persistence_Save($this->uedsr(), $this->ImageStyle); } else { LBD_Persistence_Clear($this->uedsr()); } if ($this->_03udfa23fyx6xqcc) { LBD_Persistence_Save($this->jcrqx(), $this->ImageFormat); } else { LBD_Persistence_Clear($this->jcrqx()); } if ($this->_Opl0q8925eqjz945kxc6b) { LBD_Persistence_Save($this->kv52a(), $this->ImageWidth); } else { LBD_Persistence_Clear($this->kv52a()); } if ($this->_lx1lr41mh5z1g360k4p1a3rowd) { LBD_Persistence_Save($this->a08t3(), $this->ImageHeight); } else { LBD_Persistence_Clear($this->a08t3()); } if ($this->_13o4knylv58f4i0qnms82) { LBD_Persistence_Save($this->lhbo2(), $this->CustomLightColor); } else { LBD_Persistence_Clear($this->lhbo2()); } if ($this->_idhlcn5s415bpozxll5bg1fnum) { LBD_Persistence_Save($this->s3vef(), $this->CustomDarkColor); } else { LBD_Persistence_Clear($this->s3vef()); } if ($this->_08p68c8gbnol9yn5d57gak4mon) { LBD_Persistence_Save($this->m9yly(), $this->SoundEnabled); } else { LBD_Persistence_Clear($this->m9yly()); } if ($this->_i94z1l1u9wdoe4o7aulqk) { LBD_Persistence_Save($this->xs6md(), $this->SoundStyle); } else { LBD_Persistence_Clear($this->xs6md()); } if ($this->_03rz1vuw0ec2tblxjgybb) { LBD_Persistence_Save($this->feouy(), $this->SoundFormat); } else { LBD_Persistence_Clear($this->feouy()); } if ($this->_19gjucl7d7ptkcb9qd079) { LBD_Persistence_Save($this->kbdzl(), $this->SoundRegenerationMode); } else { LBD_Persistence_Clear($this->kbdzl()); } }
public function AjaxValidate($_iezzsfvosrklp6pb = null, $_oc4q2zipsv2d88hjssh8q4daux = null) { $_irh9homwutd4jpx9 = false; if (isset($_iezzsfvosrklp6pb) && isset($_oc4q2zipsv2d88hjssh8q4daux)) { $_irh9homwutd4jpx9 = $this->_i42mw1gg47pybk5r->Validate($_iezzsfvosrklp6pb, $_oc4q2zipsv2d88hjssh8q4daux, LBD_ValidationAttemptOrigin::Client); } if ($_irh9homwutd4jpx9) { LBD_Persistence_Save("LBD_IsSolved_" . $this->_1n5z7z9ryadongas9h3jtl8alk, true); } else { LBD_Persistence_Clear("LBD_IsSolved_" . $this->_1n5z7z9ryadongas9h3jtl8alk); } return $_irh9homwutd4jpx9; }
public function Validate($_1qquoxc6kfs20ork6h4c6 = null, $_Idj833s7p1rmhgx2 = null) { if (!isset($_1qquoxc6kfs20ork6h4c6) && array_key_exists($this->_O63how9apgdrq3wc1jw2tgeqzl, $_REQUEST)) { $_1qquoxc6kfs20ork6h4c6 = $_REQUEST[$this->_O63how9apgdrq3wc1jw2tgeqzl]; $_1qquoxc6kfs20ork6h4c6 = trim($_1qquoxc6kfs20ork6h4c6); } if (!isset($_Idj833s7p1rmhgx2) && array_key_exists($this->_Oq3w7fs1nex3zscid5ypn, $_REQUEST)) { $_Idj833s7p1rmhgx2 = $_REQUEST[$this->_Oq3w7fs1nex3zscid5ypn]; } if (!isset($_1qquoxc6kfs20ork6h4c6) || !isset($_Idj833s7p1rmhgx2)) { return false; } $_1ufq62347afxnh5pixbvb = $this->_08zj64b6y4sxb8y8->Validate($_1qquoxc6kfs20ork6h4c6, $_Idj833s7p1rmhgx2, LBD_ValidationAttemptOrigin::Server); if ($_1ufq62347afxnh5pixbvb) { LBD_Persistence_Save("LBD_IsSolved_" . $this->_Opywuuujbkorzb71y6i472ne4x, true); } else { LBD_Persistence_Clear("LBD_IsSolved_" . $this->_Opywuuujbkorzb71y6i472ne4x); } return $_1ufq62347afxnh5pixbvb; }
public function AjaxValidate($_lt80zjj7q17h4rhsyfuhcecor3 = null, $_i81uinrfcw1fmlsjjzxiy = null) { $_0d3s9v4lpivut7r0o1770c7ijg = false; if (isset($_lt80zjj7q17h4rhsyfuhcecor3) && isset($_i81uinrfcw1fmlsjjzxiy)) { $_0d3s9v4lpivut7r0o1770c7ijg = $this->_o27dysbzfa6rzk7u->Validate($_lt80zjj7q17h4rhsyfuhcecor3, $_i81uinrfcw1fmlsjjzxiy, LBD_ValidationAttemptOrigin::Client); } if ($_0d3s9v4lpivut7r0o1770c7ijg) { LBD_Persistence_Save("LBD_IsSolved_" . $this->_olsn4ldb6xnunpve, true); } else { LBD_Persistence_Clear("LBD_IsSolved_" . $this->_olsn4ldb6xnunpve); } return $_0d3s9v4lpivut7r0o1770c7ijg; }