-
Notifications
You must be signed in to change notification settings - Fork 2
/
moloch.php
104 lines (92 loc) · 3.46 KB
/
moloch.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<?php
declare(strict_types=1);
/**
* This file is part of the VitexSoftware package
*
* https://vitexsoftware.com/
*
* (c) Vítězslav Dvořák <http://vitexsoftware.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
require_once 'includes/VSInit.php';
$oPage->addItem(new \VSCZ\ui\PageTop(_('Fakturační systém Moloch')));
// $oPage->AddItem('<a href="https://github.com/Vitexus/EaseFramework" class="ribbon bg-teal">Forkni na GitHubu</a>');
/*
$oPage->column2->addItem('<h4>Poslední změna:</h4>');
$oPage->column2->addItem(file('molochlastmsg.txt'));
$oPage->column2->addItem('<hr>');
*/
$container = new \Ease\TWB5\Container();
$infopanel = $container->addItem(new \Ease\TWB5\Panel(new \Ease\Html\H2Tag('Moloch')));
$prehled = $infopanel->addItem(new \Ease\Html\UlTag());
$prehled->addItemSmart('byl vyvíjen od roku 2000 jako intranetový IS společnosti <a href="http://arachne.cz/">Arachne Labs</a>. ');
$prehled->addItemSmart('Současná verze je kompletní přepis do aktuálních technologií roku 2014. ');
$infopanel->addItem(new \Ease\Html\ImgTag(
'img/moloch-main2015.png',
'Moloch',
null,
null,
['class' => 'img-responsive img-rounded'],
));
// //$oPage->column3->addItem('<div style="background-color: #CAAAAA; margin: 2px; padding: 5px;">Zdrojové kody EaseFrameworku<br>');
//
// $dwDir = "/var/www/download/";
// $d = dir($dwDir);
// $downloads = [];
// while (false !== ($entry = $d->read())) {
// if ($entry[0] == '.') {
// continue;
// }
// $downloads[$entry] = VSWebPage::_format_bytes(filesize($dwDir.$entry));
// }
// $d->close();
// ksort($downloads);
// $package = [];
// foreach ($downloads as $file => $size) {
// if (strstr($file, 'moloch_')) {
// $package = [$file => $size];
// }
// }
//
// //echo '<pre>'; print_r($Downloads); echo '</pre>';
//
// $row = $container->addItem(new \Ease\TWB5\Row);
//
//
// $install = new \Ease\TWB5\Card(new \Ease\Html\H3Tag(_('Ke stažení')));
//
// $install->addItem(new VSDownloadButton($package));
//
//
// $install->addItem('<hr><h4>Instalace zdroje</h4>');
//
// $install->addItem('<li><code>wget -O - http://v.s.cz/[email protected]|sudo apt-key add -</code></li>');
// $install->addItem('<li><code>echo deb http://v.s.cz/ stable main > /etc/apt/sources.list.d/ease.list </code></li>');
// $install->addItem('<li><code>aptitude update</code></li>');
// $install->addItem('<li><code>aptitude install moloch</code></li>');
//
// $install->addItem('<hr><a href="http://debian.org/"><img style="width: 60px;" title="Debian Linux" src="img/debian.png"></a>');
// $install->addItem('<a href="http://ubuntu.com/"><img style="width: 60px;" title="Ubuntu Linux" src="img/ubuntulogo.png"></a><p></p>');
//
//
// $row->addItem(new \Ease\TWB5\Col(6, $install));
//
// $loginFace = new \Ease\Html\DivTag('LoginFace');
//
// //$loginForm = new loginbox('/moloch/login.php', 'login', 'heslo');
//
// $loginFrame = new \Ease\Html\Div('<span class="label label-danger">'._('testovací provoz').'</span>',
// ['class' => 'alert alert-warning']);
//
// $loginFrame->addItem(new \Ease\Html\DivTag('WelcomeHint',
// _('Zadejte, prosím, Vaše přihlašovací údaje:')));
//
// //$loginFrame->addItem($loginForm);
//
// $row->addItem(new \Ease\TWB5\Col(6, new \Ease\TWB5\Card($loginFrame)));
//
// $oPage->addItem($container);
$oPage->addItem(new \VSCZ\ui\PageBottom());
$oPage->draw();