$t) { if (preg_match("#^([a-zA-Z0-9]{".RGXP_NB."})(:([a-zA-Z0-9]{".RGXP_NB."}))?$#", $k, $kout) && is_file(Paste::get_path($kout[1]))) { $paste = new Paste($kout[1]); if (!empty($paste->crypt) && empty($_POST["passwd"]) && empty($t)) { ?> .: Pommultimédia - Paste :.

title); ?>

get_subtitle(); ?>



crypt)) { if (!empty($_POST["passwd"])) $paste->crypt($_POST["passwd"]); else $paste->crypt($t); } $filename = "../gen/".$paste->fileref; ob_start(); if (strtolower($paste->language) == "latex") $f = generate_latex($filename, $paste->content); else if (strtolower($paste->language) == "html") die ($paste->content); else print "Je ne sais pas compiler ce code source :("; $log = ob_get_clean(); ob_end_clean(); if (isset($f) && is_file($f)) { header('Content-Description: File Transfer'); header('Content-Type: application/octet-stream'); header("Content-Disposition: attachment; filename=\"".basename($paste->title).substr($f, count($f)-5, 4)."\""); header('Content-Transfer-Encoding: binary'); header('Expires: 0'); header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); header('Pragma: public'); header('Content-Length: ' . filesize($f)); readfile($f); } else die(nl2br($log)); } } } ?>