<?php /** * * @ 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("validateClientLogin")) { require ROOTDIR . "/includes/clientfunctions.php"; } $_SESSION['adminid'] = ""; if (validateClientLogin($email, $password2)) { $apiresults = array("result" => "success", "userid" => $_SESSION['uid']); if ($_SESSION['cid']) { $apiresults['contactid'] = $_SESSION['cid']; } $apiresults['passwordhash'] = $_SESSION['upw']; return 1; } $apiresults = array("result" => "error", "message" => "Email or Password Invalid");
$lastName = $results['LASTNAME']; $suffix = $results['SUFFIX']; $cntryCode = $results['COUNTRYCODE']; $business = $results['BUSINESS']; $shipToName = $results['PAYMENTREQUEST_0_SHIPTONAME']; $shipToStreet = $results['PAYMENTREQUEST_0_SHIPTOSTREET']; $shipToStreet2 = $results['PAYMENTREQUEST_0_SHIPTOSTREET2']; $shipToCity = $results['PAYMENTREQUEST_0_SHIPTOCITY']; $shipToState = $results['PAYMENTREQUEST_0_SHIPTOSTATE']; $shipToCntryCode = $results['PAYMENTREQUEST_0_SHIPTOCOUNTRYCODE']; $shipToZip = $results['PAYMENTREQUEST_0_SHIPTOZIP']; $addressStatus = $results['ADDRESSSTATUS']; $invoiceNumber = $results['INVNUM']; $phonNumber = $results['PHONENUM']; $_SESSION['paypalexpress']['payerid'] = $payerId; if ($_SESSION['uid']) { redirSystemURL("a=checkout", "cart.php"); } $is_registered = get_query_val("tblclients", "id", array("email" => $email)); if ($is_registered) { $_SESSION['adminid'] = true; validateClientLogin($email, ""); unset($_SESSION['adminid']); redirSystemURL("a=checkout", "cart.php"); } $_SESSION['cart']['user'] = array("firstname" => $firstName, "lastname" => $lastName, "companyname" => $business, "email" => $email, "address1" => $shipToStreet, "address2" => $shipToStreet2, "city" => $shipToCity, "state" => $shipToState, "postcode" => $shipToZip, "country" => $shipToCntryCode, "phonenumber" => $phonNumber); redirSystemURL("a=checkout", "cart.php"); return 1; } logTransaction("PayPal Express Callback", $results, "Error"); echo "An Error Occurred. Please contact support.";
/** * * @ WHMCS FULL DECODED & NULLED * * @ Version : 5.2.15 * @ Author : MTIMER * @ Release on : 2013-12-24 * @ Website : http://www.mtimer.cn * * */ require "../../../init.php"; $whmcs->load_function("client"); if ($CONFIG['SupportModule'] != "kayako") { exit("Kayako Module not Enabled in General Settings > Support"); } $username = $_REQUEST['username']; $password = $_REQUEST['password']; $remote_ip = $_REQUEST['ipaddress']; if (validateClientLogin($username, $password)) { $result = select_query("tblclients", "", array("id" => $_SESSION['uid'])); $data = mysql_fetch_array($result); $firstname = $data['firstname']; $lastname = $data['lastname']; $email = $data['email']; $phonenumber = $data['phonenumber']; $xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<loginshare>\n <result>1</result>\n <user>\n <usergroup>Registered</usergroup>\n <fullname><![CDATA[" . $firstname . " " . $lastname . "]]></fullname>\n <emails>\n <email>" . $email . "</email>\n </emails>\n <phone>" . $phonenumber . "</phone>\n </user>\n</loginshare>"; } else { $xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<loginshare>\n <result>0</result>\n <message>Invalid Username or Password</message>\n</loginshare>"; } echo $xml;
$allowcheckout = true; $addcontact = true; $a = "view"; } if ($a == "view") { $templatefile = "viewcart"; $errormessage = ""; $gateways = new WHMCS_Gateways(); $availablegateways = getAvailableOrderPaymentGateways(); $securityquestions = getSecurityQuestions(); if (($submit || $checkout) && !$validatepromo) { $_SESSION['cart']['paymentmethod'] = $paymentmethod; $_SESSION['cart']['notes'] = $notes; if (!$_SESSION['uid']) { if ($custtype == "existing") { if (!validateClientLogin($loginemail, $loginpw)) { $errormessage .= "<li>" . $_LANG['loginincorrect']; } } else { $_SESSION['cart']['user'] = array("firstname" => $firstname, "lastname" => $lastname, "companyname" => $companyname, "email" => $email, "address1" => $address1, "address2" => $address2, "city" => $city, "state" => $state, "postcode" => $postcode, "country" => $country, "phonenumber" => $phonenumber); $errormessage = checkDetailsareValid("", true, true, false); } } if ($contact == "new") { redir("a=addcontact"); exit; } if ($contact == "addingnew") { $errormessage .= checkContactDetails("", false, "domaincontact"); } if ($availablegateways[$paymentmethod]['type'] == "CC" && $ccinfo) {
function doResetPW($key, $newpw, $confirmpw) { global $_LANG; $newpw = html_entity_decode($newpw); $confirmpw = html_entity_decode($confirmpw); if (!$key) { return $_LANG['pwresetemailrequired']; } $result = select_query("tblclients", "id,email,pwresetexpiry", array("pwresetkey" => $key)); $data = mysql_fetch_array($result); $userid = $data['id']; $email = $data['email']; $pwresetexpiry = $data['pwresetexpiry']; if (!$userid) { $result = select_query("tblcontacts", "id,email,userid,pwresetexpiry", array("pwresetkey" => $key)); $data = mysql_fetch_array($result); $contactid = $data['id']; $userid = $data['userid']; $pwresetexpiry = $data['pwresetexpiry']; $email = $data['email']; } if (!$userid) { return $_LANG['pwresetemailnotfound']; } if ($pwresetexpiry < time()) { return $_LANG['pwresetkeyexpired']; } $validate = new WHMCS_Validate(); if ($validate->validate("required", "newpw", "ordererrorpassword")) { if ($validate->validate("pwstrength", "newpw", "pwstrengthfail")) { if ($validate->validate("required", "confirmpw", "clientareaerrorpasswordconfirm")) { $validate->validate("match_value", "newpw", "clientareaerrorpasswordnotmatch", "confirmpw"); } } } if (!$validate->hasErrors()) { if ($contactid) { update_query("tblcontacts", array("password" => generateClientPW($newpw), "pwresetkey" => "", "pwresetexpiry" => ""), array("id" => $contactid)); } else { update_query("tblclients", array("password" => generateClientPW($newpw), "pwresetkey" => "", "pwresetexpiry" => ""), array("id" => $userid)); } run_hook("ClientChangePassword", array("userid" => $userid, "password" => $newpw)); logActivity("Password Reset Completed", $userid); sendMessage("Password Reset Confirmation", $userid, array("contactid" => $contactid)); validateClientLogin($email, $newpw); redir("success=true", "pwreset.php"); } return $validate->getHTMLErrorOutput(); }