CloneSet51


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
32320.958toplevel_statement_sequence[8]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1322
plugins/editors/tinymce/jscripts/tiny_mce/plugins/tinybrowser/edit.php
2322
plugins/editors/tinymce/jscripts/tiny_mce/plugins/tinybrowser/folders.php
3322
plugins/editors/tinymce/jscripts/tiny_mce/plugins/tinybrowser/upload.php
Clone Instance
1
Line Count
32
Source Line
2
Source File
plugins/editors/tinymce/jscripts/tiny_mce/plugins/tinybrowser/edit.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'])
                                                            :                                                                                             ''));


Clone Instance
2
Line Count
32
Source Line
2
Source File
plugins/editors/tinymce/jscripts/tiny_mce/plugins/tinybrowser/folders.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['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'])
                                                            :                                                                                             ''));


Clone Instance
3
Line Count
32
Source Line
2
Source File
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['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'])
                                                            :                                                                                             ''));


Clone AbstractionParameter Count: 2Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#4f944f00]]
!$tinybrowser['allowedit']
&& !$tinybrowser['allowdelete'] 
12[[#4f944f00]]
!$tinybrowser['allowfolders'] 
13[[#4f944f00]]
!$tinybrowser['allowupload'] 
21[[#4f944f20]]
TB_EDDENIED 
22[[#4f944f20]]
TB_FODENIED 
23[[#4f944f20]]
TB_UPDENIED