User:BotRafdodo/botclasses.php: Difference between revisions
From Test Wiki
no edit summary
BotRafdodo (talk | contribs) (Created page with "<syntaxhighlight lang="php" line='line'> <?php class http { private $ch; // CURL object private $uid; public $cookie_jar; public $postfollowredirs; public $getfollowredirs; public $quiet = false; public $user_agent = 'Default bot UA'; public $cookie_prefix = "filled-with-login-name"; // update user agent string function set_user_agent($str) { $this->user_agent = $str; } // set quiet state function set_q...") Tag: adding email address |
BotRafdodo (talk | contribs) No edit summary |
||
Line 162: | Line 162: | ||
* @return void | * @return void | ||
**/ | **/ | ||
function __construct($login, $url='http:// | function __construct($login, $url='http://testwiki.wiki/w/api.php', $hu=null, $hp=null) { | ||
$this->http = new http($login); | $this->http = new http($login); |