CloneSet431


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
4540.972statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1444
plugins/system/sef.php
2448
plugins/system/sef.php
3452
plugins/system/sef.php
4456
plugins/system/sef.php
5460
plugins/system/sef.php
Clone Instance
1
Line Count
4
Source Line
44
Source File
plugins/system/sef.php

                $buffer=     preg_replace($regex, '$1'
                                                  .    $base
                                                  .          '$2', $buffer);
                // ONMOUSEOVER / ONMOUSEOUT
                $regex=           '#(onmouseover|onmouseout)="this.src=([\']+)(?!/|'
                                  .                                                  $protocols
                                  .                                                             '|\\#|\')([^"]+)"#m';


Clone Instance
2
Line Count
4
Source Line
48
Source File
plugins/system/sef.php

                $buffer=          preg_replace($regex, '$1="this.src=$2'
                                                       .                  $base
                                                       .                         '$3$4"', $buffer);
                // Background image
                $regex=           '#style\\s*=\\s*[\'\\"](.*):\\s*url\\s*\\([\'\\"]?(?!/|'
                                  .                                                 $protocols
                                  .                                                            '|\\#)([^\\)\'\\"]+)[\'\\"]?\\)#m';


Clone Instance
3
Line Count
4
Source Line
52
Source File
plugins/system/sef.php

                $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';


Clone Instance
4
Line Count
4
Source Line
56
Source File
plugins/system/sef.php

                $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';


Clone Instance
5
Line Count
4
Source Line
60
Source File
plugins/system/sef.php

                $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';


Clone AbstractionParameter Count: 4Parameter Bindings

$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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#52dadea0]]
'$1' 
12[[#52dadea0]]
'$1="this.src=$2' 
13[[#52dadea0]]
'style="$1: url(\'' 
14[[#52dadea0]]
'$1name="$2" value="' 
15[[#52dadea0]]
'<param value="' 
21[[#52dade60]]
'$2' 
22[[#52dade60]]
'$3$4"' 
23[[#52dade60]]
'$2$3\')' 
24[[#52dade60]]
'$3"' 
25[[#52dade60]]
'$2" name="$3"' 
31[[#52dade20]]
'#(onmouseover|onmouseout)="this.src=([\']+)(?!/|' 
32[[#52dade20]]
'#style\\s*=\\s*[\'\\"](.*):\\s*url\\s*\\([\'\\"]?(?!/|' 
33[[#52dade20]]
'#(<param\\s+)name\\s*=\\s*"(movie|src|url)"[^>]\\s*value\\s*=\\s*"(?!/|' 
34[[#52dade20]]
'#(<param\\s+[^>]*)value\\s*=\\s*"(?!/|' 
35[[#52dade20]]
'#(<object\\s+[^>]*)data\\s*=\\s*"(?!/|' 
41[[#52dadd80]]
'|\\#|\')([^"]+)"#m' 
42[[#52dadd80]]
'|\\#)([^\\)\'\\"]+)[\'\\"]?\\)#m' 
43[[#52dadd80]]
'|\\#|\')([^"]*)"#m' 
44[[#52dadd80]]
'|\\#|\')([^"]*)"\\s*name\\s*=\\s*"(movie|src|url)"#m' 
45[[#52dadd80]]
'|\\#|\')([^"]*)"#m'