phpBMS

root/trunk/phpbms/header.php

Revision 704, 2.0 KB (checked in by brieb, 2 years ago)
  • Fixed several SQL injection vulnerabilities
  • Fixed several XSS vulnerabilities due to PHP_SELF and REQUREST_URI
  • Fixed severa path disclosure errors
Line 
1<?php
2        if(!isset($pageTitle))
3            $pageTitle = APPLICATION_NAME;
4
5        if(!isset($phpbms))
6            exit();
7
8?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
9<html xmlns="http://www.w3.org/1999/xhtml">
10<head>
11<title><?php echo $pageTitle ?></title>
12<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
13<?php
14        $phpbms->cssIncludes = array_merge(array("base.css"),$phpbms->cssIncludes);
15        $phpbms->showCssIncludes();
16
17        $tempjsarray[] = "common/javascript/common.js";
18        $tempjsarray[] = "common/javascript/menu.js";
19        $tempjsarray[] = "include/jstransport.php";
20        $tempjsarray[] = "common/javascript/moo/prototype.lite.js";
21        $tempjsarray[] = "common/javascript/moo/moo.fx.js";
22        $tempjsarray[] = "common/javascript/moo/moo.fx.pack.js";
23
24        $phpbms->jsIncludes = array_merge($tempjsarray,$phpbms->jsIncludes);
25        $phpbms->showJsIncludes();
26
27        if(PERSISTENT_LOGIN && isset($_SESSION["userinfo"]["id"]))
28                $phpbms->topJS[]="setLoginRefresh();";
29
30        $phpbms->showExtraJs($phpbms->topJS);
31
32        if($phpbms->onload) {
33                ?><script language="JavaScript" type="text/javascript">
34                        connect(window,"onload",function() {
35                        <?php
36                                        foreach($phpbms->onload as $theextra)
37                                                echo $theextra."\n";
38                        ?>
39                        })
40                </script><?php
41        }//end if onload
42?>
43</head>
44<body>
45<?php
46
47if($phpbms->showMenu){
48        include("include/menu_class.php");
49
50        $topMenu = new topMenu($db);
51        $topMenu->display();
52
53        //See if the statusmessage is set
54        if (isset($statusmessage)) {?>
55        <div id="statusmessage">
56                <div id="SMLeft">
57                        <div id="SMText">
58                                <?php echo $statusmessage ?>
59                        </div>
60                </div>
61        </div><?php
62                $phpbms->bottomJS[]='var statusM=getObjectFromID("statusmessage");
63        var SMAni=new fx.Combo(statusM,{opacity:false,duration:500});
64        SMAni.hide();
65        statusM.style.display="block";
66        SMAni.toggle();';
67        } // end if
68
69        ?>
70        <noscript>
71                <div class="bodyline">
72                        <h1>JavaScript Disabled</h1>
73                        <p>phpBMS requires JavaScript to be enabled.</p>
74                </div>
75        </noscript><?php
76
77}//end if showMenu
78?>
Note: See TracBrowser for help on using the browser.
Scanned by Orvant Copyright © 2010 Kreotek, LLC. All Rights reserved.