summaryrefslogtreecommitdiffstats
path: root/projectroot/var
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2015-06-11 12:18:01 +0200
committerMarc Kleine-Budde <mkl@pengutronix.de>2015-06-18 16:22:13 +0200
commit28db1773524eb763569939d4066e32dbf50c69a0 (patch)
tree964e2f4165b48179d7ac39ac8d472788d60f99f0 /projectroot/var
parent878707bd943a04fc8e3a55a151499359e81ce780 (diff)
downloadptxdist-28db1773524eb763569939d4066e32dbf50c69a0.tar.gz
ptxdist-28db1773524eb763569939d4066e32dbf50c69a0.tar.xz
generic: rename generic -> projectroot
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'projectroot/var')
-rw-r--r--projectroot/var/lib/connman/settings6
-rw-r--r--projectroot/var/www/bottles.php58
-rw-r--r--projectroot/var/www/httpd.html10
-rw-r--r--projectroot/var/www/index.html19
-rw-r--r--projectroot/var/www/lighttpd.html23
-rw-r--r--projectroot/var/www/more_bottles.php211
-rw-r--r--projectroot/var/www/thttpd.html15
7 files changed, 342 insertions, 0 deletions
diff --git a/projectroot/var/lib/connman/settings b/projectroot/var/lib/connman/settings
new file mode 100644
index 000000000..d2ab56334
--- /dev/null
+++ b/projectroot/var/lib/connman/settings
@@ -0,0 +1,6 @@
+[global]
+OfflineMode=false
+
+[Wired]
+Enable=true
+
diff --git a/projectroot/var/www/bottles.php b/projectroot/var/www/bottles.php
new file mode 100644
index 000000000..363e52c43
--- /dev/null
+++ b/projectroot/var/www/bottles.php
@@ -0,0 +1,58 @@
+<?php
+
+/*
+Date: 05/17/05
+Author: Kenneth Clark
+URL: n/a
+
+this is from http://99-bottles-of-beer.net/language-php5-659.html
+*/
+
+class SingBeerWallSong{
+ private $noBeers;
+ private $output;
+ private $outputType;
+ public function __construct($noBeers, $type){
+ $this->noBeers = $noBeers;
+ $this->type = $type;
+
+ }
+
+ public function singSong(){
+ for ($i = $this->noBeers; $i > 0; $i--){
+ if ($i == 1) {
+ $bottle = "bottle";
+ }else{
+ $bottle = "bottles";
+ }
+ $this->output .= $i . " ".$bottle." of beer on the wall \n";
+ $this->output .= $i . " ".$bottle." of beer \n";
+ $this->output .= "And if 1 bottle of beer should fall,\n";
+ if ($this->minusOne($i) == 1) {
+ $bottle = "bottle";
+ }else{
+ $bottle = "bottles";
+ }
+ $this->output .= "There will be " . $this->minusOne($i) . " " . $bottle . " of beer on the wall \n\n";
+ }
+ if (strtolower($this->type) == "html") {
+ $this->addBreak();
+ }
+ }
+
+ private function addBreak(){
+ $this->output = str_replace("\n","<br>",$this->output);
+ }
+ private function minusOne($int){
+ return $int - 1;
+ }
+ public function getOutput(){
+ return $this->output;
+ }
+}
+
+$oBeer = new SingBeerWallSong(99,"html");
+$oBeer->singSong();
+echo $oBeer->getOutput();
+
+?>
diff --git a/projectroot/var/www/httpd.html b/projectroot/var/www/httpd.html
new file mode 100644
index 000000000..da6d138c0
--- /dev/null
+++ b/projectroot/var/www/httpd.html
@@ -0,0 +1,10 @@
+<HTML>
+<HEAD><TITLE>Some httpd is running</TITLE></HEAD>
+
+<H3>Some httpd is running</H3>
+
+<P>
+Looks like you got it working. Congrats. \o/
+
+</BODY>
+</HTML>
diff --git a/projectroot/var/www/index.html b/projectroot/var/www/index.html
new file mode 100644
index 000000000..8635c9ac1
--- /dev/null
+++ b/projectroot/var/www/index.html
@@ -0,0 +1,19 @@
+<html>
+<!-- This file is used when no other html documents are selected -->
+<head>
+ <title>This is a small demo file to show http server is up and
+running</title>
+</head>
+
+<body>
+<p>
+<center><font size=+10>This is your target system.<br>Apache is up and
+running</font></center>
+</p>
+<p>
+<center><font size=+5>Here you can test the cgi ability of apache:<br>
+<a href="/cgi-bin/test-cgi"><font size=+5>Apache Demo
+Test-CGI-Program</font></a></center>
+</p>
+</body>
+</html>
diff --git a/projectroot/var/www/lighttpd.html b/projectroot/var/www/lighttpd.html
new file mode 100644
index 000000000..1b53ddb3e
--- /dev/null
+++ b/projectroot/var/www/lighttpd.html
@@ -0,0 +1,23 @@
+<html>
+<head>
+ <title>This is a small demo file to show http server is up and running</title>
+</head>
+
+<body>
+ <p>
+ <center>
+ <font size=+1>
+ This is your target system.<br>lighttpd is up and running
+ </font>
+ </center>
+ </p>
+
+ <p>
+ <center>
+ Here you can test the fastcgi ability of lighttpd:<br>
+ <a href="bottles.php">A Test-CGI-Program</a><br>
+ <a href="more_bottles.php">Another Test-CGI-Program</a>
+ </center>
+ </p>
+</body>
+</html>
diff --git a/projectroot/var/www/more_bottles.php b/projectroot/var/www/more_bottles.php
new file mode 100644
index 000000000..d0d94e89b
--- /dev/null
+++ b/projectroot/var/www/more_bottles.php
@@ -0,0 +1,211 @@
+<?php
+
+/*
+Date: 08/07/05
+Author: caminoix
+URL: http://p2p.info.pl
+
+this is from http://99-bottles-of-beer.net/language-php4-825.html
+*/
+
+/*
+This script generates a series of HTML tables with cells in different colours. It is an utterly useless way to generate images on-the-fly.
+
+It shows how comfortable PHP can be compared to raw HTML. This script is 5KB long compared to over 14MB (!) of HTML output.
+
+If you like this script, I would be most grateful if you could visit http://p2p.info.pl/eng/index.php and click a Google ad ;)
+*/
+
+$letter["a"]=array(array(0,1,1,1,0),
+ array(1,0,0,0,1),
+ array(1,0,0,0,1),
+ array(1,1,1,1,1),
+ array(1,0,0,0,1));
+$letter["b"]=array(array(1,1,1,1,0),
+ array(1,0,0,0,1),
+ array(1,1,1,1,0),
+ array(1,0,0,0,1),
+ array(1,1,1,1,0));
+$letter["d"]=array(array(1,1,1,1,0),
+ array(1,0,0,0,1),
+ array(1,0,0,0,1),
+ array(1,0,0,0,1),
+ array(1,1,1,1,0));
+$letter["e"]=array(array(1,1,1,1,1),
+ array(1,0,0,0,0),
+ array(1,1,1,1,0),
+ array(1,0,0,0,0),
+ array(1,1,1,1,1));
+$letter["f"]=array(array(1,1,1,1,1),
+ array(1,0,0,0,0),
+ array(1,1,1,1,0),
+ array(1,0,0,0,0),
+ array(1,0,0,0,0));
+$letter["g"]=array(array(0,1,1,1,1),
+ array(1,0,0,0,0),
+ array(1,0,1,1,1),
+ array(1,0,0,0,1),
+ array(0,1,1,1,0));
+$letter["h"]=array(array(1,0,0,0,1),
+ array(1,0,0,0,1),
+ array(1,1,1,1,1),
+ array(1,0,0,0,1),
+ array(1,0,0,0,1));
+$letter["i"]=array(array(0,1,1,1,0),
+ array(0,0,1,0,0),
+ array(0,0,1,0,0),
+ array(0,0,1,0,0),
+ array(0,1,1,1,0));
+$letter["k"]=array(array(1,0,0,0,1),
+ array(1,0,0,1,0),
+ array(1,1,1,0,0),
+ array(1,0,0,1,0),
+ array(1,0,0,0,1));
+$letter["l"]=array(array(1,0,0,0,0),
+ array(1,0,0,0,0),
+ array(1,0,0,0,0),
+ array(1,0,0,0,0),
+ array(1,1,1,1,1));
+$letter["m"]=array(array(1,0,0,0,1),
+ array(1,1,0,1,1),
+ array(1,0,1,0,1),
+ array(1,0,0,0,1),
+ array(1,0,0,0,1));
+$letter["n"]=array(array(1,0,0,0,1),
+ array(1,1,0,0,1),
+ array(1,0,1,0,1),
+ array(1,0,0,1,1),
+ array(1,0,0,0,1));
+$letter["o"]=array(array(0,1,1,1,0),
+ array(1,0,0,0,1),
+ array(1,0,0,0,1),
+ array(1,0,0,0,1),
+ array(0,1,1,1,0));
+$letter["p"]=array(array(1,1,1,1,0),
+ array(1,0,0,0,1),
+ array(1,0,0,0,1),
+ array(1,1,1,1,0),
+ array(1,0,0,0,0));
+$letter["r"]=array(array(1,1,1,1,0),
+ array(1,0,0,0,1),
+ array(1,0,0,0,1),
+ array(1,1,1,1,0),
+ array(1,0,0,0,1));
+$letter["s"]=array(array(0,1,1,1,1),
+ array(1,0,0,0,0),
+ array(0,1,1,1,0),
+ array(0,0,0,0,1),
+ array(1,1,1,1,0));
+$letter["t"]=array(array(1,1,1,1,1),
+ array(0,0,1,0,0),
+ array(0,0,1,0,0),
+ array(0,0,1,0,0),
+ array(0,0,1,0,0));
+$letter["u"]=array(array(1,0,0,0,1),
+ array(1,0,0,0,1),
+ array(1,0,0,0,1),
+ array(1,0,0,0,1),
+ array(0,1,1,1,0));
+$letter["w"]=array(array(1,0,0,0,1),
+ array(1,0,0,0,1),
+ array(1,0,1,0,1),
+ array(1,1,0,1,1),
+ array(1,0,0,0,1));
+$letter["y"]=array(array(1,0,0,0,1),
+ array(0,1,0,1,0),
+ array(0,0,1,0,0),
+ array(0,0,1,0,0),
+ array(0,0,1,0,0));
+$letter["0"]=array(array(0,0,1,0,0),
+ array(0,1,0,1,0),
+ array(0,1,0,1,0),
+ array(0,1,0,1,0),
+ array(0,0,1,0,0));
+$letter["1"]=array(array(0,0,1,0,0),
+ array(0,1,1,0,0),
+ array(0,0,1,0,0),
+ array(0,0,1,0,0),
+ array(0,0,1,0,0));
+$letter["2"]=array(array(0,1,1,1,0),
+ array(1,0,0,1,1),
+ array(0,0,1,0,0),
+ array(0,1,0,0,0),
+ array(1,1,1,1,1));
+$letter["3"]=array(array(1,1,1,1,0),
+ array(0,0,0,0,1),
+ array(0,1,1,1,0),
+ array(0,0,0,0,1),
+ array(1,1,1,1,0));
+$letter["4"]=array(array(1,0,0,0,1),
+ array(1,0,0,0,1),
+ array(1,0,0,0,1),
+ array(1,1,1,1,1),
+ array(0,0,0,0,1));
+$letter["5"]=array(array(1,1,1,1,1),
+ array(1,0,0,0,0),
+ array(1,1,1,1,0),
+ array(0,0,0,0,1),
+ array(1,1,1,1,0));
+$letter["6"]=array(array(0,1,1,1,1),
+ array(1,0,0,0,0),
+ array(1,1,1,1,0),
+ array(1,0,0,0,1),
+ array(0,1,1,1,0));
+$letter["7"]=array(array(1,1,1,1,1),
+ array(0,0,0,1,0),
+ array(0,0,1,0,0),
+ array(0,1,0,0,0),
+ array(1,0,0,0,0));
+$letter["8"]=array(array(0,1,1,1,0),
+ array(1,0,0,0,1),
+ array(0,1,1,1,0),
+ array(1,0,0,0,1),
+ array(0,1,1,1,0));
+$letter["9"]=array(array(0,1,1,1,0),
+ array(1,0,0,0,1),
+ array(0,1,1,1,1),
+ array(0,0,0,0,1),
+ array(0,1,1,1,0));
+$letter[","]=array(array(0,0,0,0,0),
+ array(0,0,0,0,0),
+ array(0,0,0,0,0),
+ array(0,1,0,0,0),
+ array(1,0,0,0,0));
+$letter["."]=array(array(0,0,0,0,0),
+ array(0,0,0,0,0),
+ array(0,0,0,0,0),
+ array(1,1,0,0,0),
+ array(1,1,0,0,0));
+
+function one_line($what_in_it){
+ global $letter;
+ echo "<table cellspacing=\"0\">";
+ for ($y=0; $y<5; $y++){
+ echo "<tr>";
+ for ($i=0; $i<strlen($what_in_it); $i++){
+ for ($x=0; $x<5; $x++){
+ if ($letter[$what_in_it[$i]][$y][$x]==1)
+ $colour="#000000";
+ else
+ $colour="#ffffff";
+ echo "<td style=\"background-color:$colour\">";
+ echo "</td>";
+ }
+ echo "<td style=\"background-color:#ffffff\"></td>";
+ }
+ echo "</tr>";
+ }
+ echo "<tr><td></td></tr>";
+ echo "</table>";
+}
+
+for ($i=99; $i>0; $i--){
+ $i==1 ? $s="" : $s="s";
+ $i==1 ? $no="no more" : $no=$i-1;
+ one_line("$i bottle$s of beer on the wall, $i bottle$s of beer.");
+ one_line("take one down and pass it around, $no bottles of beer on the wall.");
+ one_line(" ");
+}
+one_line("no more bottles of beer on the wall, no more bottles of beer.");
+one_line("go to the store and buy some more, 99 bottles of beer on the wall.");
+?>
diff --git a/projectroot/var/www/thttpd.html b/projectroot/var/www/thttpd.html
new file mode 100644
index 000000000..28823a614
--- /dev/null
+++ b/projectroot/var/www/thttpd.html
@@ -0,0 +1,15 @@
+<!-- This is a small demo to show thttpd is running on your system -->
+<HTML>
+<HEAD><TITLE>thttpd is running</TITLE></HEAD>
+<BODY BGCOLOR="#99cc99" TEXT="#000000" LINK="#2020ff" VLINK="#4040cc">
+
+<H3>thttpd is running</H3>
+
+<P>
+Looks like you got it working. Congrats.
+
+<P>
+Here's a link to the <A HREF="http://www.acme.com/software/thttpd/">thttpd web pages</A>.
+
+</BODY>
+</HTML>