\n";
}
function Newsletter()
{
if (empty($_GET['id']))
{
$this->Error('ניוזלטר לא קיים');
exit;
}
else
{
$this->GetNewsletter();
}
}
function Utf2Reg ($utf8) {
return preg_replace("/\xD7([\x90-\xAA])/e","chr(ord(\${1})+80)",$utf8);
}
function GetNewsletter()
{
require "config/config.php";
mysql_query("SET NAMES utf8;");
$Query = mysql_query("SELECT * FROM pages WHERE id = '".$_GET['id']."'");
if (mysql_num_rows($Query) == 0)
{
$this->Error('ניוזלטר לא קיים');
exit;
}
else
{
$Row = mysql_fetch_array($Query);
return $Row['value'];
}
}
}
//