| 
    
     /*   if ($action=="oddily.htm" or $o=="odd"):
       include("menus/odd.php3");
    endif;
 */
    if ($action=="akce.php3" or $a=="ak"):
       include("menus/ak.php3");
  endif;
/*   if ($action=="chysta.php3" or $ch=="ch"):
       include("menus/ch.php3");
  endif;
*/
  if ($action=="uvod.php3"):
  include("anket.php3");
  endif;
/*
  if ($g=="gal" or $action=="gallery.php3"):
     include("menus/gal.php3");
  endif;
  if ($mem=="mem"):
     include("menus/mem.php3");
  endif;
  if ($mem=="mem1"):
     include("menus/mem1.php3");
  endif;
  if ($mem=="mem2"):
     include("menus/mem2.php3");
  endif;
  if ($mem=="mem3"):
     include("menus/mem3.php3");
  endif;
  if ($mem=="mem4"):
     include("menus/mem4.php3");
  endif;
*/
  if ($action=="history.htm" or $action=="nabizime.htm" or $action=="kontakt.htm" or $action=="vzkaznik.php3"):
      include ("menus/st.php3");
  endif;
  if ($action=="kontakt.htm" or $action=="napiste.php3"
  or $action=="news.php3" or $action=="vzkaznik.php3"):
     include("menus/zm.php3");
  endif;
    // AKTIVITA UZIVATELE
    if ($_SESSION['sess_UserID']>0):
        $time=Time();
        $act=Mysql_Query("UPDATE xusers SET last='$time', status='1' WHERE id='{$_SESSION['sess_UserID']}' AND status<>'2'");
    endif;
?>|  |  |  |  ";
      // KONEC MENU ON-LINE
?>| 
    ";
   echo "| ON-LINE |  | 
 
    // KDYZ SE JEDNA O JINEHO UZIVATELE, PAK KONTROLUJI JEHO AKTIVITU
    $kol=MySQL_Query("SELECT nick, last, status FROM xusers WHERE `status`>'0'");
                   // KDYŽ NIKDO NENÍ ON-LINE
      echo "";
     while($record=mysql_fetch_array($kol)):   // KDYZ JE ONLINE
       echo "|
 ";
     endwhile;
   echo "|
 ";
   // RUŠENÍ AKTIVNÍHO USERA
    $noow=Time()-600;   // LIMIT 10 MINUT
    $konec=Mysql_Query("UPDATE xusers SET status=0 WHERE last<'$noow'");
    // ZJISTOVANI DOSLYCH ZPRAV
if($action!="postman_add.php3"):
    $dotaz=mysql_query("SELECT xpostman.*, xusers.nick FROM `xpostman`, `xusers` WHERE `pro` = '{$_SESSION['sess_UserID']}' AND `doruceno` = '0' AND xusers.id=xpostman.od");
    while($odpo=mysql_fetch_array($dotaz)):
         $pom=$odpo["id"];
         $datum=Date("d.m.y H:i", $odpo["datum"]);
         $ql=mysql_query("UPDATE `xpostman` SET `doruceno` = 1 WHERE `id` = '$pom'");
         echo "";
    endwhile;
endif;
   echo "|
 |  |  |  |  | 
    if ($_SESSION['sess_Login']):
    if ($_SESSION['sess_Access']>2):
     include("menus/admin.php3");
     endif;
  endif;
  ?>| DISKUZE |  | 
    if ($_SESSION['sess_Login']):
    ?>|
 if ($action=="forum_main.php3"):
     ?>|
 endif ?>
    
    if ($action=="forum_main.php3"):
     ?>|
 else: ?>
       endif ?>|
 |
 if ($action=="forum.php3"):
     ?>|
 |
 endif ?>
 if($_SESSION['sess_UserID']==1): ?>|
 endif ?>
 if($_SESSION['sess_UserID']==1): ?>|
 endif ?>
     if($_SESSION['sess_Access']>3): ?>|
 endif ?>
       if($_SESSION['sess_Access']>3): ?>|
 |
 endif ?>
   if($_SESSION['sess_Access']>0): ?>|
 endif ?>|
 |
 |
 |
 else: ?>|
 |
 if ($action=="registr.php3"):
     ?>|
 else: ?>|
 endif ?> endif ?>|
 |
 |
 |  |  
     |  |  
     |  |  | if ($action):
      include("soubory/$action");
    endif;
    if ($actions):
    include("forum/$actions");
    endif;
    if ($ad):
    include("admin/$ad");
    endif;
      ?> |