User:DodoBot/botclasses.php: Difference between revisions
From Test Wiki
Content deleted Content added
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..." |
m Justarandomamerican moved page User:BotRafdodo/botclasses.php to User:DodoBot/botclasses.php: Automatically moved page while renaming the user "BotRafdodo" to "DodoBot" Tags: Mobile edit Mobile web edit |
||
| (One intermediate revision by one other user not shown) | |||
| 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); |
||