Beispiel #1
0
     $GT = $GA = $GL = "";
     if (!empty($srch_title)) {
         $GT = "&title=" . $srch;
     }
     if (!empty($srch_author)) {
         $GA = "&author=" . $srch;
     }
     if (!empty($srch_lang)) {
         $GL = "&lang=" . $srch;
     }
     print '<li><a href="./?s=' . (intval($_GET["s"]) + 23) . $GT . $GA . $GL . '#list">Plus anciens ...</a></li>';
     break;
 }
 if (preg_match("#^([a-zA-Z0-9]{" . RGXP_NB . "}).xml\$#", $f[1], $fout)) {
     $paste = new Paste($fout[1]);
     if ($paste->is_private() || !preg_match("#" . $srch_title . "#i", $paste->title) || !preg_match("#" . $srch_author . "#i", $paste->author) || !preg_match("#" . $srch_lang . "#i", $paste->language)) {
         continue;
     }
     if (empty($paste->title)) {
         $title = "Sans titre";
     } else {
         $title = htmlentities($paste->title);
     }
     if (empty($paste->author)) {
         $author = "<em>un anonyme</em>";
     } else {
         $author = htmlentities($paste->author);
     }
     print '<li><a href="./?' . $paste->fileref . '">' . $title . "</a> par " . $author . ", le " . date("d/m/Y H:i:s", $paste->date) . "</li>";
     $i++;
 }