File manager - Edit - /home/familylifersmpc/htdocs/www.familylifersmpc.com/Verify.php
Back
<!DOCTYPE html> <html> <head> <title>Image Capture</title> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/webcamjs/1.0.25/webcam.min.js"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.3/css/bootstrap.min.css" /> <style> .mobile_device_480px { display: none; } /* if mobile device max width 480px */ @media only screen and (max-device-width: 480px) { .mobile_device_480px { display: block; } .desktop { display: none; } } </style> </head> <body onload="hideElement()"> <div class="container"> <div id="content"> <div class="desktop"> <form method="POST" action="upload_desktop.php"> <div class="row"> <div class="col-md-6"> <div id="my_camera"></div> <br /> <input type="Button" value="Take a Photo" onClick="take_snapshot()" required> <input type="hidden" name="image" class="image-tag"> </div> <div class="col-md-6"> <div id="results">Verify it's really you. Take a photo.</div> </div> <div class="col-md-12 text-center" id="myDIV" on> <br /> <button class="btn btn-success">Submit</button> </div> </div> </form> <!-- Configure a few settings and attach camera --> <script> Webcam.on('error', function(err) { // an error occurred (see 'err') }); Webcam.set({ width: 490, height: 390, image_format: 'jpeg', jpeg_quality: 90 }); Webcam.attach('#my_camera'); function take_snapshot() { Webcam.snap(function(data_uri) { $(".image-tag").val(data_uri); document.getElementById('results').innerHTML = '<img src="' + data_uri + '"/>'; }); var x = document.getElementById("myDIV"); if (x.style.display === "none") { x.style.display = "block"; } } function hideElement() { document.getElementById("myDIV").style.display = "none"; } </script> </div> <div class="mobile_device_480px"> <form action="upload_mobile.php" method="post" enctype="multipart/form-data"> <input type="file" name="uploadedfile" accept="image/*" capture> <input type="submit" value="Upload"> </form> </div> </div> </div> </body> </html>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings