} if ($_POST['flag'] == "admin_corner" && $_POST['mem_ID']) { echo json_encode(admin($_POST['mem_ID'])); } if ($_POST['flag'] == "corner_info" && isset($_POST['corner_id'])) { echo json_encode(corners_info($_POST['corner_id'])); } if ($_POST['flag'] == 'search_members' && isset($_POST['key_term'])) { $key_term = '"' . $_POST['key_term'] . '"'; $matched = array(); $stm = $GLOBALS['mysqli']->prepare("select `ID`,`name` from `fireconverse`.`members` WHERE MATCH(`name`) AGAINST('" . $key_term . "' IN BOOLEAN MODE)"); if ($stm->execute()) { $stm->store_result(); $stm->bind_result($m_ID, $matchd); while ($stm->fetch()) { array_push($matched, array("ID" => $m_ID, "name" => $matchd, "tumb" => tumb_others($m_ID), "follow_check" => follow_check($U_ID, $m_ID))); } } echo json_encode($matched); } if ($_POST['flag'] == "previous_tumbs") { $array_pre = ""; $array = ''; $articles = $polls = ''; $stmt_mem = $GLOBALS['mysqli']->prepare("select `avatars` from `fireconverse`.`meminfo` where ID='{$U_ID}'"); if ($stmt_mem) { $stmt_mem->execute(); $stmt_mem->store_result(); $stmt_mem->bind_result($array_pre); $stmt_mem->fetch(); $unse = unserialize($array_pre);
<?php ini_set('max_execution_time', 30000); require 'html.inc'; 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);
<?php include_once "../global.php"; session_start(); $id = htmlspecialchars($_GET["id"]); $id_u = userinfo("usuario_id"); echo $id; if ($id != $id_u) { if (follow_check($id_u, $id) > 0) { mysql_query("DELETE FROM seguidores WHERE usuario_envia = '{$id_u}' and usuario_recibe = '{$id}'") or die(mysql_error()); mysql_query("DELETE FROM notificaciones WHERE usuario_envia = '{$id_u}' and usuario_recibe = '{$id}' and tipo = '1'") or die(mysql_error()); } elseif (follow_check($id_u, $id) == 0) { mysql_query("INSERT INTO seguidores (usuario_envia, usuario_recibe) VALUES ('{$id_u}','{$id}')") or die(mysql_error()); mysql_query("INSERT INTO notificaciones (usuario_envia, usuario_recibe, tipo) VALUES ('{$id_u}','{$id}', '1')") or die(mysql_error()); } }
<?php if (status() == 1) { if (userinfo(usuario_id) != $id_u) { ?> <a class="btn secondary-btn" href="#">Mensaje</a> <input type="hidden" id="userId" value="<?php echo $id_u; ?> "> <?php if (follow_check(userinfo(usuario_id), $id_u) == 0) { ?> <a class="btn complementary-btn" name="seguir" style="cursor: pointer;" id="seguir">Seguir</a> <?php } elseif (follow_check(userinfo(usuario_id), $id_u) > 0) { ?> <a class="btn complementary-btn" name="unfollow" id="seguir" style="cursor: pointer;background-color: rgb(240, 57, 57); border: 1px solid rgb(240, 57, 57);">Dejar de seguir</a> <?php } } else { ?> <a class="btn secondary-btn" href="opciones.php">Editar Perfil</a> <?php } } ?> </div> </div> </section>
die('User screen name not set!'); } elseif ($twitterUser == '') { die('Twitter username to follow not set! Please set the user <a href="set-user.php">here</a>.'); } else { if ($cursorTarget == '' && $cursorTarget_post == '') { $cursorTarget = "-1"; } else { $cursorTarget = $cursorTarget_post; } if ($debug) { echo "twit_user: {$twitterUser}<br>"; echo "cursorTarget: {$cursorTarget}<br>"; echo "myScreenName: {$myScreenName}<br>"; } } $canFollow = follow_check($connection, $debug, $twitterUser, $cursorTarget); if ($debug) { echo "canFollow: {$canFollow}<br>"; } if ($canFollow) { loading_gif(); $cursorTarget = copy_followers($connection, $db, $myScreenName, $count, $targetCount, $debug, $cursorTarget, $twitterUser, $date, $email, $debugEmails, $name); if ($debug) { echo "<h1>Next Cursor: {$cursorTarget}</h1>"; } ?> <form class="next_cursor" method="POST" > <input type="hidden" name="cursorTarget_post" value="<?php echo $cursorTarget; ?> " />