} } if ($action === "delete") { if ($db->move_chat_to_trash($talker, $server, $tslice, $lnk) === true) { $undo = $enc->crypt_url("tslice={$tslice}&peer_name_id={$talker}&peer_server_id={$server}&lnk={$lnk}&action=undelete"); unset($talker); $idx = $enc->crypt_url("single=" . $db->get_last_idx() . ""); $html->set_body('<center><div style="background-color: #fad163; text-align: center; width: 240pt;">' . $del_moved[$lang] . '<a href="' . $view_type . '?a=' . $undo . '&idx=' . $idx . '"> <span style="color: blue; font-weight: bold;"><u>Undo</u></span></a></div></center>'); } else { $html->alert_message($oper_fail[$lang], "message"); unset($talker); } } // some validation things... if ($start) { if (validate_start($start) !== true) { $start = "0"; } } $db->get_user_stats_drop_down(); $result = $db->result; if (count($result) != 0) { // main table $html->set_body('<br><br><table class="ff" border="0"> <tr class="main_s"><td colspan="1" style="text-align:left;">' . $main_date[$lang] . '</td> '); if ($tslice) { $html->set_body('<td>' . $talks[$lang] . '</td>'); } if ($talker) { $html->set_body('<td>' . $thread[$lang] . '</td>');
} // validation $talker = mysql_escape_string($talker); $server = mysql_escape_string($server); if (validate_date($tslice) == "f") { unset($tslice); unset($e_string); unset($talker); unset($left); unset($right); unset($mo); unset($action); } // some validation things... if ($start) { if (validate_start($start) != "t") { $start = "0"; } } // undo delete if ($action == "undelete") { if (undo_deleted_chat($talker, $server, $user_id, $tslice, $xmpp_host, $lnk) == "t") { print '<center><div style="background-color: #fad163; text-align: center; font-weight: bold; width: 200pt;">' . $undo_info[$lang] . '</div></center>'; } else { unset($talker); print '<center><div style="background-color: #fad163; text-align: center; font-weight: bold; width: 200pt;">'; print 'Unusual error accured during processing your request. Please report it (Code:JUF).</div></center>'; } } // chat deletion if ($action == "del") {