} if (isset($_REQUEST['ajax']) && $_REQUEST['ajax'] == 'true') { $ajax = true; } else { $ajax = false; } if ($_SERVER['REQUEST_METHOD'] == 'POST') { require_once "cache.php"; $cache = new MessageCache($cache_type, $dbh, get_database_type($dbh), $smarty); $message = $cache->confirm_cache($euid); if ($ajax) { //this section should be moved to a template somewhere. ?> tb_remove(); <?php if ($cache->confirmed_actions('resent') == 0) { // if a single message was resent we don't delete it from the list ?> $('#row_<?php echo $id; ?> ').fadeOut("slow"); $('#row_<?php echo $id; ?> ').remove(); <?php } ?> $('#messagebox').html('<div class="messagebox"><?php echo strtr($message, array('\\' => '\\\\', "'" => "\\'", '"' => '\\"', "\r" => '\\r', "\n" => '\\n', '</' => '<\\/'));