User:DodoBot/botclasses.php: Difference between revisions

From Test Wiki
Content deleted Content added
DodoBot (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..."
 
DodoBot (talk | contribs)
No edit summary
Line 162: Line 162:
* @return void
* @return void
**/
**/
function __construct($login, $url='http://en.wikipedia.org/w/api.php', $hu=null, $hp=null) {
function __construct($login, $url='http://testwiki.wiki/w/api.php', $hu=null, $hp=null) {


$this->http = new http($login);
$this->http = new http($login);