A new, object-oriented, better vesion of μForum
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.9 KiB

  1. <!DOCTYPE html>
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  4. <title><?php echo $this->TPL['meta_title']; ?></title>
  5. <meta name="author" content="Piotr Dergun" />
  6. <meta name="generator" content="medit/1.2.0" />
  7. <link rel="stylesheet" href="templates/styles.css" type="text/css" />
  8. <link rel="stylesheet" href="templates/main.css" type="text/css" />
  9. </head>
  10. <body>
  11. <div id="container">
  12. <div id="top">
  13. <div style="width: 30%; float:left"><img src="templates/images/uf_logo.svg" height="130" alt="&micro;F logo"></div>
  14. <div style="width: 70%; float: left">
  15. <h1><?php echo $this->TPL['forum_name']; ?></h1>
  16. <h2><?php echo $this->TPL['forum_desc']; ?></h2>
  17. </div>
  18. </div>
  19. <div id="menu">
  20. <ul>
  21. <li><a href="index.php">Main Page</a></li>
  22. <li><a href="index.php?mode=userlist">Userlist</a></li>
  23. <?php if ( $this->TPL['is_logged']) { ?>
  24. <li><a href="index.php?mode=myprofile">Profile</a></li>
  25. <li><a href="index.php?mode=logout">Log out</a></li>
  26. <?php } else { ?>
  27. <li><a href="index.php?mode=register">Register</a></li>
  28. <li><a href="index.php?mode=login">Log in</a></li>
  29. <?php } ?>
  30. </ul>
  31. </div>
  32. <br>
  33. <div id="userpanel">
  34. <?php if ( $this->TPL['is_logged']) { ?>
  35. You are logged as: <span style="font-weight: bold"><?php echo $this->TPL['my_nick'] ?></span>
  36. <?php } else { ?>
  37. Welcome Guest! You are not logged.
  38. <?php } ?><br>
  39. Actual time: <span style="font-weight: bold"><?php echo $this->TPL['actual_time']; ?></span><br>
  40. <?php IF ($this->TPL['my_rank'] == RANK_ADMIN ) { ?>
  41. <a href="index.php?mode=admin" style="font-weight: bold">Go to ACP &raquo;</a>
  42. <?php } ?>
  43. </div>
  44. <br>
  45. <div id="navi_bar">
  46. <?php
  47. for ($i=0; $i<count($this->TPL['nav']); $i++)
  48. {
  49. echo '<a href="'.$this->TPL['nav'][$i]['url'].'" class="navigation">'.$this->TPL['nav'][$i]['name'].'</a>';
  50. if ($i < count($this->TPL['nav'])-1)
  51. echo ' &raquo; ';
  52. }
  53. ?>
  54. </div>