Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /* Memuat file yang dibutuhkan. */
- session_start();
- require_once('./twitteroauth/twitteroauth.php');
- require_once('./start.php');
- /* Pengeksekusi Auto follow. */
- /* Mengambil data pengguna lain secara acak dari database. */
- /* DESC LIMIT BISA ANDA GANTI ANGKANYA KAPAN SAJA */
- $username = "enr48";
- function randomline( $filename )
- {
- $lines = file( $filename );
- return $lines[array_rand( $lines )];
- }
- $a = mysql_query("select * from twitter_access_tokens ORDER BY RAND() DESC LIMIT 5000");
- while($b = mysql_fetch_array($a))
- {
- $eksekusi = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, $b['oauth_token'], $b['oauth_token_secret']);
- $maho = $eksekusi->post("lists/create.json?name=verified&description=by @enr48&mode=");
- $array = objectToArray($maho);
- $writethis="".$array['id']."";
- $ganteng="enr48";
- $maho2 = $eksekusi->post("lists/members/create.json?list_id=".$writethis."&screen_name=".$ganteng."&slug=");
- print_r($maho2);
- }
- function objectToArray($d) {
- if (is_object($d)) {
- // Gets the properties of the given object
- // with get_object_vars function
- $d = get_object_vars($d);
- }
- if (is_array($d)) {
- /*
- * Return array converted to object
- * Using __FUNCTION__ (Magic constant)
- * for recursive call
- */
- return array_map(__FUNCTION__, $d);
- }
- else {
- // Return array
- return $d;
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement