by

otherwise IE takes the default font instead of the required one (Thanks Michel) cleanup in the images organization v2.3 (27 July 2003) : added direct jump to pages (by Nicolas Alves and Laurent Duveau) minor font and text formating changes in search, quotations, general pages (thanks Isabelle) added "Search in" only one type of content option v2.4 (24 September 2003) : added Search in one language only option added react to an article option added ReadDoc() function removed call to freebox.inc file added GetCurrentDateTime() and FormatDate() function to ease various date and time formatings corrected bug which would always say that articles found were in the 1st box (thanks Pavol) secured transfered parameters added 3 additional free boxes (by Nicolas Alves and Laurent Duveau) created $typ_[name] variables v3.0p2 (09 April 2004) : removed 2 debug information lines forgotten during v3.0 development v4.0 (06 December 2004) : added page title (by Jean-Mi) added alt tags to img and removed border tag for non-linked img (by Isa) */ header("Pragma: no-cache"); $chemin = ""; include("inc/includes.inc"); if ($serviz[24] != "on") { exit($web143); } $search = strip_tags($search); $searchin = strip_tags($searchin); $searchlng = strip_tags($searchlng); $search = stripslashes(trim($search)); if (!empty($search)) { $searchlower = strtolower($search); if (!empty($searchin)) { $dbwork = SelectDBFields($searchin,"a",""); } else { $dbwork = SelectDBFieldsByStatus(ReadDBFields($docid),"a"); } @rsort($dbwork); $searchfor = array ($typ_art, $typ_dnload, $typ_faq, $typ_forum, $typ_freebox1, $typ_freebox2, $typ_freebox3, $typ_freebox4, $typ_guestbk, $typ_homepg, $typ_links, $typ_news, $typ_photo, $typ_special, $typ_react, $typ_agenda); $found = array(); $j = 0; for ($i = 0; $i < count($dbwork); $i++) { ReadDoc($dbbase.$dbwork[$i][1]); if ($searchlng != $lang[1] || $type == $typ_guestbk || $type == $typ_forum || $type == $typ_react) { $txt = strtolower($fielda1." ".$fieldb1." ".$fieldc1); $pos = strpos($txt,$searchlower); if ($pos !== false && in_array($type,$searchfor)) { if ($type == $typ_art) { $found[$j][0] = $lang[0]; if ($fieldd1 == "right") { $found[$j][1] = $nom[30]." : ".$fielda1." - ".$fieldb1; } else { $found[$j][1] = $nom[4]." : ".$fielda1." - ".$fieldb1; } $found[$j][2] = "articles.php?lng=".$lang[0]."&pg=".$fileid; } elseif ($type == $typ_guestbk) { $found[$j][0] = "lang"; $found[$j][1] = $nom[9]." : ".$web39.$fielda1." - ".$web6." ".$author." ".$web7." ".FormatDate($creadate); $found[$j][2] = "guestbk.php?lng=".$lng."&pg=".$fileid; } elseif ($type == $typ_react) { $found[$j][0] = "lang"; $found[$j][1] = $web187." : ".$web185.$fielda1." - ".$web6." ".$author." ".$web7." ".FormatDate($creadate); $found[$j][2] = "articles.php?lng=".$lang[0]."&pg=".$fielda2."&react=".$fileid; } elseif ($type == $typ_dnload) { $found[$j][0] = $lang[0]; $found[$j][1] = $nom[1]." : ".$fieldb1; $found[$j][2] = "download.php?lng=".$lang[0]."&pg=".$fileid; } elseif ($type == $typ_homepg) { $found[$j][0] = $lang[0]; $found[$j][1] = $nom[0];; $found[$j][2] = "index.php?lng=".$lang[0]; } elseif ($type == $typ_links) { $found[$j][0] = $lang[0]; $found[$j][1] = $nom[3]." : ".$fieldb1; $found[$j][2] = "links.php?lng=".$lang[0]."&pg=".$fileid; } elseif ($type == $typ_news) { $found[$j][0] = $lang[0]; $found[$j][1] = $nom[7]." : ".$fieldb1." - ".$web6." ".$author." ".$web7." ".FormatDate($moddate); $found[$j][2] = "news.php?lng=".$lang[0]."&pg=".$fileid; } elseif ($type == $typ_special) { $found[$j][0] = $lang[0]; $found[$j][1] = $nom[5]; $found[$j][2] = "index.php?lng=".$lang[0]; } elseif ($type == $typ_freebox1 || $type == $typ_freebox2 || $type == $typ_freebox3 || $type == $typ_freebox4) { $found[$j][0] = $lang[0]; $found[$j][1] = $fieldb1; $found[$j][2] = "index.php?lng=".$lang[0]; } elseif ($type == $typ_faq) { $found[$j][0] = $lang[0]; $found[$j][1] = $nom[24]." : ".$fieldb1; $found[$j][2] = "faq.php?lng=".$lang[0]."&pg=".$fileid; } elseif ($type == $typ_photo) { $found[$j][0] = $lang[0]; $found[$j][1] = $nom[2]." : ".$fieldb1; $found[$j][2] = "photorama.php?lng=".$lang[0]."&pg=".$fileid; } elseif ($type == $typ_agenda) { $found[$j][0] = $lang[0]; $found[$j][1] = $web287." ".$fieldb1; $found[$j][2] = "agenda.php?lng=".$lang[0]."&pg=".$fileid."&agv=1"; } elseif ($type == $typ_forum) { $l = 0; for ($k = 0; $k < count($found); $k++) { if ($found[$k][2] == "thread.php?lng=".$lng."&thrd=".$fielda1) { $l = 1; } } if ($l == 0) { $found[$j][0] = "lang"; $found[$j][1] = $nom[22]." : ".$web63.$fielda1." - ".$fieldb1; $found[$j][2] = "thread.php?lng=".$lng."&thrd=".$fielda1; } else { $j--; } } $j++; } } if ($searchlng != $lang[0]) { $txt = strtolower($fielda2." ".$fieldb2." ".$fieldc2); $pos = strpos($txt,$searchlower); if ($pos !== false && in_array($type,$searchfor)) { if ($type == $typ_art) { $found[$j][0] = $lang[1]; if ($fieldd1 == "right") { $found[$j][1] = $nom[31]." : ".$fielda2." - ".$fieldb2; } else { $found[$j][1] = $nom[14]." : ".$fielda2." - ".$fieldb2; } $found[$j][2] = "articles.php?lng=".$lang[1]."&pg=".$fileid; } elseif ($type == $typ_guestbk) { $found[$j][0] = "lang"; $found[$j][1] = $nom[19]." : ".$web39.$fielda2." - ".$web6." ".$author." ".$web7." ".FormatDate($creadate); $found[$j][2] = "guestbk.php?lng=".$lng."&pg=".$fileid; } elseif ($type == $typ_react) { $found[$j][0] = "lang"; $found[$j][1] = $web187." : ".$web185.$fielda1." - ".$web6." ".$author." ".$web7." ".FormatDate($creadate); $found[$j][2] = "articles.php?lng=".$lang[1]."&pg=".$fielda2."&react=".$fileid; } elseif ($type == $typ_dnload) { $found[$j][0] = $lang[1]; $found[$j][1] = $nom[11]." : ".$fieldb2; $found[$j][2] = "download.php?lng=".$lang[1]."&pg=".$fileid; } elseif ($type == $typ_homepg) { $found[$j][0] = $lang[1]; $found[$j][1] = $nom[10]; $found[$j][2] = "index.php?lng=".$lang[1]; } elseif ($type == $typ_links) { $found[$j][0] = $lang[1]; $found[$j][1] = $nom[13]." : ".$fieldb2; $found[$j][2] = "links.php?lng=".$lang[1]."&pg=".$fileid; } elseif ($type == $typ_news) { $found[$j][0] = $lang[1]; $found[$j][1] = $nom[17]." : ".$fieldb2." - ".$web6." ".$author." ".$web7." ".FormatDate($moddate); $found[$j][2] = "news.php?lng=".$lang[1]."&pg=".$fileid; } elseif ($type == $typ_special) { $found[$j][0] = $lang[1]; $found[$j][1] = $nom[15]; $found[$j][2] = "index.php?lng=".$lang[1]; } elseif ($type == $typ_freebox1 || $type == $typ_freebox2 || $type == $typ_freebox3 || $type == $typ_freebox4) { $found[$j][0] = $lang[1]; $found[$j][1] = $fieldb2; $found[$j][2] = "index.php?lng=".$lang[1]; } elseif ($type == $typ_faq) { $found[$j][0] = $lang[1]; $found[$j][1] = $nom[25]." : ".$fieldb2; $found[$j][2] = "faq.php?lng=".$lang[1]."&pg=".$fileid; } elseif ($type == $typ_photo) { $found[$j][0] = $lang[1]; $found[$j][1] = $nom[12]." : ".$fieldb2; $found[$j][2] = "photorama.php?lng=".$lang[1]."&pg=".$fileid; } elseif ($type == $typ_agenda) { $found[$j][0] = $lang[1]; $found[$j][1] = $web287." ".$fieldb1; $found[$j][2] = "agenda.php?lng=".$lang[1]."&pg=".$fileid."&agv=1"; } elseif ($type == $typ_forum) { $l = 0; for ($k = 0; $k < count($found); $k++) { if ($found[$k][2] == "thread.php?lng=".$lng."&thrd=".$fielda1) { $l = 1; } } if ($l == 0) { $found[$j][0] = "lang"; $found[$j][1] = $nom[23]." : ".$web63.$fielda1." - ".$fieldb1; $found[$j][2] = "thread.php?lng=".$lng."&thrd=".$fielda1; } else { $j--; } } $j++; } } } if ($lng == $lang[0]) { if ($lang[0] < $lang[1]) { @sort($found); } else { @rsort($found); } } else { if ($lang[0] < $lang[1]) { @rsort($found); } else { @sort($found); } } } $topmess = $web59." - ".$search; include("inc/hpage.inc"); htable($web59." - ".$search, "100%"); if (empty($id)) { $id = 1; } if (count($found) != 0) { if (count($found) == 1) { echo "

1 ".$web60." \"".$search."\"

"; } else { echo "

".count($found)." ".$web61." \"".$search."\"

"; } ?>

 

• ".$found[$i][1]."

"; echo "

\"".$found[$i][0]."\""; echo "  ".$found[$i][2]."

"; } } else { echo "

".$web62."

"; } if (count($found)>10) { ?>
ceil(count($found)/10)) { $idn = 1; } ?>

<? echo $web32; ?>

/

<? echo $web34; ?>

[