source: trunk/includes/main_header.php @ 187

Revision 187, 1.1 KB checked in by Ernest0x, 3 years ago (diff)

PHP 5.x fixes (mostly fixes for warnings and notices)

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
22class header {
23       
24        var $hide=FALSE;
25        var $tpl;
26               
27        function header() {
28        }
29       
30       
31        function output() {
32                if ($this->hide) return;
33                if (file_exists(ROOT_PATH.'config/mylogo.png')) {
34                        $this->tpl['mylogo'] = TRUE;
35                        $this->tpl['mylogo_dir'] = ROOT_PATH.'config/';
36                }
37                return template($this->tpl, __FILE__);
38        }
39       
40}
41
42?>
Note: See TracBrowser for help on using the repository browser.