Орла
Области
Компаний
Пользователи
Галерея
Фиксированные новости
Орла
Отзывы о фирмах
Тарифы
Пользователи
Области
Банкоматы
Торговые точки
Доска объявлений
Курсы валют
Скидки
организации Орла
организации области
товары
сайты
сайты Орел
Данные
Разделы
Поиск
Поиск запросы
Статистика
Показы каталога организаций
Статистика клиенты
Пользователи
Сайты
Управление сайтом
Анкета
Аптеки
Афиша
Афиша новая
Баннеры
Бизнес >
Викторина
Голосование
Гость на сайте
Истории
Календарь событий
Каталоги >
Конкурс красоты
Конкурс аудио
Консультации
Меню
Новое на сайте
Новости >
Организации >
Программа ТВ
Публикации
Разделы сайта
Рассылка
Рестораны
Секрет фирмы >
Сервисы >
Ссылки
Тесты
Файловый менеджер
Форум
Фотогалерея
Обратная связь
Недвижимость
Новый год
Тексты
Пользователи
Юридический рейтинг
Отзывы на товары
Бан пользователей
Жалобы
Новые тесты
Коронавирус
Файловый менеджер
Имя файла
news_old.php
Содержимое
<?php $base_url="../"; $menu_page="news"; require_once($base_url."func.php"); if ($l == "") $l=db_connect(); //extract news $_GET['news_id'] = intval($_GET['news_id']); $query = "select t1.*, t2.id rid, t2.name rname from news t1, news_razdel t2 where t1.id='{$_GET['news_id']}' and t1.razdel=t2.id and (t1.status='3'"; if ( $id_user_sess > 0 ) { $query .= " or t1.status='4') "; } else { $query .= ") "; } $news = end(fetchAll( $query )); if ($news['user_id'] > 0 ) { $rs_user = sqlval("select id, name, name_full from user where id='{$news['user_id']}'"); if ($rs_user['name_full'] <> "") $news['author_name'] = $rs_user['name_full']; else $news['author_name'] = $rs_user['name']; } if (substr($news['news_full'], 0, 7) == "http://") { header('location:' . $news['news_full']); // sql("update news set view_count=view_count+1 where id='{$news['id']}'"); } if (substr($news['news_full'], 0, 7) == "http://") $news['news_full']="<a href=\"".$news['news_full']."\" target=\"_blank\">Подробнее здесь</a>"; if ( $news['photo_count'] > 0 ) { $news_photo = fetchAll( "select * from news_foto where id_news='{$news['id']}' order by position" ); $news['photo'] = $news_photo; } if ( $news['video_count'] > 0 ) { $news_video = fetchAll( "select * from news_video where id_news='{$news['id']}'" ); foreach ( $news_video as $video ) { if ( $video['main'] != 1 ) { $news['video'][] = $video; } else { $news['main_video'][] = $video; } } } $discuss = fetchAll("select t1.*, t3.name, t3.avatar, t3.sex from articl t1, forum_discuss t2, user t3 where tip_obj='news' and id_parent = id_articl and id_obj = '{$_GET['news_id']}' and t1.id_author=t3.id order by t1.id"); //(select t1.id as id, t1.data as data, id_author, t3.name as name, t3.avatar, t3.sex, t1.body from articl t1, forum_discuss t2, user t3 where tip_obj='news' and id_parent = id_articl and id_obj = '24629' and t1.id_author=t3.id order by t1.data) union (select id, data, 0, fio,0,0, note as body from news_comment where id_news = '24629' order by data) order by data $news['discuss'] = $discuss; $title = $news['news_header']; define('_SAPE_USER', '0419be9f6cf559b70d22f61f9fc82f38'); require_once($_SERVER['DOCUMENT_ROOT'].'/'._SAPE_USER.'/sape.php'); $o['host'] = 'www.infoorel.ru'; $o['request_uri']="/news/news.php?news_id=".$_REQUEST['news_id']; if ($_REQUEST['razdel'] > 0) $o['request_uri']="/news/news.php?news_id=".$_REQUEST['news_id']."&razdel=".$_REQUEST['razdel']; $sape = new SAPE_client($o); unset($o); require($base_url."inc/top.inc"); //if ($admlist[$login] == 1000) echo $query; ?> <!-- <link href="http://stg.odnoklassniki.ru/share/odkl_share.css" type="text/css" rel="stylesheet"> <script src="http://stg.odnoklassniki.ru/share/odkl_share.js" type="text/javascript" ></script> --> <script type="text/javascript" src="http://userapi.com/js/api/openapi.js?1"></script> <script type="text/javascript"> VK.init({apiId: 1983235, onlyWidgets: true}); </script> <link rel="stylesheet" href="/library/css/jquery/jquery.fancybox.css"> <script type="text/javascript" src="/library/js/jquery.fancybox.js"></script> <script type="text/javascript"> <!-- $(document).ready(function(){ $('a[rel=news-photo-item]').fancybox(); $('#datepicker_from').datepicker({minDate: '2006-01-09', maxDate: '+0', changeMonth: true, changeYear: true}); $('#datepicker_to').datepicker({minDate: '2006-01-09', maxDate: '+0', changeMonth: true, changeYear: true}); $('#search').click(function(){ $('#find_div').toggle(); }); $('#razdel').change(function(){ document.location.href = '?section_id=' + $('#razdel option:selected').val(); }); }); --> </script> <div class="Title"> <div class="RssAn"> <a href="rss2.php" class="Rss">RSS</a> <a href="/news/" class="An">Все новости</a> </div> <h1><?php echo $news['rname']; ?></h1> </div> <div class="NewsIn AllText"> <?php $smarty->assign( 'db_data', $news ); $smarty->assign( 'rights', $admlist[$login] ); $smarty->display( 'news.tpl' ); $smarty->clear_all_assign(); if ($news['id'] != '') { sql("update news set view_count=view_count+1 where id='{$news['id']}'"); } echo $sape->return_links(1); ?> <div align="сenter"> <?php require_once $base_url."template/razdel/b2bcontext_news.php"; ?> </div> <!-- Put this script tag to the <head> of your page --> <script type="text/javascript" src="http://userapi.com/js/api/openapi.js?45"></script> <script type="text/javascript"> VK.init({apiId: 1983235, onlyWidgets: true}); </script> <!-- Put this div tag to the place, where the Comments block will be --> <!--<div id="vk_comments"></div>--> <!--<script type="text/javascript"> VK.Widgets.Comments("vk_comments", {limit: 10, width: "700", attach: "*"}); </script>--> <br /> <h2>Последние новости</h2><br /> <?php //$query = "select t1.*, t2.id rid, t2.name rname from news t1, news_razdel t2 where t1.id!='{$_GET['news_id']}' and t1.razdel=t2.id and (t1.status='3'"; $query = "select t1.* from news t1 where t1.id!='{$_GET['news_id']}' and (t1.status='3'"; if ( $id_user_sess > 0 ) { $query .= " or t1.status='4') "; } else { $query .= ") "; } $query .= 'order by data desc, id desc limit 10'; $news_last = fetchAll( $query ); $smarty->assign( 'db_data', $news_last ); $smarty->display( 'news_last.tpl' ); $smarty->clear_all_assign(); //if ($admlist[$login] == 1000) echo $query; ?> </div> </td> <td class="TdFix"> <div class="BanLevtVt"> <?php echo_banner_pokaz($menu_page,3,"rand"); ?> </div> <div class="corner2 tl ctl" ></div> <div class="corner2 tr ctr" ></div><?php echo_polosa_razdel($menu_page, 1, $id_user_sess, $template); echo $sape->return_links(1); ?> <div class="Padtop"> <div class="corner2 bl2 cbl" ></div> <div class="corner2 br2 cbr"></div> </div> <?php echo_banner_pokaz($menu_page,4); ?> <div class="BordTop"> <div class="corner2 tl ctl" ></div> <div class="corner2 tr ctr" ></div> </div> <?php echo_polosa_razdel($menu_page, 2, $id_user_sess, $template); echo $sape->return_links(1); ?> <div class="Padtop"> <div class="corner2 bl2 cbl" ></div> <div class="corner2 br2 cbr"></div> </div> <?php echo_banner_pokaz($menu_page,5); ?> <div class="BordTop"> <div class="corner2 tl ctl" ></div> <div class="corner2 tr ctr" ></div> </div> <?php echo_polosa_razdel($menu_page, 3, $id_user_sess, $template); ?> <?php require($base_url."inc/bottom.inc"); ?>
/news/
Имя
Дата
Размер
..
2026-10-02
draw_num.php
2008-05-15
1 кб.
flvplayer.swf
2008-06-02
34 кб.
index.php
2024-01-22
14 кб.
index.php~
2023-11-15
12 кб.
index_old.php
2015-11-09
11 кб.
menu_news.php
2010-04-24
4 байт
menu_news_obl.php
2008-10-06
503 байт
myfont.ttf
2008-05-15
61 кб.
new_comment.inc.php
2015-11-11
9 кб.
news.php
2024-03-20
10 кб.
news.php~
2024-03-14
10 кб.
news_add.php
2008-05-15
8 кб.
news_company.php
2008-03-04
4 кб.
news_company_echo.php
2007-02-01
3 кб.
news_echo.php
2007-02-01
12 кб.
news_menu.php
2010-04-24
2 кб.
news_obl.php
2008-10-06
7 кб.
news_old.php
2013-01-29
7 кб.
news_stat.php
2010-05-11
1 кб.
news_user.php
2012-09-25
7 кб.
news_utf.php
2018-05-31
3 кб.
newsoblr.php
2008-10-15
4 кб.
print.php
2019-02-27
5 кб.
rss2.php
2018-05-31
2 кб.
rss_dzen.php
2024-04-27
3 кб.
rss_dzen.php~
2024-04-05
2 кб.
rss_dzen2.php
2024-04-27
2 кб.
rss_turbo_yandex.php
2019-02-21
3 кб.
stat_convert.php
2012-11-22
415 байт
stil_send.php
2009-08-19
1 кб.
style.css
2009-07-14
654 байт
swfobject.js
2008-06-02
7 кб.
tags.php
2017-02-21
1 кб.
view_foto.php
2007-07-23
1 кб.
/news
Загрузить файлы
Файл 1
Файл 2
Файл 3