Update from a long time

This commit is contained in:
root
2024-09-19 23:45:46 +02:00
parent 5a9fdeff2d
commit f4dbaa225c
14 changed files with 51 additions and 29 deletions

15
php/download_apk.php Normal file
View File

@ -0,0 +1,15 @@
<?php
$ua = strtolower($_SERVER['HTTP_USER_AGENT']);
if(stripos($ua,'android') !== false || true): // && stripos($ua,'mobile') !== false) {
$file = $_SERVER['DOCUMENT_ROOT']."/transfer/localTransfer-app.apk";
header("Content-Description: File Transfer");
header("Content-Type: application/octet-stream");
header("Content-Disposition: attachment; filename=\"". basename($file) ."\"");
readfile ($file);
//header("Location: ".$_SERVER['REQUEST_URI'].$file);
exit();
endif;
?>