debugging debugging debugging (also i didnt fix the thing i thought i did

Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
This commit is contained in:
Skylar "The Cobra" Widulski 2023-08-26 04:43:14 -04:00
parent 4cd7dc7faa
commit 6d89f9e192
Signed by: cobra
GPG Key ID: 4FD8F812083FF6F9
1 changed files with 2 additions and 4 deletions

View File

@ -42,13 +42,11 @@
$filename = "/tmp/list-code-" . $email;
if (!empty($_GET['code'])) {
echo file_get_contents($filename);
$file_content = @file_get_contents($filename) or echo error_get_last()['message'];
echo $_GET['code'];
if (file_get_contents($filename) == $_GET['code']) {
if ($_GET['action'] == "sub") {
$handle = fopen("/var/spool/list", "a");
fwrite($handle, $code . PHP_EOL);
fclose($handle);
file_put_contents($filename, $code . PHP_EOL, FILE_APPEND);
} else {
$contents = file_get_contents("/var/spool/list");
$contents = str_replace($line . PHP_EOL, '', $contents);