root / branches / 1.1 / misc.php

View | Annotate | Download (1.8 KB)

1
<?php
2
/**
3
 * Project:     Oxygen Bulletin Board
4
 * File :       $HeadURL: http://svn.o2php.com/branches/1.1/misc.php $
5
 * Revision :   $Revision: 565 $
6
 * Author :     $Author: eofredj $
7
 * Date :       $Date: 2006-10-29 23:36:06 +0100 (Sun, 29 Oct 2006) $
8
 * Id :         $Id: misc.php 565 2006-10-29 22:36:06Z eofredj $
9
 *
10
 * Oxygen is free software; you can redistribute it and/or modify it
11
 * under the terms of the GNU General Public License as published
12
 * by the Free Software Foundation; either version 2 of the License,
13
 * or (at your option) any later version.
14
 *
15
 * Oxygen is distributed in the hope that it will be useful, but
16
 * WITHOUT ANY WARRANTY; without even the implied warranty of
17
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
 * GNU General Public License for more details.
19
 *
20
 * You should have received a copy of the GNU General Public License
21
 * along with this program; if not, write to the Free Software
22
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
23
 * MA  02111-1307  USA
24
 *
25
 * @link http://www.o2php.com/
26
 * @copyright 2002-2006 Oxygen Team.
27
 * @author Eric Fredj <heltem at o2php dot com>
28
 * @package o2php
29
 * @version [VERSION]
30
 */
31
$TPL_LOAD = 'header, footer, misc_login, misc_search, misc_search_results_row, misc_search_results_none, misc_search_results, misc_search_nextlink, misc_lostpw, misc_online_row_admin, misc_online_row, misc_online_admin, misc_online, misc_mlist_row_site, misc_mlist_row, misc_mlist, misc_emailuser, misc_report, whoseonline_admin, whoseonline_super_moderator, whoseonline_moderator, whoseonline_member';
32
require('./header.php');
33
34
$action = preg_replace('`[^[:alnum:]]`', '', $action);
35
if(file_exists('./modules/misc_' . $action . '.inc.php')) {
36
        include('./modules/misc_' . $action . '.inc.php');
37
} else {
38
        message($lang['errorinvalidcmd'], true, false);
39
        exit;
40
}
41
42
$timing->chrono($now);
43
$endtime = $timing->getchrono($now);
44
$totaltime = $endtime[2];
45
46
eval("\$footer = \"".template("footer")."\";");
47
echo $footer;