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

Software: Apache/2.2.22 (Debian). PHP/5.6.36 

uname -a: Linux h05.hvosting.ua 4.9.110-amd64 #3 SMP Sun Nov 4 16:27:09 UTC 2018 x86_64 

uid=1389(h33678) gid=1099(h33678) groups=1099(h33678),502(mgrsecure) 

Safe-mode: OFF (not secure)

/home/h33678/data/www/musvin.pp.ua/modules-alien/ckeditor/ckfinder/core/   drwxr-xr-x
Free 117.07 GB of 200.55 GB (58.37%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     ckfinder_php4.php (8.16 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/*
 * CKFinder
 * ========
 * http://ckfinder.com
 * Copyright (C) 2007-2010, CKSource - Frederico Knabben. All rights reserved.
 *
 * The software, this file and its contents are subject to the CKFinder
 * License. Please read the license.txt file before using, installing, copying,
 * modifying or distribute this file or part of its contents. The contents of
 * this file is part of the Source Code of CKFinder.
 */

define'CKFINDER_DEFAULT_BASEPATH''/ckfinder/' ) ;

class 
CKFinder
{
    var 
$BasePath ;
    var 
$Width ;
    var 
$Height ;
    var 
$SelectFunction ;
    var 
$SelectFunctionData ;
    var 
$SelectThumbnailFunction ;
    var 
$SelectThumbnailFunctionData ;
    var 
$DisableThumbnailSelection false ;
    var 
$ClassName '' ;
    var 
$Id '' ;
    var 
$ResourceType ;
    var 
$StartupPath ;
    var 
$RememberLastFolder true ;
    var 
$StartupFolderExpanded false ;

    
// PHP 4 Constructor
    
function CKFinder$basePath CKFINDER_DEFAULT_BASEPATH$width '100%'$height 400$selectFunction null )
    {
        
$this->BasePath            = empty( $basePath ) ? CKFINDER_DEFAULT_BASEPATH $basePath ;
        
$this->Width            = empty( $width ) ? '100%' $width ;
        
$this->Height            = empty( $height ) ? 400 $height ;
        
$this->SelectFunction    $selectFunction ;
        
$this->SelectThumbnailFunction    $selectFunction ;
    }

    
// Renders CKFinder in the current page.
    
function Create()
    {
        echo 
$this->CreateHtml() ;
    }

    
// Gets the HTML needed to create a CKFinder instance.
    
function CreateHtml()
    {
        
$className $this->ClassName ;
        if ( !empty( 
$className ) )
            
$className ' class="' $className '"' ;

        
$id $this->Id ;
        if ( !empty( 
$id ) )
            
$id ' id="' $id '"' ;
            
        return 
'<iframe src="' $this->_BuildUrl() . '" width="' $this->Width '" ' .
            
'height="' $this->Height '"' $className $id ' frameborder="0" scrolling="no"></iframe>' ;
    }

    function 
_BuildUrl$url "" )
    {
        if ( !
$url )
            
$url $this->BasePath ;

        
$qs "" ;

        if ( empty( 
$url ) )
            
$url CKFINDER_DEFAULT_BASEPATH ;

        if ( 
$urlstrlen$url ) - ] != '/' )
            
$url $url '/' ;

        
$url .= 'ckfinder.html' ;

        if ( !empty( 
$this->SelectFunction ) )
            
$qs .= '?action=js&amp;func=' $this->SelectFunction ;

        if ( !empty( 
$this->SelectFunctionData ) ) 
        {
            
$qs .= $qs "&amp;" "?" ;
            
$qs .= 'data=' rawurlencode($this->SelectFunctionData) ;
        }

        if ( 
$this->DisableThumbnailSelection )
        {
            
$qs .= $qs "&amp;" "?" ;
            
$qs .= "dts=1" ;
        }
        else if ( !empty( 
$this->SelectThumbnailFunction ) || !empty( $this->SelectFunction ) )
        {
            
$qs .= $qs "&amp;" "?" ;
            
$qs .= 'thumbFunc=' . ( !empty( $this->SelectThumbnailFunction ) ? $this->SelectThumbnailFunction $this->SelectFunction ) ;
            
            if ( !empty( 
$this->SelectThumbnailFunctionData ) )
                
$qs .= '&amp;tdata=' rawurlencode$this->SelectThumbnailFunctionData ) ;
            else if ( empty( 
$this->SelectThumbnailFunction ) && !empty( $this->SelectFunctionData ) )
                
$qs .= '&amp;tdata=' rawurlencode$this->SelectFunctionData ) ;
        }

        if ( !empty( 
$this->StartupPath ) )
        {
            
$qs .= ( $qs "&amp;" "?" ) ;
            
$qs .= "start=" urlencode$this->StartupPath . ( $this->StartupFolderExpanded ':1' ':0' ) ) ;
        }

        if ( !empty( 
$this->ResourceType ) )
        {
            
$qs .= ( $qs "&amp;" "?" ) ;
            
$qs .= "type=" urlencode$this->ResourceType ) ;
        }

        if ( !
$this->RememberLastFolder )
        {
            
$qs .= ( $qs "&amp;" "?" ) ;
            
$qs .= "rlf=0" ;
        }

        if ( !empty( 
$this->Id ) )
        {
            
$qs .= ( $qs "&amp;" "?" ) ;
            
$qs .= "id=" urlencode$this->Id ) ;
        }

        return 
$url $qs ;
    }

    
// Static "Create".
    
function CreateStatic$basePath CKFINDER_DEFAULT_BASEPATH$width '100%'$height 400$selectFunction null )
    {
        
$finder = new CKFinder$basePath$width$height$selectFunction ) ;
        
$finder->Create() ;
    }

    
// Static "SetupFCKeditor".
    
function SetupFCKeditor( &$editorObj$basePath CKFINDER_DEFAULT_BASEPATH$imageType null$flashType null )
    {
        if ( empty( 
$basePath ) )
            
$basePath CKFINDER_DEFAULT_BASEPATH ;

        
// If it is a path relative to the current page.
        
if ( $basePath[0] != '/' )
        {
            
$basePath substr$_SERVER'REQUEST_URI' ], 0strrpos$_SERVER'REQUEST_URI' ], '/' ) + ) .
                
$basePath ;
        }

        
$ckfinder = new CKFinder$basePath ) ;
        
$ckfinder->SetupFCKeditorObject$editorObj$imageType$flashType );
    }
    
    
// Non-static method of attaching CKFinder to FCKeditor
    
function SetupFCKeditorObject( &$editorObj$imageType null$flashType null )
    {
        
$url $this->BasePath ;
        
        
// If it is a path relative to the current page.
        
if ( isset($url[0]) && $url[0] != '/' )
        {
            
$url substr$_SERVER'REQUEST_URI' ], 0strrpos$_SERVER'REQUEST_URI' ], '/' ) + ) . $url ;
        }
        
        
$url $this->_BuildUrl$url ) ;
        
$qs = ( strpos($url"?") !== false ) ? "&amp;" "?" ;

        if ( 
$this->Width !== '100%' && is_numericstr_replace"px"""strtolower$this->Width ) ) ) )
        {
            
$width intval$this->Width );
            
$editorObj->Config['LinkBrowserWindowWidth'] = $width ;
            
$editorObj->Config['ImageBrowserWindowWidth'] = $width ;
            
$editorObj->Config['FlashBrowserWindowWidth'] = $width ;
        }
        if ( 
$this->Height !== 400 && is_numericstr_replace"px"""strtolower$this->Height ) ) ) )
        {
            
$height intval$this->Height );
            
$editorObj->Config['LinkBrowserWindowHeight'] = $height ;
            
$editorObj->Config['ImageBrowserWindowHeight'] = $height ;
            
$editorObj->Config['FlashBrowserWindowHeight'] = $height ;
        }

        
$editorObj->Config['LinkBrowserURL'] = $url ;
        
$editorObj->Config['ImageBrowserURL'] = $url $qs 'type=' . ( empty( $imageType ) ? 'Images' $imageType ) ;
        
$editorObj->Config['FlashBrowserURL'] = $url $qs 'type=' . ( empty( $flashType ) ? 'Flash' $flashType ) ;
        
        
$dir substr$url0strrpos$url"/" ) + ) ;
        
$editorObj->Config['LinkUploadURL'] = $dir urlencode'core/connector/php/connector.php?command=QuickUpload&type=Files' ) ;
        
$editorObj->Config['ImageUploadURL'] = $dir urlencode'core/connector/php/connector.php?command=QuickUpload&type=') . ( empty( $imageType ) ? 'Images' $imageType ) ;
        
$editorObj->Config['FlashUploadURL'] = $dir urlencode'core/connector/php/connector.php?command=QuickUpload&type=') . ( empty( $flashType ) ? 'Flash' $flashType ) ;
    }

    
// Static "SetupCKEditor".
    
function SetupCKEditor( &$editorObj$basePath CKFINDER_DEFAULT_BASEPATH$imageType null$flashType null )
    {
        if ( empty( 
$basePath ) )
            
$basePath CKFINDER_DEFAULT_BASEPATH ;

        
$ckfinder = new CKFinder$basePath ) ;
        
$ckfinder->SetupCKEditorObject$editorObj$imageType$flashType );
    }

    
// Non-static method of attaching CKFinder to CKEditor
    
function SetupCKEditorObject( &$editorObj$imageType null$flashType null )
    {
        
$url $this->BasePath ;

        
// If it is a path relative to the current page.
        
if ( isset($url[0]) && $url[0] != '/' )
        {
            
$url substr$_SERVER'REQUEST_URI' ], 0strrpos$_SERVER'REQUEST_URI' ], '/' ) + ) . $url ;
        }
        
        
$url $this->_BuildUrl$url ) ;
        
$qs = ( strpos($url"?") !== false ) ? "&" "?" ;

        if ( 
$this->Width !== '100%' && is_numericstr_ireplace"px"""$this->Width ) ) )
        {
            
$width intval$this->Width );
            
$editorObj->config['filebrowserWindowWidth'] = $width ;
        }
        if ( 
$this->Height !== 400 && is_numericstr_ireplace"px"""$this->Height ) ) )
        {
            
$height intval$this->Height );
            
$editorObj->config['filebrowserWindowHeight'] = $height ;
        }

        
$editorObj->config['filebrowserBrowseUrl'] = $url ;
        
$editorObj->config['filebrowserImageBrowseUrl'] = $url $qs 'type=' . ( empty( $imageType ) ? 'Images' $imageType ) ;
        
$editorObj->config['filebrowserFlashBrowseUrl'] = $url $qs 'type=' . ( empty( $flashType ) ? 'Flash' $flashType ) ;
        
        
$dir substr$url0strrpos$url"/" ) + ) ;
        
$editorObj->config['filebrowserUploadUrl'] = $dir 'core/connector/php/connector.php?command=QuickUpload&type=Files' ;
        
$editorObj->config['filebrowserImageUploadUrl'] = $dir 'core/connector/php/connector.php?command=QuickUpload&type=' . ( empty( $imageType ) ? 'Images' $imageType ) ;
        
$editorObj->config['filebrowserFlashUploadUrl'] = $dir 'core/connector/php/connector.php?command=QuickUpload&type=' . ( empty( $flashType ) ? 'Flash' $flashType ) ;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

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