if ($_POST['quux'] == $_SESSION['solution'] && strtolower($_POST['quux2']) == strtolower('blanc')) { //process posting and redirect $id = $pastebin->doPost($_POST); if ($id) { $pastebin->redirectToPost($id); exit; } } echo "[!?] Mauvais calcul ou erreur dans la devinette. Faites précédent, copiez votre texte et recollez-le dans un nouveau formulaire."; } /////////////////////////////////////////////////////////////////////////////// // process download // if (isset($_GET['dl'])) { $pid = intval($_GET['dl']); if (!$pastebin->doDownload($pid)) { //not found echo "Le post n° {$pid} n'existe pas ou n'est plus disponible."; } exit; } /////////////////////////////////////////////////////////////////////////////// // if we get this far, we're going to be displaying some HTML, so let's kick // off here... $page = array(); //figure out some nice defaults $page['current_format'] = $CONF['default_highlighter']; $page['expiry'] = $CONF['default_expiry']; $page['remember'] = ''; //see if we can come up with a better default using the subdomain if (strlen($CONF['subdomain']) && isset($CONF['all_syntax'][$CONF['subdomain']])) {
} // Process downloads. if (isset($_GET['dl'])) { global $errors; if (isset($_GET['pass'])) { $getPass = $_GET['pass']; } $pid = intval($_GET['dl']); $result = $pastebin->getPaste($pid); if ($result == FALSE) { echo "Paste {$pid} is not available."; exit; } $pass = $result['password']; if ($pass == 'EMPTY') { $pastebin->doDownload($pid); exit; } else { if ($pass != $getPass) { } else { $pastebin->doDownload($pid); exit; } } } // If we get this far, we're going to be displaying some HTML, so let's kick off here. $page = array(); // Figure out some nice defaults. $page['current_format'] = $CONF['default_highlighter']; $page['expiry'] = $CONF['default_expiry']; $page['remember'] = '';