- <?php
- if($user_enter=="0"){
- print '<div class="b"> Меню гостя:</div>';
- $antyregistartion = explode_file("|", DATADIR."datatemplate/registration.dat", "0");
- if(time() < $antyregistartion+300){
- $times = $antyregistartion + 300 - time() ;
- print img("act").' Регистрация: '.$times.' сек <br>';
- }else{ print img("act").' <a href="pages/registration.php?">Регистрация</a> <br>'; }
- print img("act").' <a href="pages/avtorization.php?">Авторизация</a> <br>';
- }else{
- print '<div class="b"> Меню Пользователя</div>';
- print img("act").' <a href="pages/my_menu.php?">Мое меню</a> <br>';
- if($udata_dostup=="1" || $udata_dostup=="2" || $udata_dostup=="3" || $udata_dostup=="4"){
- print img("act").' <a href="'.ADMINDIR.'index.php?">Админка</a> <br>';
- }}
- print img("act").' <a href="pages/who.php?">Кто где</a> <br>';
- $file = file(DATADIR."datanews/news.dat");
- $total_news = count($file);
- if($config_print_news=="1"){
- $data = explode("|", $file[$total_news-1]);
- print '<div class="b">'.img("rss").' '.$data[0].' ('.$data[3].')</div>';
- print $data[1].'<br>';
- print 'Разместил: <a href="pages/anketa.php?user='.$data[2].'">'.nickname($data[2]).'</a> <br><br>';
- $file = file(DATADIR."datanews/comment/".$data[4].".dat");
- $total_comment = count($file);
- print img("act").' <a href="'.MODULES.'news/comment.php?act='.$data[4].'">Мнения</a> ('.$total_comment.')<br>';
- print img("act").' <a href="'.MODULES.'news/index.php?">Архив новостей</a> ('.$total_news.') <br>';
- print '<div class="b"> '.img(IMGDIR."img/navigation.png").' Навигация:</div>';
- }else{
- print img("act").' <a href="'.MODULES.'news/index.php?">Новости</a> ('.$total_news.') <br>';
- }
- print img("act").' <a href="'.MODULES.'load/index.php?">Загрузки</a> ('.count_files_dir(BASEDIR."files/load/").' / '.format_size(size_dir(BASEDIR."files/load/")).')<br>';
- $totalforum = count_files_dir(DATADIR."dataforum")-1;
- print img("act").' <a href="'.MODULES.'forum/index.php?">Форум</a> ('.$totalforum.' / '.count_files_dir(DATADIR."dataforum/forums").') <br>';
- $file = file(DATADIR."dataguestbook/book.dat");
- $total_guest = count($file);
- $total_service = count_files(BASEDIR."service", "php")-1;
- print img("act").' <a href="'.MODULES.'guest_book/index.php?">Гостевая</a> ('.$total_guest.') <br>';
- // print img("act").' <a href="'.MODULES.'klans/index.php">Кланы</a> <br>';
- print img("act").' <a href="service/index.php">Сервисы</a> ('.$total_service.') <br>';
- print img("act").' <a href="pages/statistik.php">Статистика</a> <br>';
- print img("act").' <a href="include.php?page=livesite">Жизнь сайта</a> <br>';
- ?>
- require_once(DATADIR."datapages/index.dat");