| [d7e6e9c] | 1 | <?php
|
|---|
| 2 | /*
|
|---|
| 3 | Copyright (C) 2016 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
|
|---|
| 4 |
|
|---|
| 5 | This program is free software: you can redistribute it and/or modify
|
|---|
| 6 | it under the terms of the GNU General Public License as published by
|
|---|
| 7 | the Free Software Foundation, either version 3 of the License, or
|
|---|
| 8 | (at your option) any later version.
|
|---|
| 9 |
|
|---|
| 10 | This program is distributed in the hope that it will be useful,
|
|---|
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|---|
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|---|
| 13 | GNU General Public License for more details.
|
|---|
| 14 |
|
|---|
| 15 | You should have received a copy of the GNU General Public License
|
|---|
| 16 | along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|---|
| 17 | */
|
|---|
| 18 |
|
|---|
| 19 | // error_reporting(E_WARNING & E_ERROR);
|
|---|
| 20 | error_reporting(E_ALL);
|
|---|
| 21 | ini_set('display_errors', true);
|
|---|
| 22 |
|
|---|
| 23 | if(!isset($headerStylesheetLinks)){
|
|---|
| 24 | $headerStylesheetLinks = Array();
|
|---|
| 25 | }
|
|---|
| 26 | if(!isset($headerJavascriptLinks)){
|
|---|
| 27 | $headerJavascriptLinks = Array();
|
|---|
| 28 | }
|
|---|
| 29 | if(!isset($headerTitle)){
|
|---|
| 30 | $headerTitle = "";
|
|---|
| 31 | }
|
|---|
| 32 | if(!isset($headerJavascript)){
|
|---|
| 33 | $headerJavascript = "";
|
|---|
| 34 | }
|
|---|
| 35 |
|
|---|
| 36 | ?>
|
|---|
| 37 | <!DOCTYPE HTML>
|
|---|
| 38 | <html>
|
|---|
| [5149714] | 39 | <head profile="http://www.w3.org/2005/10/profile">
|
|---|
| [d7e6e9c] | 40 | <meta charset="utf-8"/>
|
|---|
| [5149714] | 41 | <link rel="icon" type="image/png" href="resources/gnuboat-256-256-transparent.png"/>
|
|---|
| [d7e6e9c] | 42 | <title>GNUBoat <?php echo (empty($headerTitle)) ? "" : " - ". $headerTitle; ?></title>
|
|---|
| 43 | <link rel="stylesheet" href="css/main.css" type="text/css"/>
|
|---|
| 44 | <?php
|
|---|
| 45 | foreach ($headerStylesheetLinks as $cssFile){
|
|---|
| 46 | echo " <link rel=\"stylesheet\" content=\"text/css\" href=\"". $cssFile ."\"/>\n";
|
|---|
| 47 | }
|
|---|
| 48 | ?>
|
|---|
| 49 | <script language="javascript" src="javascript/jquery-2.2.4.min.js" type="text/javascript"></script>
|
|---|
| 50 | <script language="javascript" src="javascript/main.js" type="text/javascript"></script>
|
|---|
| 51 | <?php
|
|---|
| 52 | foreach ($headerJavascriptLinks as $headerJavascriptLinks){
|
|---|
| 53 | echo " <script language=\"javascript\" src=\"". $headerJavascriptLinks ."\" type=\"text/javascript\"></script>\n";
|
|---|
| 54 | }
|
|---|
| 55 | if(!empty($headerJavascript)){
|
|---|
| 56 | echo " <script language=\"javascript\" type=\"text/javascript\">". $headerJavascript ."</script>\n";
|
|---|
| 57 | }
|
|---|
| 58 | ?>
|
|---|
| 59 | </head>
|
|---|
| 60 | <body>
|
|---|