'a', 'б' => 'b', 'в' => 'v', 'г' => 'g', 'д' => 'd', 'е' => 'e', 'ж' => 'zh', 'з' => 'z', 'и' => 'i', 'й' => 'y', 'к' => 'k', 'л' => 'l', 'м' => 'm', 'н' => 'n', 'о' => 'o', 'п' => 'p', 'р' => 'r', 'с' => 's', 'т' => 't', 'у' => 'u', 'ф' => 'f', 'х' => 'h', 'ц' => 'c', 'ч' => 'ch', 'ш' => 'sh', 'щ' => 'sht', 'ъ' => 'a', 'ь' => 'y', 'ю' => 'yu', 'я' => 'ya', 'А' => 'a', 'Б' => 'B', 'В' => 'v', 'Г' => 'g', 'Д' => 'd', 'Е' => 'e', 'Ж' => 'zh', 'З' => 'z', 'И' => 'i', 'Й' => 'y', 'К' => 'k', 'Л' => 'l', 'М' => 'm', 'Н' => 'n', 'О' => 'o', 'П' => 'p', 'Р' => 'r', 'С' => 's', 'Т' => 't', 'У' => 'u', 'Ф' => 'f', 'Х' => 'h', 'Ц' => 'c', 'Ч' => 'ch', 'Ш' => 'sh', 'Щ' => 'sht', 'Ъ' => 'a', 'Ь' => 'y', 'Ю' => 'yu', 'Я' => 'ya' ); return strtr($zagl, $latime); } if(!isset($_SESSION["stomatolozi_login"]) || empty($_SESSION["stomatolozi_login"])) { header("Location: http://stomatolozi.bg/login.html"); exit; } $email = mysql_real_escape_string($_SESSION["stomatolozi_login"]); $id_query = sprintf("select * from personal where dent_email = '%s'", $email); $id_result = mysql_query($id_query, $db1); $id_row = mysql_fetch_array($id_result); $id = $id_row["dent_id"]; if(!isset($_GET["id"]) || empty($_GET["id"])) { header("Location: http://stomatolozi.bg/statii/"); exit(); } $a_id = mysql_real_escape_string($_GET["id"]); if($id !== "10000") { $a_query = sprintf("select * from articles where article_id = '%d' and dent_id = '%s'", $a_id, $id); } else { $a_query = sprintf("select * from articles where article_id = '%d'", $a_id); } $a_result = mysql_query($a_query, $db1); if(mysql_num_rows($a_result) < 1) { header("Location: http://stomatolozi.bg/statii/"); exit(); } $a_row = str_replace('"', '"', mysql_fetch_array($a_result)); if(isset($_GET["action"]) && $_GET["action"] == "delete_article") { if($id !== "10000") { $delete = sprintf("delete from articles where article_id = '%d' and dent_id = '%s'", $a_id, $id); } else { $delete = sprintf("delete from articles where article_id = '%d'", $a_id); } $delete_query = mysql_query($delete, $db1); header("Location: http://stomatolozi.bg/edit-my-articles.html"); exit(); } if($_SERVER['REQUEST_METHOD'] == "POST" && isset($_GET["action"]) && $_GET["action"] == "edit_article") { $title = trim(mysql_real_escape_string($_POST["article_title"])); $article = mysql_real_escape_string($_POST["hidden_article"]); $article_id = mysql_real_escape_string($_POST["hidden_article_id"]); $article = htmlspecialchars($article); #echo strlen($article); if($id !== "10000") { $query = sprintf("update articles set article_title = '%s', article = '%s', article_time = '%s' where article_id = '%d' and dent_id = '%s'", $title, $article, time(), $article_id, $id); } else { $query = sprintf("update articles set article_title = '%s', article = '%s', article_time = '%s' where article_id = '%d'", $title, $article, time(), $article_id, $id); } $result = mysql_query($query, $db1); $url = getSEOUrl($a_id . "-" . str_replace(" ", "-", $title)); header("Location: http://stomatolozi.bg/statii/" . ereg_replace("[^A-Za-z0-9 -]", "", $url) . ".html"); exit(); } ?>
Условия за ползване на Stomatolozi.BG Затвори
Stomatolozi.BG

Зъболекари България онлайн

Намерете най-пълната и прозрачна информация за българските стоматолози и изберете при кого да отидете

&action=edit_article" enctype="multipart/form-data" method="post">
"/>
" />