Server : LiteSpeed System : Linux nl-srv-web1396.main-hosting.eu 4.18.0-553.83.1.lve.el8.x86_64 #1 SMP Wed Nov 12 10:04:12 UTC 2025 x86_64 User : u107206879 ( 107206879) PHP Version : 7.2.34 Disable Function : NONE Directory : /home/u107206879/domains/escort46.de/public_html/ |
<?php
include_once "db_connection.php";
include_once "functions.php";
require_once 'Mobile_Detect.php';
$detect = new Mobile_Detect;
$user_agent = $_SERVER["HTTP_USER_AGENT"];
if ( strpos( $user_agent, 'Bot' ) !== false || strpos( $user_agent, 'bot' ) !== false) {
die();
}
$active_1 = $active_2 = $active_3 = $active_4 = $active_5 = '';
#Scroll Ads Code
$_SESSION["count_scroll_ads"] =1;
if($detect->isMobile() && !$detect->isTablet()){
$device ="mobile";
}elseif($detect->isTablet()){
$device ="tablet";
}else{
$device ="desktop";
}
$scroll_ads_query="SELECT * from scroll_ads WHERE ad_device='".$device."' and active='1' order by rand() limit 1";
$scroll_ads_result=mysqli_query($connection,$scroll_ads_query);
$scroll_ads_count = mysqli_num_rows($scroll_ads_result);
$scroll_all_ads =array();
if(mysqli_num_rows($scroll_ads_result)){
$scroll_ads =array();
$scroll_ads = mysqli_fetch_assoc($scroll_ads_result);
#fetch all the ads related to that
$scroll_all_ads_query="SELECT * from scroll_ads WHERE ad_device='".$device."' and rowset ='".$scroll_ads["rowset"]."' order by id asc";
$scroll_all_ads_result=mysqli_query($connection,$scroll_all_ads_query);
$count_scroll_all_ads = mysqli_num_rows($scroll_all_ads_result);
if(mysqli_num_rows($scroll_all_ads_result)){
while($row_scroll_all_ads = mysqli_fetch_assoc($scroll_all_ads_result)){
$scroll_all_ads[] = $row_scroll_all_ads;
}
}
}
#Scroll Ads Code
if($_GET['categories'] == 1){
$get_category = 'escort';
$active_1 = 'active';
}elseif($_GET['categories'] == 2){
$get_category = 'massagekliniken';
$active_2 = 'active';
}elseif($_GET['categories'] == 3){
$get_category = 'escort-agenturen';
$active_3 = 'active';
}elseif($_GET['categories'] == 4){
$get_category = 'thailandische-massage';
$active_4 = 'active';
}elseif($_GET['categories'] == 5){
$get_category = 'events';
$active_5 = 'active';
}else{
$get_category = 'escort';
$active_all = 'active';
}
$ucw_category = ucwords(preg_replace('/[^\p{L}\p{Nd}]+/u', ' ', $get_category));
$show_capcha = false;
if(!isset($_SESSION["search_page_capcha_pass"])){
$_SESSION["search_page_capcha_pass"]="no";
}
if(!isset($_SESSION["search_page_count"])){
$_SESSION["search_page_count"]=1;
}
#Search page view count
if(!empty($_SESSION["search_page_count"])){
if($_SESSION["search_page_count"]==5 && $_SESSION["search_page_capcha_pass"]=="no"){
$show_capcha = true;
}else{
$_SESSION["search_page_count"]++;
$_SESSION["search_page_capcha_pass"] ="no";
}
}else{
$_SESSION["search_page_count"]++;
$_SESSION["search_page_capcha_pass"] ="no";
}
if(!empty($_POST["cp_send"])){
$show_capcha = false;
$_SESSION["search_page_capcha_pass"] ="yes";
$_SESSION["search_page_count"] =1;
}
if($_SESSION["search_page_count"]>5){
$_SESSION["search_page_count"] =1;
}
?>
<!DOCTYPE html>
<html lang="<?= $language ?>">
<head>
<?php include_once "new_head.php"; ?>
<script type="text/javascript">
function recaptcha_callback(){
$("#capcha_form").submit();
}
</script>
</head>
<body id="myPage">
<?php if ($website_h1_position == 'top_head_position') { ?><h1 class="htag-top"> <?php include "Section_content_h1.php"; ?></h1><?php } ?>
<div id="mobile-indicator"></div>
<div id="page-wrapper">
<?php include_once "header.php"; ?>
<section id="content" class="<?= $container.' '.$cont_fluid_bg_class ?> container-fluid">
<?php
if(isset($get_search) && !empty($get_search)){
if($show_capcha){
?>
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
<br /><br />
<form id="capcha_form" method="post">
<input type="hidden" name="cp_send" id="cp_send" value="SDB" />
<section id="login">
<div class="">
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4 signin">
<div class="form-wrap">
<div class="form-group captcha_wrapper" align="center">
<div class="g-recaptcha" data-callback="recaptcha_callback"data-sitekey="6Lf2JtkZAAAAAAjR9rAlwuwyNra9Iv-4dvgQ0nfO"></div>
</div>
</div>
</div>
</div>
</div>
</section>
</form>
<?php exit; ?>
<?php }?>
<?php
$search_title = strtolower(preg_replace('/[^\p{L}\p{N}]/u', ' ', $get_search));
$has_result = 0;
$h1_title == '';
$search_sql = mysqli_query($connection,"SELECT * FROM search WHERE title = '".$search_title."' and language='".$language."'");
$num_search_count = mysqli_num_rows($search_sql);
if($num_search_count == 0){
$ip = $_SERVER["REMOTE_ADDR"];
$user_agent = $_SERVER["HTTP_USER_AGENT"];
$insert_search_sql = mysqli_query($connection,"INSERT INTO search (title,language,date_time,count,ip,user_agent) VALUES ('".trim($search_title)."','".trim($language)."', '".date('Y-m-d H:i:s')."', 1, '".trim($ip)."', '".trim($user_agent)."')");
}elseif($num_search_count == 1){
$search_row = mysqli_fetch_assoc($search_sql);
$h1_title = $search_row['h1_title'];
$search_id = $search_row['search_id'];
$search_description = $search_row['description'];
$h2_title_1 = $search_row['h2_title_1'];
$seo_content = $search_row['seo_content'];
$h2_description_1 = $search_row['h2_description_1'];
$h2_title_2 = $search_row['h2_title_2'];
$h2_description_2 = $search_row['h2_description_2'];
$h2_title_3 = $search_row['h2_title_3'];
$h2_description_3 = $search_row['h2_description_3'];
$h2_title_4 = $search_row['h2_title_4'];
$h2_description_4 = $search_row['h2_description_4'];
$search_og_link = $search_row['search_outgoing_link'];
$count_plus = $search_row['count']+1;
$has_result = $search_row['is_result'];
$update_search_sql = mysqli_query($connection,"UPDATE search SET count=$count_plus WHERE search_id=$search_id");
}
//$get_search = strtolower(preg_replace('/[^a-zA-Z0-9]/', ' ', $get_search));
$get_search = strtolower(preg_replace('/[^\p{L}\p{N}]/u', ' ', $get_search));
}
?>
<div class="col-sm-12 col-md-12 col-xs-12 col-lg-12 no-padding">
<?php
if($page_ad_active == 1 || $page_top_ad_active == 1 || $page_left_ad_active == 1 || $page_right_ad_active == 1 || WEBSITE_PAGE_LAYOUT=="small"){
?>
<div class="col-sm-12 col-md-1 col-xs-12 col-lg-1"></div>
<?php } ?>
<div class="<?= $page_ad_bs_class ?>">
<div class="search-box-wrapper mt-100">
<div class="search-box <?= $section_container ?>">
<section class="title-section">
<div class="keel-container">
<?php
if(isset($get_search) && !empty($get_search)){
$search_key_title = array();
$word_array = array();
$word_olink_array = array();
$word_outgoing_link = array();
$all_key = mysqli_query($connection,"SELECT DISTINCT title, search_outgoing_link FROM search WHERE is_result=1 AND count >= 100");
while($search_key_row = mysqli_fetch_assoc($all_key)){
$search_key = $search_key_row['title'];
$search_outgoing_link = $search_key_row['search_outgoing_link'];
$cw = substr_count(trim($search_key),' ');
$word_array[$cw][] = $search_key;
$word_olink_array[$cw][] = $search_outgoing_link;
}
$word_arr_len = max(array_keys($word_array));
$search_key_title = $word_array[$word_arr_len];
$word_outgoing_link = $word_array[$word_arr_len];
for($i=$word_arr_len-1; $i>=0; $i--){
if($word_array[$i] != ''){
$search_key_title = array_merge($search_key_title,$word_array[$i]);
$word_outgoing_link = array_merge($word_outgoing_link,$word_olink_array[$i]);
}
}
function highlightWords($content, $search_key_title, $word_outgoing_link){
$search_key_title_length = count($search_key_title);
for($i=0; $i<$search_key_title_length; $i++){
if($word_outgoing_link[$i] == ''){
$value_link = str_replace(' ','-',$search_key_title[$i]);
$content = preg_replace("/<a[^>]*>(?:[a-zA-Z0-9\s'\-\.,]|(?:<(.*)>.*<\/\1>))*<\/a>(*SKIP)(*FAIL)|\b(".$search_key_title[$i].")\b(?=[^>]*(?:<|$))/i", '<a href="'.SUB_URL.'/search/'.$value_link.'" class="search_link">\2</a>', $content, 1);
}else{
$content = preg_replace("/<a[^>]*>(?:[a-zA-Z0-9\s'\-\.,]|(?:<(.*)>.*<\/\1>))*<\/a>(*SKIP)(*FAIL)|\b(".$search_key_title[$i].")\b(?=[^>]*(?:<|$))/i", '<a href="'.$word_outgoing_link[$i].'" class="search_link">\2</a>', $content, 1);
}
}
return $content;
}
$search_description = highlightWords($search_description, $search_key_title, $word_outgoing_link);
}else{
?>
<?php
}
?>
<?php if ($website_h1_position == 'default') { ?><h1 class=""> <?php include "Section_content_h1.php"; ?></h1><?php } ?>
<?php
if($h1_description == ''){
if(@H1_DISCRIPTION && @H1_DISCRIPTION != 'H1_DISCRIPTION'){
$value1 = H1_DISCRIPTION;
$value1 = repss("%%search%%",$get_search,$value1);
$value1 = repss("%% %%",'<b id="total_profiles">'.$total_records.'</b>',$value1);
?>
<p id="read1 more1" class="key_description"><?php echo $value1; ?></p>
<?php }else{
?>
<?php
} ?>
<?php
}else{
echo '<p id="read_more1" class="key_description">'.$search_description.'</p>';
}
?>
</div>
</section>
<div class="row pl-15 mb-10">
<ul class="breadcrumbs">
<li><a href="<?= SUB_URL ?>"><i class="glyphicon glyphicon-home"></i></a></li>
<li><a href="<?= SUB_URL.'/search' ?>">Suche</a></li>
<?php
if($search_og_link != ''){
?>
<li><a href="<?= $search_og_link ?>"><?= ucfirst($search_title) ?></a></li>
<?php
}elseif($get_search != ''){
?>
<li><a href="<?= SUB_URL.'/search/'.$get_search ?>"><?= ucfirst($search_title) ?></a></li>
<?php
}
?>
</ul>
</div>
<div class="search-tab-content">
<?php include_once "section_search.php"; ?>
</div>
</div>
</div>
<!-- Swiper -->
<div class="global-map-area section parallax pt-0" data-stellar-background-ratio="0.5">
<div class="<?= $section_container ?>">
<div class="image-carousel style3 flex-slider">
<?php include_once "section_flex_slider.php"; ?>
</div>
</div>
</div>
<?php include_once "section_boost.php"; ?>
<div class="<?= $section_container ?> section pt-0">
<div class="row image-box style10 list-padding list-group allProfiles" id="products">
<?php include_once "section_profiles.php"; ?>
</div>
<script async type="application/javascript" src="https://a.magsrv.com/ad-provider.js"></script> <ins class="eas6a97888e20" data-zoneid="5094950"></ins> <script>(AdProvider = window.AdProvider || []).push({"serve": {}});</script>
<div class="col-xs-12 col-md-12 col-lg-12 col-sm-12 show_more_gif" id="show_more_gif"></div>
<div class="col-xs-12 col-md-12 col-lg-12 col-sm-12 show_more"><button type="button" class="show_more_btn" id="show_more"></button></div>
</div>
<?php if(!empty(WEBSITE_SECTION_KEYWORD) && trim(WEBSITE_SECTION_KEYWORD)=="Active"){ ?>
<?php include_once "section_content_keyword.php"; ?>
<?php } ?>
<div class="col-xs-12 col-md-12 col-lg-12 col-sm-12" style="margin-bottom: 15px;"></div>
<div class="col-xs-12 col-md-12 col-lg-12 col-sm-12 myadpic adclass">
<?php include("myadpic.php"); ?>
</div>
<?php include_once "section_content_city.php"; ?>
<?php include_once "section_content_region.php"; ?>
<?php include "section_content.php"; ?>
<?php include "section_content_buttom.php"; ?>
<!-- Trigger the modal with a button -->
</div>
<?php
if($page_ad_active == 1 || $page_top_ad_active == 1 || $page_left_ad_active == 1 || $page_right_ad_active == 1 || WEBSITE_PAGE_LAYOUT=="small"){
?>
<div class="col-sm-12 col-md-1 col-xs-12 col-lg-1"></div>
<?php
}
?>
</div>
</section>
<footer id="footer">
<div class="footer-wrapper">
<?php include_once 'footer.php'; ?>
</div>
</footer>
</div>
<?php include_once 'js_zone.php'; ?>
<?php include_once 'load_data_js.php'; ?>
</body>
</html>