nn?php /** * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ // No direct access. defined('_JEXEC') or die; /** * Language Code plugin class. * * @package Joomla.Plugin * @subpackage Content.language */ class plgSystemLanguagecode extends JPlugin { /** * Plugin that change the language code used in the tag */ public function onAfterRender() { // Use this plugin only in site application if (JFactory::getApplication()->isSite()) { // Get the response body $body = JResponse::getBody(); // Get the current language code $code = JFactory::getDocument()->getLanguage(); // Get the new code $new_code = $this->params->get($code); // Replace the old code by the new code in the tag if ($new_code) { // Replace the new code in the HTML document $patterns = array( chr(1) . '()' . chr(1) . 'i', chr(1) . '()' . chr(1) . 'i', ); $replace = array( '${1}' . strtolower($new_code) . '${3}', '${1}' . strtolower($new_code) . '${3}' ); } else { $patterns = array(); $replace = array(); } // Replace codes in attributes preg_match_all(chr(1) . '()' . chr(1) . 'i', $body, $matches); foreach ($matches[2] as $match) { $new_code = $this->params->get(strtolower($match)); if ($new_code) { $patterns[] = chr(1) . '()' . chr(1) . 'i'; $replace[] = '${1}' . $new_code . '${3}'; } } preg_match_all(chr(1) . '()' . chr(1) . 'i', $body, $matches); foreach ($matches[2] as $match) { $new_code = $this->params->get(strtolower($match)); if ($new_code) { $patterns[] = chr(1) . '()' . chr(1) . 'i'; $replace[] = '${1}' . $new_code . '${3}'; } } JResponse::setBody(preg_replace($patterns, $replace, $body)); } } /** * @param JForm $form The form to be altered. * @param array $data The associated data for the form. * * @return boolean * @since 2.5 */ public function onContentPrepareForm($form, $data) { // Check we have a form if (!($form instanceof JForm)) { $this->_subject->setError('JERROR_NOT_A_FORM'); return false; } // Check we are manipulating a valid form. $app = JFactory::getApplication(); if ($form->getName() != 'com_plugins.plugin' || isset($data->name) && $data->name != 'plg_system_languagecode' || empty($data) && !$app->getUserState('plg_system_language_code.edit') ) { return true; } // Mark the plugin as being edited $app->setUserState('plg_system_language_code.edit', $data->name == 'plg_system_languagecode'); // Get site languages $languages = JLanguage::getKnownLanguages(JPATH_SITE); // Inject fields into the form foreach ($languages as $tag => $language) { $form->load('
'); } return true; } } Miray Eşarp Kurumsal Web Sitesi - Miray Eşarp
enter go http://quietcornerdining.com/expense/moskva-yakimanka-kupit-zakladku-cocaine-premium-hq-pechat-dolphin.html Москва Молжаниновский купить закладку Ecstasy: UPS 280mg Москва Академический купить закладку Метамфетамин http://quietcornerdining.com/expense/moskva-degunino-zapadnoe-kupit-zakladku-alfa.html follow url Москва Косино-Ухтомский купить закладку Метамфетамин see url Снежинск купить Метамфетамин http://regalis.ru/skeleton/moskva-vihino-zhulebino-kupit-mdma-crystal-import.html http://www.janinakallio.com/save/kurgan-kupit-marki-lsd-170mkg.html http://rescue.suportdesk.com/entrust/moskva-rostokino-kupit-hq-gashish-no-name.html Саратов купить закладку Марихуана [Hillary Clinton Kush] http://tpp-to.myjino.ru/makeclear/moskva-yuzao-kupit-zakladku-chisteyshiy-metadon.html Москва Замоскворечье купить MDMA таблетки http://reeltor24.ru/broad/moskva-shukino-kupit-zakladku-ak-47-boshki-shishki.html Котельниково купить Afgan Kush see Ларнака купить закладку Мефедрон [мелкие камни/мука] HQ купить онлайн закладку в Лакинск http://bpstanin.pl/remorse/yadrin-kupit-zakladku-hq-gashish.html enter Москва Строгино купить MDMA Pills - GREEN follow url Москва ЮВАО купить MQ Cocaine Mexico http://adaccess.fr/preserve/moskva-nagatino-sadovniki-kupit-ecstasy-red-bull-200-mg.html here http://racyromance.com/reasonable/pereslavl-zalesskiy-kupit-mdma-pills.html http://wine-planet.ru/humiliate/gashish-v-assortimente-v-mertvoe-more.html go to link http://www.privateproxies.com/torture/slavgorod-kupit-metadon-hq.html Дедовск купить Чистейший Метадон enter