-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patheditor.php
More file actions
65 lines (59 loc) · 1.98 KB
/
editor.php
File metadata and controls
65 lines (59 loc) · 1.98 KB
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
<?php
require 'poof.php';
if (!empty($_GET['file'])) {
$file=$_GET['file'];
echo uiPage("Code Editor - $file")->Add(
uiContainer()->Add(
uiHeader("Code Editor - $file")
),
uiContainer()->Add(
uiForm()->Add(
uiCodeMirror(file_get_contents($file))
)
)
);
return;
}
$navs=array();
foreach (arDir() as $file)
$navs[$file]="editor.php?file=$file";
echo uiPage("Code Editor - File List")->Add(
uiContainer()->Add(
uiHeader("Code Editor")
),
uiNavbar()->Add(
uiNavlist($navs)
),
uiContainer()->Add(
uiDebug()
)
);
return;
echo uiPage("Code Editor")->Add(
uiContainer("navbar")->Add(
uiContainer("navbar-inner")->background("#fed")->Add(
uiImage("img/poof.png","index.php")->AddClass("nav"),
uiNavList($navmenu)->AddClass("pull-right")
)
),
uiContainer()->Add(
uiHero()->background("#efd")->Add(
uiCarousel($carousel)->AddClass("pull-right"),
uiHeader("Hello, World!"),
uiParagraph("This is a demostration of")->Add(
uiTooltip("Programmatic Object-oriented Orthogonal Framework")->Add(
"POOF"
)
),
uiDropdown("Download Code")->AddClass("btn")->Add(
uiLink("http://github.com/stgnet/poof","GitHub"),
//uiLink("http://somewhere","Download")
uiTooltip("Not currently available")->Add("Download")
)
)
),
uiContainer()->Add(
uiHeader(3,"The PHP code that generated this page:"),
uiPre(file_get_contents($_SERVER['SCRIPT_FILENAME']))->AddClass("pre-scrollable")
)
);