/home/hostacoz/domains/hosta.co.za/public_html/blesta/vendors/monolog/monolog/src/Monolog/ErrorHandler.php
/home/hostacoz/domains/hosta.co.za/public_html/blesta/plugins/order/controllers/signup.php
/home/hostacoz/domains/hosta.co.za/public_html/blesta/vendors/minphp/bridge/src/Lib/Dispatcher.php
/home/hostacoz/domains/hosta.co.za/public_html/blesta/index.php
// Get shown contact fields
$shown_contact_fields = $this->ClientGroups->getSetting(
$this->client->client_group_id ?? $this->order_form->client_group_id,
'shown_contact_fields'
);
if ($shown_contact_fields) {
$shown_contact_fields = unserialize(base64_decode($shown_contact_fields->value));
}
$this->set('order_form', $this->order_form);
$this->set('custom_field_prefix', $this->custom_field_prefix);
$this->set('custom_fields', $custom_fields);
$this->set(
'countries',
$this->Form->collapseObjectArray($this->Countries->getList(), ['name', 'alt_name'], 'alpha2', ' - ')
);
$this->set('states', $this->Form->collapseObjectArray($this->States->getList($vars->country ?? ''), 'name', 'code'));
$this->set('currencies', $this->Currencies->getAll($this->company_id));
$this->set('vars', $vars);
$this->set('client', $this->client);
if (!$this->isClientOwner($this->client, $this->Session)) {
$this->setMessage('error', Language::_('Signup.!error.not_client_owner', true), false, null, false);
$this->set('client', false);
}
$this->set('show_client_tax_id', ($show_client_tax_id == 'true'));
$this->set('force_email_usernames', $force_email_usernames);
$this->set(
'show_receive_email_marketing',
$show_recieve_email_marketing ? $show_recieve_email_marketing['value'] : 'true'
);
$this->set('show_tos', $show_tos);
$this->set('captcha', ($signup_captcha ?? ''));
$this->set('login_captcha', ($login_captcha ?? ''));
$this->set('required_contact_fields', ($required_contact_fields ?? ''));
$this->set('shown_contact_fields', ($shown_contact_fields ?? ''));
return $this->renderView();
}
/**
* OTP Authentication
*/
public function otp()
{
return $this->renderView();
}
/**
* Outputs clients info
*/
public function clientinfo()
{
$this->set('client', $this->Clients->get($this->Session->read('blesta_client_id')));
$this->outputAsJson($this->view->fetch());
return false;
}
/**
* AJAX Fetch all states belonging to a given country (json encoded ajax request)
*/
public function getStates()