add PGDIR
This commit is contained in:
@@ -12,6 +12,7 @@ else
|
|||||||
define('SITEPATH', dirname(__FILE__));
|
define('SITEPATH', dirname(__FILE__));
|
||||||
|
|
||||||
define('PDFDIR', '/vhosts/anpdf/app/pub/files/pdf/');
|
define('PDFDIR', '/vhosts/anpdf/app/pub/files/pdf/');
|
||||||
|
define('PGDIR', '/vhosts/anpdf/app/pub/files/pages/');
|
||||||
define('API', 'http://api.argumenti.ru/');
|
define('API', 'http://api.argumenti.ru/');
|
||||||
|
|
||||||
db_config('argumentiru', 'mysql:host=mysql;dbname=argumentiru', 'newser', 'Chjk90yuiREY');
|
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';
|
$namefile = $hash.'.pdf';
|
||||||
$cachefile = PDFDIR.$hash.'-'.$page.'.pdf';
|
$cachefile = PGDIR.$hash.'/'.$hash.'-'.$page.'.pdf';
|
||||||
|
|
||||||
if (file_exists($cachefile)){
|
if (file_exists($cachefile)){
|
||||||
$pdfile = '/'.$namefile;
|
$pdfile = '/'.$namefile;
|
||||||
|
|||||||
Reference in New Issue
Block a user