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;
|
$filename = "/tmp/list-code-" . $email;
|
||||||
|
|
||||||
if (!empty($_GET['code'])) {
|
if (!empty($_GET['code'])) {
|
||||||
echo file_get_contents($filename);
|
$file_content = @file_get_contents($filename) or echo error_get_last()['message'];
|
||||||
echo $_GET['code'];
|
echo $_GET['code'];
|
||||||
if (file_get_contents($filename) == $_GET['code']) {
|
if (file_get_contents($filename) == $_GET['code']) {
|
||||||
if ($_GET['action'] == "sub") {
|
if ($_GET['action'] == "sub") {
|
||||||
$handle = fopen("/var/spool/list", "a");
|
file_put_contents($filename, $code . PHP_EOL, FILE_APPEND);
|
||||||
fwrite($handle, $code . PHP_EOL);
|
|
||||||
fclose($handle);
|
|
||||||
} else {
|
} else {
|
||||||
$contents = file_get_contents("/var/spool/list");
|
$contents = file_get_contents("/var/spool/list");
|
||||||
$contents = str_replace($line . PHP_EOL, '', $contents);
|
$contents = str_replace($line . PHP_EOL, '', $contents);
|
||||||
|
|
Loading…
Reference in New Issue