/
index.php
40 lines (33 loc) · 1.08 KB
/
index.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
39
40
<?php
/**
** @Author: Guillermina Gonjon
** @Application_name: Contributions
** @version: 0.1 // -Alpha
** @email: ggonjon@gmail.com
** @file_name: index.php // Main interface
** @license: GPL
**/
require_once './initializer.inc.php';
$main_files = array(
CONFIG_DIRECTORY=>'configDb.class.php',
//STYLE_DIRECTORY=>'style.css',
);
require_once('./templates/GManonTemplate.class.php');
$style = file_get_contents('./templates/style/style.css');
$vars = array(
'PAGE_TITLE'=>'This is my title',
'STYLE'=>$style,
'TOP_MENU'=>'HOME | CONTACT | WE | WHATYOULIKE',
'USER_MENU'=>'ME | YO | WHATIAMALLOWED',
'PAGE_SEARCH'=>'Search Form goes here',
'MAIN_MENU'=>'Catalog | SeeThis | Continue here',
'CONTENT_PAGE'=>'The lines come here. This is the actual content.',
'FOOTER'=>'Get this at the foot of the page'
);
$gmtemplate = new GManonTemplate();
echo $gmtemplate->replaceVars($vars, "./templates/template.inc.php");
foreach($main_files as $directory=>$file)
{
check_file($directory,$file);
}
?>