fixed PHP notice
This commit is contained in:
parent
c84ec4fa93
commit
bf8ec949f5
|
@ -142,7 +142,13 @@ function LAMVersion() {
|
||||||
* @param string $page the URL of the target page
|
* @param string $page the URL of the target page
|
||||||
*/
|
*/
|
||||||
function metaRefresh($page) {
|
function metaRefresh($page) {
|
||||||
|
if (isset($_SESSION['header'])) {
|
||||||
echo $_SESSION['header'];
|
echo $_SESSION['header'];
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">';
|
||||||
|
echo "<html><head>\n";
|
||||||
|
}
|
||||||
echo "<meta http-equiv=\"refresh\" content=\"0; URL=" . $page . "\">\n";
|
echo "<meta http-equiv=\"refresh\" content=\"0; URL=" . $page . "\">\n";
|
||||||
echo "<title></title>\n";
|
echo "<title></title>\n";
|
||||||
echo "</head>\n";
|
echo "</head>\n";
|
||||||
|
|
|
@ -126,7 +126,7 @@ $cssDirName = dirname(__FILE__) . '/../../style';
|
||||||
$cssDir = dir($cssDirName);
|
$cssDir = dir($cssDirName);
|
||||||
while ($cssEntry = $cssDir->read()) {
|
while ($cssEntry = $cssDir->read()) {
|
||||||
if (substr($cssEntry, strlen($cssEntry) - 4, 4) != '.css') continue;
|
if (substr($cssEntry, strlen($cssEntry) - 4, 4) != '.css') continue;
|
||||||
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"" . $headerPrefix . "../../style/" . $cssEntry . "\">\n";
|
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/" . $cssEntry . "\">\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "<link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"../../graphics/favicon.ico\">\n";
|
echo "<link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"../../graphics/favicon.ico\">\n";
|
||||||
|
|
|
@ -101,7 +101,7 @@ $cssDirName = dirname(__FILE__) . '/../../style';
|
||||||
$cssDir = dir($cssDirName);
|
$cssDir = dir($cssDirName);
|
||||||
while ($cssEntry = $cssDir->read()) {
|
while ($cssEntry = $cssDir->read()) {
|
||||||
if (substr($cssEntry, strlen($cssEntry) - 4, 4) != '.css') continue;
|
if (substr($cssEntry, strlen($cssEntry) - 4, 4) != '.css') continue;
|
||||||
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"" . $headerPrefix . "../../style/" . $cssEntry . "\">\n";
|
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/" . $cssEntry . "\">\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "<link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"../../graphics/favicon.ico\">\n";
|
echo "<link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"../../graphics/favicon.ico\">\n";
|
||||||
|
|
|
@ -119,7 +119,7 @@ $cssDirName = dirname(__FILE__) . '/../../style';
|
||||||
$cssDir = dir($cssDirName);
|
$cssDir = dir($cssDirName);
|
||||||
while ($cssEntry = $cssDir->read()) {
|
while ($cssEntry = $cssDir->read()) {
|
||||||
if (substr($cssEntry, strlen($cssEntry) - 4, 4) != '.css') continue;
|
if (substr($cssEntry, strlen($cssEntry) - 4, 4) != '.css') continue;
|
||||||
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"" . $headerPrefix . "../../style/" . $cssEntry . "\">\n";
|
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/" . $cssEntry . "\">\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "<link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"../../graphics/favicon.ico\">\n";
|
echo "<link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"../../graphics/favicon.ico\">\n";
|
||||||
|
|
|
@ -100,7 +100,7 @@ $cssDirName = dirname(__FILE__) . '/../../style';
|
||||||
$cssDir = dir($cssDirName);
|
$cssDir = dir($cssDirName);
|
||||||
while ($cssEntry = $cssDir->read()) {
|
while ($cssEntry = $cssDir->read()) {
|
||||||
if (substr($cssEntry, strlen($cssEntry) - 4, 4) != '.css') continue;
|
if (substr($cssEntry, strlen($cssEntry) - 4, 4) != '.css') continue;
|
||||||
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"" . $headerPrefix . "../../style/" . $cssEntry . "\">\n";
|
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/" . $cssEntry . "\">\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "<link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"../../graphics/favicon.ico\">\n";
|
echo "<link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"../../graphics/favicon.ico\">\n";
|
||||||
|
|
Loading…
Reference in New Issue