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 include 'convert_to_ascii.php'; if ($_SERVER['REQUEST_METHOD'] == 'POST') { $filename = htmlspecialchars($_POST['filename']); $password = htmlspecialchars($_POST['password']); $profilePath = "profiles/{$filename}.txt"; $allowedExtensions = ['jpg', 'jpeg', 'gif', 'png']; if (file_exists($profilePath)) { $profileData = json_decode(file_get_contents($profilePath), true); if ($profileData['password'] === $password) { if (isset($_POST['edit_profile'])) { if (!empty($_FILES['photo']['name'])) { $photo = $_FILES['photo']; $ext = pathinfo($photo['name'], PATHINFO_EXTENSION); if (in_array(strtolower($ext), $allowedExtensions)) { $tempPath = $photo['tmp_name']; $newPath = "uploads/{$filename}.{$ext}"; if (move_uploaded_file($tempPath, $newPath)) { $asciiArt = convertToAscii($newPath); unlink($newPath); $profileData['ascii'] = $asciiArt; } else { echo "Error moving uploaded file."; exit; } } else { echo "Error: Only jpg, jpeg, gif, and png files are allowed."; exit; } } $profileData['name'] = htmlspecialchars($_POST['name']); $profileData['motto'] = htmlspecialchars($_POST['motto']); $profileData['hobbies'] = htmlspecialchars($_POST['hobbies']); $profileData['summary'] = htmlspecialchars($_POST['summary']); $profileData['positive'] = htmlspecialchars($_POST['positive']); $profileData['negative'] = htmlspecialchars($_POST['negative']); file_put_contents($profilePath, json_encode($profileData)); generateProfileHtml($filename, $profileData); echo "Profile updated successfully."; } else { 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: green; font-family: monospace; } .home-button { position: absolute; top: 10px; left: 10px; } </style></head><body>"; echo "<button class='home-button' onclick=\"window.location.href='index.php'\">Home</button>"; echo "<form action='change_profile.php' method='POST' enctype='multipart/form-data'>"; echo "<input type='hidden' name='filename' value='{$filename}'>"; echo "<input type='hidden' name='password' value='{$password}'>"; echo "<input type='hidden' name='edit_profile' value='1'>"; echo "<label for='photo'>Upload New Photo (optional):</label>"; echo "<input type='file' id='photo' name='photo' accept='.jpg,.jpeg,.gif,.png'><br>"; echo "<label for='name'>Name:</label>"; echo "<input type='text' id='name' name='name' value='{$profileData['name']}' required><br>"; echo "<label for='motto'>Motto:</label>"; echo "<input type='text' id='motto' name='motto' value='{$profileData['motto']}' required><br>"; echo "<label for='hobbies'>Hobbies and Interests:</label>"; echo "<input type='text' id='hobbies' name='hobbies' value='{$profileData['hobbies']}' required><br>"; echo "<label for='summary'>Summary:</label>"; echo "<textarea id='summary' name='summary' maxlength='800' required>{$profileData['summary']}</textarea><br>"; echo "<label for='positive'>Positive Qualifiers:</label>"; echo "<input type='text' id='positive' name='positive' value='{$profileData['positive']}' required><br>"; echo "<label for='negative'>Qualifiers You Should Know First:</label>"; echo "<input type='text' id='negative' name='negative' value='{$profileData['negative']}' required><br>"; echo "<input type='submit' value='Save Changes'>"; echo "</form>"; echo "</body></html>"; } } else { echo "Incorrect password."; } } else { echo "Profile not found."; } } else { 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: green; font-family: monospace; } .home-button { position: absolute; top: 10px; left: 10px; } </style></head><body>"; echo "<button class='home-button' onclick=\"window.location.href='index.php'\">Home</button>"; echo "<form action='change_profile.php' method='POST'>"; echo "<label for='filename'>Enter Profile Code:</label>"; echo "<input type='text' id='filename' name='filename' required><br>"; echo "<label for='password'>Enter Password:</label>"; echo "<input type='password' id='password' name='password' required><br>"; echo "<input type='submit' value='Load Profile'>"; echo "</form>"; echo "</body></html>"; } function generateProfileHtml($filename, $profileData) { $html = "<!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: green; font-family: monospace; } .ascii-art { font-weight: bold; } .home-button { position: absolute; top: 10px; left: 10px; } </style></head><body>"; $html .= "<button class='home-button' onclick=\"window.location.href='index.php'\">Home</button>"; $html .= "<h1>{$profileData['name']}</h1>"; $html .= "<pre class='ascii-art'>{$profileData['ascii']}</pre>"; $html .= "<p><strong>Motto:</strong> {$profileData['motto']}</p>"; $html .= "<p><strong>Hobbies and Interests:</strong> {$profileData['hobbies']}</p>"; $html .= "<p><strong>Summary:</strong> {$profileData['summary']}</p>"; $html .= "<p><strong>Positive Qualifiers:</strong> {$profileData['positive']}</p>"; $html .= "<p><strong>Qualifiers You Should Know First:</strong> {$profileData['negative']}</p>"; $html .= "</body></html>"; file_put_contents("profiles/{$filename}.html", $html); } ?>