Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
32 | 3 | 2 | 0.958 | toplevel_statement_sequence[8] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 32 | 2 | plugins/editors/tinymce/jscripts/tiny_mce/plugins/tinybrowser/edit.php |
2 | 32 | 2 | plugins/editors/tinymce/jscripts/tiny_mce/plugins/tinybrowser/folders.php |
3 | 32 | 2 | plugins/editors/tinymce/jscripts/tiny_mce/plugins/tinybrowser/upload.php |
| ||||
require_once ('config_tinybrowser.php'); // Set language if ( isset ($tinybrowser['language']) && file_exists('langs/' . $tinybrowser['language'] . '.php')) { require_once ('langs/' . $tinybrowser['language'] . '.php'); } else { require_once ('langs/en.php'); // Falls back to English } require_once ('fns_tinybrowser.php'); // Check session, if it exists if (session_id() != '') { if (! isset ($_SESSION[$tinybrowser['sessioncheck']])) { echo TB_DENIED; exit; } } if (!$tinybrowser['allowedit'] && !$tinybrowser['allowdelete']) { echo TB_EDDENIED; exit; } // Assign file operation variables $validtypes= array( 'image','media','file' ); $typenow= (( isset ($_GET['type']) && in_array($_GET['type'],$validtypes)) ? $_GET['type'] : 'image'); $foldernow= str_replace(array( '../','..\\','./','.\\' ), '',($tinybrowser['allowfolders'] && isset ($_REQUEST['folder']) ? urldecode($_REQUEST['folder']) : '')); |
| ||||
require_once ('config_tinybrowser.php'); // Set language if ( isset ($tinybrowser['language']) && file_exists('langs/' . $tinybrowser['language'] . '.php')) { require_once ('langs/' . $tinybrowser['language'] . '.php'); } else { require_once ('langs/en.php'); // Falls back to English } require_once ('fns_tinybrowser.php'); // Check session, if it exists if (session_id() != '') { if (! isset ($_SESSION[$tinybrowser['sessioncheck']])) { echo TB_DENIED; exit; } } if (!$tinybrowser['allowfolders']) { echo TB_FODENIED; exit; } // Assign request / get / post variables $validtypes= array( 'image','media','file' ); $typenow= (( isset ($_GET['type']) && in_array($_GET['type'],$validtypes)) ? $_GET['type'] : 'image'); $foldernow= str_replace(array( '../','..\\','./','.\\' ), '',($tinybrowser['allowfolders'] && isset ($_REQUEST['folder']) ? urldecode($_REQUEST['folder']) : '')); |
| ||||
require_once ('config_tinybrowser.php'); // Set language if ( isset ($tinybrowser['language']) && file_exists('langs/' . $tinybrowser['language'] . '.php')) { require_once ('langs/' . $tinybrowser['language'] . '.php'); } else { require_once ('langs/en.php'); // Falls back to English } require_once ('fns_tinybrowser.php'); // Check session, if it exists if (session_id() != '') { if (! isset ($_SESSION[$tinybrowser['sessioncheck']])) { echo TB_DENIED; exit; } } if (!$tinybrowser['allowupload']) { echo TB_UPDENIED; exit; } // Assign get variables $validtypes= array( 'image','media','file' ); $typenow= (( isset ($_GET['type']) && in_array($_GET['type'],$validtypes)) ? $_GET['type'] : 'image'); $foldernow= str_replace(array( '../','..\\','./','.\\' ), '',($tinybrowser['allowfolders'] && isset ($_REQUEST['folder']) ? urldecode($_REQUEST['folder']) : '')); |
| |||
require_once ('config_tinybrowser.php'); // Set language if ( isset ($tinybrowser['language']) && file_exists('langs/' . $tinybrowser['language'] . '.php')) { require_once ('langs/' . $tinybrowser['language'] . '.php'); } else { require_once ('langs/en.php'); // Falls back to English } require_once ('fns_tinybrowser.php'); // Check session, if it exists if (session_id() != '') { if (! isset ($_SESSION[$tinybrowser['sessioncheck']])) { echo TB_DENIED; exit; } } if ( [[#variable4f944f00]]) { echo [[#variable4f944f20]]; exit; } // Assign file operation variables // Assign request / get / post variables // Assign get variables $validtypes=array( 'image', 'media', 'file' ); $typenow=(( isset ($_GET['type']) && in_array($_GET['type'],$validtypes)) ? $_GET['type'] : 'image'); $foldernow=str_replace(array( '../', '..\\', './', '.\\' ),'',($tinybrowser['allowfolders'] && isset ($_REQUEST['folder']) ? urldecode($_REQUEST['folder']) : '')); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#4f944f00]] | !$tinybrowser['allowedit'] && !$tinybrowser['allowdelete'] |
1 | 2 | [[#4f944f00]] | !$tinybrowser['allowfolders'] |
1 | 3 | [[#4f944f00]] | !$tinybrowser['allowupload'] |
2 | 1 | [[#4f944f20]] | TB_EDDENIED |
2 | 2 | [[#4f944f20]] | TB_FODENIED |
2 | 3 | [[#4f944f20]] | TB_UPDENIED |