Revize c1bdc1c4
Přidáno uživatelem Michal Kliment před více než 9 roky(ů)
application/controllers/email.php | ||
---|---|---|
*/
|
||
class Email_Controller extends Controller
|
||
{
|
||
/**
|
||
* Constructor, only test if email is enabled
|
||
*
|
||
* @author Michal Kliment
|
||
*/
|
||
public function __construct()
|
||
{
|
||
parent::__construct();
|
||
|
||
if (!module::e('email'))
|
||
Controller::error (ACCESS);
|
||
}
|
||
|
||
/**
|
||
* Shows email form
|
||
*/
|
||
... | ... | |
*/
|
||
public function send_email_to_developers()
|
||
{
|
||
// Use connect() method to load Swiftmailer and connect using the
|
||
// parameters set in the email config file
|
||
$swift = email::connect();
|
||
|
||
// From, subject and HTML message
|
||
$email = @$_POST['uemail'];
|
||
$uname = @$_POST['uname'];
|
||
... | ... | |
status::error('Wrong email filled in!');
|
||
url::redirect(url::base());
|
||
}
|
||
|
||
// Use connect() method to load Swiftmailer and connect using the
|
||
// parameters set in the email config file
|
||
$swift = email::connect();
|
||
|
||
$fn_version = '-';
|
||
|
||
... | ... | |
public function show($email_id = null)
|
||
{
|
||
// access
|
||
if (!$this->acl_check_view('Settings_Controller', 'system'))
|
||
if (!$this->acl_check_view('Email_queues_Controller', 'email_queue'))
|
||
{
|
||
Controller::error(ACCESS);
|
||
}
|
Také k dispozici: Unified diff
Release 1.1.0