Advertisement
Guest User

part.php

a guest
Nov 29th, 2016
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.16 KB | None | 0 0
  1. <?php
  2.  
  3. class Instagram
  4. {
  5.     protected $username;
  6.     protected $password;
  7.     protected $debug;
  8.     protected $uuid;
  9.     protected $device_id;
  10.     protected $username_id;
  11.     /**
  12.          * @var Settings
  13.          */
  14.     public $settings;
  15.     protected $userAgent;
  16.     protected $token;
  17.     protected $isLoggedIn = false;
  18.     protected $rank_token;
  19.     protected $IGDataPath;
  20.  
  21.     /**
  22.          * Default class constructor.
  23.          *
  24.          * @param string $username
  25.          *   Your Instagram username.
  26.          * @param string $password
  27.          *   Your Instagram password.
  28.          * @param        $debug
  29.          *   Debug on or off, false by default.
  30.          * @param        $IGDataPath
  31.          *   Default folder to store data, you can change it.
  32.          */
  33.     public function __construct($username, $password, $debug = false, $IGDataPath = NULL)
  34.     {
  35.         $username = trim($username);
  36.         $password = trim($password);
  37.         $this->debug = $debug;
  38.         $this->device_id = SignatureUtils::generateDeviceId(md5($username . $password));
  39.  
  40.         if (!is_null($IGDataPath)) {
  41.             $this->IGDataPath = $IGDataPath;
  42.         }
  43.         else {
  44.             $this->IGDataPath = Wow::get("project/cookiePath") . "instagram/";
  45.         }
  46.  
  47.         $this->checkSettings($username);
  48.         $this->setUser($username, $password);
  49.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement