mirror of
https://github.com/Hizenberg469/BPIT-ATTENDANCE.git
synced 2026-04-19 17:52:25 +03:00
initial commit
This commit is contained in:
34
shubham/html/qr.php
Normal file
34
shubham/html/qr.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
include('functions.php');
|
||||
|
||||
if(isset($_POST['latitude'])){
|
||||
$lat=$_POST['latitude'];
|
||||
$long=$_POST['longitude'];
|
||||
|
||||
$latToArray = PositionToNumeric($lat);
|
||||
$lattoString = toStringfromArray($latToArray);
|
||||
|
||||
$longToArray = PositionToNumeric($long);
|
||||
$longtoString = toStringfromArray($longToArray);
|
||||
|
||||
$hashLat=hashed($lattoString);
|
||||
$hashLong=hashed($longtoString);
|
||||
|
||||
|
||||
|
||||
|
||||
//$hash=hashed($lattoString);
|
||||
|
||||
$qr='https://bpitattendance.online/shubham/html/verify.php?latitude='.$hashLat.'&longitude='.$hashLong.'';
|
||||
getQR($qr);
|
||||
|
||||
//echo $hash;
|
||||
|
||||
//line_break();
|
||||
|
||||
//dump_array(deCrypt($hash));
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user