forum

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
forum [2018/12/31 11:00] valeriusforum [2018/12/31 11:02] valerius
Line 1: Line 1:
-<php> +{{inc>upb.php}}
- +
-<?php +
-/*  MyUPB forum with DokuWIki integration +
-  (c) dbanet,   2013, +
-  (c) valerius, 2014 +
- */ +
- +
-$forum = $_GET['var']; +
-$topic = $_GET['sub']; +
- +
-if (! empty($forum)) { +
-  if (! empty($topic)) +
-        // view topic +
-        $rf = "viewtopic.php?id=$forum&t_id=$topic"; +
-  else +
-        // view subforum +
-        $rf = "viewforum.php?id=$forum"; +
-} +
-else { +
-    // forum main page +
-    $rf = ''; +
-} +
- +
-?> +
- +
-<!-- <div id="dokuwiki__content"> --> +
-<iframe frameborder="0" onload="this.height=this.contentWindow.document.body.scrollHeight; +
-this.contentWindow.document.body.style.background='#E3E3CD';" +
-marginheight="0" marginwidth="0" width="100%" height="100%" scrolling="no" seamless="yes" src="/doku/html/board/<?php echo $rf; ?>"> +
-</iframe> <!-- </div> --> +
- +
-</php> +