reverse pdf file

This commit is contained in:
Andrey Kuvshinov
2020-04-23 18:19:11 +03:00
parent 08c0f274a4
commit ac2da036ee
3 changed files with 3 additions and 3 deletions

View File

@@ -12,7 +12,7 @@ else
define('SITEPATH', dirname(__FILE__));
define('PDFDIR', '/vhosts/anpdf/app/pub/files/pdf/');
define('PGDIR', '/vhosts/anpdf/app/pub/files/pages/');
define('PGDIR', '/vhosts/anpdf/app/pub/files/pdf/pages/');
define('API', 'http://api.argumenti.ru/');
db_config('argumentiru', 'mysql:host=mysql;dbname=argumentiru', 'newser', 'Chjk90yuiREY');

View File

@@ -41,7 +41,7 @@ function read_kuri($hash, $page = 1, $scale = 1.5, $promo = false){
}
$namefile = $hash.'.pdf';
$cachefile = PGDIR.$hash.'/'.$hash.'-'.$page.'.pdf';
$cachefile = PDFDIR.$namefile;
if (file_exists($cachefile)){
$pdfile = '/'.$namefile;

View File

@@ -3,7 +3,7 @@
#PDFDIR=~/vhosts/an/httpdocs/pub/files/pdf/pdf/
PDFDIR=~/vhosts/anpdf/app/pub/files/pdf
OUTDIR=~/vhosts/anpdf/app/pub/files/pages
OUTDIR=~/vhosts/anpdf/app/pub/files/pdf/pages
cd $PDFDIR