if (blightSolved()) { $chall->onChallengeSolved(GWF_Session::getUserID()); } else { $have = GWF_Session::getOrDefault('BLIGHT2_CONSECUTIVE', '1'); $need = BLIGHT2_CONSEC - $have; echo GWF_HTML::message(GWF_PAGE_TITLE, $chall->lang('msg_consec_success', array($need))); } blightReset(false); } } else { echo GWF_HTML::error(GWF_PAGE_TITLE, $chall->lang('err_wrong', array($attemp))); } } elseif (isset($_POST['inject'])) { blightInit(); $password = Common::getPostString('injection'); $success = blightVuln($password); $attemp = blightAttemp() + 1; if ($success) { echo GWF_HTML::message(GWF_PAGE_TITLE, $chall->lang('msg_logged_in', array($attemp))); } else { echo GWF_HTML::error(GWF_PAGE_TITLE, $chall->lang('err_login', array($attemp))); } blightSetAttempt($attemp); } $url1 = 'index.php?show=source'; $url2 = 'index.php?highlight=christmas'; $url3 = 'index.php?reset=me'; $egg = 'On the run to the great gig.'; $egg = '<span style="color: #eee;">' . $egg . '</span>'; if (false !== ($dloser = GWF_User::getByName('dloser'))) { $dloser = $dloser->displayProfileLink();
$chall->onChallengeSolved(GWF_Session::getUserID()); } else { $have = GWF_Session::getOrDefault('BLIGHT4_CONSECUTIVE', '1'); $need = BLIGHT4_CONSEC - $have; echo GWF_HTML::message(GWF_PAGE_TITLE, $chall->lang('msg_consec_success', array($need))); } blightReset(false); } } else { echo GWF_HTML::error(GWF_PAGE_TITLE, $chall->lang('err_wrong', array($attemp))); } } elseif (isset($_POST['inject'])) { blightInit(); $password = Common::getPostString('injection'); $attemp = blightAttemp() + 1; $success = blightVuln($chall, $password, $attemp); echo GWF_HTML::message(GWF_PAGE_TITLE, $success); // if ($success) // { // echo GWF_HTML::message(GWF_PAGE_TITLE, $chall->lang('msg_logged_in', array($attemp))); // } // else // { // echo GWF_HTML::error(GWF_PAGE_TITLE, $chall->lang('err_login', array($attemp))); // } blightSetAttempt($attemp); } $url1 = 'index.php?show=source'; $url2 = 'index.php?highlight=christmas'; $url3 = 'index.php?reset=me'; $text = $chall->lang('info', array(BLIGHT4_ATTEMPS, BLIGHT4_CONSEC, $url1, $url2, $url3));