Орла
Области
Компаний
Пользователи
Галерея
Фиксированные новости
Орла
Отзывы о фирмах
Тарифы
Пользователи
Области
Банкоматы
Торговые точки
Доска объявлений
Курсы валют
Скидки
организации Орла
организации области
товары
сайты
сайты Орел
Данные
Разделы
Поиск
Поиск запросы
Статистика
Показы каталога организаций
Статистика клиенты
Пользователи
Сайты
Управление сайтом
Анкета
Аптеки
Афиша
Афиша новая
Баннеры
Бизнес >
Викторина
Голосование
Гость на сайте
Истории
Календарь событий
Каталоги >
Конкурс красоты
Конкурс аудио
Консультации
Меню
Новое на сайте
Новости >
Организации >
Программа ТВ
Публикации
Разделы сайта
Рассылка
Рестораны
Секрет фирмы >
Сервисы >
Ссылки
Тесты
Файловый менеджер
Форум
Фотогалерея
Обратная связь
Недвижимость
Новый год
Тексты
Пользователи
Юридический рейтинг
Отзывы на товары
Бан пользователей
Жалобы
Новые тесты
Коронавирус
Файловый менеджер
Имя файла
index.php
Содержимое
<?php $base_url="../"; $menu_page="index"; require_once($base_url."func.php"); if ($l == "") $l=db_connect(); $ofs = intval($_GET['ofs']); $pap = 9; $title="Фото ".$name_gorod; require($base_url."inc/top.inc"); require($base_url."banner_left.inc"); $kol_all = sqlval("SELECT COUNT(*) FROM `video` WHERE `status`='3'"); if ($kol_all){ error(); } $title_razdel="Фото г. ".$name_gorod." :: Всего ".$kol_all[0]. " роликов"; ?> <?php switch (intval($_GET['type'])) { case 1: //По дате $rs_main = sqlval("SELECT `video`.`id`, `fileName`, `fileSize`, `fileDate`, `length`, `title`,`description`, `video_abs_url`, `videoSection`.`id` AS `idSection`, `videoSection`.`name` AS `sectionName`, `user`.`id` AS `idUser`, `user`.`name`, `user`.`sex` FROM `video`, `videoSection`, `user` WHERE `status`='3' AND `video`.`idSection`<>'17' AND `video`.`idSection`=`videoSection`.`id` AND `video`.`idUser`=`user`.`id` ORDER BY `fileDate` DESC LIMIT 0, 1"); $r_video = sql("SELECT SQL_CALC_FOUND_ROWS `video`.`id`, `idUser`, `fileName`, `fileSize`, `fileDate`, `title`, `length`, `video_abs_url`, `user`.`name`, `user`.`sex` FROM `video`, `user` WHERE `status`='3' AND `video`.`idUser`=`user`.`id` ORDER BY `fileDate` DESC LIMIT $ofs, $pap"); $title_order = "Последние фото"; $top_menu = "top_rating.php"; break; case 2: //По просмотрам $rs_main = sqlval("SELECT `video`.`id`, `fileName`, `fileSize`, `fileDate`, `length`, `title`, `description`,`video_abs_url`, `idSection`, `videoSection`.`name` AS `sectionName`, `user`.`id` AS `idUser`, `user`.`name`, `user`.`sex`, COUNT(`videoStatistics`.`idVideo`) AS `count` FROM `video` LEFT JOIN `videoStatistics` ON `video`.`id`=`videoStatistics`.`idVideo`, `videoSection`, `user` WHERE `status`='3' AND `video`.`idSection`<>'17' AND `idSection`=`videoSection`.`id` AND `idUser`=`user`.`id` GROUP BY `video`.`id` ORDER BY `count` DESC, `fileDate` DESC LIMIT 0, 1"); $r_video = sql("SELECT SQL_CALC_FOUND_ROWS `video`.`id`, `idUser`, `fileName`, `fileSize`, `fileDate`, `title`,`video_abs_url`, `length`, `user`.`name`, `user`.`sex`, COUNT(`videoStatistics`.`idVideo`) AS `count` FROM `video` LEFT JOIN `videoStatistics` ON `video`.`id`=`videoStatistics`.`idVideo`, `user` WHERE `status`='3' AND `video`.`idUser`=`user`.`id` GROUP BY `video`.`id` ORDER BY `count` DESC, `fileDate` DESC LIMIT $ofs, $pap"); $title_order = "Посещаемые ролики"; $top_menu = "top_last.php"; break; case 3: //По рейтингу $rs_main = sqlval("SELECT `video`.`id`, `fileName`, `fileSize`, `fileDate`, `length`, `title`, `video_abs_url`,`description`, `idSection`, `videoSection`.`name` AS `sectionName`, `user`.`id` AS `idUser`, `user`.`name`, `user`.`sex`, COUNT(`videoVote`.`idVideo`) AS `rating` FROM `video` LEFT JOIN `videoVote` ON `video`.`id`=`videoVote`.`idVideo`, `videoSection`, `user` WHERE `status`='3' AND `video`.`idSection`<>'17' AND `idSection`=`videoSection`.`id` AND `idUser`=`user`.`id` GROUP BY `video`.`id` ORDER BY `rating` DESC, `fileDate` DESC LIMIT 0, 1"); $r_video = sql("SELECT SQL_CALC_FOUND_ROWS `video`.`id`, `idUser`, `fileName`, `fileSize`, `video_abs_url`,`fileDate`, `title`, `length`, `user`.`name`, `user`.`sex`, COUNT(`videoVote`.`idVideo`) AS `rating` FROM `video` LEFT JOIN `videoVote` ON `video`.`id`=`videoVote`.`idVideo`, `user` WHERE `status`='3' AND `video`.`idUser`=`user`.`id` GROUP BY `video`.`id` ORDER BY `rating` DESC, `fileDate` DESC LIMIT $ofs, $pap"); $title_order = "Популярные ролики"; $top_menu = "top_view.php"; break; default: //По дате (default) $rs_main = sqlval("SELECT `video`.`id`, `fileName`, `fileSize`, `fileDate`, `length`, `title`, `video_abs_url`,`description`, `videoSection`.`id` AS `idSection`, `videoSection`.`name` AS `sectionName`, `user`.`id` AS `idUser`, `user`.`name`, `user`.`sex` FROM `video`, `videoSection`, `user` WHERE `status`='3' AND `video`.`idSection`<>'17' AND `video`.`idSection`=`videoSection`.`id` AND `video`.`idUser`=`user`.`id` ORDER BY `fileDate` DESC LIMIT 0, 1"); $r_video = sql("SELECT SQL_CALC_FOUND_ROWS `video`.`id`, `idUser`, `fileName`, `fileSize`, `fileDate`, `video_abs_url`,`title`, `length`, `user`.`name`, `user`.`sex` FROM `video`, `user` WHERE `status`='3' AND `video`.`idUser`=`user`.`id` ORDER BY `fileDate` DESC LIMIT $ofs, $pap"); $title_order = "Последние ролики"; $top_menu = "top_rating.php"; break; } if (!$r_video) { error(); } $kol = sqlval("SELECT FOUND_ROWS()"); authorize(); $ip=getenv("REMOTE_ADDR"); $ip2=getIp(); $uagent=getenv(http_user_agent); $uinmd=md5($ip.$ip2.$uagent); $sid=$_REQUEST['sid']; ?> <?php require_once('foto_menu.php'); ?> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="240" valign="top" style="padding-right:30px;"><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr> <td class="afisha_all"><?php require_once('top_section.php'); ?></td> </tr> <tr> <td valign="top" class="afisha_all"><?php require_once($top_menu); ?></td> </tr> </table></td> <td valign="top" style=" padding-bottom:10px; padding-top:15px;" ><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="center" class="afisha_all"><table border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td><?php $template = file_get_contents($base_url . 'template/foto_template.html'); while ($rs_video = sqlget($r_video)) { $id = $rs_video['id']; if (file_exists($rs_video['video_abs_url'].'user_foto/flv/screenshot/' . $rs_video['fileName'] . '_sm.jpg')) { $img_index = '<a href="video_play.php?id='.$rs_video['id'].'"><img src="'.$rs_video['video_abs_url'].'/user_foto/flv/screenshot/' . $rs_video['fileName'] . '_sm.jpg" border="0"></a>'; } else { $img_index = '<a href="video_play.php?id='.$rs_video['id'].'"><img src="'.$rs_video['video_abs_url'].'/user_foto/flv/screenshot/' . $rs_video['fileName'] . '_sm.jpg" border="0"></a>'; } if (strlen($rs_video['title']) < 29) { $title = $rs_video['title']; } else { $title = substr($rs_video['title'],0,28) . '...'; } $file_size = eval_file_size($rs_video['fileSize']); $length = intval($rs_video['length'] / 3600) . ':' . (intval($rs_video['length'] / 60) % 60) . ':' . ($rs_video['length'] % 60); $date = date("Y-m-d", strtotime($rs_video['fileDate'])); $user = $rs_video['name']; switch ($rs_video['sex']) { case 1: $sex = 'img/men.gif'; break; case 2: $sex = 'img/women.gif'; break; case 0: $sex = 'img/it.gif"'; break; default: $sex = 'img/it.gif"'; break; } $rs_stat = sqlval("SELECT COUNT(*) AS `count` FROM `videoStatistics` WHERE `idVideo`='" . $rs_video['id'] . "'"); if (!$rs_stat) { error(); } $statView = $rs_stat['count']; $r_tmp = end(sqlval("SELECT COUNT(*) FROM `videoVote` WHERE `idVideo`='".$rs_video['id']."'")); $r_max_rating = sqlval("SELECT COUNT(`idVideo`) AS `count` from `videoVote` GROUP BY `idVideo` ORDER BY `count` DESC LIMIT 0,1"); $rating = floor(10 * ($r_tmp[0] / $r_max_rating[0])); $rating = "img/star_" . $rating . ".gif"; echo xparse('',$template,get_defined_vars()); } ?></td> </tr> </table> </td> </tr> <tr> <td align="center" style="padding:7px 0px 7px 0px;"><?php if ($kol[0] > $pap) { echo '<div align="center">Страницы:'; if (empty($_GET['page'])) { $page = 1; } else { $page = intval($_GET['page']); } list_all($kol[0],"?type=".intval($_GET['type']),8,$page,$pap,"ofs",1); echo '</div>'; } ?></td> </tr> </table> </td> </tr> </table> <?php require_once $base_url."banner_right.inc"; require($base_url."inc/bottom.inc"); ?>
/template/
Имя
Дата
Размер
..
2026-10-02
2.0
2026-05-25
cache
2015-04-04
razdel
2026-10-02
smarty
2016-04-15
templates_c
2015-04-04
views
2015-11-09
afisha_big.html
2010-03-29
819 байт
afisha_small.html
2015-09-30
312 байт
afisha_small2.html
2010-03-29
474 байт
bb_print_template.php
2008-01-24
1013 байт
bk_template.html
2010-03-31
492 байт
blog_template__last_post.html
2010-09-29
508 байт
blog_template_active.html
2010-09-29
701 байт
blog_template_active_blog.html
2010-09-29
511 байт
blog_template_comment.html
2010-09-29
740 байт
blog_template_comment_all.html
2010-11-16
517 байт
blog_template_comment_blog.html
2010-09-29
590 байт
blog_template_comment_post.html
2010-09-29
485 байт
blog_template_info_user.html
2010-11-16
883 байт
blog_template_last_post.html
2010-09-29
381 байт
blog_template_post.html
2010-09-29
508 байт
blog_template_post_my.html
2010-09-29
555 байт
blog_template_post_user.html
2010-09-29
442 байт
blog_template_star.html
2010-09-29
823 байт
blog_template_star_blog.html
2010-09-29
668 байт
discount_template.html
2010-05-18
1 кб.
discount_template1.html
2010-05-18
2 кб.
form_poisk.inc
2006-01-08
2 кб.
forum_ocen.php
2011-04-04
4 кб.
foto_album_template.html
2010-05-18
365 байт
foto_play_template.html
2009-12-10
187 байт
foto_template.html
2010-05-20
635 байт
foto_template2.html
2012-05-18
623 байт
foto_template_comment.html
2010-04-05
351 байт
foto_template_comment_all.html
2010-04-01
419 байт
foto_template_favourite.html
2010-04-01
785 байт
foto_template_full.html
2010-09-22
1 кб.
foto_template_last.html
2010-04-01
571 байт
foto_template_process.html
2009-12-11
762 байт
foto_template_rat.html
2010-04-01
635 байт
foto_template_rating.html
2010-04-01
636 байт
foto_template_section.html
2016-04-14
61 байт
foto_template_section_play.html
2009-12-10
513 байт
foto_template_top5.html
2009-12-11
454 байт
foto_template_user.html
2010-04-01
583 байт
foto_template_user_list.html
2009-12-10
312 байт
foto_template_user_my.html
2010-04-01
714 байт
foto_template_user_old.html
2009-12-10
2 кб.
foto_template_view.html
2009-12-10
465 байт
func_connect.php
2010-05-04
4 кб.
func_connect.txt
2009-11-19
4 кб.
func_connect2.txt
2009-02-16
4 кб.
func_connect_link.php
2009-12-18
4 кб.
index.php
2009-12-10
9 кб.
insert_login.inc
2013-06-02
2 кб.
insert_login.php
2013-06-02
1 кб.
insert_login_no_banner.php
2013-06-02
1 кб.
kartochka.html
2015-11-10
3 кб.
kartochka_big.html
2015-11-10
1 кб.
kartochka_big2.html
2015-04-17
2 кб.
kartochka_oblast.html
2015-04-17
2 кб.
katalog_firmi.php
2015-01-21
10 кб.
katalog_firmi_lawyer.php
2014-09-02
9 кб.
katalog_tovarov.php
2006-07-27
5 кб.
katalog_tovarov_firm.php
2011-12-26
7 кб.
katalog_tovarov_old.php
2006-01-08
3 кб.
katalog_tovarov_old2.php
2006-01-08
3 кб.
map_object.html
2006-05-17
1 кб.
news_business.php
2007-09-13
2 кб.
news_list.tpl
2010-04-24
1 кб.
news_template.html
2008-06-02
647 байт
news_template_line.html
2007-02-01
316 байт
news_template_rubrikator.html
2009-07-31
1 кб.
news_template_rubrikator.tpl
2009-07-31
2 кб.
news_template_rubrikator1.tpl
2009-07-31
684 байт
news_video.html
2008-06-03
1 кб.
out_fbb.php
2013-06-21
518 байт
polosa_razdel.php
2010-05-06
15 байт
polosa_razdel2.php
2010-03-12
15 байт
polosa_razdel_index.php
2010-05-06
16 байт
polosa_razdel_reklama.php
2006-07-23
363 байт
quiz.php
2011-08-23
5 кб.
rates.tpl
2009-11-25
3 кб.
restoran_search.html
2015-01-23
573 байт
restoran_search_new_short.html
2013-12-04
91 байт
restoran_template.php
2013-11-29
20 кб.
restoran_template2.php
2010-06-15
13 кб.
restoran_template_comment.html
2010-05-06
304 байт
restoran_template_comment_all.html
2010-04-29
431 байт
restoran_template_comment_new.php
2013-12-05
474 байт
restoran_template_new.php
2016-03-21
28 кб.
template_out_poisk.php
2017-02-02
507 байт
template_poisk.php
2006-02-01
4 кб.
template_search.php
2006-09-14
1 кб.
template_search_firm.php
2012-07-26
558 байт
template_search_firm_oblast.php
2008-09-19
634 байт
template_title.html
2012-07-26
15 байт
template_title2.html
2010-03-19
51 байт
template_title3.html
2012-07-26
268 байт
template_title4.html
2010-03-29
64 байт
tp_template.html
2010-03-31
229 байт
user_kabinet_menu.php
2016-02-16
0 байт
user_my_firm_top.php
2011-11-03
741 байт
/template
Загрузить файлы
Файл 1
Файл 2
Файл 3