/** * * @ WHMCS FULL DECODED & NULLED * * @ Version : 5.2.15 * @ Author : MTIMER * @ Release on : 2013-12-24 * @ Website : http://www.mtimer.cn * **/ if (!defined("WHMCS")) { exit("This file cannot be accessed directly"); } if (!function_exists("getClientsDetails")) { require ROOTDIR . "/includes/clientfunctions.php"; } if (!function_exists("updateInvoiceTotal")) { require ROOTDIR . "/includes/invoicefunctions.php"; } if (!function_exists("sendQuotePDF")) { require ROOTDIR . "/includes/quotefunctions.php"; } $result = select_query("tblquotes", "", array("id" => $quoteid)); $data = mysql_fetch_array($result); $quoteid = $data['id']; if (!$quoteid) { $apiresults = array("result" => "error", "message" => "Quote ID Not Found"); return null; } sendQuotePDF($quoteid); $apiresults = array("result" => "success");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0, private"); header("Cache-Control: private", false); header("Content-Type: application/octet-stream"); header("Content-Disposition: attachment; filename=\"Quote" . $id . ".pdf\""); header("Content-Transfer-Encoding: binary"); echo $pdfdata; exit; } if ($action == "sendpdf") { check_token("WHMCS.admin.default"); if (get_query_val("tblquotes", "datesent", array("id" => $id)) == "0000-00-00") { update_query("tblquotes", array("datesent" => "now()"), array("id" => $id)); } sendQuotePDF($id); redir("action=manage&id=" . $id . "&sent=true"); exit; } if ($action == "convert") { check_token("WHMCS.admin.default"); $invoiceid = convertQuotetoInvoice($id, $invoicetype, $invoiceduedate, $depositpercent, $depositduedate, $finalduedate, $sendemail); redir("action=edit&id=" . $invoiceid, "invoices.php"); } ob_start(); $aInt->deleteJSConfirm("doDelete", "quotes", "deletesure", "?action=delete&id="); $aInt->deleteJSConfirm("doDeleteLine", "global", "deleteconfirm", "?action=deleteline&id=" . $id . "&lid="); if (!$action) { echo $aInt->Tabs(array("Search/Filter"), true); echo "\n<div id=\"tab0box\" class=\"tabbox\">\n <div id=\"tab_content\">\n\n<form action=\""; echo $PHP_SELF;