Авторизация
Логин:
Пароль:
Забыли свой пароль?
Войти как пользователь:
Войти как пользователь
Вы можете войти на сайт, если вы зарегистрированы на одном из этих сервисов:
Подписка на рассылку
Реклама
11 лет сервису InKey.In  - Ваш ключ в сервис инновационных инвестиций UBK Markets Ltd
Расскажи о нас


Пользовательские движки шаблонизации

02.10.2009

Пример подключения движка XML/XSLT:

Сначала регистрируем движок:

global $arCustomTemplateEngines;
$arCustomTemplateEngines = array(
   "xslt" => array(
      "templateExt" => array("xsl"),
      "function" => "XSLTEngine"
   ),
);

Функция инициализации параметров движка:

function CreateXMLFromArray($xDoc, $xNode, $ar)
{
   foreach($ar as $key=>$val)
   {
      if(!is_string($key) || strlen($key)<=0)
         $key = "value";

      $xElement = $xDoc->createElement($key);
      if(is_array($val))
      {
         CreateXMLFromArray($xDoc, $xElement, $val);
      }
      else
      {
         $xElement->appendChild($xDoc->createTextNode(iconv( SITE_CHARSET, "utf-8", $val)));
      }
      $xNode->appendChild($xElement);
   }
   return $xNode;
}

Функция подключения движка:

function XSLTEngine($templateFile, $arResult, $arParams, $arLangMessages, $templateFolder, $parentTemplateFolder, $template)
{
   $arResult["PARAMS"] = array(
      "templateFolder" => $templateFolder,
      "parentTemplateFolder" => $parentTemplateFolder,
      "arParams" => $arParams,
      "arLangMessages" => $arLangMessages
   );

   $xDoc = new DOMDocument("1.0", SITE_CHARSET);
   $xRoot = $xDoc->createElement('result');
   CreateXMLFromArray($xDoc, $xRoot, $arResult);
   $xDoc->appendChild($xRoot);

   $xXsl = new DOMDocument();
   $xXsl->load( $_SERVER["DOCUMENT_ROOT"].$templateFile );

   $xProc = new XSLTProcessor;
   $xProc->importStyleSheet($xXsl);

   echo $xProc->transformToXML($xDoc);
}


Страница 3 - 3 из 3
Начало | Пред. | 1 2 3 | След. | Конец

Количество показов: 76911622
Рейтинг:  3.3

Возврат к списку

(Голосов: 1, Рейтинг: 3.3)

Материалы по теме:


Страницы: Пред. 1 ... 2655 2656 2657 2658 2659 След.
0  
StacyLah
pop over to this website  
online smart wallet
Имя Цитировать 0  
0  
Thomassnose
additional hints  
smartwallet
Имя Цитировать 0  
0  
DonaldRah
darknet market list  darknet market lists
Имя Цитировать 0  
0  
JerryTum
click to read more wallet smart wallet
Имя Цитировать 0  
0  
MarkVar
Покупка квартиры без рисков? Узнайте подробности https://territoria-we-stars.ru/
Имя Цитировать 0  
0  
Matthewutich
Зарубежные комедийные сериалы – отличный способ поднять настроение Читка 1 сезон 20 выпуск смотреть онлайн бесплатно в хорошем качестве на русском языке
Имя Цитировать 0  
0  
MarkNORah
dark web marketplaces  darknet markets links
Имя Цитировать 0  
0  
MatthewSpova
Зарубежные сериалы в жанре триллера всегда держат в напряжении Ищу человека (фильм 1973) смотреть онлайн бесплатно в хорошем качестве
Имя Цитировать 0  
0  
MarkNORah
darknet marketplace  dark market list
Имя Цитировать 0  
0  
Tolikovemo
dark web drug marketplace  darknet site
Имя Цитировать 0  
0  
ThomasRax
More Info thesmartwallet
Имя Цитировать 0  
0  
DonaldRah
dark market  darknet market links
Имя Цитировать 0  
0  
DominicHef
Get Steam Desktop Authenticator

Steam Desktop Authenticator is an app that provides an extra layer of security for your Steam accounts using two-factor authentication. This tool helps protect your account from unauthorized access by requiring a code that is generated specifically on your computer. In this article we will look at how to download and install Steam Desktop Authenticator.

Steps to download and install

1. Go to the official website
First, you need to go to the official website of the app Steam Desktop Authenticator. Make sure that you download software from trusted sources to avoid malware programs.

2. Download the app
On the site, find the download section. As usual it is highlighted on the main page. Click on the link to download the latest version of the application compatible with your operating system.

3. Install the program
Once the download is complete, open the setup file. Follow the on-screen instructions to complete the installation process. Usually the installation is simple and takes only a few minutes скачать steam desktop authenticator

4. Configure the application
Once installed, launch Steam Desktop Authenticator. For you will need to enter your your Steam account details so that the addition can access your account and generate authentication codes.

5. Create a backup copy
It is important to make a backup copy of your authentication codes. The application will prompt you to do this so that you always have access to the codes even if you reinstall the application or change devices.

Conclusion

Steam Desktop Authenticator is a useful tool to increase the security of your Steam accounts. With its support you can protect your data and warn login theft. Download and set up Steam Desktop Authenticator to ensure the safety of your game assets. Don't forget to frequently update the app to receive the final improvements and security fixes.
Имя Цитировать 0  
0  
Jerrysaw
Имя Цитировать 0  
0  
KxyuTyday
bitcoin dark web  dark web market
Имя Цитировать 0  
0  
Thomassnose
Full Article  
smartwallit
Имя Цитировать 0  
0  
Davidunfig
top farmacia online: Top Max Farma - Top Max Farma
Имя Цитировать 0  
0  
ThomasRax
more info here smart wallet crypto
Имя Цитировать 0  
0  
Social Link - flego
How Online Casinos Are a Worldwide Trend

Online casinos have reshaped the gambling landscape, offering a unique kind of user-friendliness and breadth that physical casinos don’t provide. Over time, millions of players worldwide have chosen the thrill of virtual casinos because of its availability, appealing qualities, and ever-expanding range of offerings.

If you’re a beginner with the world of internet-based gaming or seek to find out more about reputable operators, why not engage with our dynamic interactive platform? It’s a platform where players discuss stories, guiding you to improve your gaming journey. Join the conversation and see it here now: https://t.me/vinci_spin

One of the main appeals of online casinos is the vast variety of gaming experiences ready to play. Whether you like playing on traditional slot machines, diving into engaging modern slot games, or playing smart in classic casino games like Texas Hold’em, online platforms provide infinite options. A large number of platforms even feature live gaming streams, giving you the chance you to connect with professional croupiers and gaming peers, all while soaking in the immersive atmosphere of a brick-and-mortar establishment right at home.

Social URL: https://t.me/vinci_spin

In addition to diversity, virtual gaming providers excel ease of access.
Имя Цитировать 0  
0  
KxyuTyday
dark websites  dark web markets
Имя Цитировать 0  
0  
MarkNONow
bitcoin dark web  onion dark website
Имя Цитировать 0  
0  
MatthewSpova
Имя Цитировать 0  
0  
Toliksit
darknet drug links  dark market
Имя Цитировать 0  
0  
Pingunisp
darkmarket list  darknet links
Имя Цитировать 0  
0  
Pingunisp
darknet market list  dark market link
Имя Цитировать 0  
Страницы: Пред. 1 ... 2655 2656 2657 2658 2659 След.
Текст сообщения*
Загрузить файл или картинкуПеретащить с помощью Drag'n'drop
Перетащите файлы
Ничего не найдено
Отправить Отменить
Защита от автоматических сообщений
 
Публикация статей
На данной странице представлены элементы инфоблока статьи, относящиеся к типу Публикации. Статьи опубликованы на странице с помощью комплексного компонента Новостной раздел с указанием параметров инфоблока Статьи. При создании каждой статьи был использован тег <break />, который позволяет осуществить разделение статьи на страницы. В публичном разделе такая статья будет представлена в виде нескольких страниц в зависимости от количества тегов <break />

liqpay webmoney privat24 visa mastercard
2002-2017 © InKey
All rights reserved