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:
parent
4cd7dc7faa
commit
6d89f9e192
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue