CloneSet973


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14220.989php_sequence[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
191
plugins/editors/tinymce/jscripts/tiny_mce/plugins/tinybrowser/tb_standalone.js.php
2141
plugins/editors/tinymce/jscripts/tiny_mce/plugins/tinybrowser/tb_tinymce.js.php
Clone Instance
1
Line Count
9
Source Line
1
Source File
plugins/editors/tinymce/jscripts/tiny_mce/plugins/tinybrowser/tb_standalone.js.php

<?php
require_once ("config_tinybrowser.php");

$tbpath=  pathinfo($_SERVER['SCRIPT_NAME']);
$tbmain=  $tbpath['dirname']
          .                  '/tinybrowser.php';
?> function tinyBrowserPopUp(type,formelementid,folder) { tburl = "<?php echo $tbmain; ?>" + "?type=" + type + "&feid=" + formelementid; if (folder !== undefined) tburl += "&folder="+folder+"%2F";
newwindow=window.open(tburl,'tinybrowser','height=


Clone Instance
2
Line Count
14
Source Line
1
Source File
plugins/editors/tinymce/jscripts/tiny_mce/plugins/tinybrowser/tb_tinymce.js.php

<?php
require_once ("config_tinybrowser.php");

$tbpath=  pathinfo($_SERVER['SCRIPT_NAME']);
$tbmain=  $tbpath['dirname']
          .                  '/tinybrowser.php';
?> function tinyBrowser (field_name, url, type, win) { /* If you work with sessions in PHP and your client
doesn't accept cookies you might need to carry the session name and session ID in the request string
(can look like this: "?PHPSESSID=88p0n70s9dsknra96qhuk6etm5"). These lines of code extract the necessary
parameters and add them back to the filebrowser URL again. */ var cmsURL = "<?php echo $tbmain; ?>"; // script URL - use an absolute path! if (cmsURL.indexOf("?")
<0) { //add the type as the only query parameter cmsURL = cmsURL + "?type=" + type; } else { //add the
type as an additional query parameter // (PHP session ID is now included if there is one at all) cmsURL
= cmsURL + "&type=" + type; } tinyMCE.activeEditor.windowManager.open({ file : cmsURL, title : 'Tiny
Browser', width : 


Clone AbstractionParameter Count: 2Parameter Bindings

<?php
  require_once ("config_tinybrowser.php");
  $tbpath=pathinfo($_SERVER['SCRIPT_NAME']);
  $tbmain=$tbpath['dirname']
          . '/tinybrowser.php';
?> [[#variable21197020]]<?php
                          echo $tbmain;
                        ?> [[#variable22df4620]]
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#21197020]]
 function tinyBrowser (field_name, url, type, win) { /* If you work with sessions in PHP and your client
doesn't accept cookies you might need to carry the session name and session ID in the request string
(can look like this: "?PHPSESSID=88p0n70s9dsknra96qhuk6etm5"). These lines of code extract the necessary
parameters and add them back to the filebrowser URL again. */ var cmsURL = " 
12[[#21197020]]
 function tinyBrowserPopUp(type,formelementid,folder) { tburl = " 
21[[#22df4620]]
"; // script URL - use an absolute path! if (cmsURL.indexOf("?")
<0) { //add the type as the only query parameter cmsURL = cmsURL + "?type=" + type; } else { //add the
type as an additional query parameter // (PHP session ID is now included if there is one at all) cmsURL
= cmsURL + "&type=" + type; } tinyMCE.activeEditor.windowManager.open({ file : cmsURL, title : 'Tiny
Browser', width :  
22[[#22df4620]]
" + "?type=" + type + "&feid=" + formelementid; if (folder !== undefined) tburl += "&folder="+folder+"%2F";
newwindow=window.open(tburl,'tinybrowser','height=