array( "Back to whitelist" => "checkhelo-whitelist-main.php" ), )); # Display change screen if ($_POST['frmaction'] == "change") { # Check a whitelist was selected if (isset($_POST['whitelist_id'])) { # Prepare statement $stmt = $db->prepare(" SELECT ID, Source, Comment, Disabled FROM ${DB_TABLE_PREFIX}checkhelo_whitelist WHERE ID = ? "); ?>
execute(array($_POST['whitelist_id'])); $row = $stmt->fetchObject(); $stmt->closeCursor(); ?>
Old Value New Value
Source source ?>
Comment comment ?>
Disabled disabled ? 'yes' : 'no' ?>

No whitelisting selected
quote($_POST['whitelist_type'].":".$_POST['whitelist_source'])); } if (!empty($_POST['whitelist_comment'])) { array_push($updates,"Comment = ".$db->quote($_POST['whitelist_comment'])); } if (isset($_POST['whitelist_disabled']) && $_POST['whitelist_disabled'] != "") { array_push($updates ,"Disabled = ".$db->quote($_POST['whitelist_disabled'])); } # Check if we have updates if (sizeof($updates) > 0) { $updateStr = implode(', ',$updates); $res = $db->exec("UPDATE ${DB_TABLE_PREFIX}checkhelo_whitelist SET $updateStr WHERE ID = ".$db->quote($_POST['whitelist_id'])); if ($res) { ?>
HELO/EHLO whitelisting updated
Error updating HELO/EHLO whitelisting!
No changes made to HELO/EHLO whitelisting
errorInfo()) ?>
Invalid invocation