if (!($bot = GWF_User::getByName('Rudolph2013'))) { die('oops'); } if (!($user = GWF_User::getStaticOrGuest())) { die('oops'); } if (Common::getGetString('letterbox') === 'santa.php') { if ('' === ($rec = $user->getValidMail())) { echo GWF_HTML::error('Happy Holidays', $chall->lang('err_no_mail'), false); } else { $mail = new GWF_Mail(); $mail->setSender($bot->getValidMail()); $mail->setSenderName('Rudolph Northwood'); $mail->setReceiver($user->getValidMail()); $mail->setReceiverName($user->getVar('user_name')); $mail->setupGPG($bot); $mail->setSubject($chall->lang('p1_subj')); $mail->setBody($chall->lang('p1_body')); $mail->addAttachment('0xdeadbeef.asc', $key1, 'application/octet-stream', false); $mail->sendAsText(); echo GWF_HTML::message('Happy Holidays', $chall->lang('msg_mail_sent', array($user->getValidMail())), false); } } echo GWF_Website::getDefaultOutput(); $self = GWF_User::getStaticOrGuest()->displayUsername(); $quan = '<a href="/profile/quangntenemy">quangntenemy</a>'; $href = "?letterbox=santa.php"; echo GWF_Box::box($chall->lang('info1', array($self, $quan, $href)), $chall->lang('title1')); formSolutionbox($chall); echo $chall->copyrightFooter(); require_once 'challenge/html_foot.php';