User:Leucosticte/Junkyard

url = "http://localhost/test12/w/api.php";
 * 1) $wiki->url = "http://en.wikipedia.org/w/api.php";

$dbread = new mysqli( "localhost", "root", "360540133613112", "mirrorbot" ); if ( !$dbread ) { die( 'Could not connect: ' . mysql_error); } $ret = $dbread->query( 'SELECT * FROM mb_rc_queue' ); $row = $ret->fetch_assoc; var_dump ( $row );

$user = 'Kindle'; $pass = 'password'; $wiki->login($user,$pass); $token = $wiki->getedittoken ; unset($pass); $ret = $wiki->query ( '?action=createaccount&format=php'     . '&logid=' . $row['mbrcq_rc_logid']      . '&pageid=' . $row['mbrcq_rc_cur_id']      . '&pagenamespace=' . $row['mbrcq_rc_namespace']      . '&pagetitle=' . $row['mbrcq_rc_title']      . '&type=' . $row['mbrcq_rc_log_type']      . '&logaction=' . $row['mbrcq_rc_log_action']      . '&user=' . $row['mbrcq_rc_user_text']      . '&userid=' . $row['mbrcq_rc_user']      . '&timestamp=' . $row['mbrcq_timestamp']      . '&comment=' . $row['mbrcq_comment']      . '&tags=' . $row['mbrcq_tags']     , true); // Post var_dump ( $ret ); $userName = $thisEvent[ 'mbrcq_rc_title' ]; $userName = substr ( $userName, strpos ( $userName, ':' ) + 1                      , strlen ( $userName ) - strpos ( $userName, ':' ) ); echo $userName; die;