!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_tdfonline/php/3ros/wsf/wso2/DataServices/   drwxr-xr-x
Free 13.21 GB of 61.93 GB (21.33%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     DataService.php (3.1 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/*
 * Copyright 2005,2006 WSO2, Inc. http://wso2.com
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

require_once("wso2/DataServices/DSProcessorHandler.php");

class 
DataService extends WSService
{
    
/**
     * @param array $args this should have entries for
     *      "config" and "operations" + other WSService constrctor arguments
     */
    
public function __construct($args)
    {
        
// validating the user args
        
if(!array_key_exists(DS_CONFIG$args)) {
            
DSUtils::error_log(__FILE____LINE__
                
"Configs are missing in the DataService constructor");
        }
        if(!
array_key_exists(DS_OPERATIONS$args)) {
            
DSUtils::error_log(__FILE____LINE__
                
"Operations are missing in the DataService constructor");
        }

        
// deriving operations for WSService constructor
        
$wsservice_operatoins = array();

        
// build the operation array for the WSService constructor
        
$args_ops $args[DS_OPERATIONS];
        foreach(
$args_ops as $key => $value){
            
$wsservice_operations[$key] = $key;
        }

        
// building the WSService construtor arguments
        
$wsservice_args = array(DS_CLASSES=> array(DS_PROCESSOR_HANDLER => 
            array(
DS_OPERATIONS=> $wsservice_operationsDS_ARGS=>array($args))));

        
/* put all the arguments except the operations and config
           as arguments for the WSConstructor */
        
foreach($args as $args_key => $args_value){
            if(
$args_key != DS_OPERATIONS && $args_key != DS_CONFIG){
                
$wsservice_args[$args_key]=$args_value;
            }
        }

        
$args_config $args[DS_CONFIG];
        
        
$wsservice_args[DS_ANNOTATIONS] = $this->generate_annotations($args_ops$args_config);

        
// call the parent constructor
        
parent::__construct($wsservice_args);
    }
    

    
/**
     * reuturn the annotation which generate the WSDL
     *
     * @param array $op_args, user passed arguments for DataService 
     *  "operations" option
     * @param array $config, some db configuration stuff
     * @return array $annotations
     */
    
public function generate_annotations($op_args$config_args) {
        require_once(
"DSWSDLGenerator.php");
        
        
$annotations NULL;
        if(
array_key_exists(DS_QUERY_STRING$_SERVER) && 
                (
$_SERVER[DS_QUERY_STRING] == "wsdl" || $_SERVER[DS_QUERY_STRING] == "wsdl2")) {
            
$wsdl_generator = new DSWSDLGenerator();
            
$annotations $wsdl_generator->generate_wsdl($op_args$config_args);
            
        }
        return 
$annotations;
    }
}
?>

:: 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: 0.523 ]--