-
Notifications
You must be signed in to change notification settings - Fork 6
/
more.php
35 lines (26 loc) · 809 Bytes
/
more.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
<?php
error_reporting(E_ALL);
ini_set("display_errors", 1);
include("application/lib/control.php");
include("application/lib/markdown.php");
include("application/lib/plugins/plugin-base.php");
include("application/lib/plugins/docs-base.php");
/*
plugin
*/
Control::config("plugin", $_GET['plugin']);
/*
configuration
*/
$serverRoot = $_SERVER['DOCUMENT_ROOT'] . '/more/' . Control::config("plugin") . "/";
Control::config("main_url", "http://mootools-website.local");
Control::config("webroot", '/more/' . Control::config("plugin"));
Control::config("serverroot", $serverRoot);
Control::config("controllers_folder", $serverRoot . "application/controllers");
Control::config("views_folder", $serverRoot . "application/views");
include($serverRoot . 'application/init.php');
/*
go
*/
new Control();
?>