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/admin/ |
<?php
$error = "";
$message = "";
include "db_connection.php";
include "sessioncheck.php";
?>
<!-- Header Start-->
<?php include("header.php");
function file_get_contents_curl($url)
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
$data = curl_exec($ch);
curl_close($ch);
return $data;
}
if(isset($_GET['url'])){
$url = trim($_GET['url']);
$html = file_get_contents_curl($url);
//parsing begins here:
$doc = new DOMDocument();
@$doc->loadHTML($html);
$nodes = $doc->getElementsByTagName('title');
//get and display what you need:
$title = $nodes->item(0)->nodeValue;
$metas = $doc->getElementsByTagName('meta');
for ($i = 0; $i < $metas->length; $i++)
{
$meta = $metas->item($i);
if($meta->getAttribute('name') == 'description')
$description = $meta->getAttribute('content');
if($meta->getAttribute('name') == 'keywords')
$keywords = $meta->getAttribute('content');
}
// echo "Title: $title". '<br/><br/>';
// echo "Description: $description". '<br/><br/>';
// echo "Keywords: $keywords";
}
?>
<nav class=" navbar navbar-expand navbar-white navbar-light">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" data-widget="pushmenu" href="#">
<i class="fa fa-bars" style="color:white;"></i>
</a>
</li>
</ul>
<div>
<ol class="breadcrumb float-sm-right">
<li class="breadcrumb-item ">Home</li>
</ol>
</div>
</nav>
<style>
.panel {
box-shadow: 0 2px 0 rgba(0, 0, 0, 0.05);
border-radius: 0;
border: 0;
/*margin-bottom: 24px;*/
}
.panel-dark.panel-colorful {
background-color: #3b4146;
border-color: #3b4146;
color: #fff;
}
.panel-danger.panel-colorful {
background-color: #f76c51;
border-color: #f76c51;
color: #fff;
}
.panel-primary.panel-colorful {
background-color: #5fa2dd;
border-color: #5fa2dd;
color: #fff;
}
.panel-info.panel-colorful {
background-color: #4ebcda;
border-color: #4ebcda;
color: #fff;
}
.panel-body {
padding: 25px 20px;
}
.panel hr {
border-color: rgba(0, 0, 0, 0.1);
}
.mar-btm {
margin-bottom: 15px;
}
h2,
.h2 {
font-size: 28px;
}
.small,
small {
font-size: 85%;
}
.text-sm {
font-size: .9em;
}
.text-thin {
font-weight: 300;
}
.text-semibold {
font-weight: 600;
}
#app{
width: 100%;
}
.grWrapper {
padding: 15px;
}
.googleResult {
/* height: 102px; */
font-family: arial, sans-serif;
padding: 0.5em;
max-width: 100%;
text-overflow: ellipsis;
}
.grHeadline, .grUrl, .grDescription {
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin: 0;
letter-spacing: normal;
}
#grHeadlineBold {
color: #1a0dab!important;
cursor: pointer!important;
display: inline-flex!important;
font-family: arial, sans-serif!important;
font-size: 20px!important;
font-weight: 400!important;
height: auto!important;
line-height: 18px!important;
}
.bg-success, .bg-success > a {
color: unset !important;
}
.grHeadline, .grUrl, .grDescription {
display: block!important;
overflow: hidden!important;
text-overflow: ellipsis!important;
white-space: nowrap!important;
margin: 0!important;
letter-spacing: normal!important;
}
.bg-success {
background-color: transparent!important;
}
#grUrlBold {
color: #006621!important;
display: inline-block!important;
font-family: arial, sans-serif!important;
font-size: 16px!important;
font-style: normal!important;
height: auto!important;
line-height: 18px!important;
}
#grDescriptionBold {
font-size: 14px!important;
white-space: normal!important;
}
button.sc {
padding: 7px;
margin: 4px;
width: 35px;
height: 35px;
background-color: #f5f5f5;
border: 1px solid #ccc;
}
</style>
<!-- Header Ends-->
<!-- Content Start-->
<section class="content">
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<div id="app"><div class="page" b-s1u4dt3cfq=""><div class="main" b-s1u4dt3cfq=""><div class="content px-4" b-s1u4dt3cfq=""><div class="container"><div class="row"><div class="col-sm-10">
<form class="form" autocomplete="off">
<div class="form-group">
<div class="row">
<div class="col-md-9">
<input id="urlToGet" name="url" value="<?php echo $_GET['url'] ?>" placeholder="Enter URL" class="form-control valid">
</div>
<div class="col-md-3">
<button class="button btn btn-block btn-success" type="submit">Download From url</button>
</div>
</div>
</div>
<!-- <div class="form-group"><code class="urlstatus pull-right text-success">Status: 200 - OK</code></div> -->
</form>
</div></div>
<div class="row">
<div class="col-md-10"><div class="form-group"><p class="counter countHead"></p>
<p id="title_width" class="pull-right label label-success"></p>
<input id="headText" name="headline" class="inputget form-control headlineCnt" value="<?php echo $title; ?>" placeholder="Title Tag">
</div>
<div class="form-group"><p id="url_width" class="pull-right label label-success" style="display:none;"></p>
<input id="urlDestination" value="<?php echo $url; ?>" name="Inserturl" class="inputget form-control urlCnt" placeholder="Url">
</div>
<div class="form-group"><p id="description_width" class="pull-right label label-success"></p>
<textarea id="descriptionText" name="descriptionText" class="inputget form-control descriptionCnt" placeholder="Meta beskrivelse"><?php echo $description; ?></textarea></div>
<div class="form-group"><input name="bold_content" class="form-control" id="bold_content" placeholder="Indsæt dit keyword"></div></div></div>
<div class="row">
<div class="col-md-10">
<div class="grWrapper">
<div class="googleResult">
<div class="grHeadline">
<h3 id="grHeadlineBold">
<span class="bg-success"><?php echo $title; ?></span>
<span class="bg-warning"></span><span class="bg-danger"></span></h3>
</div>
<div class="grUrl"><span id="grUrlBold"><span class="bg-success"><?php echo $url; ?></span><span class="bg-warning"></span><span class="bg-danger"></span></span></div>
<div class="grDescription"><span id="grDescriptionBold"><span class="bg-success"><?php echo $description; ?></span><span class="bg-warning"></span><span class="bg-danger"></span></span></div></div></div></div></div>
<!-- <div class="row"><div class="col-md-10"><br>
<b>Special Tegn: <span id="copy-message"></span></b><br>
<button type="button" class="sc">♥</button>
<button type="button" class="sc">☻</button>
<button type="button" class="sc">☆</button>
<button type="button" class="sc">→</button>
<button type="button" class="sc">←</button>
<button type="button" class="sc">⇒</button>
<button type="button" class="sc">✓</button>
<button type="button" class="sc">⇑</button>
<button type="button" class="sc">▲</button>
<button type="button" class="sc">«</button>
<button type="button" class="sc">»</button><br>
<button type="button" class="sc">❶</button>
<button type="button" class="sc">❷</button>
<button type="button" class="sc">❸</button>
<button type="button" class="sc">❹</button>
<button type="button" class="sc">❺</button>
<button type="button" class="sc">❻</button>
<button type="button" class="sc">❼</button>
<button type="button" class="sc">❽</button>
<button type="button" class="sc">❾</button>
<button type="button" class="sc">❿</button>
<button type="button" class="sc">↔</button><br>
<button type="button" class="sc">➀</button>
<button type="button" class="sc">➁</button>
<button type="button" class="sc">➂</button>
<button type="button" class="sc">➃</button>
<button type="button" class="sc">➄</button>
<button type="button" class="sc">➅</button>
<button type="button" class="sc">➆</button>
<button type="button" class="sc">➇</button>
<button type="button" class="sc">➈</button>
<button type="button" class="sc">➉</button>
<button type="button" class="sc">|</button></div></div> -->
</div></div></div></div></div>
</div>
</div>
</div>
</section>
<?php include 'footer.php' ?>
<?php if($title && $description && $url){
?>
<script>
$(document).ready(function () {
// title start
let title = document.getElementById("headText").value;
$("#grHeadlineBold span.bg-success").html('');
$("#grHeadlineBold span.bg-warning").html('');
$("#grHeadlineBold span.bg-danger").html('');
title_green = title.substring(0,62);
$("#grHeadlineBold span.bg-success").html(title_green);
if(title.length >= 62){
title_yellow = title.substring(62,65);
$("#grHeadlineBold span.bg-warning").html(title_yellow);
}
if(title.length >= 65){
title_red = title.substring(65,999999);
$("#grHeadlineBold span.bg-danger").html(title_red);
}
// title end
// url startt
let url = document.getElementById("urlDestination").value;
url_green = url.substring(0,81);
$("#grUrlBold span.bg-success").html(url_green);
// if(url.length >= 62){
// url_yellow = url.substring(62,65);
// $("#grUrlBold span.bg-warning").html(url_yellow);
// }
if(url.length >= 81){
url_red = url.substring(81,999999);
$("#grUrlBold span.bg-danger").html(url_red);
}
// url end
// Description startt
let description = document.getElementById("descriptionText").value;
description_green = description.substring(0,160);
$("#grDescriptionBold span.bg-success").html(description_green);
if(description.length >= 160){
description_yellow = description.substring(160,200);
$("#grDescriptionBold span.bg-warning").html(description_yellow);
}
if(description.length >= 200){
description_red = description.substring(200,999999);
$("#grDescriptionBold span.bg-danger").html(description_red);
}
// Description end
document.getElementById("description_width").innerHTML = description.length + " Karakterer brugt" ;
document.getElementById("title_width").innerHTML = title.length + " Karakterer brugt" ;
$(document).on("input","#headText , #descriptionText , #urlDestination", function(e){
let title = document.getElementById("headText").value;
let description = document.getElementById("descriptionText").value;
let url = document.getElementById("urlDestination").value;
document.getElementById("description_width").innerHTML = description.length + " Karakterer brugt" ;
document.getElementById("title_width").innerHTML = title.length + " Karakterer brugt" ;
// if(title.length > 67){
// title_green = title.substring(0,62);
// title_yellow = title.substring(62,65);
// title_red = title.substring(65,999999);
// $("#grHeadlineBold span.bg-success").html(title_green);
// $("#grHeadlineBold span.bg-warning").html(title_yellow);
// $("#grHeadlineBold span.bg-danger").html(title_red);
// }
// if(title.length > 67){
$("#grHeadlineBold span.bg-success").html('');
$("#grHeadlineBold span.bg-warning").html('');
$("#grHeadlineBold span.bg-danger").html('');
title_green = title.substring(0,62);
if(title.length >= 62){
title_yellow = title.substring(62,65);
$("#grHeadlineBold span.bg-warning").html(title_yellow);
}
if(title.length >= 65){
title_red = title.substring(65,999999);
$("#grHeadlineBold span.bg-danger").html(title_red);
}
$("#grHeadlineBold span.bg-success").html(title_green);
// }
// $("#grHeadlineBold span.bg-success").html(title);
url_green = url.substring(0,81);
$("#grUrlBold span.bg-success").html(url_green);
// if(url.length >= 62){
// url_yellow = url.substring(62,65);
// $("#grUrlBold span.bg-warning").html(url_yellow);
// }
if(url.length >= 81){
url_red = url.substring(81,999999);
$("#grUrlBold span.bg-danger").html(url_red);
}
// url end
// $("#grUrlBold span.bg-success").html(url);
// $("#grDescriptionBold span.bg-success").html(description);
// Description startt
// let description = document.getElementById("descriptionText").value;
description_green = description.substring(0,160);
$("#grDescriptionBold span.bg-success").html(description_green);
if(description.length >= 160){
description_yellow = description.substring(160,200);
$("#grDescriptionBold span.bg-warning").html(description_yellow);
}
if(description.length >= 200){
description_red = description.substring(200,999999);
$("#grDescriptionBold span.bg-danger").html(description_red);
}
// Description end
});
// $("button").click(function () {
// $("input").change();
// });
});
</script>
<?php
} ?>