This commit is contained in:
Andrey Kuvshinov
2020-04-07 19:05:45 +03:00
parent bfbed2a2d1
commit 174fe4316a
2 changed files with 13 additions and 2 deletions

View File

@@ -11,6 +11,13 @@ function priceid_kuri($id){
}
function anfilename($id){
return "/vhosts/an/httpdocs/pub/files/pdf/pdf/$id.pdf";
}
function file_kuri($hash) {
@@ -23,7 +30,7 @@ function file_kuri($hash) {
}
$id = $price['price_id'];
$pdfile = "/vhosts/an/httpdocs/pub/files/pdf/pdf/$id.pdf";
$pdfile = anfilename($id);
$request = $_SERVER['REQUEST_URI'];
$filename = basename($request);