User:BotRafdodo/botclasses.php: Difference between revisions

From Test Wiki
no edit summary
(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
 
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);
Cookies help us deliver our services. By using our services, you agree to our use of cookies.