Go Back   vb.org Archive > vBulletin 5 Connect Discussion > vB5 Programming Discussions
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-22-2017, 05:25 PM
BulliM's Avatar
BulliM BulliM is offline
 
Join Date: Oct 2017
Location: Bremen/Germany
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Bot-Login

I would like to do some jobs (send private messages and create topics) on the forums by a bot account. For that a login by script is needed. How can I realize that in php?
Reply With Quote
  #2  
Old 12-08-2017, 10:56 AM
delicjous's Avatar
delicjous delicjous is offline
 
Join Date: Nov 2014
Posts: 352
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You could take a look into the user.php at ...\core\vb\api\
Don't know what you like to do exactly, but this should do it, isn't it?

PHP Code:
public function login($username, $password = null, $md5password = null, $md5password_utf = null, $logintype = null)
    {
        $passwords = array(
            'password' => $password,
            'md5password' => $md5password,
            'md5password_utf' => $md5password_utf,
        );

        return $this->login2($username, $passwords, array(), $logintype);
    } 
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:37 PM.


Powered by vBulletin® Version 3.9.0 Beta 2
Copyright ©2000 - 2017, vBulletin Solutions Inc.