6 || die('bad token'); // Other parameters. $_action = $_GET['action'] ?? ''; $_weight = $_GET['weight'] ?? 10; $_email = $_GET['email'] ?? ''; $_podmin_statement = $_GET['podmin_statement'] ?? ''; $_podmin_notify = $_GET['podmin_notify'] ?? 0; $_podmin_notify_level = $_GET['podmin_notify_level'] ?? 50; require_once __DIR__ . '/../boot.php'; try { $pod = R::findOne('pods', 'domain = ?', [$_domain]); $pod || die('domain not found'); } catch (\RedBeanPHP\RedException $e) { die('Error in SQL query: ' . $e->getMessage()); } $pod['token'] === $_token || die('token mismatch'); $pod['tokenexpire'] >= date('Y-m-d H:i:s') || die('token expired'); // Delete and exit. if ('delete' === $_action) { try { $pod['status'] = PodStatus::USER_DELETED; R::store($pod); } catch (\RedBeanPHP\RedException $e) { die('Error in SQL query: ' . $e->getMessage()); } die('pod deleted'); } // Pause and exit. if ('pause' === $_action) { try { $pod['status'] = PodStatus::PAUSED; R::store($pod); } catch (\RedBeanPHP\RedException $e) { die('Error in SQL query: ' . $e->getMessage()); } die('pod paused'); } // Un-Pause and exit. if ('unpause' === $_action) { try { $pod['status'] = PodStatus::RECHECK; R::store($pod); } catch (\RedBeanPHP\RedException $e) { die('Error in SQL query: ' . $e->getMessage()); } die('pod unpaused'); } // Save and exit. if ('save' === $_action) { $_weight <= 10 || die('10 is max weight'); try { $pod['email'] = $_email; $pod['weight'] = $_weight; $pod['podmin_statement'] = $_podmin_statement; $pod['podmin_notify'] = $_podmin_notify; $pod['podmin_notify_level'] = $_podmin_notify_level; R::store($pod); } catch (\RedBeanPHP\RedException $e) { die('Error in SQL query: ' . $e->getMessage()); } $to = $_email; $headers = ['From: ' . c('adminemail'), 'Cc: ' . $pod['email'], 'Bcc: ' . c('adminemail')]; $subject = 'Edit notice from poduptime'; $message = 'Data for ' . $_domain . ' updated. If it was not you reply and let me know!'; @mail($to, $subject, $message, implode("\r\n", $headers)); die('Data saved. Will go into effect on next hourly change'); } // Forms. ?> Authorized to edit for diffForHumans(null, true); ?>







Your pod status is currently:
Stop checking and Stop showing your pod. Can be re-enabled later.
Stop checking your pod. Can be re-enabled later.
Unpause/Undelete - Start checking and Start showing your pod. Do a debug pull of your pod. Won't update the database just show what it would look like on a pass.