Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/kernel/processors/main_processor.php
Show First 20 Lines • Show All 1151 Lines • ▼ Show 20 Line(s) | |||||
function AttachFile($params) | function AttachFile($params) | ||||
{ | { | ||||
$path = FULL_PATH . '/' . $params['path']; | $path = FULL_PATH . '/' . $params['path']; | ||||
$pseudo = isset($params['special']) ? 'EmailSender.' . $params['special'] : 'EmailSender'; | $pseudo = isset($params['special']) ? 'EmailSender.' . $params['special'] : 'EmailSender'; | ||||
$esender = $this->Application->recallObject($pseudo); | $esender = $this->Application->recallObject($pseudo); | ||||
/* @var $esender kEmailSendingHelper */ | /* @var $esender kEmailSendingHelper */ | ||||
if ( file_exists($path) ) { | if ( file_exists($path) && is_file($path) ) { | ||||
$esender->AddAttachment($path); | $esender->AddAttachment($path); | ||||
} | } | ||||
} | } | ||||
function CaptchaImage($params) | function CaptchaImage($params) | ||||
{ | { | ||||
$this->NoDebug($params); | $this->NoDebug($params); | ||||
$this->Application->SetVar('skip_last_template', 1); | $this->Application->SetVar('skip_last_template', 1); | ||||
▲ Show 20 Lines • Show All 148 Lines • Show Last 20 Lines |