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/en/ |
<?php
include_once "db_connection.php";
include_once "functions.php";
require_once 'Mobile_Detect.php';
$detect = new Mobile_Detect;
$success="";
if(isset($_POST['submit'])){
$error="";
$site_name=$_POST['site_name'];
$web_url=$_POST['web_url'];
$web_url=addhttp($web_url);
$description=$_POST['description'];
$web_email=$_POST['email'];
$our_link=$_POST['our_link'];
$our_link=addhttp($our_link);
$is_approved = 1;
$partner_tbl = "INSERT INTO `become_partner` (`id`, `site_name`, `web_url`, `description`, `web_email`, `our_link`, `is_approved`)
VALUES (NULL, '".mysqli_real_escape_string($connection,$site_name)."', '".mysqli_real_escape_string($connection,$web_url)."', '".mysqli_real_escape_string($connection,$description)."', '".mysqli_real_escape_string($connection,$web_email)."', '".mysqli_real_escape_string($connection,$our_link)."', $is_approved)";
$partner_result=mysqli_query($connection,$partner_tbl);
if($partner_result){
$inserted_id = mysqli_insert_id($connection);
$tmp_name = $_FILES['banner_image']['tmp_name'];
$path = "../partner_images/";
$banner_image = $_FILES['banner_image']['name'];
$size = $_FILES['banner_image']['size'];
$type = $_FILES['banner_image']['type'];
$ext = strtolower(substr($banner_image, strrpos($banner_image, '.') +1));
$banner_image = time()."_".rand(0,999999).".".$ext;
if(($ext=='jpg' || $ext=='jpeg' || $ext=='png' || $ext=='gif')&&($type=='image/jpeg' || $type=='image/png' || $type=='image/gif'))
{
if(move_uploaded_file($_FILES['banner_image']['tmp_name'], $path.$banner_image))
{
mysqli_query($connection,"UPDATE `become_partner` SET banner_image='$banner_image' WHERE id=$inserted_id");
}
}// END EXT
$to=$web_email;
$msg= "Thank you for adding your website. \n";
$subject="Website registration (".MAIN_EMAIL_NAME.")";
$headers='From:'.MAIN_EMAIL_NAME.' <'.MAIN_EMAIL.'>';
$msg.=" \n";
$msg.="Your banner is now online and can be found on our website: ".MAIN_URL."/escort-sites \n";
$msg.=" \n";
$msg.="Please add one of our banners to your site within 48 hours to keep your banner on our website \n";
$msg.="Find the banners here: ".MAIN_URL."/banners \n";
$msg.=" \n";
$msg.="Best Regards \n";
$msg.="".MAIN_EMAIL_NAME." \n";
mail($to,$subject,$msg,$headers);
$success=
"<div align='center' class='alert alert-success alert-dismissable'>
<a href='#' class='close' data-dismiss='alert' aria-label='close'>X</a>
<strong>Registration Successful !</strong> Your banner is now online on our website !
</div>";
}else{
$success=
"<div align='center' class='alert alert-danger alert-dismissable'>
<a href='#' class='close' data-dismiss='alert' aria-label='close'>X</a>
Error. Please try again.
</div>";
}
}
?>
<!DOCTYPE html>
<html lang="<?= $language ?>">
<head>
<?php include_once "new_head.php"; ?>
<style>
.file_uploads::before{
content: 'Add banner';
}
</style>
</head>
<body id="myPage">
<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">
<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="section pt-0 pb-50">
<center class="description">
<h1>Get listed</h1>
<hr class="hr_lines">
<p class="mb-90">Follow the steps to get listed on our website.</p>
</center>
<?php
if($success != ""){
echo $success;
}
?>
<div class="row">
<div class="col-md-6 col-xs-12">
<div class="description mt-5">
<div class="col-md-12 col-sm-12">
<p class="h2_footer_title">
Step 1: Add your website
</p>
<p class="h2_description">Fill out the registration form to get your website listed.</p>
</div>
<div class="col-md-12 col-sm-12">
<p class="h2_footer_title">
Step 2: Online right away
</p>
<p class="h2_description">You can find your website on our other <a target=_blank href="<?= SUB_URL.'/escort-sites' ?>" style="font-size: 20px; padding-right: 5px; text-decoration: underline;">Escort Sites</a> page right away.</p>
</div>
<div class="col-md-12 col-sm-12">
<p class="h2_footer_title">
Step 3: Add our banner
</p>
<p class="h2_description">Add one of our banners to your website.<br> <a target=_blank href="<?= SUB_URL.'/banners' ?>" style="font-size: 20px; padding-right: 5px; text-decoration: underline;">Find the banners here!</a></p>
</div>
</div>
</div>
<div class="col-md-6 col-xs-12">
<form name="partner-form" method="POST" id="partner-form" enctype="multipart/form-data">
<span class="col-md-12 col-xs-12 partner-errors"></span>
<div class="form-group col-md-6 col-xs-12">
<label for="site_name">
Your website name <span class="input_compulsory">*</span>
</label>
<input type="text" id="site_name" class="form-control" name="site_name" placeholder="Website name" required />
</div>
<div class="form-group col-md-6 col-xs-12">
<label for="web_url">
Your website url <span class="input_compulsory">*</span>
</label>
<input type="text" id="web_url" class="form-control" name="web_url" placeholder="http://www.example.com" required />
</div>
<div class="form-group col-md-12 col-xs-12">
<label for="description">
Your website Description <span class="input_compulsory">*</span>
</label>
<textarea class="form-control" id="description" rows="4" name="description" placeholder="Enter description for website"></textarea>
</div>
<div class="form-group col-md-6 col-xs-12">
<label for="email">
Your website email <span class="input_compulsory">*</span>
</label>
<input type="email" id="email" class="form-control" name="email" placeholder="[email protected]" required />
</div>
<div class="form-group col-md-6 col-xs-12">
<label for="our_link">
Link to our banner on your website <span class="input_compulsory">*</span>
</label>
<input type="text" id="our_link" class="form-control" name="our_link" placeholder="http://www.example.com" required />
</div>
<div class="form-group col-md-12 col-xs-12">
<label for="banner_image">(If you don't have a banner we will create one for you)</label>
<input name="banner_image" class="file_uploads" type="file">
</div>
<div class="form-group col-md-12 col-xs-12">
<input type="submit" id="bePartner" name="submit" class="submit btn btn-block submit-button" value="Add website">
</div>
</form>
</div>
</div>
<div class="row description text-center mt-60">
<div class="col-md-12 col-sm-12">
<h2 class="mt-10 mb-10" style="font-size: 20px; opacity: 0.9">Good reasons why you should add your website</h2>
<p class="h2_description">Many people think that they do not have to add their website to other sites if, for example, they are not within the same country. Below you can read the good reasons why you should list your website on as many other websites as possible within the same subject. Which in this case is escort, massage and other erotic experiences.</p>
</div>
<div class="col-md-4 col-sm-6">
<p class="h2_footer_title">
Search engine ranking
</p>
<p class="h2_description">The more listings you have to your page, the better, for example, Google places you in their search results.</p>
</div>
<div class="col-md-4 col-sm-6">
<p class="h2_footer_title">
More traffic to your website
</p>
<p class="h2_description">With the better ranking on the search engines, you will get more traffic on your website, which means more visitors.</p>
</div>
<div class="col-md-4 col-sm-6">
<p class="h2_footer_title">
With more traffic comes more business
</p>
<p class="h2_description">When your website has more visitors, it's natural thing that you will get more clients to your business.</p>
</div>
</div>
</div>
</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'; ?>
<script type="text/javascript" src="<?php echo MAIN_URL; ?>/js/jquery.validate.js"></script>
<script>
$().ready(function() {
// validate signup form on keyup and submit
$("#partner-form").validate({
rules: {
site_name: {
required: true,
},
web_url: {
required: true,
},
description: {
required: true,
maxlength: 300,
minlength: 50
},
email: {
required: true,
email: true
},
our_link: {
required: true,
},
},
messages: {
site_name: "Please enter your site name",
web_url: "Please enter your web URL",
description: {
required: "Please enter description",
maxlength: "Maximum 300 characters are allowed",
minlength: "Please enter minimum 50 characters"
},
email: "Please enter valid email",
our_link: "Please enter where we can find our banner on your website",
}
});
});
$(document).on("change",".file_uploads",function(){
if ($(this).val() != "") {
$(this).css('color', '#fff');
}else{
$(this).css('color', 'transparent');
}
});
</script>
</body>
</html>