Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
24 | 2 | 2 | 0.997 | statement_sequence[10] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 24 | 233 | components/com_users/models/user.php |
2 | 24 | 335 | components/com_users/models/user.php |
| ||||
// Load the mail template. jimport('joomla.utilities.simpletemplate'); $template= new JSimpleTemplate(); if (!$template->load('users.username.remind.request')) { return new JException(JText::_('USERS_REMIND_MAIL_TEMPLATE_NOT_FOUND'), 500); } // Push in the email template variables. $template->bind($data); // Get the email information. $toEmail= $user->email; $subject= $template->getTitle(); $message= $template->getHtml(); // Send the password reset request e-mail. $return= JUtility::sendMail($data['mailfrom'], $data['fromname'], $toEmail, $subject, $message); // Check for an error. if ($return !== TRUE) { return new JException(JText::_('USERS_MAIL_FAILED'), 500); } return TRUE; |
| ||||
// Load the mail template. jimport('joomla.utilities.simpletemplate'); $template= new JSimpleTemplate(); if (!$template->load('users.password.reset.request')) { return new JException(JText::_('USERS_RESET_MAIL_TEMPLATE_NOT_FOUND'), 500); } // Push in the email template variables. $template->bind($data); // Get the email information. $toEmail= $user->email; $subject= $template->getTitle(); $message= $template->getHtml(); // Send the password reset request e-mail. $return= JUtility::sendMail($data['mailfrom'], $data['fromname'], $toEmail, $subject, $message); // Check for an error. if ($return !== TRUE) { return new JException(JText::_('USERS_MAIL_FAILED'), 500); } return TRUE; |
| |||
// Load the mail template. jimport('joomla.utilities.simpletemplate'); $template=new JSimpleTemplate(); if (!$template->load( [[#variable3dd0bde0]])) { return new JException(JText::_( [[#variable3dd0bce0]]),500); } // Push in the email template variables. $template->bind($data); // Get the email information. $toEmail=$user->email; $subject=$template->getTitle(); $message=$template->getHtml(); // Send the password reset request e-mail. $return=JUtility::sendMail($data['mailfrom'],$data['fromname'],$toEmail,$subject,$message); // Check for an error. if ($return !== TRUE) { return new JException(JText::_('USERS_MAIL_FAILED'),500); } return TRUE; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#3dd0bde0]] | 'users.username.remind.request' |
1 | 2 | [[#3dd0bde0]] | 'users.password.reset.request' |
2 | 1 | [[#3dd0bce0]] | 'USERS_REMIND_MAIL_TEMPLATE_NOT_FOUND' |
2 | 2 | [[#3dd0bce0]] | 'USERS_RESET_MAIL_TEMPLATE_NOT_FOUND' |