@
'; ?>
'; } ?>
0){ //Use the special path instead. $rootPath = trim(file_get_contents("root.inf")); } $databasePath = $rootPath . "whitelist.config"; $h = fopen($databasePath, "r"); $userlist = []; while (($buffer = fgets($h, 4096)) !== false) { array_push($userlist, '"'.explode(",",$buffer)[0].'"'); } unset($userlist[ array_search('"'.$_SESSION['login'].'"',$userlist)]); $userListString = implode(",",$userlist); $query1 = "select * from following where followerName = '".$_SESSION['login']."' and targetname in (".$userListString.")"; include_once("requestDB.php"); //Handle all Database access, see the query command below include_once("getUserImage.php"); $followerResult = query($query1,"teabag"); ?>
' . $follower["targetName"] . ' Unfollow
'; unset($userlist[ array_search('"'.$follower["targetName"].'"',$userlist)]); } ?>
' . trim($user,'"') . ' Follow
'; } ?>