コード例 #1
0
ファイル: dropoff.php プロジェクト: rakeshmani123/zendto
 //
 // Look up the "auth" parameter from the GET data, and retrieve the
 // Email, FullName, Organization from the SQL table record pointed
 // to by the "auth" key.
 //
 $authEmail = '';
 $authFullName = '';
 $authOrganization = '';
 $authExpiry = 0;
 $auth = $_GET['auth'];
 // Set default values for library. Only gets over-ridden in 1 case.
 $smarty->assign('usingLibrary', FALSE);
 $smarty->assign('library', '[]');
 $smarty->assign('addressbook', '[]');
 if (!$theDropbox->authorizedUser()) {
     $result = $theDropbox->ReadAuthData($auth, $authFullName, $authEmail, $authOrganization, $authExpiry);
     if (!$result) {
         $theDropbox->SetupPage();
         NSSError("Sender address verification subsystem failure.", "Authentication Failure");
         $smarty->display('new_dropoff.tpl');
         exit;
     }
     if ($authExpiry < time()) {
         $theDropbox->SetupPage();
         NSSError($smarty->getConfigVariable('ErrorSessionExpired'), "Session Expired");
         $smarty->display('new_dropoff.tpl');
         exit;
     }
 }
 $theDropbox->SetupPage();
 # Bug "dropoff.recipName_1");