source: branches/rsr.v5.1/web/app/mods/e_forum.php @ 2

Last change on this file since 2 was 1, checked in by dj3c1t, 13 years ago

import initial

File size: 855 bytes
Line 
1<?php
2
3  function e_forum($env)
4  { global $tpl_main;
5    $env->out["forum"] = array();
6    $env->out["forum"]["head"] = "";
7    $env->out["forum"]["body"] = "";
8    if
9    ( ($head_start = stripos($tpl_main, "<head")) !== false &&
10      ($head_start = stripos($tpl_main, ">", $head_start)) !== false &&
11      ($head_end = stripos($tpl_main, "</head", $head_start)) !== false
12    )
13    { $head_start += 1;
14      $env->out["forum"]["head"] .= substr($tpl_main, $head_start, $head_end - $head_start);
15    }
16    if
17    ( ($body_start = stripos($tpl_main, "<body")) !== false &&
18      ($body_start = stripos($tpl_main, ">", $body_start)) !== false &&
19      ($body_end = stripos($tpl_main, "</body", $body_start)) !== false
20    )
21    { $body_start += 1;
22      $env->out["forum"]["body"] .= substr($tpl_main, $body_start, $body_end - $body_start);
23    }
24  }
25
26?>
Note: See TracBrowser for help on using the repository browser.