Exemplo n.º 1
0
 public function init()
 {
     if (!Fw_Auth::isValidAdmin()) {
         throw new Fw_Exception('[f:"' . __FILE__ . '", l:"' . __LINE__ . '"] Страница не найдена', 404);
     }
 }
Exemplo n.º 2
0
                                РУС 
                            <?php 
} else {
    ?>
                                <a href="<?php 
    echo isset($this->ru_lang_url) ? $this->ru_lang_url : C::getCurrentUriByLang('ru');
    ?>
" title="Российская версия сайта">РУС</a>
                            <?php 
}
?>
                        </div>   
                    </div>
                    <div id="right_top" class="grid-50 mobile-grid-50 tablet-grid-50">
                        <?php 
if (Fw_Auth::isValidAdmin()) {
    ?>
                            <a href="/admin/">Панель администратора</a>
                        <?php 
}
?>
                        <img alt="" src="/img/icon_register.png" width="20" height="20">
                        <?php 
if (!Fw_Auth::isValid()) {
    ?>
                            <a href="<?php 
    echo C::$lang == 'ua' ? '' : '/ru';
    ?>
/user/registration/" title="<?php 
    echo C::getLanguageString('register_new_user');
    ?>