include 'header_a.php';
$rs = mysql_query("SELECT namer,body,id,refferer,photographer,conti,dater FROM wiki WHERE namer='$id' OR id = '$id'") or die("טעות בחיפוש הערך
".mysql_error());
if (mysql_num_rows($rs)) {
$row = mysql_fetch_row($rs);
$row[1]=revquotes($row[1]);
$title = "$row[0] | ".(($row[5]==1) ? "דרום" : "מרכז") . " אמריקה";
$last_modified = $row[6];
}
else {$row[0] = "ערך לא קיים"; $row[1]="";}
include "header_html.php";
?>
if (file_exists("./images/pedia$id.jpg")) {
$height=getimagesize("./images/pedia$id.jpg");
$width=$height[0]+10; $height=$height[1]+10;
if (($width>210) || ($height>210)) {
if ($row[4]) $img = " |
| $row[4] |
";
else $img = "";
}
else {
if ($row[4]) $img = " |
| $row[4] |
";
else $img = "
";
}
}
$rs3 = mysql_query("SELECT DISTINCT namer,id FROM wiki WHERE id!='$row[2]'") or die("טעות בחיפוש הערך
".mysql_error());
while ($row3 = mysql_fetch_row($rs3)) {
$pat = revquotes($row3[0]);//[ n.,?();\/>]
$row[1] = preg_replace("/()([במלהו()\n> ])($pat)([ .,?();<])/","\\1\\2\\3\\4",$row[1]);
}
$row[1] = preg_replace("/()([במלהו()\n> ])($row[0])([ .,?();<])/","\\1\\2\\3\\4"," ".$row[1]);
?>
echo revquotes($row[0]);
$pedSearch = fixquotes(revquotes($row[0]));
$rs2 = mysql_query("SELECT id,country FROM city WHERE name = '$pedSearch'") or die("טעות בחיפוש הערך ".mysql_error());
if (mysql_num_rows($rs2)) {
$row2 = mysql_fetch_row($rs2);
echo " $row[0], ".$allCHeb[array_search($row2[1],$allC)].".";
}
?>
|
|
if ($row[1]) {
$search = (strlen($row[0])<4) ? " $row[0] " : $row[0];
$rs2 = mysql_query("SELECT id,name,engname,city FROM citydetails WHERE description LIKE '%$search%' OR name LIKE '%$search%' ORDER BY name") or die("טעות בחיפוש הערך
".mysql_error());
if (mysql_num_rows($rs2)) {
echo "| אתרים המפנים לערך זה: ";
$x="";
while ($row2 = mysql_fetch_row($rs2)) {
echo "$x$row2[1] $row2[2]";
$x=", ";
}
echo " |
";
}
}
?>
| =$img.$row[1]?> |
$ref = str_replace("mainindex.php?","",str_replace("http://todos.co.il/","",$HTTP_REFERER));
if ($ref) echo "חזרה
";?>
הטקסט נערך ע"י מערכת Todos.co.il ומוגש בכפוף ל־GNU Free Documentation License, בשיתוף וויקיפדיה. הערך כולל תוכן מהדף http://he.wikipedia.org/wiki/. |  |
include "fotter.php";?>