-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.php
140 lines (120 loc) · 4.29 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
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<?php // needs 'www ALL=NOPASSWD: /path/to/helper' in /etc/sudoers
include "download.php";
$static = "http://mirror1.slitaz.org/static/";
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Tiny SliTaz - Builder</title>
<meta name="description" content="Tiny SliTaz Linux">
<meta name="keywords" lang="en" content="tiny slitaz, uclibc, tcc">
<meta name="robots" content="index, follow, all">
<meta name="revisit-after" content="7 days">
<meta name="expires" content="never">
<meta name="modified" content="<?php echo (date( "Y-m-d H:i:s", getlastmod())); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="SliTaz Contributors">
<meta name="publisher" content="www.slitaz.org">
<link rel="shortcut icon" href="favicon.ico">
<link rel="stylesheet" href="slitaz.min.css">
<link rel="stylesheet" href="tiny.css">
<style>pre, tt, code { font-size: 0.9rem; }</style>
</head>
<body>
<script>de=document.documentElement;de.className+=(("ontouchstart" in de)?' touch':' no-touch');</script>
<header>
<h1 id="top"><a href="http://tiny.slitaz.org/">Tiny SliTaz</a></h1>
<div class="network">
<a href="http://www.slitaz.org/" class="home"></a>
<!-- Get static files from Mirror Files vhost -->
<!-- <img src="http://mf.slitaz.org/images/people.png" alt="[ Group ]" /> -->
Tiny:
<!-- a href="http://scn.slitaz.org/groups/tiny">Group</a -->
<a href="http://forum.slitaz.org/forum/tiny">Forum</a>
Screenshots:
<a href="tinyslitaz.png" title="Tiny SliTaz Manager">main</a>
<a href="tinyslitaz-boot.png" title="Tiny SliTaz Manager: boot.log">boot log</a>
<a href="tinyslitaz-httpinfo.png" title="Tiny SliTaz Manager: httpd info">httpd info</a>
</div>
</header>
<!-- Content -->
<main>
<?php if (!empty($error)) echo "
<div class=\"nav_box\">
<h4>Error:</h4>
<p>$error</p>
</div>
"; ?>
<h2>Build your configuration from binary packages</h2>
<?php
proc_nice(10);
include "step1.php";
include "step2.php";
include "step3.php";
include "step4.php";
include "step5.php";
?>
<h3>Tiny SliTaz goals</h3>
<p>Useful software, expansible, easy to configure, runs fully in RAM, simple,
light and fast for minimum hardware resources, i.e. fits on one floppy disk (IDE
disk optional), runs on a 386SX processor and needs as little memory as possible
(currently 4MB with a 2.6.14 Kernel).
<a href="http://doc.slitaz.org/en:guides:pxe#why-use-pxe-the-vnc-example">Example</a>
</p>
<h3>Why this builder?</h3>
<p>Tiny SliTaz should be as small as possible. Only the necessary software is
kept. The package manager is run using this website.</p>
<h3>How is it built?</h3>
<p>The initramfs is based on <a href="http://uclibc.org/"
title="Instead of glibc">uClibc</a> and busybox with its <a
href="dist/busybox.config.txt">config</a> files and this <a
href="http://hg.slitaz.org/wok-tiny/file/tip/base-tiny/stuff">filesystem tree</a>.
The selected packages, modules and configuration files are stored in this
initramfs.
</p>
<!-- End of content -->
</main>
<script>
function QRCodePNG(str, obj) {
try {
obj.height = obj.width += 300;
return QRCode.generatePNG(str, {ecclevel: 'H'});
}
catch (any) {
var element = document.createElement("script");
element.src = "qrcode.min.js";
element.type = "text/javascript";
element.onload = function() {
obj.src = QRCode.generatePNG(str, {ecclevel: 'H'});
};
document.body.appendChild(element);
}
}
</script>
<footer>
<div>
Copyright © <?php echo date ('Y') ?> <a href="http://www.slitaz.org/">SliTaz</a>
</div>
<div>
Network:
<a href="http://scn.slitaz.org/">Community</a> ·
<a href="http://doc.slitaz.org/">Doc</a> ·
<a href="http://forum.slitaz.org/">Forum</a> ·
<a href="http://pkgs.slitaz.org/">Packages</a> ·
<a href="http://bugs.slitaz.org">Bugs</a> ·
<a href="http://hg.slitaz.org/?sort=lastchange">Hg</a>
</div>
<div>
SliTaz @
<a href="http://twitter.com/slitaz">Twitter</a> ·
<a href="http://www.facebook.com/slitaz">Facebook</a> ·
<a href="http://distrowatch.com/slitaz">Distrowatch</a> ·
<a href="http://en.wikipedia.org/wiki/SliTaz">Wikipedia</a> ·
<a href="http://flattr.com/profile/slitaz">Flattr</a>
</div>
<img src="qr.png" alt="#" onmouseover="this.title = location.href"
onclick="this.src = QRCodePNG(location.href, this)"/>
</footer>
</body>
</html>