public static function loginAction() { if (Settings::getValue(SETTINGS_FILE, 'register', 'only_new_customers')) { Renderer::setAction('register'); static::registerAction(); return; } if (array_key_exists('_login', $GLOBALS['_POST'])) { $login = array('name' => $GLOBALS['_POST']['_login']['user'], 'pass' => $GLOBALS['_POST']['_login']['password'], 'return_customer' => 1); if (strlen($login['name']) && strlen($login['pass'])) { $customer = bbRpc::call('shLogin::setShopCustomer', $login); if (is_array($customer)) { Renderer::setAction('checkout'); session_start(); $_SESSION['customer'] = $customer; session_write_close(); static::checkoutAction(); } } } }
public static function validatePayinfo($hParams = array()) { $ret = bbRpc::call('bbCustomer::validatePayinfo', $hParams); return $ret; }
public static function getContractPdf($hParams = array()) { $ret = bbRpc::call('shDraft::genPdf', $hParams); return $ret; }
public static function read($hParams) { $ret = bbRpc::call('shSettings::read', $hParams); return $ret; }
public static function saveCartItem($hParams = array()) { $ret = bbRpc::call('bbShopping::saveCartItem', $hParams); return $ret; }
public static function readInterval($hParams = array()) { $data = bbRpc::call('bbProduct::readInterval', $hParams); return $data; }