| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('mailuser'); |
| | |
| | | $app->load('tform_actions'); |
| | | |
| | | class page_action extends tform_actions { |
| | | |
| | | |
| | | function onShow() { |
| | | |
| | | |
| | | $this->id = $_SESSION['s']['user']['mailuser_id']; |
| | | |
| | | |
| | | parent::onShow(); |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | function onSubmit() { |
| | | global $app; |
| | | |
| | | |
| | | $this->id = $_SESSION['s']['user']['mailuser_id']; |
| | | $rec = $app->tform->getDataRecord($this->id); |
| | | if(isset($_POST['cc']) && trim($_POST['cc']) == $rec['email']) { |
| | | $app->tform->errorMessage .= $app->tform->lng('email_is_cc_error'); |
| | | } |
| | | |
| | | |
| | | parent::onSubmit(); |
| | | |
| | | |
| | | } |
| | | |
| | | function onShowEnd() { |
| | | |
| | | function onShowEnd() { |
| | | global $app, $conf; |
| | | |
| | | |
| | | $rec = $app->tform->getDataRecord($this->id); |
| | | $app->tpl->setVar("email", $rec['email']); |
| | | |
| | | |
| | | parent::onShowEnd(); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | |
| | | $app->tform_actions = new page_action; |