if (is_array($data['breadcrumb'])) { foreach ($data['breadcrumb'] as $k => $v) { $ca->addToBreadCrumb($k, $v); } } } if (is_array($data['vars'])) { foreach ($data['vars'] as $k => $v) { $smartyvalues[$k] = $v; } } } else { $ca->assign("modulecustombuttonresult", "success"); } } else { $ca->assign("modulecustombuttonresult", $service->getLastError()); } } if ($service->hasFunction("ChangePassword") && $service->getAllowChangePassword()) { $ca->assign("serverchangepassword", true); $ca->assign("modulechangepassword", true); $modulechangepasswordmessage = ""; $modulechangepassword = $whmcs->get_req_var("modulechangepassword"); if ($whmcs->get_req_var("serverchangepassword")) { $modulechangepassword = true; } if ($modulechangepassword) { check_token(); checkContactPermission("manageproducts"); $newpwfield = "newpw"; $newpassword1 = $whmcs->get_req_var("newpw");