require 'header.php'; require 'config.php'; require 'functions.php'; echo "<h4 class='help'>This is where you can unfollow everyone who isn't in your whitelist. Yes, this even includes mutually-followed users.</h4>"; if (isset($_POST['unfollow']) && isset($_POST['followingArray'])) { $followingArray = unserialize($_POST['followingArray']); //print_r($followingArray); unfollow_by_id($connection, $followingArray, $dataFileDirectory); } else { $canUnfollow = follow_check($connection, $debug, $myScreenName, $cursorTarget); if ($debug) { echo "canFollow: {$canFollow}<br>"; } if ($canUnfollow) { loading_gif(); $followingArray = find_followers($connection, $myScreenName, $count, $debug, $dataFileDirectory); if ($debug) { echo 'Follower Array Finished: '; print_r($followingArray); } $followingNumber = count($followingArray); //echo $followingNumber. "<br>"; $whitelistArray = getWhitelist($dataFileDirectory, 'ids'); $whitelistCount = count($whitelistArray); //echo $whitelistCount; $finalFollowingNumber = $followingNumber - $whitelistCount; $followingArray = serialize($followingArray); if ($finalFollowingNumber > 0) { ?> <script src="../../assets/js/functions.js" type="text/javascript"></script><?php $whitelisters = getWhitelist($dataFileDirectory, 'ids');
<form method="post" action=""> <div> <label>email</label> <input type="input" name="email"> </div> <div> <label>password</label> <input type="password" name="password"> </div> <div><button type="submit" name="access">check</button></div> </form> <?php } else { $f = array(); for ($i = 1; $i < 200; $i++) { $a = find_followers($i); $f = array_merge($f, $a); if (!$a) { break; } } $oald = (array) json_decode(get_oald()); save_data(json_encode($f)); $persi = array(); foreach ($oald as $x) { if (!in_array($x, $f)) { $persi[] = $x; } } if (!$oald) { echo '<h2>' . count($f) . ' followers</h1>' . '<h3>Informations saved, come back later if you\'ve lost some followers.</h3>';