Login | Register (Invite Only)
Title: Page Telegram of Amfile.org
Description: Brown Hats Collective F' Around and Find Out user of the Interwebs and Project Developer for a Cause Toward Insuring a Future of Liberty without Illusion.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@=:---#@@@#%@@@*=+#@%====@@@@..:--@#====@-==#@@@+===#@%=-+@... -@@@@*@@@=+@%-*@ @@@.*@-.@@@.:@@==@:=@+ -..*@@@:# @:@=.=. #%.#@@@@ ::..@.%#.@@ %+ %@@% #@@-.@+ #@ @@@.*@+.@@@:.@@.#@%*@*.@.-*@@%@#.@.@=.%..#% *@@@@ %:+:+:@@=@@ #+ %@@+..@@= %: @@ @@@..-.=@@:* %@.%#=+@+..:@@@@@@*.@@@=..:@@@ %@%%% :.@@+-@:=#@ ...@@@:+ @@+ :- @@ @@@.+@@@@@.- =@.#@.-@*.@:=@@@@@+ @@@+:@-:@% @@*=@ @=%#+-@-.#@ @*.%@@.- #@=. + @@ @@@.+@@@@+.@..@:*%.*@*.@%.@@@@%- +@@=:@%.@@.%@:=@ @@=*#:@::@@ *# =@--% -@:- * @@ @@-::#@@%::+::*@-:=%@::.::@@@@+-::@*:.:::@::...%:::::#@*:==@#==@+:*.:=::%:-=::=@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@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*@% #@%. :%@@@. %@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@* .@@@@%=-+@@@. @@@*--#@@@@- -@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@: .@@@@@@@@@@*=@@@@@@@@@@: @@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@. .%@@@@@@@@@@@@@@@@@@@- .#@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@%. +@@@@@@@@@@@@@@@@#. +@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@%. .+@@@@@@@@@@@@%: +@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@%. -*%@@@@@#=. .*@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@: .%@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@#. +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@+. .=@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@=. .-%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%###%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
<?php function getConversationFilename($sender, $receiver) { $accounts = [$sender, $receiver]; sort($accounts); return "profiles/{$accounts[0]}_{$accounts[1]}.txt"; } if ($_SERVER['REQUEST_METHOD'] == 'POST') { $sender = htmlspecialchars($_POST['sender']); $password = htmlspecialchars($_POST['password']); $receiver = htmlspecialchars($_POST['receiver'] ?? ''); $message = htmlspecialchars($_POST['message'] ?? ''); $senderProfilePath = "profiles/{$sender}.txt"; $conversationFilePath = !empty($receiver) ? getConversationFilename($sender, $receiver) : ''; if (file_exists($senderProfilePath)) { $senderProfile = json_decode(file_get_contents($senderProfilePath), true); if ($senderProfile['password'] === $password) { if (!empty($receiver) && !empty($message)) { if (!file_exists($conversationFilePath)) { file_put_contents($conversationFilePath, ''); } $messageEntry = [ 'sender' => $sender, 'message' => $message, 'timestamp' => date('Y-m-d H:i:s') ]; $currentMessages = json_decode(file_get_contents($conversationFilePath), true) ?: []; $currentMessages[] = $messageEntry; file_put_contents($conversationFilePath, json_encode($currentMessages)); // Send email notification if receiver has an email $receiverProfilePath = "profiles/{$receiver}.txt"; if (file_exists($receiverProfilePath)) { $receiverProfile = json_decode(file_get_contents($receiverProfilePath), true); if (!empty($receiverProfile['email'])) { $to = $receiverProfile['email']; $subject = "New Message from Profile [{$sender}]"; $body = "You have received a new message from Profile [{$sender}]:\n\n{$message}"; $headers = "From: no-reply@yourwebsite.com"; mail($to, $subject, $body, $headers); } } } echo "<!DOCTYPE html><html lang='en'><head><meta charset='UTF-8'><meta name='viewport' content='width=device-width, initial-scale=1.0'><style> body { background-color: black; color: #FFA500; /* Bright orange */ font-family: monospace; } .home-button { position: absolute; top: 10px; left: 10px; } .message-container { width: 90%; max-width: 600px; margin: auto; padding: 20px; border: 1px solid #FFA500; /* Bright orange */ } .message { margin-bottom: 10px; } .sender { font-weight: bold; } .timestamp { font-size: 0.8em; color: lightgreen; } </style></head><body>"; echo "<button class='home-button' onclick=\"window.location.href='index.php'\">Home</button>"; echo "<div class='message-container'>"; echo "<h1>Messages for Profile [{$sender}]</h1>"; if (empty($receiver)) { echo "<form action='send_message.php' method='POST' autocomplete='off'>"; echo "<input type='hidden' name='sender' value='{$sender}'>"; echo "<input type='hidden' name='password' value='{$password}'>"; echo "<label for='receiver'>Select a Profile Code to view messages:</label>"; echo "<select id='receiver' name='receiver'>"; echo "<option value=''>-- Select to view all messages --</option>"; $profileFiles = array_merge(glob("profiles/{$sender}_*.txt"), glob("profiles/*_{$sender}.txt")); $seenProfiles = []; foreach ($profileFiles as $file) { $filename = basename($file, ".txt"); $parts = explode("_", $filename); $otherProfileCode = ($parts[0] === $sender) ? $parts[1] : $parts[0]; if (!in_array($otherProfileCode, $seenProfiles)) { echo "<option value='{$otherProfileCode}'>{$otherProfileCode}</option>"; $seenProfiles[] = $otherProfileCode; } } echo "</select><br>"; echo "<input type='submit' value='View Messages'>"; echo "</form>"; } else { $currentMessages = json_decode(file_get_contents($conversationFilePath), true) ?: []; foreach ($currentMessages as $msg) { echo "<div class='message'>"; echo "<div class='sender'>Profile [{$msg['sender']}]</div>"; echo "<div class='timestamp'>{$msg['timestamp']}</div>"; echo "<div class='content'>{$msg['message']}</div>"; echo "</div>"; } echo "<form action='send_message.php' method='POST' autocomplete='off'>"; echo "<input type='hidden' name='sender' value='{$sender}'>"; echo "<input type='hidden' name='password' value='{$password}'>"; echo "<input type='hidden' name='receiver' value='{$receiver}'>"; echo "<textarea name='message' placeholder='Type your message here' required autocomplete='off'></textarea><br>"; echo "<input type='submit' value='Send Message'>"; echo "</form>"; } echo "<button onclick='window.location.reload()'>Refresh Messages</button>"; echo "<hr><p>Use the bottom form with a different profile code than the one loaded at the moment.</p>"; echo "</div>"; echo "<footer><p style='font-size: 0.8em; color: lightgreen;'>* This communication is intended for purposes including friendship, networking, civics, non-violent protest organizing, and romance. We will cooperate with law enforcement regarding any communication that infringes upon current laws. Please use this platform only for legal purposes.</p></footer>"; echo "</body></html>"; } else { echo "Incorrect password."; } } else { echo "Sender profile not found."; } } function deleteMessages($profile) { $files = glob("profiles/{$profile}_*.txt"); foreach ($files as $file) { unlink($file); } $files = glob("profiles/*_{$profile}.txt"); foreach ($files as $file) { unlink($file); } } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Send/Check Messages</title> <style> body { background-color: black; color: #FFA500; /* Bright orange */ font-family: monospace; } .home-button { position: absolute; top: 10px; left: 10px; } </style> </head> <body> <button class="home-button" onclick="window.location.href='index.php'">Home</button> <form action="send_message.php" method="POST" autocomplete="off"> <label for="sender">Enter Your Profile Code:</label> <input type="text" id="sender" name="sender" required autocomplete="off"><br> <label for="password">Enter Your Password:</label> <input type="password" id="password" name="password" required autocomplete="new-password"><br> <label for="receiver">Enter Recipient Profile Code (Optional):</label> <input type="text" id="receiver" name="receiver" autocomplete="off"><br> <textarea name="message" placeholder="Type your message here" autocomplete="off"></textarea><br> <input type="submit" value="Send/Check Messages"> </form> <footer> <p style="font-size: 0.8em; color: lightgreen;">* This communication is intended for purposes including friendship, networking, civics, non-violent protest organizing, and romance. We will cooperate with law enforcement regarding any communication that infringes upon current laws. Please use this platform only for legal purposes.</p> </footer> </body> </html>