forked from OneHourGameJam/OneHourGameJam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.php
38 lines (29 loc) · 1.12 KB
/
install.php
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
35
36
37
38
<?php
// error_reporting(E_ERROR);
$templateBasePath = "template/";
$dictionary = array();
include_once("php/global.php");
include_once("php/helpers.php");
include_once("php/dependencies.php");
include_once("php/models/SiteACtionModel.php");
include_once("php/models/UserModel.php");
include_once("php/models/AdminVoteModel.php");
include_once("php/models/FormModel.php");
include_once("php/viewmodels/FormViewModel.php");
include_once("php/presenters/FormPresenter.php");
include_once("php/install_page.php");
$dictionary['page'] = array(
"template_path" => $templateBasePath
);
RunInstallPage($dictionary);
$pageTemplateFile = $dictionary["template_file"];
$mustache->setPartials(Array(
"footer" => file_get_contents($templateBasePath."footer.mustache"),
"message" => file_get_contents($templateBasePath."message.mustache"),
"page" => file_get_contents($templateBasePath.$pageTemplateFile),
"css" => file_get_contents($templateBasePath."css/site.css")
));
$plugins = array();
$dictionary["forms"] = FormPresenter::RenderForms($plugins);
print $mustache->render(file_get_contents($templateBasePath."install.mustache"), $dictionary);
?>