<?php
/**********************************************/
/* Автор скрипта: Александр Есин */
/* E-Mail: [email protected] ([email protected]) */
/* ICQ: 6464729 */
/* Site: http://ticlove.ru */
/**********************************************/
?>
<?php define ('SECURED', true); ?>
<?php require (dirname(__FILE__).'/_inc/sql.php'); ?>
<?php require (dirname(__FILE__).'/_inc/config.php'); ?>
<?php require (dirname(__FILE__).'/_inc/function.php'); ?>
<?php $title_page = 'Сайт знакомств'; ?>
<?php $description_page = 'Сайт знакомств'; ?>
<?php $keywords_page = 'сайт знакомств для флирта, поиск второй половинки, флирт и знакомства'; ?>
<?php include (dirname(__FILE__).'/include/header.php'); ?>
<div id="block_left">
<?php include (dirname(__FILE__).'/include/lider.php'); ?>
</div>
<div id="content_page">
<?php $sql = mysql_query("SELECT * FROM `q_anketa` INNER JOIN `q_users` ON `q_users`.`id_user` = `q_anketa`.`id_user` WHERE `q_users`.`reg_date` > '".(time() - (NEW_USER * 24 * 3600))."' AND `q_users`.`photo` > '0' ORDER BY `q_users`.`id_user` DESC LIMIT 10;"); ?>
<?php if (mysql_num_rows($sql) > 0) { ?>
<div>
<div class="tit_zag">Новые анкеты</div>
<div class="clear"></div>
<div class="tit_zag_hr"></div>
<script src="/js/jquery.scrollTo-1.4.2-min.js" type="text/javascript"></script>
<script src="/js/jquery.serialScroll-1.2.2-min.js" type="text/javascript"></script>
<div id="newusers">
<a class="prev" href="javascript:void(0)"><img src="images/arrow_left.png" /></a>
<div id="slideshow">
<ul>
<?php while ($array = mysql_fetch_array($sql)) { ?>
<li>
<a href="http://<?php echo $_SERVER['HTTP_HOST']; ?>/id<?php echo $array['id_user']; ?>"><img class="<?php echo ($array['vip_status'] == 1 ? 'photo_bor_vip' : 'photo_bor'); ?> title_help" src="<?php echo DIR_PHOTOS; ?>/<?php echo $array['id_user']; ?>/<?php echo str_replace('_s', '_p', $array['avatar']); ?>" alt="<?php echo htmlspecialchars($array['name'], ENT_QUOTES); ?>, <?php echo function_vozrast_n($array['god'].'-'.$array['mes'].'-'.$array['day']); ?>, <?php echo htmlspecialchars($array['city'], ENT_QUOTES); ?>" title="Имя: <?php echo htmlspecialchars($array['name'], ENT_QUOTES); ?><br/>Возраст: <?php echo function_vozrast_n($array['god'].'-'.$array['mes'].'-'.$array['day']); ?><br/>Город: <?php echo htmlspecialchars($array['city'], ENT_QUOTES); ?>" /></a>
<?php if (function_online($array['online']) == TRUE) { ?>
<div style="text-align: center;">
<img class="title_help" src="/images/on.gif" alt="Сейчас на сайте" title="Сейчас на сайте" />
</div>
<?php } ?>
</li>
<?php } ?>
</ul>
</div>
<a class="next" href="javascript:void(0)"><img src="images/arrow_right.png" /></a>
<div class="clear"></div>
</div>
<div style="text-align:right; padding-top: 10px;"><a href="http://<?php echo $_SERVER['HTTP_HOST']; ?>/new/">Смотреть всех >>></a></div>
</div>
<?php } ?>
<div style="padding-top: 10px;">
<noindex>
<?php include (dirname(__FILE__).'/include/poisk.php'); ?>
</noindex>
</div>
<div style="padding-top: 10px;">
<div class="tit_zag">Рейтинг ТОП-100</div>
<div class="clear"></div>
<div class="tit_zag_hr"></div>
<div class="left" style="padding-left: 70px;">
<div style="text-align: center; color: #676767; font-size: 16px; font-weight: bold; text-shadow: 0 0 10px #676767;">Девушки</div>
<?php $q = mysql_query("SELECT `q_photo_vote`.`uid_user`, `q_users`.*, (SUM(`q_photo_vote`.`asses`) / COUNT(`q_photo_vote`.`asses`)) AS `ass` FROM `q_photo_vote`, `q_users` WHERE `q_photo_vote`.`uid_user` = `q_users`.`id_user` AND `q_users`.`pol` = '2' GROUP BY `q_photo_vote`.`uid_user` ORDER BY `ass` DESC LIMIT 100;"); ?>
<?php if (mysql_num_rows($q) > 2) { ?>
<?php
while ($array_id_girl = mysql_fetch_array($q))
{
$user_id_girl[] = $array_id_girl['id_user'];
}
shuffle($user_id_girl);
?>
<div class="left" style="padding-top: 120px; padding-right: 10px;">
<?php $sql = mysql_query("SELECT * FROM `q_users` WHERE `id_user` = '".$user_id_girl[0]."' LIMIT 1;"); ?>
<?php $array_girl = mysql_fetch_array($sql); ?>
<a href="http://<?php echo $_SERVER['HTTP_HOST']; ?>/id<?php echo $array_girl['id_user']; ?>">
<?php if (!empty($array_girl['avatar'])) { ?>
<img class="<?php echo ($array_girl['vip_status'] == 1 ? 'photo_bor_vip' : 'photo_bor'); ?> title_help" src="<?php echo DIR_PHOTOS; ?>/<?php echo $array_girl['id_user']; ?>/<?php echo $array_girl['avatar']; ?>" alt="" title="<?php echo htmlspecialchars($array_girl['name'], ENT_QUOTES); ?>, <?php echo function_vozrast_n($array_girl['god'].'-'.$array_girl['mes'].'-'.$array_girl['day']); ?>, <?php echo htmlspecialchars($array_girl['city'], ENT_QUOTES); ?>" />
<?php } else { ?>
<img class="<?php echo ($array_girl['vip_status'] == 1 ? 'photo_bor_vip' : 'photo_bor'); ?> title_help" src="/images/no_photo_small.png" alt="" title="<?php echo htmlspecialchars($array_girl['name'], ENT_QUOTES); ?>, <?php echo function_vozrast_n($array_girl['god'].'-'.$array_girl['mes'].'-'.$array_girl['day']); ?>, <?php echo htmlspecialchars($array_girl['city'], ENT_QUOTES); ?>" />
<?php } ?>
</a>
<?php if (function_online($array_girl['online']) == TRUE) { ?>
<div style="text-align: center;">
<img class="title_help" src="/images/on.gif" alt="Сейчас на сайте" title="Сейчас на сайте" />
</div>
<?php } ?>
</div>
<div class="left" style="padding-top: 10px;">
<?php $sql = mysql_query("SELECT * FROM `q_users` WHERE `id_user` = '".$user_id_girl[1]."' LIMIT 1;"); ?>
<?php $array_girl = mysql_fetch_array($sql); ?>
<a href="http://<?php echo $_SERVER['HTTP_HOST']; ?>/id<?php echo $array_girl['id_user']; ?>">
<?php if (!empty($array_girl['avatar'])) { ?>
<img class="<?php echo ($array_girl['vip_status'] == 1 ? 'photo_bor_vip' : 'photo_bor'); ?> title_help" src="<?php echo DIR_PHOTOS; ?>/<?php echo $array_girl['id_user']; ?>/<?php echo str_replace('_s', '_p', $array_girl['avatar']); ?>" alt="" title="<?php echo htmlspecialchars($array_girl['name'], ENT_QUOTES); ?>, <?php echo function_vozrast_n($array_girl['god'].'-'.$array_girl['mes'].'-'.$array_girl['day']); ?>, <?php echo htmlspecialchars($array_girl['city'], ENT_QUOTES); ?>" />
<?php } else { ?>
<img class="<?php echo ($array_girl['vip_status'] == 1 ? 'photo_bor_vip' : 'photo_bor'); ?> title_help" src="/images/no_photo_small.png" alt="" title="<?php echo htmlspecialchars($array_girl['name'], ENT_QUOTES); ?>, <?php echo function_vozrast_n($array_girl['god'].'-'.$array_girl['mes'].'-'.$array_girl['day']); ?>, <?php echo htmlspecialchars($array_girl['city'], ENT_QUOTES); ?>" />
<?php } ?>
</a>
<?php if (function_online($array_girl['online']) == TRUE) { ?>
<div style="text-align: center;">
<img class="title_help" src="/images/on.gif" alt="Сейчас на сайте" title="Сейчас на сайте" />
</div>
<?php } ?>
</div>
<div class="left" style="padding-top: 120px; padding-left: 10px;">
<?php $sql = mysql_query("SELECT * FROM `q_users` WHERE `id_user` = '".$user_id_girl[2]."' LIMIT 1;"); ?>
<?php $array_girl = mysql_fetch_array($sql); ?>
<a href="http://<?php echo $_SERVER['HTTP_HOST']; ?>/id<?php echo $array_girl['id_user']; ?>">
<?php if (!empty($array_girl['avatar'])) { ?>
<img class="<?php echo ($array_girl['vip_status'] == 1 ? 'photo_bor_vip' : 'photo_bor'); ?> title_help" src="<?php echo DIR_PHOTOS; ?>/<?php echo $array_girl['id_user']; ?>/<?php echo $array_girl['avatar']; ?>" alt="" title="<?php echo htmlspecialchars($array_girl['name'], ENT_QUOTES); ?>, <?php echo function_vozrast_n($array_girl['god'].'-'.$array_girl['mes'].'-'.$array_girl['day']); ?>, <?php echo htmlspecialchars($array_girl['city'], ENT_QUOTES); ?>" />
<?php } else { ?>
<img class="<?php echo ($array_girl['vip_status'] == 1 ? 'photo_bor_vip' : 'photo_bor'); ?> title_help" src="/images/no_photo_small.png" alt="" title="<?php echo htmlspecialchars($array_girl['name'], ENT_QUOTES); ?>, <?php echo function_vozrast_n($array_girl['god'].'-'.$array_girl['mes'].'-'.$array_girl['day']); ?>, <?php echo htmlspecialchars($array_girl['city'], ENT_QUOTES); ?>" />
<?php } ?>
</a>
<?php if (function_online($array_girl['online']) == TRUE) { ?>
<div style="text-align: center;">
<img class="title_help" src="/images/on.gif" alt="Сейчас на сайте" title="Сейчас на сайте" />
</div>
<?php } ?>
</div>
<div class="clear"></div>
<?php } ?>
</div>
<div class="left" style="padding-left: 60px;"> </div>
<div class="left" style="padding-left: 20px;">
<div style="text-align: center; color: #676767; font-size: 16px; font-weight: bold; text-shadow: 0 0 10px #676767;">Парни</div>
<?php $q = mysql_query("SELECT `q_photo_vote`.`uid_user`, `q_users`.*, (SUM(`q_photo_vote`.`asses`) / COUNT(`q_photo_vote`.`asses`)) AS `ass` FROM `q_photo_vote`, `q_users` WHERE `q_photo_vote`.`uid_user` = `q_users`.`id_user` AND `q_users`.`pol` = '1' GROUP BY `q_photo_vote`.`uid_user` ORDER BY `ass` DESC LIMIT 100;"); ?>
<?php if (mysql_num_rows($q) > 2) { ?>
<?php
while ($array_id_boy = mysql_fetch_array($q))
{
$user_id_boy[] = $array_id_boy['id_user'];
}
shuffle($user_id_boy);
?>
<div class="left" style="padding-top: 120px; padding-right: 10px;">
<?php $sql = mysql_query("SELECT * FROM `q_users` WHERE `id_user` = '".$user_id_boy[0]."' LIMIT 1;"); ?>
<?php $array_boy = mysql_fetch_array($sql); ?>
<a href="http://<?php echo $_SERVER['HTTP_HOST']; ?>/id<?php echo $array_boy['id_user']; ?>">
<?php if (!empty($array_boy['avatar'])) { ?>
<img class="<?php echo ($array_boy['vip_status'] == 1 ? 'photo_bor_vip' : 'photo_bor'); ?> title_help" src="<?php echo DIR_PHOTOS; ?>/<?php echo $array_boy['id_user']; ?>/<?php echo $array_boy['avatar']; ?>" alt="" title="<?php echo htmlspecialchars($array_boy['name'], ENT_QUOTES); ?>, <?php echo function_vozrast_n($array_boy['god'].'-'.$array_boy['mes'].'-'.$array_boy['day']); ?>, <?php echo htmlspecialchars($array_boy['city'], ENT_QUOTES); ?>" />
<?php } else { ?>
<img class="<?php echo ($array_boy['vip_status'] == 1 ? 'photo_bor_vip' : 'photo_bor'); ?> title_help" src="/images/no_photo_small.png" alt="" title="<?php echo htmlspecialchars($array_boy['name'], ENT_QUOTES); ?>, <?php echo function_vozrast_n($array_boy['god'].'-'.$array_boy['mes'].'-'.$array_boy['day']); ?>, <?php echo htmlspecialchars($array_boy['city'], ENT_QUOTES); ?>" />
<?php } ?>
</a>
<?php if (function_online($array_boy['online']) == TRUE) { ?>
<div style="text-align: center;">
<img class="title_help" src="/images/on.gif" alt="Сейчас на сайте" title="Сейчас на сайте" />
</div>
<?php } ?>
</div>
<div class="left" style="padding-top: 10px;">
<?php $sql = mysql_query("SELECT * FROM `q_users` WHERE `id_user` = '".$user_id_boy[1]."' LIMIT 1;"); ?>
<?php $array_boy = mysql_fetch_array($sql); ?>
<a href="http://<?php echo $_SERVER['HTTP_HOST']; ?>/id<?php echo $array_boy['id_user']; ?>">
<?php if (!empty($array_boy['avatar'])) { ?>
<img class="<?php echo ($array_boy['vip_status'] == 1 ? 'photo_bor_vip' : 'photo_bor'); ?> title_help" src="<?php echo DIR_PHOTOS; ?>/<?php echo $array_boy['id_user']; ?>/<?php echo str_replace('_s', '_p', $array_boy['avatar']); ?>" alt="" title="<?php echo htmlspecialchars($array_boy['name'], ENT_QUOTES); ?>, <?php echo function_vozrast_n($array_boy['god'].'-'.$array_boy['mes'].'-'.$array_boy['day']); ?>, <?php echo htmlspecialchars($array_boy['city'], ENT_QUOTES); ?>" />
<?php } else { ?>
<img class="<?php echo ($array_boy['vip_status'] == 1 ? 'photo_bor_vip' : 'photo_bor'); ?> title_help" src="/images/no_photo_small.png" alt="" title="<?php echo htmlspecialchars($array_boy['name'], ENT_QUOTES); ?>, <?php echo function_vozrast_n($array_boy['god'].'-'.$array_boy['mes'].'-'.$array_boy['day']); ?>, <?php echo htmlspecialchars($array_boy['city'], ENT_QUOTES); ?>" />
<?php } ?>
</a>
<?php if (function_online($array_boy['online']) == TRUE) { ?>
<div style="text-align: center;">
<img class="title_help" src="/images/on.gif" alt="Сейчас на сайте" title="Сейчас на сайте" />
</div>
<?php } ?>
</div>
<div class="left" style="padding-top: 120px; padding-left: 10px;">
<?php $sql = mysql_query("SELECT * FROM `q_users` WHERE `id_user` = '".$user_id_boy[2]."' LIMIT 1;"); ?>
<?php $array_boy = mysql_fetch_array($sql); ?>
<a href="http://<?php echo $_SERVER['HTTP_HOST']; ?>/id<?php echo $array_boy['id_user']; ?>">
<?php if (!empty($array_boy['avatar'])) { ?>
<img class="<?php echo ($array_boy['vip_status'] == 1 ? 'photo_bor_vip' : 'photo_bor'); ?> title_help" src="<?php echo DIR_PHOTOS; ?>/<?php echo $array_boy['id_user']; ?>/<?php echo $array_boy['avatar']; ?>" alt="" title="<?php echo htmlspecialchars($array_boy['name'], ENT_QUOTES); ?>, <?php echo function_vozrast_n($array_boy['god'].'-'.$array_boy['mes'].'-'.$array_boy['day']); ?>, <?php echo htmlspecialchars($array_boy['city'], ENT_QUOTES); ?>" />
<?php } else { ?>
<img class="<?php echo ($array_boy['vip_status'] == 1 ? 'photo_bor_vip' : 'photo_bor'); ?> title_help" src="/images/no_photo_small.png" alt="" title="<?php echo htmlspecialchars($array_boy['name'], ENT_QUOTES); ?>, <?php echo function_vozrast_n($array_boy['god'].'-'.$array_boy['mes'].'-'.$array_boy['day']); ?>, <?php echo htmlspecialchars($array_boy['city'], ENT_QUOTES); ?>" />
<?php } ?>
</a>
<?php if (function_online($array_boy['online']) == TRUE) { ?>
<div style="text-align: center;">
<img class="title_help" src="/images/on.gif" alt="Сейчас на сайте" title="Сейчас на сайте" />
</div>
<?php } ?>
</div>
<div class="clear"></div>
<?php } ?>
</div>
<div class="clear"></div>
</div>
</div>
<div class="clear"></div>
<?php include (dirname(__FILE__).'/include/footer.php'); ?>