reverse pdf file
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user