".$ch.""; return !$rep; } function datej($dj, $dm, $da) { $lesmoisjuif = array(" ", "Tichri", "Hechvan", "Kisslev", "Téveth", "Chevat", "Adar", "Adar I", "Adar II", "Nissan", "Iyar", "Sivan", "Tamouz", "Av", "Elloul"); if ($da==0) return ""; else { if ($dj==0) return $da; else return $dj." ".$lesmoisjuif[$dm]." ".$da; } } function datejuive($newj, $newm, $newa, $oldj, $oldm, $olda) { $rep = ($newj == $oldj) && ($newm == $oldm) && ($newa == $olda); if ($rep) $col = "noir"; else $col = "rouge"; $ch = datej(newq, newm, newj); echo "".$ch.""; return !$rep; } function min2r($v) { $str = htmlentities($v, ENT_NOQUOTES, 'utf-8'); $str = preg_replace('#&([A-za-z])(?:acute|grave|cedil|circ|orn|ring|slash|th|tilde|uml);#', '\1', $str); $str = preg_replace('#&([A-za-z]{2})(?:lig);#', '\1', $str); $str = preg_replace('#&[^;]+;#', '', $str); $str = strtoupper($str); return $str; } /* Création de la clé de tri hébreu */ function hfiltre($n) { $v= array('הרב', '-', 'החבר', ''); $b= array('בן', 'אשת', 'בת', 'בר'); $r= 0; if ($n=='או') $r= 3; for ($i=0; $i=144 && $c <=170) $r.= chr($c-79); else $r.= '?'; } } return $r; } function ToHtri($nom) { if ($nom!='') { $n= explode(' ', $nom); $tri= ''; $i=0; while ($i */ function EnCache($j, $h, $m) { Header("Cache-Control: must-revalidate"); $offset = ($j*24+$h)*60+$m; $ExpStr = "Expires: " . gmdate("D, d M Y H:i:s", time() + $offset) . " GMT"; Header($ExpStr); } function PasEnCache() { Header("Cache-Control: must-revalidate"); $ExpStr = "Expires: " . gmdate("D, d M Y H:i:s", time() + 2) . " GMT"; Header($ExpStr); } ?>