Fixing PDF output directory
This commit is contained in:
parent
1f9f0a42e7
commit
bdbec2b9b3
|
|
@ -52,8 +52,8 @@ if($host == 'cmc.lan') {
|
|||
$basedir = '/var/www/CMC-Sales/app';
|
||||
Configure::write('email_directory', '/var/www/cakephp/app/emails');
|
||||
|
||||
Configure::write('pdf_directory', '/var/www/cakephp/app/webroot/pdf/');
|
||||
Configure::write('attachments_directory', '/var/www/cakephp/app/webroot/attachments_files/');
|
||||
Configure::write('pdf_directory', $basedir.'/webroot/pdf/');
|
||||
Configure::write('attachments_directory', $basedir.'/attachments_files/');
|
||||
|
||||
Configure::write('smtp_settings', array(
|
||||
'port' => '25',
|
||||
|
|
@ -285,4 +285,4 @@ Configure::write('Acl.database', 'default');
|
|||
* ));
|
||||
*
|
||||
*/
|
||||
?>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +1,4 @@
|
|||
<?
|
||||
$debuglevel = Configure::read('debug');
|
||||
if($debuglevel == 0) {
|
||||
$output_dir = '/var/www/cakephp/app/webroot/pdf/';
|
||||
}
|
||||
|
||||
|
||||
$output_dir = Configure::read('pdf_directory');
|
||||
|
||||
|
|
@ -16,4 +11,4 @@ for ($i = 1; $i <= $pagecount; $i++) { //Not really necessary for a 1 page T&C P
|
|||
|
||||
$pdfdoc->lastPage();
|
||||
$pdfdoc->Output($output_dir.$filename, "F");
|
||||
?>
|
||||
?>
|
||||
|
|
|
|||
Loading…
Reference in a new issue