Commit 10718444 authored by carboncrafters's avatar carboncrafters

test

parent 3d9904be
<footer>
Powered by: Emalm © 2015-2020
<br/><a href="/donate/" id="donate">Donate</a> | <a href="/EULA/" id="eula"> EULA</a> | <a href="/Err.php/" id="error">Error reporting</a>
</footer>
<script src="https://cdn.emalm.com/js/gdpr.js"></script>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="https://cdn.emalm.com/js/include.js"></script>
<script src="https://cdn.emalm.com/js/setlang.js"></script>
<script>
var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function() {
......@@ -28,11 +18,6 @@ xmlhttp.onreadystatechange = function() {
document.getElementById("lng").innerHTML = myObj.lng;
}
};
function getCookie(name) {
const value = `; ${document.cookie}`;
const parts = value.split(`; ${name}=`);
if (parts.length === 2) return parts.pop().split(';').shift();
}
xmlhttp.open("GET", "https://emalm.com/api/?get=menu&language="+getCookie("language"), true);
xmlhttp.send();
</script>
......
<!DOCTYPE html>
<html>
<head>
<script>
function gup( name ){
name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
var regexS = "[\\?&]"+name+"=([^&#]*)"; var regex = new RegExp( regexS );
var results = regex.exec( window.location.href ); if( results == null ) return "";
else return results[1];
}
function getCookie(name) {
const value = `; ${document.cookie}`;
const parts = value.split(`; ${name}=`);
if (parts.length === 2) return parts.pop().split(';').shift();
}
</script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
......@@ -11,13 +23,13 @@
<script src="https://cdn.emalm.com/js/setlang.js"></script>
<?php
require $_SERVER["DOCUMENT_ROOT"].'/cookie.php';
$domain = "emalm.com";
//get the requested url
$browlin = $_GET["v"];
$browlin = explode('/', $browlin);
//get json data
$json = file_get_contents("https://$domain/api/?get=basic&id=$browlin[0]");
$json = file_get_contents("https://emalm.com/api/?get=basic&id=$browlin[0]");
if($json === FALSE) {
header("HTTP/1.0 404 Not Found");
......@@ -82,20 +94,20 @@ $conn->close();*/
<meta name="twitter:player:height" content="720" />
<meta name="description" content="<?php Print(nl2br($obj["description"])) ; ?>">
<meta name="keywords" content="video sharing, <?php echo $obj["name"] ;?>">
<meta name="keywords" content="video sharing, <?php echo $obj["title"] ;?>">
<meta name="author" content="<?php echo $obj["uid"] ;?>">
<link rel="stylesheet" href="https://cdn.emalm.com/css/main.css">
<link rel="stylesheet" href="https://cdn.emalm.com/css/video.css">
<title>
<?= $obj["name"]." - Emalm" ?>
<?= $obj["title"]." - Emalm" ?>
</title>
</head>
<body class="push">
<div include="/menu.html"></div>
<?php
include $_SERVER["DOCUMENT_ROOT"].'menu.html'; ?>
<aside class="rside" >
......@@ -121,7 +133,7 @@ $sql = "UPDATE videos SET views=views + 1 WHERE id='$browlin[0]' ";
</td><td style="text-align:right">Votes:###</td><td style="text-align:right">
<?php
if(($loggedUser==$obj["uid"] && $obj["uid"] != 0 )||$priv=='1'){
echo"<a href=\"https://emalm.com/delete.php?type=vid&id=$id\">delet dis</a>";
echo"<a href=\"https://emalm.com/delete.php?type=vid&id=".$obj["id"]."\">delet dis</a>";
}
......@@ -198,19 +210,7 @@ echo '<e><a href="https://emalm.com/dl.php?type=vid&id='.$obj["id"].'&orig=0&ext
<hr height="3px" />
<!-- comment gota do this as well-->
<h4>### Comments</h4>
<?php
// define variables and set to empty values
$err=0;
$email = "";
if ($_SERVER["REQUEST_METHOD"] == "POST") {
if (empty($_POST["eml"])) {
$txterr = "Email is required!";
$err = 1;
}
}
?>
<table>
<tr width="90%">
<td width="5%" class="top">
......@@ -257,7 +257,7 @@ You have to be logged in to comment!
</table>
</section>
<div include="/footer.html"></div>
</body>
<?php include $_SERVER["DOCUMENT_ROOT"].'/'.$displang.'/fot.php'; ?>
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