From d6997febbdf6d424fcd0702e3324588387dc2cd9 Mon Sep 17 00:00:00 2001 From: moehm Date: Fri, 30 May 2014 11:04:28 +0200 Subject: rewrite --- www/.index.php.swp | Bin 12288 -> 0 bytes www/403.php | 8 --- www/404.jpg | Bin 54165 -> 0 bytes www/about.php | 56 ----------------- www/background.png | Bin 154 -> 0 bytes www/background2.png | Bin 156 -> 0 bytes www/dead_link.png | Bin 51119 -> 0 bytes www/error.php | 50 --------------- www/func.php | 39 ++++++++++++ www/header.php | 30 --------- www/include.php | 6 -- www/index.php | 80 ++++++++++++++++-------- www/loli.jpg | Bin 123865 -> 0 bytes www/loli.png | Bin 165204 -> 0 bytes www/loli_middle.jpg | Bin 109651 -> 0 bytes www/loli_small.jpg | Bin 102762 -> 0 bytes www/lolrndm.php | 45 -------------- www/piwik.js | 13 ---- www/piwik.php | 13 ---- www/print_index.php | 62 ------------------ www/puush.php | 35 ----------- www/static/ajax-loader.gif | Bin 0 -> 673 bytes www/static/alegreya_sans_sc.woff | Bin 0 -> 20792 bytes www/static/content.css | 131 +++++++++++++++++++++++++++++++++++++++ www/static/footer.php | 10 +++ www/static/header.html | 29 +++++++++ www/static/index.css | 4 ++ www/static/noscript.css | 25 ++++++++ www/static/noscript.html | 9 +++ www/static/piwik.html | 14 +++++ www/static/style.css | 105 +++++++++++++++++++++++++++++++ www/style.css | 30 --------- www/youtube.php | 44 +++---------- 33 files changed, 429 insertions(+), 409 deletions(-) delete mode 100644 www/.index.php.swp delete mode 100644 www/403.php delete mode 100644 www/404.jpg delete mode 100644 www/about.php delete mode 100644 www/background.png delete mode 100644 www/background2.png delete mode 100755 www/dead_link.png delete mode 100644 www/error.php create mode 100644 www/func.php delete mode 100644 www/header.php delete mode 100644 www/include.php delete mode 100644 www/loli.jpg delete mode 100644 www/loli.png delete mode 100644 www/loli_middle.jpg delete mode 100644 www/loli_small.jpg delete mode 100755 www/lolrndm.php delete mode 100644 www/piwik.js delete mode 100644 www/piwik.php delete mode 100644 www/print_index.php delete mode 100644 www/puush.php create mode 100644 www/static/ajax-loader.gif create mode 100755 www/static/alegreya_sans_sc.woff create mode 100644 www/static/content.css create mode 100755 www/static/footer.php create mode 100755 www/static/header.html create mode 100644 www/static/index.css create mode 100644 www/static/noscript.css create mode 100644 www/static/noscript.html create mode 100644 www/static/piwik.html create mode 100755 www/static/style.css delete mode 100644 www/style.css (limited to 'www') diff --git a/www/.index.php.swp b/www/.index.php.swp deleted file mode 100644 index 61c46e1..0000000 Binary files a/www/.index.php.swp and /dev/null differ diff --git a/www/403.php b/www/403.php deleted file mode 100644 index 4b354b8..0000000 --- a/www/403.php +++ /dev/null @@ -1,8 +0,0 @@ - - -Access forbidden - - -
-

Facebook steals your data and violates your privacy.

-
diff --git a/www/404.jpg b/www/404.jpg deleted file mode 100644 index 36de85b..0000000 Binary files a/www/404.jpg and /dev/null differ diff --git a/www/about.php b/www/about.php deleted file mode 100644 index 1898cf2..0000000 --- a/www/about.php +++ /dev/null @@ -1,56 +0,0 @@ - - -About random - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Waah!~

-
-
> I-It's not like I made this page for you or a-anything..~

I'm just a random dude who thinks this is funny.
You can always contact me using mail@iamfabulous.de.
Let me know what you think! -
- -
- - diff --git a/www/background.png b/www/background.png deleted file mode 100644 index ca5ff2c..0000000 Binary files a/www/background.png and /dev/null differ diff --git a/www/background2.png b/www/background2.png deleted file mode 100644 index 5be72e2..0000000 Binary files a/www/background2.png and /dev/null differ diff --git a/www/dead_link.png b/www/dead_link.png deleted file mode 100755 index 37eb36b..0000000 Binary files a/www/dead_link.png and /dev/null differ diff --git a/www/error.php b/www/error.php deleted file mode 100644 index f930068..0000000 --- a/www/error.php +++ /dev/null @@ -1,50 +0,0 @@ - - - - - <?php echo $title; ?> error code> - - - - - -
-".$title." error!"; -echo "

".$message."

"; -?> -Try again - diff --git a/www/func.php b/www/func.php new file mode 100644 index 0000000..9d6ebac --- /dev/null +++ b/www/func.php @@ -0,0 +1,39 @@ +title[0]; + $viewCount = $xmldata->ytstatistics["viewCount"]; + $author = $xmldata->author->name[0]; + $desc = $xmldata->mediagroup->mediadescription[0]; + $date = $xmldata->published[0]; + $rate = $xmldata->gdrating["average"]; + + $res["title"] = $title; + $res["viewCount"] = $viewCount; + $res["author"] = $author; + $res["desc"] = $desc; + $res["date"] = $date; + $res["rate"] = $rate; + + return $res; +} + +function get_yt_title($id){ + $data = file_get_contents("https://gdata.youtube.com/feeds/api/videos/".$id.""); + $xmldata = simplexml_load_string($data); + $title = $xmldata->title[0]; + return $title; +} diff --git a/www/header.php b/www/header.php deleted file mode 100644 index dff4355..0000000 --- a/www/header.php +++ /dev/null @@ -1,30 +0,0 @@ - -
- - -
-
-
-
diff --git a/www/include.php b/www/include.php deleted file mode 100644 index ad9562d..0000000 --- a/www/include.php +++ /dev/null @@ -1,6 +0,0 @@ - + + + A random youtube video! + + + + + + -if(empty($_GET["task"])){ - $videoID = start($yt); - include("print_index.php"); -} else { -switch($_GET["task"]){ - case("youtube"): - include("youtube.php"); - break; - case("puush"): - include("puush.php"); - break; - case("about"): - include("about.php"); - break; - case("random"): - $array = array("youtube.php", "puush.php", "about.php", "lolrndm.php"); - $site = mt_rand(0, count($array)-1); - include($array[$site]); - break; - default: - include("lolrndm.php"); - break; -} -} + + + +
+
+

Fetching a random youtube video!

+
+

One moment please.

+
+
+ +
+
+ diff --git a/www/loli.jpg b/www/loli.jpg deleted file mode 100644 index 2c67c89..0000000 Binary files a/www/loli.jpg and /dev/null differ diff --git a/www/loli.png b/www/loli.png deleted file mode 100644 index 3a9b4af..0000000 Binary files a/www/loli.png and /dev/null differ diff --git a/www/loli_middle.jpg b/www/loli_middle.jpg deleted file mode 100644 index 5a37f78..0000000 Binary files a/www/loli_middle.jpg and /dev/null differ diff --git a/www/loli_small.jpg b/www/loli_small.jpg deleted file mode 100644 index 3248814..0000000 Binary files a/www/loli_small.jpg and /dev/null differ diff --git a/www/lolrndm.php b/www/lolrndm.php deleted file mode 100755 index eee3c8a..0000000 --- a/www/lolrndm.php +++ /dev/null @@ -1,45 +0,0 @@ - - - -40x - Error Code - - - - - -
- -

Nope. Not here. ;_;

-

This doesn't look like the page you requested.

-

- - - - - - - - - - -

-
-

Complaints oder suggestions for new flash files at mail@iamfabulous.de.

-

Back to start

-
- - diff --git a/www/piwik.js b/www/piwik.js deleted file mode 100644 index 3837901..0000000 --- a/www/piwik.js +++ /dev/null @@ -1,13 +0,0 @@ - diff --git a/www/piwik.php b/www/piwik.php deleted file mode 100644 index 9a60338..0000000 --- a/www/piwik.php +++ /dev/null @@ -1,13 +0,0 @@ - diff --git a/www/print_index.php b/www/print_index.php deleted file mode 100644 index a076a9a..0000000 --- a/www/print_index.php +++ /dev/null @@ -1,62 +0,0 @@ - - - -Welcome - - - - - - - -
- - - -
-

Welcome!

- ?> - -
-On this website, you can get a random -
-
-
- -
-
-completely free and as often as you like. -
- -

-For comments, questions or suggestions drop a
mail. - - - - - diff --git a/www/puush.php b/www/puush.php deleted file mode 100644 index d8aafd6..0000000 --- a/www/puush.php +++ /dev/null @@ -1,35 +0,0 @@ - - - -Random Youtube Video - - - - - -
- -

A random "puu.sh" file!

-
- -
- -

We tried for " . $count . " times.

- -
-Try again - -
-"; -?> diff --git a/www/static/ajax-loader.gif b/www/static/ajax-loader.gif new file mode 100644 index 0000000..d0bce15 Binary files /dev/null and b/www/static/ajax-loader.gif differ diff --git a/www/static/alegreya_sans_sc.woff b/www/static/alegreya_sans_sc.woff new file mode 100755 index 0000000..60e4c5f Binary files /dev/null and b/www/static/alegreya_sans_sc.woff differ diff --git a/www/static/content.css b/www/static/content.css new file mode 100644 index 0000000..72ba3a4 --- /dev/null +++ b/www/static/content.css @@ -0,0 +1,131 @@ +input[type=text]{ + border: none; + box-shadow: inset 0px 0px 1px 1px #1F3D4C; + border-radius: 0; + height: 35px; + font-size: 25px; + margin-top: 15px; + width: 600px; + padding-left: 5px; +} + +#middle { + position: fixed; + left: 50%; + margin-left: -300px; + top: 45%; + margin-top: -200px; + width: 600px; + height: 400px; + text-align: center; +} + +.button { + -moz-box-shadow:inset 0px 1px 0px 0px #dcecfb; + -webkit-box-shadow:inset 0px 1px 0px 0px #dcecfb; + box-shadow:inset 0px 1px 0px 0px #dcecfb; + background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #bddbfa), color-stop(1, #80b5ea) ); + background:-moz-linear-gradient( center top, #bddbfa 5%, #80b5ea 100% ); + filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#bddbfa', endColorstr='#80b5ea'); + background-color:#bddbfa; + -webkit-border-top-left-radius:0px; + -moz-border-radius-topleft:0px; + border-top-left-radius:0px; + -webkit-border-top-right-radius:0px; + -moz-border-radius-topright:0px; + border-top-right-radius:0px; + -webkit-border-bottom-right-radius:0px; + -moz-border-radius-bottomright:0px; + border-bottom-right-radius:0px; + -webkit-border-bottom-left-radius:0px; + -moz-border-radius-bottomleft:0px; + border-bottom-left-radius:0px; + text-indent:0; + border:1px solid #84bbf3; + display:inline; +/* display:inline-block; + display:block; */ + color:#ffffff; + font-size:15px; + font-weight:bold; + font-style:normal; + height:40px; + line-height:40px; + width:100px; + text-decoration:none; + text-align:center; + text-shadow:1px 1px 0px #528ecc; +} +.button:hover { + background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #80b5ea), color-stop(1, #bddbfa) ); + background:-moz-linear-gradient( center top, #80b5ea 5%, #bddbfa 100% ); + filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#80b5ea', endColorstr='#bddbfa'); + background-color:#80b5ea; +}.button:active { + position:relative; + top:1px; +} + + +#button-input{ + height: 40px; + width: 120px; + border: none; + box-shadow: inset 0px 0px 1px 1px #1F3D4C; + border-radius: 0; + font-size: 25px; + margin-top: 15px; + display:block; + + border: none; + margin-top: 15px; + margin-bottom: 15px; + display:block; + padding-left: 5px; +} + +.menu_middle{ + font-size: 15pt; + display:inline-block; + height: 45%; + margin: 20px; + position: relative; +/* + width: 100%; + position: fixed; + height: 45px; + position: relative; + margin: 10px; + top: 50%; + left: 50%; + margin-left: -300px; + margin-top: -200px; + width: 600px; + height: 400px; + text-align: center; +*/ +/* + height: 70px; + width: 70px; + margin-top: 5px; + margin-left: 5px; + text-align: right; + position: fixed; +*/ +/* top: -25px; */ + /*color: #5b5b5b; */ +} +a:link { + color: white; +} +a:visited { + color: white; +} +a.menu_middle{ + color: white; + +} + +a.mail{ + color: black; +} diff --git a/www/static/footer.php b/www/static/footer.php new file mode 100755 index 0000000..c3978f1 --- /dev/null +++ b/www/static/footer.php @@ -0,0 +1,10 @@ + + + +
+ +
+ + + + diff --git a/www/static/header.html b/www/static/header.html new file mode 100755 index 0000000..fc96659 --- /dev/null +++ b/www/static/header.html @@ -0,0 +1,29 @@ +
+ + + +
+ diff --git a/www/static/index.css b/www/static/index.css new file mode 100644 index 0000000..f06c84c --- /dev/null +++ b/www/static/index.css @@ -0,0 +1,4 @@ +h1 { + text-align: center; + font-size: 40pt; +} diff --git a/www/static/noscript.css b/www/static/noscript.css new file mode 100644 index 0000000..484f99e --- /dev/null +++ b/www/static/noscript.css @@ -0,0 +1,25 @@ +#ns{ + width: 100%; + height: 100%; + position: fixed; + z-index: 99; + top: 0px; + opacity: 0.85; + background: white; + color: red; + font-size: 20pt; +/* visibility: hidden; + background: #ecece1; */ +} + +#ns-area{ + height: 390px; + width: 400px; + position: fixed; + top: 30%; + margin-top: -100px; + padding: 10px; + left: 50%; + margin-left: -200px; +/* border: 1px solid black; */ +} diff --git a/www/static/noscript.html b/www/static/noscript.html new file mode 100644 index 0000000..5f78e41 --- /dev/null +++ b/www/static/noscript.html @@ -0,0 +1,9 @@ + diff --git a/www/static/piwik.html b/www/static/piwik.html new file mode 100644 index 0000000..91e8c63 --- /dev/null +++ b/www/static/piwik.html @@ -0,0 +1,14 @@ + + diff --git a/www/static/style.css b/www/static/style.css new file mode 100755 index 0000000..15fa847 --- /dev/null +++ b/www/static/style.css @@ -0,0 +1,105 @@ + +@font-face +{ + font-family: 'Alegreya Sans SC'; + src: url("alegreya_sans_sc.woff"); +} +/*************************************************************** + General Page Styling +****************************************************************/ +*{ + margin: 0; + padding: 0; +} +html, body{ + height: 100%; + font-family: 'Alegreya Sans SC', sans-serif; +} + + + +/*************************************************************** + Header +****************************************************************/ +div.header-bar{ + background-color: #3083D6; + height: 80px; + width: 100%; + position: absolute; + color: white; +} + +a.logo{ + display: inline-block; + height: 70px; + width: 70px; + margin-top: 5px; + margin-left: 5px; + background-image: url(logo3.png); + background-repeat:no-repeat; + background-size:66px 66px; + background-color:#3083D6; + background-position: center; + z-index: 99; +} + + + +a.logo:hover{ + display: block; + background:#2669AB; + background-image: url(logo3.png); + background-repeat:no-repeat; + background-size:66px 66px; + background-position: center; + border-radius: 10px; + box-shadow: 3px -3px 5px black; +} + + + +/************************************************************ + Page-Wrap for sticky footer +*************************************************************/ +#page-wrap{ + width: 100%; + min-height: 100%; +} + +/********************************************************** + Content-Area +**********************************************************/ +#content-area{ + width: 100%; + padding-top: 80px; + padding-bottom: 25px; +} + + +/****************************************************** + FOOTER +*******************************************************/ +footer{ + height: 25px; + width: 100%; + position: relative; + margin-top: -25px; + clear: both; + background-color:#3083D6; +} + +#copyright-text{ + margin-right: 10px; + text-align: right; + font-size: 12px; + font-weight: normal; + color: white; +} + +#gitlink{ + text-align: center; + font-size: 12px; + font-weight: normal; + color: white; + display: inline; +} diff --git a/www/style.css b/www/style.css deleted file mode 100644 index f7fee2a..0000000 --- a/www/style.css +++ /dev/null @@ -1,30 +0,0 @@ -body { -/* background: #ecece1;*/ - background: #f0f0f0; - background-image: url('./background2.png'); - background-position: 50% 50%; - margin-bottom: 40px; - overflow-x: hidden; -} - -#header { - position:; - top:0px; left:0px; right:0px; - background:; - text-align:center; - padding:10px; - width: 700px; - height: 20px; - margin: 0px auto; -} - -.small { -/* font-family: 'Ubuntu'; - color: black;*/ - font-size:100%; -} - -td { - text-align: center; -} - diff --git a/www/youtube.php b/www/youtube.php index b4c241b..db173e4 100644 --- a/www/youtube.php +++ b/www/youtube.php @@ -1,40 +1,14 @@ - - -Random YouTube Video - - - - - - -
- - +$vid = start($yt); -

A random youtube video!


-

- -Get another one"; ?> - -
- - +
+ +
+
+

Download this video! | Blocked in your country? Try this!

-- cgit v1.2.3