public function _initStoreSettings() { $request = JO_Request::getInstance(); if ($request->getModule() == 'install') { return ''; } $store = new WM_Store(); $store_settings = $store->getSettingsPairs(); if ($store_settings) { $phpSettings = array(); foreach ($store_settings as $key => $value) { if ($key == 'phpSettings') { $this->setPhpSettings($value); } JO_Registry::set($key, $value); JO_Registry::set('config_' . $key, $value); } } }
private function allowledReferal($referal) { $single_sign_on = WM_Store::getSettingsPairs(array('filter_group' => 'single_sign_on')); foreach ($single_sign_on as $data) { if (!$data['url']) { continue; } if (!$referal) { continue; } if ($data['url'] == $referal) { return true; } elseif (str_replace('www.', '', $data['url']) == $referal) { return true; } elseif ($data['url'] == str_replace('www.', '', $referal)) { return true; } elseif (str_replace('www.', '', $data['url']) == str_replace('www.', '', $referal)) { return true; } } return false; }