//if ( $_POST['Action'] == "verify" ) { // // We wouldn't be here if they hadn't failed // $smarty->assign('verifyFailed', TRUE); //} //$smarty->assign('senderName', ($theDropbox->authorizedUser() ? $theDropbox->authorizedUserData("displayName") : htmlentities(stripslashes($_POST['senderName'])))); //$smarty->assign('senderOrg', ($theDropbox->authorizedUser() ? $theDropbox->authorizedUserData("organization") : htmlentities(stripslashes($_POST['senderOrganization'])))); //$smarty->assign('senderEmail', ($theDropbox->authorizedUser() ? strtolower($theDropbox->authorizedUserData("mail")) : htmlentities(stripslashes($_POST['senderEmail'])))); $smarty->assign('senderName', $theDropbox->authorizedUser() ? $theDropbox->authorizedUserData("displayName") : (isset($_POST['senderName']) ? htmlentities(paramPrepare($_POST['senderName'])) : NULL)); $smarty->assign('senderOrg', $theDropbox->authorizedUser() ? $theDropbox->authorizedUserData("organization") : (isset($_POST['senderOrganization']) ? htmlentities(paramPrepare($_POST['senderOrganization'])) : NULL)); $smarty->assign('senderEmail', $theDropbox->authorizedUser() ? strtolower($theDropbox->authorizedUserData("mail")) : (isset($_POST['senderEmail']) ? htmlentities(paramPrepare($_POST['senderEmail'])) : NULL)); if (!$theDropbox->authorizedUser()) { $captcha = $theDropbox->captcha(); if ($captcha === 'areyouahuman') { $smarty->assign('recaptchaHTML', $ayah->getPublisherHTML()); $smarty->assign('recaptchaDisabled', FALSE); } elseif ($captcha === 'google' || $captcha === '') { // Using Google or an old version without this set $reCaptchaPublicKey = $theDropbox->recaptchaPublicKey(); if ($reCaptchaPublicKey === 'disabled') { $smarty->assign('recaptchaDisabled', TRUE); } else { $smarty->assign('recaptchaHTML', recaptcha_get_html($reCaptchaPublicKey)); $smarty->assign('recaptchaDisabled', FALSE); } } else { // Must be disabled $smarty->assign('recaptchaDisabled', TRUE); } } $smarty->display('verify.tpl'); }