source: trunk/includes/html.php @ 143

Revision 143, 1.2 KB checked in by cirrus, 6 years ago (diff)

Change: $root_path variable was changed to a constant due to possible security issues.

Line 
1<?php
2/*
3 * WiND - Wireless Nodes Database
4 *
5 * Copyright (C) 2005 Nikolaos Nikalexis <winner@cube.gr>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; version 2 dated June, 1991.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19 *
20 */
21
22include_once(ROOT_PATH."includes/head.php");
23include_once(ROOT_PATH."includes/body.php");
24
25class html {
26       
27        var $tpl;
28        var $head;
29        var $body;
30       
31        function html() {
32                $this->head = new head;
33                $this->body = new body;         
34        }
35       
36        function output() {
37                $this->tpl['head'] = $this->head->output();
38                $this->tpl['body'] = $this->body->output();
39                $this->tpl['body_tags'] = $this->body->tags;
40                $ret = template($this->tpl, __FILE__);
41                return $ret;
42        }
43       
44}
45
46?>
Note: See TracBrowser for help on using the repository browser.