forked from SimonT-STHS/STHS-DynamicWebsite-Production
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMemoryTest.php
More file actions
34 lines (27 loc) · 821 Bytes
/
MemoryTest.php
File metadata and controls
34 lines (27 loc) · 821 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php include "Header.php";
$Title = (string)"";
If (file_exists($DatabaseFile) == false){
$LeagueName = $DatabaseNotFound;
}else{try{
$LeagueName = (string)"";
$db = new SQLite3($DatabaseFile);
$Query = "Select Name FROM LeagueGeneral";
$LeagueGeneral = $db->querySingle($Query,true);
$LeagueName = $LeagueGeneral['Name'];
} catch (Exception $e) {
STHSError:
$LeagueName = $DatabaseNotFound;
}}
echo "<title>" . $LeagueName . " - Blank Page</title>";
?>
</head><body>
<?php include "Menu.php";?>
<h1>Blank Page Title</h1>
<div style="width:99%;margin:auto;">
Blank Page Content<br /><br />P.S. Don't forget to change title.
</div>
<?php
echo "HTTP_HOST [{$_SERVER['HTTP_HOST']}]<br>";
echo "SERVER_NAME [{$_SERVER['SERVER_NAME']}]";
?>
<?php include "Footer.php";?>