Example #1
0
                 $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', '[]');
                 }
                 $smarty->display('new_dropoff.tpl');
             }
         } else {
             $smarty->display('error.tpl');
         }
         exit;
     }
 }
 //