Example #1
0
 if ($theVerify = new Verify($theDropbox)) {
     if ($theVerify->formInitError() != "") {
         NSSError($theVerify->formInitError(), "Verify error");
         $smarty->display('error.tpl');
     } else {
         // The for worked, go for it!
         $theDropbox->SetupPage();
         $authFullName = $theDropbox->authorizedUserData("displayName");
         $authEmail = $theDropbox->authorizedUserData("mail");
         $authOrganization = paramPrepare($_POST['senderOrganization']);
         $authOrganization = preg_replace('/[^a-zA-Z0-9\\.\\-\\_\\+\\"\'\\@\\/\\:\\&\\, ]/', '', $authOrganization);
         $smarty->assign('senderName', $authFullName);
         $smarty->assign('senderOrg', $authOrganization);
         $smarty->assign('senderEmail', strtolower($authEmail));
         $smarty->assign('recipEmailNum', 1);
         $smarty->assign('addressbook', $theDropbox->getAddressbook());
         # Generate unique ID required for progress bars status
         $smarty->assign('progress_id', uniqid(""));
         $smarty->assign('useRealProgressBar', $theDropbox->useRealProgressBar());
         $smarty->assign('note', '');
         $smarty->assign('maxBytesForFileInt', $theDropbox->maxBytesForFile());
         $smarty->assign('maxBytesForDropoffInt', $theDropbox->maxBytesForDropoff());
         // If we are using a library of files, fill the structures it needs.
         if ($theDropbox->authorizedUser() && $theDropbox->usingLibrary()) {
             $library = $theDropbox->getLibraryDescs();
             $smarty->assign('library', $library);
             $smarty->assign('usingLibrary', $library === '[]' ? FALSE : TRUE);
         } else {
             $smarty->assign('usingLibrary', FALSE);
             $smarty->assign('library', '[]');
         }