| Server IP : 10.200.247.200 / Your IP : 216.73.217.19 Web Server : Apache System : Linux synergy-usa-sites 6.8.0-138-generic #138-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 31 22:41:49 UTC 2026 x86_64 User : jeremy ( 1001) PHP Version : 8.4.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/hans_sites/phonelesswork.com/ |
Upload File : |
<?php
session_start();
?>
<!DOCTYPE html>
<html>
<head>
<title>Phoneless</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=PT+Sans">
<style type="text/css">
#main_container {
width:850px;
margin:0px auto;
position:relative;
font-family: Helvetica;
}
#quickstart {
color: #2dadfb;
font-size:39px;
position:absolute;
top:131px;
left:329px;
}
.section_header {
font-size:45px;
font-weight:bold;
text-align:center;
color:#2dadfb;
margin:40px 0px 20px 0px;
}
.section_content {
font-size:25px;
}
.left_side {
width:19%;
vertical-align:top;
display:inline-block;
text-align:center;
}
.right_side {
width:80%;
vertical-align:top;
display:inline-block;
}
.section_smaller {
font-size:18px;
}
</style>
</head>
<body>
<div id="main_container">
<div class="main_header_image">
<div style="width:500px;margin:0px auto;">
<img src="/images/logo_blue_small.png" style="width:100%;margin-top:80px;" />
</div>
</div>
<?php if(empty($_GET['id'])) { ?>
<div class="section_content">You need to pass your device id to use this page.</div>
<?php } else { ?>
<div style="margin-top:80px;"></div>
<div class="section_header">New Phone Setup</div>
<div class="section_content">
<?php
$qr_code = '';
$data = '{"config":{"body":"dot","eye":"frame1","eyeBall":"ball14","erf1":["fh"],"erf2":[],"erf3":["fh","fv"],"brf1":[],"brf2":[],"brf3":[],"bodyColor":"#2DADFB","bgColor":"#FFFFFF","eye1Color":"#2DADFB","eye2Color":"#2DADFB","eye3Color":"#2DADFB","eyeBall1Color":"#2DADFB","eyeBall2Color":"#2DADFB","eyeBall3Color":"#2DADFB","gradientColor1":"","gradientColor2":"","gradientType":"linear","gradientOnEyes":"true","logo":"https://phonelesswork.com/images/phone_setup_for_qr_code.png","logoMode":"clean"},"data":"https://phonelesswork.com/login.php?id='.$_GET['id'].'","size":150,"download":"imageUrl","file":"png"}';
$url = 'https://api.qrcode-monkey.com/qr/custom';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Content-Type: application/json',
'Content-Length: ' . strlen($data))
);
$response = curl_exec ($ch); // execute the curl command
$err = curl_error($curl);
curl_close ($ch);
unset($ch);
$json = json_decode($response);
if(!empty($json->imageUrl)) {
if(strpos($json->imageUrl,'http')===false) {
$json->imageUrl = 'https:'.$json->imageUrl;
}
$qr_code = $json->imageUrl;
}
?>
<div style="float:right;vertical-align:top;padding-left:20px;"><img src="<?= $qr_code;?>" /></div>
<div style="vertical-align:top;">Scan the QR Code to the right with your phone / tablet and follow the online steps to start tracking your phoneless time.</div>
<div class="section_smaller">(Or visit <a href="https://phonelesswork.com/login.php?id=<?= $_GET['id'];?>">PhoneLessWork.com/login.php?id=<?= $_GET['id'];?></a>)</div>
<div style="clear:both;"></div>
</div>
<div style="margin-top:80px;"></div>
<div class="section_header">Plugging in your Phone Each Time</div>
<div class="section_content">
<div style="margin:20px 0px;">Step 1: Unlock Phone (Home Screen)*</div>
<div style="margin:20px 0px;">Step 2: Plug Phone Into Locker</div>
<div style="margin:20px 0px;">Step 3: Close and Lock the Door</div>
<div style="margin:20px 0px;font-size:80%;">*If your phone is not unlocked when you plug it in, it will not record your time.</div>
</div>
<?php } ?>
</div>
</body>
</html>