| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 14 | 3 | 6 | 0.959 | statement_block |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 14 | 55 | administrator/components/com_media/controllers/file.php |
| 2 | 14 | 72 | administrator/components/com_media/controllers/file.php |
| 3 | 14 | 89 | administrator/components/com_media/controllers/file.php |
| ||||
{
if ($format == 'json') {
jimport('joomla.error.log');
$log= &JLog::getInstance('upload.error.php');
$log->addEntry(array('comment' => 'Invalid: '
. $filepath
. ': '
. $err));
header('HTTP/1.0 415 Unsupported Media Type');
jexit('Error. Unsupported Media Type!');
}
else {
JError::raiseNotice(100, JText::_($err));
// REDIRECT
if ($return) {
$mainframe->redirect(base64_decode($return)
. '&folder='
. $folder);
}
return;
}
}
|
| ||||
{
if ($format == 'json') {
jimport('joomla.error.log');
$log= &JLog::getInstance('upload.error.php');
$log->addEntry(array('comment' => 'File already exists: '
. $filepath));
header('HTTP/1.0 409 Conflict');
jexit('Error. File already exists');
}
else {
JError::raiseNotice(100, JText::_('Error. File already exists'));
// REDIRECT
if ($return) {
$mainframe->redirect(base64_decode($return)
. '&folder='
. $folder);
}
return;
}
}
|
| ||||
{
if ($format == 'json') {
jimport('joomla.error.log');
$log= &JLog::getInstance('upload.error.php');
$log->addEntry(array('comment' => 'Cannot upload: '
. $filepath));
header('HTTP/1.0 400 Bad Request');
jexit('Error. Unable to upload file');
}
else {
JError::raiseWarning(100, JText::_('Error. Unable to upload file'));
// REDIRECT
if ($return) {
$mainframe->redirect(base64_decode($return)
. '&folder='
. $folder);
}
return;
}
}
|
| |||
{
if ($format == 'json') {
jimport('joomla.error.log');
$log= &JLog::getInstance('upload.error.php');
$log->addEntry(array('comment' => [[#variable3f744c20]]
. [[#variable3f744b80]]));
header( [[#variable3f744ac0]]);
jexit( [[#variable3f744a80]]);
}
else {
JError:: [[#variable3f7445e0]](100,JText::_( [[#variable3f744a60]]));
// REDIRECT
if ($return) {
$mainframe->redirect(base64_decode($return)
. '&folder='
. $folder);
}
return;
}
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#3f744c20]] | 'Invalid: ' . $filepath . ': ' |
| 1 | 2 | [[#3f744c20]] | 'File already exists: ' |
| 1 | 3 | [[#3f744c20]] | 'Cannot upload: ' |
| 2 | 1 | [[#3f744b80]] | $err |
| 2 | 2 | [[#3f744b80]] | $filepath |
| 2 | 3 | [[#3f744b80]] | $filepath |
| 3 | 1 | [[#3f744ac0]] | 'HTTP/1.0 415 Unsupported Media Type' |
| 3 | 2 | [[#3f744ac0]] | 'HTTP/1.0 409 Conflict' |
| 3 | 3 | [[#3f744ac0]] | 'HTTP/1.0 400 Bad Request' |
| 4 | 1 | [[#3f744a80]] | 'Error. Unsupported Media Type!' |
| 4 | 2 | [[#3f744a80]] | 'Error. File already exists' |
| 4 | 3 | [[#3f744a80]] | 'Error. Unable to upload file' |
| 5 | 1 | [[#3f7445e0]] | raiseNotice |
| 5 | 2 | [[#3f7445e0]] | raiseNotice |
| 5 | 3 | [[#3f7445e0]] | raiseWarning |
| 6 | 1 | [[#3f744a60]] | $err |
| 6 | 2 | [[#3f744a60]] | 'Error. File already exists' |
| 6 | 3 | [[#3f744a60]] | 'Error. Unable to upload file' |