Commit 120024ff authored by carboncrafters's avatar carboncrafters
Browse files

fixes add js

parent 642f28a0
Pipeline #5 canceled with stages
<?php
require $_SERVER["DOCUMENT_ROOT"].'/cookie.php';
include $_SERVER["DOCUMENT_ROOT"].'/'.$displang.'/menu.php'; ?>
require $_SERVER["DOCUMENT_ROOT"].'/cookie.php';?>
<link rel="stylesheet" href="https://cdn.emalm.com/css/main.css">
</head>
<div include="/menu.html"></div>
<aside class="right" >
<?php include $_SERVER["DOCUMENT_ROOT"].'/ad.php'; ?>
<div include="/ad.php"></div>
</aside >
......@@ -40,7 +39,27 @@ If someone uploads some copyrighted content report it <a href="/contact/">here</
</ul>
</section>
<?php include $_SERVER["DOCUMENT_ROOT"].'/'.$displang.'/fot.php'; ?>
<div include="/footer.html"></div>
<script>
includeHTML();
var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
var myObj = JSON.parse(this.responseText);
document.getElementById("upl").innerHTML = myObj.upl+"<span class=\"caret\"></span>";
document.getElementById("img").innerHTML = myObj.img;
document.getElementById("vid").innerHTML = myObj.vid;
document.getElementById("img2").innerHTML = myObj.img;
document.getElementById("vid2").innerHTML = myObj.vid;
document.getElementById("randompw").innerHTML = myObj.randompw;
document.getElementById("infinite").innerHTML = myObj.infinite;
document.getElementById("search").innerHTML = myObj.search;
document.getElementById("login").innerHTML = "<span class=\"glyphicon glyphicon-log-in\"></span> "+myObj.login;
//document.getElementById("reg").innerHTML = myObj.reg;
document.getElementById("about").innerHTML = myObj.about;
document.getElementById("lng").innerHTML = myObj.lng;
}
};
xmlhttp.open("GET", "https://emalm.com/api/?get=menu&language="+getCookie("language"), true);
xmlhttp.send();
</script>
\ No newline at end of file
<!DOCTYPE html><?php
include $_SERVER["DOCUMENT_ROOT"].'/cookie.php';
include $_SERVER["DOCUMENT_ROOT"].'/'.$displang.'/menu.php'; ?>
include $_SERVER["DOCUMENT_ROOT"].'/cookie.php';?>
<link rel="stylesheet" href="https://cdn.emalm.com/css/main.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="UTF-8">
......@@ -8,9 +7,9 @@ include $_SERVER["DOCUMENT_ROOT"].'/cookie.php';
<title>Contact - Emalm</title>
</head>
<body>
<div include="/menu.html"></div>
<aside class="right" >
<?php //include $_SERVER["DOCUMENT_ROOT"].'/ad.php'; ?>
<div include="/ad.php"></div>
</aside >
<section class="left">
......@@ -109,4 +108,27 @@ mail($to,$subj,$message,$headers);
</section>
</body><br/>
<?php include $_SERVER["DOCUMENT_ROOT"].'/'.$displang.'/fot.php'; ?>
\ No newline at end of file
<div include="/footer.html"></div>
<script>
includeHTML();
var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
var myObj = JSON.parse(this.responseText);
document.getElementById("upl").innerHTML = myObj.upl+"<span class=\"caret\"></span>";
document.getElementById("img").innerHTML = myObj.img;
document.getElementById("vid").innerHTML = myObj.vid;
document.getElementById("img2").innerHTML = myObj.img;
document.getElementById("vid2").innerHTML = myObj.vid;
document.getElementById("randompw").innerHTML = myObj.randompw;
document.getElementById("infinite").innerHTML = myObj.infinite;
document.getElementById("search").innerHTML = myObj.search;
document.getElementById("login").innerHTML = "<span class=\"glyphicon glyphicon-log-in\"></span> "+myObj.login;
//document.getElementById("reg").innerHTML = myObj.reg;
document.getElementById("about").innerHTML = myObj.about;
document.getElementById("lng").innerHTML = myObj.lng;
}
};
xmlhttp.open("GET", "https://emalm.com/api/?get=menu&language="+getCookie("language"), true);
xmlhttp.send();
</script>
\ No newline at end of file
<?php
require $_SERVER["DOCUMENT_ROOT"].'/cookie.php';
include $_SERVER["DOCUMENT_ROOT"].'/'.$displang.'/menu.php';
require $_SERVER["DOCUMENT_ROOT"].'/cookie.php';
?>
<link rel="stylesheet" href="https://cdn.emalm.com/css/main.css">
......@@ -31,9 +30,9 @@ include $_SERVER["DOCUMENT_ROOT"].'/'.$displang.'/menu.php';
</head>
<body>
<div include="/menu.html"></div>
<aside class="right" >
<?php include $_SERVER["DOCUMENT_ROOT"].'/'.$displang.'/right.php'; ?>
<div include="/ad.php"></div>
</aside >
<section class="left">
......@@ -62,13 +61,32 @@ include $_SERVER["DOCUMENT_ROOT"].'/'.$displang.'/menu.php';
</div>
</div>
</section>
<?php
include $_SERVER["DOCUMENT_ROOT"].'/'.$displang.'/fot.php';
?>
</div> <!-- /container -->
<div include="/footer.html"></div>
</body>
</html>
\ No newline at end of file
</html>
<script>
includeHTML();
var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
var myObj = JSON.parse(this.responseText);
document.getElementById("upl").innerHTML = myObj.upl+"<span class=\"caret\"></span>";
document.getElementById("img").innerHTML = myObj.img;
document.getElementById("vid").innerHTML = myObj.vid;
document.getElementById("img2").innerHTML = myObj.img;
document.getElementById("vid2").innerHTML = myObj.vid;
document.getElementById("randompw").innerHTML = myObj.randompw;
document.getElementById("infinite").innerHTML = myObj.infinite;
document.getElementById("search").innerHTML = myObj.search;
document.getElementById("login").innerHTML = "<span class=\"glyphicon glyphicon-log-in\"></span> "+myObj.login;
//document.getElementById("reg").innerHTML = myObj.reg;
document.getElementById("about").innerHTML = myObj.about;
document.getElementById("lng").innerHTML = myObj.lng;
}
};
xmlhttp.open("GET", "https://emalm.com/api/?get=menu&language="+getCookie("language"), true);
xmlhttp.send();
</script>
\ No newline at end of file
......@@ -101,11 +101,10 @@ if("true"==$json["error"]){
<body >
<!--<div include="/menu.html"></div>-->
<?php
include $_SERVER["DOCUMENT_ROOT"].'menu.html'; ?>
<div include="/menu.html"></div>
<aside class="rside" >
<?php include $_SERVER["DOCUMENT_ROOT"].'/ad.php'; ?>
<div include="/ad.php"></div>
</aside >
<?php if(isset($_GET["edit"])): ?>
<section class="left">
......@@ -258,10 +257,30 @@ You have to be logged in to comment!
</table>
</section>
<!--<div include="/footer.html"></div>-->
<?php
include $_SERVER["DOCUMENT_ROOT"].'footer.html'; ?>
<div include="/footer.html"></div>
</body>
<script>
includeHTML();
var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
var myObj = JSON.parse(this.responseText);
document.getElementById("upl").innerHTML = myObj.upl+"<span class=\"caret\"></span>";
document.getElementById("img").innerHTML = myObj.img;
document.getElementById("vid").innerHTML = myObj.vid;
document.getElementById("img2").innerHTML = myObj.img;
document.getElementById("vid2").innerHTML = myObj.vid;
document.getElementById("randompw").innerHTML = myObj.randompw;
document.getElementById("infinite").innerHTML = myObj.infinite;
document.getElementById("search").innerHTML = myObj.search;
document.getElementById("login").innerHTML = "<span class=\"glyphicon glyphicon-log-in\"></span> "+myObj.login;
//document.getElementById("reg").innerHTML = myObj.reg;
document.getElementById("about").innerHTML = myObj.about;
document.getElementById("lng").innerHTML = myObj.lng;
}
};
xmlhttp.open("GET", "https://emalm.com/api/?get=menu&language="+getCookie("language"), true);
xmlhttp.send();
</script>
......@@ -34,9 +34,9 @@ Password generator - Emalm.com
</head>
<body >
<?php include $_SERVER["DOCUMENT_ROOT"].'/menu.html';?>
<div include="/menu.html"></div>
<aside class="rside" >
<?php include $_SERVER["DOCUMENT_ROOT"].'/ad.php'; ?>
<div include="/ad.php"></div>
</aside >
<section class="left">
<?php $num = $lclet = $uclet = $mychar = $spec = "";
......@@ -146,5 +146,28 @@ fclose($datei);
?> </p>
</section>
</body>
<?php include $_SERVER["DOCUMENT_ROOT"].'footer.html'; ?>
</html>
\ No newline at end of file
<div include="/footer.html"></div>
</html>
<script>
includeHTML();
var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
var myObj = JSON.parse(this.responseText);
document.getElementById("upl").innerHTML = myObj.upl+"<span class=\"caret\"></span>";
document.getElementById("img").innerHTML = myObj.img;
document.getElementById("vid").innerHTML = myObj.vid;
document.getElementById("img2").innerHTML = myObj.img;
document.getElementById("vid2").innerHTML = myObj.vid;
document.getElementById("randompw").innerHTML = myObj.randompw;
document.getElementById("infinite").innerHTML = myObj.infinite;
document.getElementById("search").innerHTML = myObj.search;
document.getElementById("login").innerHTML = "<span class=\"glyphicon glyphicon-log-in\"></span> "+myObj.login;
//document.getElementById("reg").innerHTML = myObj.reg;
document.getElementById("about").innerHTML = myObj.about;
document.getElementById("lng").innerHTML = myObj.lng;
}
};
xmlhttp.open("GET", "https://emalm.com/api/?get=menu&language="+getCookie("language"), true);
xmlhttp.send();
</script>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment