phpDocumentor koliportal
[ class tree: koliportal ] [ index: koliportal ] [ all elements ]

Source for file forum.php

Documentation is available at forum.php

  1. <?php
  2. /** Fórum kezdőszkript
  3. * @package koliportal
  4. * @author Karakó Miklós <palacsint_X_freemail.hu>
  5. * @copyright Copyright &copy; 2005, Karakó Miklós
  6. */
  7.  
  8. ?>
  9.  
  10. <h2>Fórum</h2>
  11.  
  12. <?php
  13. $j = 0;
  14. /** Üzenetként kell kiírni a szöveget. */
  15. ("FORUM_MSG", $j++);
  16. /** Hibaként kell megjeleníteni a szöveget. */
  17. ("FORUM_ERR", $j++);
  18. unset($j);
  19.  
  20. /** Üzenet megjelenítése a felhasználónak
  21. *
  22. * @param string $t Az üzenet szövege
  23. * @param int $type Az üznete típusa, valamilyen FORUM_* konstans,
  24. * a stíluslapot határozza meg
  25. */
  26. function forum_msg($t, $type = FORUM_MSG)
  27. {
  28. $fc[FORUM_MSG] = "forum_msg";
  29. $fc[FORUM_ERR] = "forum_err";
  30. if (!isset($fc[$type]))
  31. {
  32. $type = FORUM_MSG;
  33. }
  34. printf('<h3 class="%s">%s</h3>', $fc[$type], $t);
  35. }
  36.  
  37.  
  38.  
  39. if (isset($_GET["tid"]) && is_numeric($_GET["tid"]))
  40. {
  41. $incfile = "/forum_topic.php";
  42. } else {
  43. $incfile = "/forum_topiclist.php";
  44. }
  45. debug_echo($incfile);
  46. /** megfelelő fórumoldal beszúrása */
  47. (dirname(__FILE__) . $incfile);
  48.  
  49. ?>

Documentation generated on Wed, 18 May 2005 19:24:18 +0200 by phpDocumentor 1.3.0RC3