-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
49 lines (42 loc) · 1.19 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
41
42
43
44
45
46
47
48
49
<?php
class plugin{
static $STEP_INITIAL = 0;
static $STEP_HEAD = 1;
static $STEP_BODY_MENU = 2;
static $STEP_BODY_CONTENT = 3;
static $STEP_BODY_FOOTER = 4;
public function execute($step)
{
switch($step)
{
case $STEP_INITIAL:
break;
case $STEP_HEAD:
break;
case $STEP_BODY_MENU:
break;
case $STEP_BODY_CONTENT:
break;
case $STEP_BODY_FOOTER:
break;
}
}
}
class webpage{
private $data;
private $custom_menu;
public function __construct($name)
{
$this->$data = file_get_contents("raw/page-content/" . $name . '.html');
}
public function loadContent()
{
$pattern = "/<section class='content'>(.*?)<\/section>/";
preg_match_all($pattern, $string, $matches);
echo($matches[0]);
}
}
include_once 'plugin_loader.php';
$pagenme = 'index';
$display = new webpage($pagenme);
?>