-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhtmlHead.php
More file actions
executable file
·65 lines (55 loc) · 3.08 KB
/
htmlHead.php
File metadata and controls
executable file
·65 lines (55 loc) · 3.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
//TODO Make the OG tags right everywhere
require_once("util.php");
if (!termsAgreed())
{
//header("Location: http://www.vadweb.us/terms.php");
}
if (!emailVerified())
{
header("Location: http://www.vadweb.us/emailVerify.php");
}
echo
'
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="format-detection" content="telephone=no"/>
<meta name="keywords" content="files, images, funny pictures, image host, image upload, image sharing, image resize, file host, file upload, file sharing"/>
<meta name="description" content="Vadweb is home to the webs most popular image and video content, curated in real time by a dedicated community through commenting, voting and sharing."/>
<meta name="copyright" content="Copyright 2016 Vadweb, SWAG."/>
<meta property="og:title" content="Vadweb File Sharing" />
<meta property="og:url" content="http://vadweb.us'. $_SERVER["PHP_SELF"] .'?' . $_SERVER["QUERY_STRING"] .'"/>
<meta property="og:description" content="Vadweb is home to the webs most popular image and video content, curated in real time by a dedicated community through commenting, voting and sharing." />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=Edge;"/>
<link rel="shortcut icon" href="images/vmg.ico"/>
<link href="/resource/bootstrap/css/bootstrap.css" rel="stylesheet"/>
</head>
';
function headForView($sqlFileLookupResult)
{
ob_clean();
echo
'
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="format-detection" content="telephone=no"/>
<meta name="keywords" content="files, images, funny pictures, image host, image upload, image sharing, image resize, file host, file upload, file sharing, '.$sqlFileLookupResult[0]["FilePath"].'"/>
<meta name="description" content=" '.$sqlFileLookupResult[0]["FilePath"].' Vadweb is home to the webs most popular image and video content, curated in real time by a dedicated community through commenting, voting and sharing."/>
<meta name="copyright" content="Copyright 2014 Vadweb, SWAG."/>
<meta property="og:title" content="Vadweb: File View - ' . $sqlFileLookupResult[0]["FilePath"] .'" />
<meta property="og:url" content="http://vadweb.us'. $_SERVER["PHP_SELF"] .'?' . $_SERVER["QUERY_STRING"] .'"/>
<meta property="og:description" content="View file '. $sqlFileLookupResult[0]["FilePath"] .'. Vadweb is home to the webs most popular image and video content." />
<meta property="og:image" content="http://vadweb.us/file.php?name='.$sqlFileLookupResult[0]["FilePath"].'" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=Edge;"/>
<link rel="shortcut icon" href="/images/vmg.ico"/>
<link href="/resource/bootstrap/css/bootstrap.css" rel="stylesheet"/>
</head>
';
}
?>