Commit 671b33a2 authored by Ryan Wade's avatar Ryan Wade

added Site_Logo and Site_Title to Global Variables

slight modifications to html and example pages
parent 2525e69c
<?php
function getFile($location)
{
$myfile = fopen($location,"r");
return fread($myfile,filesize($location));
}
// ID PID Title Description Image Content
$pages = [[0,-1,"Home" , null , null ,"This is the homepage :)"],
[1, 0,"Page1" ,"Page 1 Description" , "./title.jpg" ,"This is page 1 html content"],
[2, 0,"Page2" ,"Page 2 Description" , "./title.jpg" ,"This is page 2 html content</br><button>Logon</button>"],
[3, 0,"Page3" ,"Page 3 Description" , "./title.jpg" ,"This is page 3 html content"],
[4, 0,"Page4" ,"Page 4 Description" , "./title.jpg" ,"This is page 4 html content"],
[5, 3,"Page5" , null , null ,"This is SUB page 5 html content"],
[6, 3,"Page6" , null , null ,"This is SUB page 6 html content"],
[7, 3,"Page7" , null , null ,"This is SUB page 7 html content"],
[8, 4,"Page8" , null , null ,"This is SUB SUB page 8 html content"]
$pages = [[0,-1,"Home" , null , null ,"This is the homepage :)"],
[1, 0,"Page1" ,"Page 1 Description" , "./title.jpg" ,"This is page 1 html content"],
[2, 0,"Page2" ,"Page 2 Description" , "./title.jpg" ,"This is page 2 html content</br><button>Logon</button>"],
[3, 0,"Page3" ,"Page 3 Description" , "./title.jpg" ,"This is page 3 html content"],
[4, 0,"Page4" ,"Page 4 Description" , "./title.jpg" ,"This is page 4 html content"],
[5, 3,"Page5" , null , null ,"This is SUB page 5 html content"],
[6, 3,"Page6" , null , null ,"This is SUB page 6 html content"],
[7, 3,"Page7" , null , null ,"This is SUB page 7 html content"],
[8, 6,"Page8" , null , null ,"This is SUB SUB page 8 html content"],
];
// Name Password (Hashed) AccessLevel
$_GLOBAL["SQL"] = $pages;
$_GLOBAL["Site_Title"] = "My Title";
$_GLOBAL["Site_Logo"] = "./logo.png";
if(isset($_GET["id"]))
$_GLOBAL["pageId"] = $_GET["id"];
else
......@@ -47,9 +53,14 @@
</head>
<body>
<div id="webpage" class="center">
<div id="navigation">
<?php
include "./header.php";
include "./nav.php";
?>
</div>
<div id="content">
<?php
include "./title.php";
include "./breadcrumb.php";
switch ($_GLOBAL["pageId"])
......@@ -61,6 +72,9 @@
include "./body.php";
break;
}
?>
</div>
<?php
include "./footer.php";
?>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment