$num_rows = queryDB($sql, array(TABLE_PREFIX, $name, $_POST[$name])); write_to_log(AT_ADMIN_LOG_REPLACE, 'config', $num_rows, $sqlout); } else { if (isset($_POST[$name]) && $stripslashes($_POST[$name]) == $_config_defaults[$name]) { $sql = "DELETE FROM %sconfig WHERE name='%s'"; $num_rows = queryDB($sql, array(TABLE_PREFIX, $name)); write_to_log(AT_ADMIN_LOG_DELETE, 'config', $num_rows, $sqlout); } } } $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY'); // special case: disabling the mail queue should flush all queued mail: if (!$_POST['enable_mail_queue'] && $_POST['old_enable_mail_queue']) { require_once AT_INCLUDE_PATH . 'classes/phpmailer/atutormailer.class.php'; $mail = new ATutorMailer(); $mail->SendQueue(); } header('Location: ' . $_SERVER['PHP_SELF']); exit; } } } $onload = 'document.form.sitename.focus();'; require AT_INCLUDE_PATH . 'header.inc.php'; if (!isset($_POST['submit'])) { } else { $defaults = $_POST; } ?> <script type="text/javascript">