From 7c8f6345ef35b6fca9283b5e1c23d22cf9466294 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 25 May 2014 22:14:29 +0200 Subject: new style --- www/.index.php.swp | Bin 12288 -> 0 bytes www/Gununu_all.swf | Bin 0 -> 9882636 bytes www/functions/func_yt.php | 26 ++++++++++++++++++++++++++ www/include.php | 1 + www/youtube.php | 40 ++++++++++++++++++++++++++++++++++++++++ 5 files changed, 67 insertions(+) delete mode 100644 www/.index.php.swp create mode 100644 www/Gununu_all.swf create mode 100644 www/functions/func_yt.php 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/Gununu_all.swf b/www/Gununu_all.swf new file mode 100644 index 0000000..bfeaa75 Binary files /dev/null and b/www/Gununu_all.swf differ diff --git a/www/functions/func_yt.php b/www/functions/func_yt.php new file mode 100644 index 0000000..4aa1e29 --- /dev/null +++ b/www/functions/func_yt.php @@ -0,0 +1,26 @@ +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; +} diff --git a/www/include.php b/www/include.php index ad9562d..02b170b 100644 --- a/www/include.php +++ b/www/include.php @@ -3,4 +3,5 @@ $functiondir = "functions/"; require_once($functiondir . "func_youtube.php"); +require_once($functiondir . "func_yt.php"); require_once($functiondir . "func_puush.php"); diff --git a/www/youtube.php b/www/youtube.php index b4c241b..868bd8a 100644 --- a/www/youtube.php +++ b/www/youtube.php @@ -16,6 +16,9 @@ if(!isset($_GET["id"])){ +