Авторизуйтесь по паролю
roman124124 09.04.2017 Все вопросы » Общие вопросы 817
LazyDev - 2016-10-0310 апреля 2017 08:39 - #63086
$row['short_story'] = stripslashes($row['short_story']);
$count_image = 0; $row['full_story'] = preg_replace_callback("/<img[^>]+\>/i", function($matches) use (&$count_image){ ++$count_image; if($count_image!=2) return $matches[0]; }, $row['full_story']);
$tpl->set( '{title}', str_replace("&amp;", "&", htmlspecialchars( $row['title'], ENT_QUOTES, $config['charset'] ) ) );
if ($category_id == 31) { $metatags['title'] = $row['title'] . date('d.m.Y', $row['date']); } else { $metatags['title'] = $row['title']; }