| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 25 | 8 | 4 | 0.977 | statement_sequence[6] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 25 | 269 | libraries/phpmailer/smtp.php |
| 2 | 25 | 408 | libraries/phpmailer/smtp.php |
| 3 | 25 | 585 | libraries/phpmailer/smtp.php |
| 4 | 25 | 627 | libraries/phpmailer/smtp.php |
| 5 | 25 | 768 | libraries/phpmailer/smtp.php |
| 6 | 25 | 817 | libraries/phpmailer/smtp.php |
| 7 | 25 | 865 | libraries/phpmailer/smtp.php |
| 8 | 25 | 913 | libraries/phpmailer/smtp.php |
| ||||
if (!$this->connected()) {
$this->error = array(
"error" => "Called Data() without being connected");
return FALSE;
}
fputs($this->smtp_conn ,"DATA"
. $this->CRLF);
$rply= $this->get_lines();
$code= substr($rply,0,3);
if ($this->do_debug >= 2) {
echo "SMTP -> FROM SERVER:"
. $this->CRLF
. $rply;
}
if ($code != 354) {
$this->error =
array( "error" => "DATA command not accepted from server",
"smtp_code" => $code,
"smtp_msg" => substr($rply,4)
);
if ($this->do_debug >= 1) {
echo "SMTP -> ERROR: "
. $this->error["error"]
. ": "
. $rply
. $this->CRLF;
}
return FALSE;
}
|
| ||||
if (!$this->connected()) {
$this->error = array(
"error" => "Called Expand() without being connected");
return FALSE;
}
fputs($this->smtp_conn ,"EXPN "
. $name
. $this->CRLF);
$rply= $this->get_lines();
$code= substr($rply,0,3);
if ($this->do_debug >= 2) {
echo "SMTP -> FROM SERVER:"
. $this->CRLF
. $rply;
}
if ($code != 250) {
$this->error =
array( "error" => "EXPN not accepted from server",
"smtp_code" => $code,
"smtp_msg" => substr($rply,4)
);
if ($this->do_debug >= 1) {
echo "SMTP -> ERROR: "
. $this->error["error"]
. ": "
. $rply
. $this->CRLF;
}
return FALSE;
}
|
| ||||
if (!$this->connected()) {
$this->error = array(
"error" => "Called Mail() without being connected");
return FALSE;
}
fputs($this->smtp_conn ,"MAIL FROM:<"
. $from
. ">"
. $this->CRLF);
$rply= $this->get_lines();
$code= substr($rply,0,3);
if ($this->do_debug >= 2) {
echo "SMTP -> FROM SERVER:"
. $this->CRLF
. $rply;
}
if ($code != 250) {
$this->error =
array( "error" => "MAIL not accepted from server",
"smtp_code" => $code,
"smtp_msg" => substr($rply,4)
);
if ($this->do_debug >= 1) {
echo "SMTP -> ERROR: "
. $this->error["error"]
. ": "
. $rply
. $this->CRLF;
}
return FALSE;
}
|
| ||||
if (!$this->connected()) {
$this->error = array(
"error" => "Called Noop() without being connected");
return FALSE;
}
fputs($this->smtp_conn ,"NOOP"
. $this->CRLF);
$rply= $this->get_lines();
$code= substr($rply,0,3);
if ($this->do_debug >= 2) {
echo "SMTP -> FROM SERVER:"
. $this->CRLF
. $rply;
}
if ($code != 250) {
$this->error =
array( "error" => "NOOP not accepted from server",
"smtp_code" => $code,
"smtp_msg" => substr($rply,4)
);
if ($this->do_debug >= 1) {
echo "SMTP -> ERROR: "
. $this->error["error"]
. ": "
. $rply
. $this->CRLF;
}
return FALSE;
}
|
| ||||
if (!$this->connected()) {
$this->error = array(
"error" => "Called Reset() without being connected");
return FALSE;
}
fputs($this->smtp_conn ,"RSET"
. $this->CRLF);
$rply= $this->get_lines();
$code= substr($rply,0,3);
if ($this->do_debug >= 2) {
echo "SMTP -> FROM SERVER:"
. $this->CRLF
. $rply;
}
if ($code != 250) {
$this->error =
array( "error" => "RSET failed",
"smtp_code" => $code,
"smtp_msg" => substr($rply,4)
);
if ($this->do_debug >= 1) {
echo "SMTP -> ERROR: "
. $this->error["error"]
. ": "
. $rply
. $this->CRLF;
}
return FALSE;
}
|
| ||||
if (!$this->connected()) {
$this->error = array(
"error" => "Called Send() without being connected");
return FALSE;
}
fputs($this->smtp_conn ,"SEND FROM:"
. $from
. $this->CRLF);
$rply= $this->get_lines();
$code= substr($rply,0,3);
if ($this->do_debug >= 2) {
echo "SMTP -> FROM SERVER:"
. $this->CRLF
. $rply;
}
if ($code != 250) {
$this->error =
array( "error" => "SEND not accepted from server",
"smtp_code" => $code,
"smtp_msg" => substr($rply,4)
);
if ($this->do_debug >= 1) {
echo "SMTP -> ERROR: "
. $this->error["error"]
. ": "
. $rply
. $this->CRLF;
}
return FALSE;
}
|
| ||||
if (!$this->connected()) {
$this->error = array(
"error" => "Called SendAndMail() without being connected");
return FALSE;
}
fputs($this->smtp_conn ,"SAML FROM:"
. $from
. $this->CRLF);
$rply= $this->get_lines();
$code= substr($rply,0,3);
if ($this->do_debug >= 2) {
echo "SMTP -> FROM SERVER:"
. $this->CRLF
. $rply;
}
if ($code != 250) {
$this->error =
array( "error" => "SAML not accepted from server",
"smtp_code" => $code,
"smtp_msg" => substr($rply,4)
);
if ($this->do_debug >= 1) {
echo "SMTP -> ERROR: "
. $this->error["error"]
. ": "
. $rply
. $this->CRLF;
}
return FALSE;
}
|
| ||||
if (!$this->connected()) {
$this->error = array(
"error" => "Called SendOrMail() without being connected");
return FALSE;
}
fputs($this->smtp_conn ,"SOML FROM:"
. $from
. $this->CRLF);
$rply= $this->get_lines();
$code= substr($rply,0,3);
if ($this->do_debug >= 2) {
echo "SMTP -> FROM SERVER:"
. $this->CRLF
. $rply;
}
if ($code != 250) {
$this->error =
array( "error" => "SOML not accepted from server",
"smtp_code" => $code,
"smtp_msg" => substr($rply,4)
);
if ($this->do_debug >= 1) {
echo "SMTP -> ERROR: "
. $this->error["error"]
. ": "
. $rply
. $this->CRLF;
}
return FALSE;
}
|
| |||
if (!$this->connected()) {
$this->error =array("error" => [[#variable52580520]]);
return FALSE;
}
fputs($this->smtp_conn , [[#variable57f46e80]]
. $this->CRLF);
$rply=$this->get_lines();
$code=substr($rply,0,3);
if ($this->do_debug >=2) {
echo "SMTP -> FROM SERVER:"
. $this->CRLF
. $rply;
}
if ($code != [[#variable48c0c260]]) {
$this->error =array( "error" => [[#variable53d91b00]],
"smtp_code" => $code,
"smtp_msg" => substr($rply,4)
);
if ($this->do_debug >=1) {
echo "SMTP -> ERROR: "
. $this->error["error"]
. ": "
. $rply
. $this->CRLF;
}
return FALSE;
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#52580520]] | "Called Data() without being connected" |
| 1 | 2 | [[#52580520]] | "Called Expand() without being connected" |
| 1 | 3 | [[#52580520]] | "Called Mail() without being connected" |
| 1 | 4 | [[#52580520]] | "Called Noop() without being connected" |
| 1 | 5 | [[#52580520]] | "Called Reset() without being connected" |
| 1 | 6 | [[#52580520]] | "Called Send() without being connected" |
| 1 | 7 | [[#52580520]] | "Called SendAndMail() without being connected" |
| 1 | 8 | [[#52580520]] | "Called SendOrMail() without being connected" |
| 2 | 1 | [[#57f46e80]] | "DATA" |
| 2 | 2 | [[#57f46e80]] | "EXPN " . $name |
| 2 | 3 | [[#57f46e80]] | "MAIL FROM:<" . $from . ">" |
| 2 | 4 | [[#57f46e80]] | "NOOP" |
| 2 | 5 | [[#57f46e80]] | "RSET" |
| 2 | 6 | [[#57f46e80]] | "SEND FROM:" . $from |
| 2 | 7 | [[#57f46e80]] | "SAML FROM:" . $from |
| 2 | 8 | [[#57f46e80]] | "SOML FROM:" . $from |
| 3 | 1 | [[#48c0c260]] | 354 |
| 3 | 2 | [[#48c0c260]] | 250 |
| 3 | 3 | [[#48c0c260]] | 250 |
| 3 | 4 | [[#48c0c260]] | 250 |
| 3 | 5 | [[#48c0c260]] | 250 |
| 3 | 6 | [[#48c0c260]] | 250 |
| 3 | 7 | [[#48c0c260]] | 250 |
| 3 | 8 | [[#48c0c260]] | 250 |
| 4 | 1 | [[#53d91b00]] | "DATA command not accepted from server" |
| 4 | 2 | [[#53d91b00]] | "EXPN not accepted from server" |
| 4 | 3 | [[#53d91b00]] | "MAIL not accepted from server" |
| 4 | 4 | [[#53d91b00]] | "NOOP not accepted from server" |
| 4 | 5 | [[#53d91b00]] | "RSET failed" |
| 4 | 6 | [[#53d91b00]] | "SEND not accepted from server" |
| 4 | 7 | [[#53d91b00]] | "SAML not accepted from server" |
| 4 | 8 | [[#53d91b00]] | "SOML not accepted from server" |