!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/connector/php/php5/Utils/   drwxr-xr-x
Free 117.42 GB of 200.55 GB (58.55%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     XmlNode.php (3.09 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.
 */

/**
 * @package CKFinder
 * @subpackage Utils
 * @copyright CKSource - Frederico Knabben
 */

/**
 * Simple class which provides some basic API for creating XML nodes and adding attributes
 *
 * @package CKFinder
 * @subpackage Utils
 * @copyright CKSource - Frederico Knabben
 */
class Ckfinder_Connector_Utils_XmlNode
{
    
/**
     * Array that stores XML attributes
     *
     * @access private
     * @var array
     */
    
private $_attributes = array();
    
/**
     * Array that stores child nodes
     *
     * @access private
     * @var array
     */
    
private $_childNodes = array();
    
/**
     * Node name
     *
     * @access private
     * @var string
     */
    
private $_name;
    
/**
     * Node value
     *
     * @access private
     * @var string
     */
    
private $_value;

    
/**
     * Create new node
     *
     * @param string $nodeName node name
     * @param string $nodeValue node value
     * @return Ckfinder_Connector_Utils_XmlNode
     */
    
function __construct($nodeName$nodeValue null)
    {
        
$this->_name $nodeName;
        if (!
is_null($nodeValue)) {
            
$this->_value $nodeValue;
        }
    }

    
/**
     * Add attribute
     *
     * @param string $name
     * @param string $value
     * @access public
     */
    
public function addAttribute($name$value)
    {
        
$this->_attributes[$name] = $value;
    }

    
/**
     * Adds new child at the end of the children
     *
     * @param Ckfinder_Connector_Utils_XmlNode $node
     * @access public
     */
    
public function addChild(&$node)
    {
        
$this->_childNodes[] =& $node;
    }

    
/**
     * Return a well-formed XML string based on Ckfinder_Connector_Utils_XmlNode element
     *
     * @return string
     * @access public
     */
    
public function asXML()
    {
        
$ret "<" $this->_name;

        
//print Attributes
        
if (sizeof($this->_attributes)>0) {
            foreach (
$this->_attributes as $_name => $_value) {
                
$ret .= " " $_name '="' htmlspecialchars($_value) . '"';
            }
        }

        
//if there is nothing more todo, close empty tag and exit
        
if (is_null($this->_value) && !sizeof($this->_childNodes)) {
            
$ret .= " />";
            return 
$ret;
        }

        
//close opening tag
        
$ret .= ">";

        
//print value
        
if (!is_null($this->_value)) {
            
$ret .= htmlspecialchars($this->_value);
        }

        
//print child nodes
        
if (sizeof($this->_childNodes)>0) {
            foreach (
$this->_childNodes as $_node) {
                
$ret .= $_node->asXml();
            }
        }

        
$ret .= "</" $this->_name ">";

        return 
$ret;
    }
}

:: 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.0119 ]--