Файловый менеджер - Редактировать - /var/www/iplanru/data/www/i-plan.ru/modules/mod_seotext/tmpl/default.php
Назад
<?php // No direct access defined( '_JEXEC' ) or die; $url1 = $_SERVER['REQUEST_URI']; $url2 = $_SERVER['REDIRECT_URL']; $url3 = $_SERVER['HTTP_HOST']; $doc =& JFactory::getDocument(); //$doc->setMetaData( 'seo', $url1 ); $text=''; //zoo $user = JFactory::getUser(); $db = JFactory::getDbo(); if ($url1=="/") $url1="/special"; $list = $db->setQuery('SELECT elements,name FROM `#__zoo_item` where application_id=12 and name="'.$url1.'"')->loadAssoc(); if (count($list)<>0) { $a=json_decode($list['elements'],true); $text=$a['e7be6726-40cb-4608-8ecd-fd5453a3573b']['0']['value']; } if ($text=="") { echo " <style> .seo-text {display: none;} </style>"; } else { echo '<div class="seotext">'.$text.'</div>'; } ?>
| ver. 1.4 |
Github
|
.
| PHP 5.4.45-1~dotdeb+6.1 | Генерация страницы: 0.01 |
proxy
|
phpinfo
|
Настройка