Skip to main content

[PHP] Get list username - vBulletin

 <?php
    // GET user
    function duyk_get_all_usr($link, $total_usr)
        {
            $max_page = $total_usr/100;
            $max_page = round($max_page);
            
            for($page=1;$page<=$max_page;$page++)
                {
                    $contents = file_get_contents($link.'/memberlist.php?order=asc&sort=username&pp=100&page='.$page);
                    for($id=1;$id<=100;$id++)
                        {
                            $duyk_user .= duyk_tach('<td class="alt1 username">', '<span class="usertitle">', $id, $contents).'</br>';
                        }                
                }
            return $duyk_user;
        }
    
    // Tach
    function duyk_tach($dau, $cuoi, $vitri, $noidung)
        {
            $noidung = explode($dau, $noidung);
            $ketqua = explode($cuoi, $noidung[$vitri]);
            return $ketqua[0];
        }
    
    echo duyk_get_all_usr('http://victim.com/forum', 100); // Thay 100 = tong so usr
    
?> 

Share this with your friends
Loading...