View file mc-2.7.1/modules/ads_manager/helpers/ads_manager_events.php

File size: 794B
<?php

/**
 * MobileCMS
 *
 * Open source content management system for mobile sites
 *
 * @author MobileCMS Team <[email protected]>
 * @copyright Copyright (c) 2011-2019, MobileCMS Team
 * @link https://mobilecms.pro Official site
 * @license MIT license
 */
defined('IN_SYSTEM') or die('<b>403<br />Запрет доступа!</b>');

/**
 * Хелпер событий модуля событий
 */
class ads_manager_events {

    /**
     * Перед выполнением контроллера
     */
    public static function pre_controller($db) {
        a_import('modules/ads_manager/helpers/ads_manager');
        $ads_manager_links = ads_manager::get_links($db);

        Registry::set('ads_manager_links', $ads_manager_links);
    }

}

?>