<?php require_once '../common/config/config.inc.php'; require_once SOURCE_ROOT . 'classes/class.email_template.php'; require_once '../classes/class.clients_login.php'; $objClientLogin = new ClientsLogin(); $objClientLogin->isValidClients(); //CREATING THE CLASS OBJECTS FOR INCLUDING CLASS FILES $objEmailTemplate = new EmailTemplate(); $return = $objEmailTemplate->updateEmailTemplates($_POST); if ($return && $_POST[type] == 'registration') { $objCore->setSuccessMsg(EMAIL_SUCCESS_MESSAGE); $objCore->standardRedirect('registration_mail.php'); } if ($return && $_POST[type] == 'forgot_password_mail') { $objCore->setSuccessMsg(EMAIL_SUCCESS_MESSAGE); $objCore->standardRedirect('forgot_password_mail.php'); } if ($return && $_POST[type] == 'order_mail') { $objCore->setSuccessMsg(EMAIL_SUCCESS_MESSAGE); $objCore->standardRedirect('order_mail.php'); } if ($return && $_POST[type] == 'change_password_mail') { $objCore->setSuccessMsg(EMAIL_SUCCESS_MESSAGE); $objCore->standardRedirect('change_password_mail.php'); } // SET SUCCESS DELETE MESSAGE. //