Файл: incfiles/footer.php
Строк: 40
<?php
/****
* @package LiveCMS
* @link livecms.org
* @author MyZik
* @version See attached file VERSION.txt
* @license See attached file LICENSE.txt
* @copyright Copyright (C) LiveCMS Development Team
****/
/**
* Модуль рекламы
**/
$ads_down_all = mysql_num_rows(mysql_query("SELECT * FROM `cms_ads` WHERE `position` = 'down' AND `pages` = 'all' AND `link_time` > '" . time() . "'"));
$ads_down_index = mysql_num_rows(mysql_query("SELECT * FROM `cms_ads` WHERE `position` = 'down' AND `pages` = 'index' AND `link_time` > '" . time() . "'"));
$ads_down_other = mysql_num_rows(mysql_query("SELECT * FROM `cms_ads` WHERE `position` = 'down' AND `pages` = 'other' AND `link_time` > '" . time() . "'"));
if ($ads_down_all > 0 || ($ads_down_index > 0 && $module == 'homepage') || ($ads_down_other > 0 && $module != 'homepage'))
echo '<div class="list1">';
ads(4);
ads(5);
ads(6);
if ($ads_down_all > 0 || ($ads_down_index > 0 && $module == 'homepage') || ($ads_down_other > 0 && $module != 'homepage'))
echo '</div>';
# если мы не на главной, выводим ссылку
if ($module != 'homepage')
echo '<div class="home"><a href="/"><img src="/design/themes/' . $set_user['theme'] . '/images/home.png" alt="" /> ' . $lang['to_homepage'] . '</a></div>';
/**
* Вывод копирайта (удалять / изменять) запрещено!
**/
echo '<div class="foot"><div class="returns a"> <a href="http://livecms.org">L<span class="red">i</span>veCMS</a> Gen: ' . round(microtime(1) - $timeGen, 4) . ' sec.</div></div>';
# Вывод счетчиков
echo '<div class="end"></div></body></html>';
exit;
?>