new logic pdf loaded
This commit is contained in:
@@ -10,12 +10,20 @@ if (isset($_SERVER['HTTP_HOST']))
|
||||
if (isset($_SERVER['HTTP_HOST']))
|
||||
define('SITEPATH', $_SERVER['DOCUMENT_ROOT'].'/');
|
||||
else
|
||||
define('SITEPATH', dirname(__FILE__));
|
||||
define('SITEPATH', dirname(__FILE__));
|
||||
|
||||
if (SITE == 'http://klan.argumenti.ru/')
|
||||
define('PDFSOURCE', '/vhosts/an/httpdocs/pub/files/pdf/pdf/');
|
||||
else
|
||||
define('PDFSOURCE', SITEPATH.'pub/files/source/');
|
||||
|
||||
|
||||
define('PDFPATH', '/pub/files/pdf/');
|
||||
define('PGPATH', '/pub/files/pages/');
|
||||
define('PDFDIR', SITEPATH.PDFPATH);
|
||||
define('PGDIR', SITEPATH.PGPATH);
|
||||
|
||||
|
||||
define('PDFDIR', '/vhosts/anpdf/app/pub/files/pdf/');
|
||||
define('PGDIR', '/vhosts/anpdf/app/pub/files/pages/');
|
||||
define('PDFURL', 'pub/files/pdf/');
|
||||
define('PGURL', 'pub/files/pages/');
|
||||
|
||||
define('APPPATH', SITEPATH);
|
||||
define('VIEWPATH', SITEPATH.'views/');
|
||||
|
||||
Reference in New Issue
Block a user