Файловый менеджер - Редактировать - /var/www/iplanru/data/www/i-plan.ru/modules/mod_poll/tmpl/default.php
Назад
<?php // No direct access defined( '_JEXEC' ) or die; $db = JFactory::getDbo(); $app = JFactory::getApplication(); $componentParams = $app->getParams('com_poll'); $jinput = JFactory::getApplication()->input; $option=$jinput->get( 'option', '' ); $view=$jinput->get( 'view', '' ); //user identification $new_user=true; $inputCookie = JFactory::getApplication()->input->cookie; $chash = $inputCookie->get($name = 'chash', $defaultValue = null); $ans=$db->setQuery('SELECT * FROM jos_pollanswers where cookie="'.$chash.'"')->loadAssoc(); if (count($ans)<>0){$new_user=false;}else{unset($ans);} if ($new_user) { $document =& JFactory::getDocument(); $document->addStyleSheet("/modules/mod_poll/css/poll.css",'text/css',"screen"); //JHtml::script(Juri::base() . 'modules/mod_poll/js/modal.js'); //JHtml::script(Juri::base() . 'modules/mod_poll/js/jquery.simplemodal.js'); //JHtml::script(Juri::base() . 'modules/mod_poll/js/jquery.min.js'); //JHtml::script(Juri::base() . 'modules/mod_poll/js/init.js'); if ($option=="com_pool" and $view=="poolans") { header( 'Location: /pool.php' ); } } else { if ($option=="com_pool" and $view=="pool") { header( 'Location: /index.php/opros/pollans' ); } } ?> <?php if ($new_user): ?> <div id="poll-text-nap"> <span><?php print $params->get( 'text_nap', '' ); ?></span> <a href="<?php echo JRoute::_('index.php?option=com_poll&view=poll&Itemid=271'); ?>" > <img src="/images/newstyle/opros/pool3.jpg"/ width=100%> </a> <a href="<?php echo JRoute::_('index.php?option=com_poll&view=poll&Itemid=271'); ?>" > <div><span>Определите тему</span></div> </a> </div> <div style="display: none; padding: 20px;" id="exit_content"> содержимое всплывающего окна </div> <?php else: ?> <div id="poll-text-ap"> <img src="/images/newstyle/opros/mod_opros.jpg"/> <span><?php print str_replace('{code}','<span class="pool-code">'.$ans['code'].'</span>',$params->get( 'text_ap', '' )); ?></span> </div> <?php endif ?>
| ver. 1.4 |
Github
|
.
| PHP 5.4.45-1~dotdeb+6.1 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка