Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
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' );
}
}
?>