Example #1
0
                 $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', '[]');
                 }
                 $smarty->display('new_dropoff.tpl');
             }
         } else {
             $smarty->display('error.tpl');
         }
         exit;
     }
 }
Example #2
0
         $theDropbox->SetupPage();
         NSSError($smarty->getConfigVariable('ErrorSessionExpired'), "Session Expired");
         $smarty->display('new_dropoff.tpl');
         exit;
     }
 }
 $theDropbox->SetupPage();
 # Bug "dropoff.recipName_1");
 $smarty->assign('maxBytesForFileInt', $theDropbox->maxBytesForFile());
 $smarty->assign('maxBytesForDropoffInt', $theDropbox->maxBytesForDropoff());
 if ($theDropbox->authorizedUser()) {
     $authFullName = $theDropbox->authorizedUserData("displayName");
     $authOrganization = $theDropbox->authorizedUserData("organization");
     $authEmail = $theDropbox->authorizedUserData("mail");
     $smarty->assign('addressbook', $theDropbox->getAddressbook());
     if ($theDropbox->usingLibrary()) {
         // This is the only situation in which we allow the library to work
         $library = $theDropbox->getLibraryDescs();
         $smarty->assign('library', $library);
         $smarty->assign('usingLibrary', $library === '[]' ? FALSE : TRUE);
     }
 }
 $smarty->assign('senderName', $authFullName);
 $smarty->assign('senderOrg', $authOrganization);
 $smarty->assign('senderEmail', strtolower($authEmail));
 $smarty->assign('note', '');
 $smarty->assign('subject', '');
 $smarty->assign('useRealProgressBar', $theDropbox->useRealProgressBar());
 $smarty->assign('authKey', $auth);
 generateEmailTable($theDropbox);
 # Generate unique ID required for progress bars status