Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
4 | 5 | 4 | 0.972 | statement_sequence[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 4 | 44 | plugins/system/sef.php |
2 | 4 | 48 | plugins/system/sef.php |
3 | 4 | 52 | plugins/system/sef.php |
4 | 4 | 56 | plugins/system/sef.php |
5 | 4 | 60 | plugins/system/sef.php |
| ||||
$buffer= preg_replace($regex, '$1' . $base . '$2', $buffer); // ONMOUSEOVER / ONMOUSEOUT $regex= '#(onmouseover|onmouseout)="this.src=([\']+)(?!/|' . $protocols . '|\\#|\')([^"]+)"#m'; |
| ||||
$buffer= preg_replace($regex, '$1="this.src=$2' . $base . '$3$4"', $buffer); // Background image $regex= '#style\\s*=\\s*[\'\\"](.*):\\s*url\\s*\\([\'\\"]?(?!/|' . $protocols . '|\\#)([^\\)\'\\"]+)[\'\\"]?\\)#m'; |
| ||||
$buffer= preg_replace($regex, 'style="$1: url(\'' . $base . '$2$3\')', $buffer); // OBJECT <param name="xx", value="yy"> -- fix it only inside the <param> tag $regex= '#(<param\\s+)name\\s*=\\s*"(movie|src|url)"[^>]\\s*value\\s*=\\s*"(?!/|' . $protocols . '|\\#|\')([^"]*)"#m'; |
| ||||
$buffer= preg_replace($regex, '$1name="$2" value="' . $base . '$3"', $buffer); // OBJECT <param value="xx", name="yy"> -- fix it only inside the <param> tag $regex= '#(<param\\s+[^>]*)value\\s*=\\s*"(?!/|' . $protocols . '|\\#|\')([^"]*)"\\s*name\\s*=\\s*"(movie|src|url)"#m'; |
| ||||
$buffer= preg_replace($regex, '<param value="' . $base . '$2" name="$3"', $buffer); // OBJECT data="xx" attribute -- fix it only in the object tag $regex= '#(<object\\s+[^>]*)data\\s*=\\s*"(?!/|' . $protocols . '|\\#|\')([^"]*)"#m'; |
| |||
$buffer=preg_replace($regex, [[#variable52dadea0]] . $base . [[#variable52dade60]],$buffer); // ONMOUSEOVER / ONMOUSEOUT // Background image // OBJECT <param name="xx", value="yy"> -- fix it only inside the <param> tag // OBJECT <param value="xx", name="yy"> -- fix it only inside the <param> tag // OBJECT data="xx" attribute -- fix it only in the object tag $regex= [[#variable52dade20]] . $protocols . [[#variable52dadd80]]; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#52dadea0]] | '$1' |
1 | 2 | [[#52dadea0]] | '$1="this.src=$2' |
1 | 3 | [[#52dadea0]] | 'style="$1: url(\'' |
1 | 4 | [[#52dadea0]] | '$1name="$2" value="' |
1 | 5 | [[#52dadea0]] | '<param value="' |
2 | 1 | [[#52dade60]] | '$2' |
2 | 2 | [[#52dade60]] | '$3$4"' |
2 | 3 | [[#52dade60]] | '$2$3\')' |
2 | 4 | [[#52dade60]] | '$3"' |
2 | 5 | [[#52dade60]] | '$2" name="$3"' |
3 | 1 | [[#52dade20]] | '#(onmouseover|onmouseout)="this.src=([\']+)(?!/|' |
3 | 2 | [[#52dade20]] | '#style\\s*=\\s*[\'\\"](.*):\\s*url\\s*\\([\'\\"]?(?!/|' |
3 | 3 | [[#52dade20]] | '#(<param\\s+)name\\s*=\\s*"(movie|src|url)"[^>]\\s*value\\s*=\\s*"(?!/|' |
3 | 4 | [[#52dade20]] | '#(<param\\s+[^>]*)value\\s*=\\s*"(?!/|' |
3 | 5 | [[#52dade20]] | '#(<object\\s+[^>]*)data\\s*=\\s*"(?!/|' |
4 | 1 | [[#52dadd80]] | '|\\#|\')([^"]+)"#m' |
4 | 2 | [[#52dadd80]] | '|\\#)([^\\)\'\\"]+)[\'\\"]?\\)#m' |
4 | 3 | [[#52dadd80]] | '|\\#|\')([^"]*)"#m' |
4 | 4 | [[#52dadd80]] | '|\\#|\')([^"]*)"\\s*name\\s*=\\s*"(movie|src|url)"#m' |
4 | 5 | [[#52dadd80]] | '|\\#|\')([^"]*)"#m' |