| 1 |
<!DOCTYPE html> |
| 2 |
<?php |
| 3 |
// Main configuration |
| 4 |
require_once('config/config.php'); |
| 5 |
|
| 6 |
// Include common modules |
| 7 |
require_once('inc/menu.php'); |
| 8 |
require_once('inc/plugins.php'); |
| 9 |
require_once('inc/files.php'); |
| 10 |
|
| 11 |
// Include configuration |
| 12 |
require_once('config/plugins.php'); |
| 13 |
sort_plugins(); |
| 14 |
|
| 15 |
require_once('config/menu.php'); |
| 16 |
require_once('config/youtube.php'); |
| 17 |
|
| 18 |
// Determine current page |
| 19 |
$PAGE = isset($argv[1]) ? $argv[1] : 'index'; |
| 20 |
$MENUITEM = find_menu_item($PAGE); |
| 21 |
if (!isset($MENUITEM)) |
| 22 |
$MENUITEM = array( |
| 23 |
'id' => 'index', |
| 24 |
'parent' => null, |
| 25 |
'text' => 'LSP Plugins Documentation', |
| 26 |
'root' => '', |
| 27 |
'path' => '', |
| 28 |
'file' => $PAGE |
| 29 |
); |
| 30 |
|
| 31 |
$DOCROOT = ((strlen($MENUITEM['root']) > 0) ? ($MENUITEM['root'] . '/') : ''); |
| 32 |
$HEADER = $MENUITEM['text']; |
| 33 |
$FILENAME = (isset($MENUITEM['file'])) ? $MENUITEM['file'] : $PAGE; |
| 34 |
$RES_ROOT = $DOCROOT; |
| 35 |
$DOC_BASE = '.'; |
| 36 |
?> |
| 37 |
|
| 38 |
<html> |
| 39 |
<head> |
| 40 |
<title>Linux Studio Plugins Project</title> |
| 41 |
|
| 42 |
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"> |
| 43 |
<link rel="shortcut icon" href="<?=$DOCROOT?>img/LSP_favicon.png"/> |
| 44 |
<link rel="stylesheet" href="<?= $DOCROOT ?>css/style.css" type="text/css"> |
| 45 |
</head> |
| 46 |
<body> |
| 47 |
<div class="lsp-content smooth"> |
| 48 |
<!-- Header --> |
| 49 |
<div id="header"> |
| 50 |
<div class="header-box"> |
| 51 |
</div> |
| 52 |
</div> |
| 53 |
|
| 54 |
<!-- Navigation top --> |
| 55 |
<div id="menu" class="smooth"> |
| 56 |
<?php require("./manuals/menu.php"); ?> |
| 57 |
</div> |
| 58 |
|
| 59 |
<!-- Main content --> |
| 60 |
<div id="main" class="main smooth"> |
| 61 |
<?php |
| 62 |
if ($MENUITEM['parent'] != 'plugins') |
| 63 |
echo '<h1>' . htmlspecialchars($HEADER) . '</h1>'; |
| 64 |
require("./manuals/{$MENUITEM['path']}/{$FILENAME}.php"); |
| 65 |
?> |
| 66 |
</div> |
| 67 |
|
| 68 |
<!-- Footer --> |
| 69 |
<div id="footer"> |
| 70 |
<div style="padding:0 10px 10px 10px"> |
| 71 |
<p>© Linux Studio Plugins Project, 2015-2023</p> |
| 72 |
<p>All rights reserved</p> |
| 73 |
</div> |
| 74 |
</div> |
| 75 |
</div> |
| 76 |
</body> |
| 77 |
</html> |