Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

git-svn-id: http://xelisaviihde.googlecode.com/svn/trunk@49 f6f80a8b-…

…968f-e7cd-b104-9312d2818bcb
  • Loading branch information...
commit e25687d70bdedae37c7d691796582a985923c52f 1 parent 43becae
jaakko.lukkari@gmail.com authored
6 components/mainmenu/c.php
@@ -16,9 +16,9 @@
16 16 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 17 */
18 18 defined( 'parentFile' ) or die( 'No direct access! Olet väärässä paikassa!' );
19   -require_once($XRUUTUDIR.'libs/mvc/c.php');
20   -class MainMenuXRuutuController extends XRuutuController {
  19 +require_once($XEEDIR.'libs/mvc/c.php');
  20 +class MainMenuXElisaViihdeController extends XElisaViihdeController {
21 21
22 22
23 23
24   -}
  24 +}
6 components/mainmenu/m.php
@@ -16,8 +16,8 @@
16 16 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 17 */
18 18 defined( 'parentFile' ) or die( 'No direct access! Olet väärässä paikassa!' );
19   -require_once($XRUUTUDIR.'libs/mvc/m.php');
20   -class MainMenuXRuutuModel extends XRuutuModel {
  19 +require_once($XEEDIR.'libs/mvc/m.php');
  20 +class MainMenuXElisaViihdeModel extends XElisaViihdeModel {
21 21 function getMenuItems() {
22 22
23 23 global $XEEDIR;
@@ -45,4 +45,4 @@ function getMenuItems() {
45 45 }
46 46
47 47
48   -}
  48 +}
39 components/mainmenu/mainmenu.xml
... ... @@ -1,13 +1,42 @@
1 1 <?xml version="1.0" encoding="UTF-8"?>
2 2 <items>
3 3 <item>
4   - <name>Valikko</name>
5   - <component></component>
6   - <image></image>
7   - <imageover></imageover>
  4 + <name>Valmiit nauhoitukset</name>
  5 + <component>ready</component>
  6 + <image>mainmenuready.jpg</image>
  7 + <imageover>mainmenuready_over.jpg</imageover>
8 8 </item>
9 9
10   -
  10 + <item>
  11 + <name>Tulevat nauhoitukset</name>
  12 + <component>scheduled</component>
  13 + <image>mainmenuscheduled.jpg</image>
  14 + <imageover>mainmenuscheduled_over.jpg</imageover>
  15 + </item>
  16 +
  17 + <item>
  18 + <name>Kanavaopas</name>
  19 + <component>epg</component>
  20 + <image>mainmenuinfo.jpg</image>
  21 + <imageover>mainmenuinfo_over.jpg</imageover>
  22 +
  23 +
  24 +
  25 + </item>
  26 + <item>
  27 + <name>Asetukset</name>
  28 + <component>settings</component>
  29 + <image>mainmenusettings.jpg</image>
  30 + <imageover>mainmenusettings_over.jpg</imageover>
  31 +
  32 +
  33 + </item>
  34 + <item>
  35 + <name>Päivitä</name>
  36 + <component>update</component>
  37 + <image>mainmenuupdate.jpg</image>
  38 + <imageover>mainmenuupdate_over.jpg</imageover>
  39 + </item>
11 40
12 41
13 42 </items>
6 components/mainmenu/v.php
@@ -16,8 +16,8 @@
16 16 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 17 */
18 18 defined( 'parentFile' ) or die( 'No direct access! Olet väärässä paikassa!' );
19   -require_once($XRUUTUDIR.'libs/mvc/v.php');
20   -class MainMenuXRuutuView extends XRuutuView {
  19 +require_once($XEEDIR.'libs/mvc/v.php');
  20 +class MainMenuXElisaViihdeView extends XElisaViihdeView {
21 21
22 22
23 23 function render($tmpl='default') {
@@ -29,4 +29,4 @@ function render($tmpl='default') {
29 29
30 30 return parent::render($tmpl);
31 31 }
32   -}
  32 +}
190 components/ready/layout/default.php
@@ -24,10 +24,196 @@
24 24 ?>
25 25 <rss version="2.0" xmlns:media="http://purl.org/dc/elements/1.1/" xmlns:dc="http://purl.org/dc/elements/1.1/">
26 26
  27 + <log>
  28 + old = readStringFromFile("/tmp/usbmounts/sda1/debug.txt");
  29 + time = readStringFromFile("/tmp/currenttime");
  30 + new = old + "&#x0A;" + time + ": " + txt;
  31 + writeStringToFile("/tmp/usbmounts/sda1/debug.txt", new);
  32 + </log>
  33 +
  34 +
  35 +<loadData>
  36 +
  37 +thumb = getItemInfo(getFocusItemIndex(), "thumbnail");
  38 +name = getItemInfo(getFocusItemIndex(), "name");
  39 +
  40 +
  41 +
  42 +</loadData>
  43 +
  44 +<onEnter>
  45 + executeScript("loadData");
  46 +</onEnter>
  47 +
  48 +<onExit>
  49 +setRefreshTime(-1);
  50 +</onExit>
  51 +
  52 + <onRefresh>
  53 + setRefreshTime(-1);
  54 + executeScript("loadData");
  55 +
  56 + redrawDisplay();
  57 +
  58 + </onRefresh>
  59 +
  60 +
  61 +
  62 +
  63 +
  64 + <mediaDisplay name="photoFocusView"
  65 + imageBottomSide="null"
  66 + imageTopSide="null"
  67 + imageFocusItemBackground="null"
  68 + imageItemBackground="null"
  69 + imageFocus="null"
  70 + imageParentFocus="null"
  71 + backgroundColor="0:0:0"
  72 + rowCount="1"
  73 + columnCount="5"
  74 + fontSize="12"
  75 + sideTopHeightPC="0"
  76 + sideColorTop="-1:-1:-1"
  77 + sideColorBottom="-1:-1:-1"
  78 + itemOffsetXPC="10"
  79 + itemImageOffsetXPC="0"
  80 + itemOffsetYPC="70.8"
  81 +
  82 + itemWidthPC="14"
  83 + itemHeightPC="14"
  84 + itemBorderColor="0:250:180"
  85 + itemBackgroundWidthPC="0"
  86 + itemBackgroundHeightPC="0"
  87 + itemGapXPC="1.43"
  88 + focusItemOffsetYPC="69"
  89 + focusItemOffsetXPC="0"
  90 + focusItemWidthPC="17"
  91 + focusItemHeightPC="17"
  92 + focusItemBackgroundWidthPC="0"
  93 + focusItemBackgroundHeightPC="0"
  94 + bottomYPC="85"
  95 + showHeader="yes"
  96 + showDefaultInfo="no"
  97 + idleImageXPC="89"
  98 + idleImageYPC="8"
  99 + idleImageWidthPC="6"
  100 + idleImageHeightPC="10">
  101 +
  102 +
  103 +
  104 + <idleImage>/tmp/usbmounts/sda1/scripts/xLive/image/busy1.png</idleImage>
  105 + <idleImage>/tmp/usbmounts/sda1/scripts/xLive/image/busy2.png</idleImage>
  106 + <idleImage>/tmp/usbmounts/sda1/scripts/xLive/image/busy3.png</idleImage>
  107 + <idleImage>/tmp/usbmounts/sda1/scripts/xLive/image/busy4.png</idleImage>
  108 + <idleImage>/tmp/usbmounts/sda1/scripts/xLive/image/busy5.png</idleImage>
  109 + <idleImage>/tmp/usbmounts/sda1/scripts/xLive/image/busy6.png</idleImage>
  110 + <idleImage>/tmp/usbmounts/sda1/scripts/xLive/image/busy7.png</idleImage>
  111 + <idleImage>/tmp/usbmounts/sda1/scripts/xLive/image/busy8.png</idleImage>
  112 +
  113 +
  114 +
  115 +
  116 +<text redraw="yes" tailDots="yes" fontSize="14" lines="1"
  117 + offsetXPC="43" offsetYPC="25" widthPC="80" heightPC="5"
  118 + backgroundColor="0:0:0" foregroundColor="255:255:255">
  119 + <script>
  120 + getItemInfo(getFocusItemIndex(), "name");
  121 +
  122 +</script>
  123 +
  124 + </text>
  125 + <text redraw="yes" tailDots="yes" fontSize="14" lines="1"
  126 + offsetXPC="43" offsetYPC="30" widthPC="80" heightPC="5"
  127 + backgroundColor="0:0:0" foregroundColor="255:255:255">
  128 + <script>
  129 +
  130 + if(getItemInfo(getFocusItemIndex(), "xeeType")=="recording") {
  131 + getItemInfo(getFocusItemIndex(), "channel");
  132 + } else if(getItemInfo(getFocusItemIndex(), "xeeType")=="folder") {
  133 + koko=getItemInfo(getFocusItemIndex(), "size");
  134 + "Koko: "+koko;
  135 + } else {
  136 + "";
  137 + }
  138 +
  139 +</script>
  140 +
  141 + </text>
  142 + <text redraw="yes" tailDots="yes" fontSize="14" lines="1"
  143 + offsetXPC="43" offsetYPC="35" widthPC="80" heightPC="5"
  144 + backgroundColor="0:0:0" foregroundColor="255:255:255">
  145 + <script>
  146 + if(getItemInfo(getFocusItemIndex(), "xeeType")=="recording") {
  147 + getItemInfo(getFocusItemIndex(), "startTime");
  148 + } else if(getItemInfo(getFocusItemIndex(), "xeeType")=="folder") {
  149 + maara=getItemInfo(getFocusItemIndex(), "recordingsCount");
  150 + "Nauhoituksia "+maara+" kpl";
  151 + } else {
  152 + "";
  153 + }
  154 +
  155 +</script>
  156 +
  157 + </text>
  158 + <text redraw="yes" tailDots="yes" fontSize="14" lines="1"
  159 + offsetXPC="43" offsetYPC="40" widthPC="80" heightPC="5"
  160 + backgroundColor="0:0:0" foregroundColor="255:255:255">
  161 + <script>
  162 + if(getItemInfo(getFocusItemIndex(), "xeeType")=="recording") {
  163 +
  164 +kesto = getItemInfo(getFocusItemIndex(), "videolength");
  165 + "kesto: "+ kesto +" min";
  166 + } else {
  167 +"";
  168 + }
  169 +
  170 +</script>
  171 +
  172 + </text>
  173 + <image redraw="yes" offsetXPC=10 offsetYPC=25 widthPC=32.9 heightPC=33.2>
  174 + <script>
  175 + getItemInfo(getFocusItemIndex(), "thumbnail");
  176 + </script>
  177 + </image>
  178 + <image offsetXPC=10 offsetYPC=6.8 widthPC=20 heightPC=15>
  179 + <?php echo $XEEDIR; ?>images/logo_small.jpg
  180 + </image>
  181 +
  182 +<onUserInput>
  183 +userInput = currentUserInput();
  184 +
  185 +
  186 + /* OPEN LISTVIEW */
  187 + if ( userInput == "2" ) {
  188 + showIdle();
  189 + url = "<?php echo $XEEURL ?>ready.php?view=listview";
  190 + jumpToLink("destination");
  191 + redrawDisplay();
  192 + ret;
  193 + }
  194 +
  195 + </onUserInput>
  196 +
  197 +</mediaDisplay>
  198 +
  199 + <destination>
  200 + <link>
  201 + <script>
  202 + url;
  203 + </script>
  204 +
  205 + </link>
  206 + </destination>
  207 +
  208 +
  209 +
27 210 <channel>
28   -<title>Tulevat nauhoitukset</title>
  211 +<title>Nauhoitukset</title>
29 212
30   -//tähän itemit
  213 +<?php // if($folderid!="") { include("templates/rss.prevfolder.php"); } ?>
  214 +<?php // include("templates/rss.newfolder.php"); ?>
  215 +<?php foreach($this->folders as $folder) { include($XEEDIR."components/ready/layout/rss.folder.php"); } ?>
  216 +<?php foreach($this->recordings as $recording) { include($XEEDIR."components/ready/layout/rss.recording.php"); } ?>
31 217
32 218 </channel>
33 219 </rss>
145 components/ready/layout/listview.php
... ... @@ -0,0 +1,145 @@
  1 +<?php
  2 +defined( 'parentFile' ) or die( 'No direct access! Olet väärässä paikassa!' );
  3 +
  4 +global $XEEDIR, $XEEURL;
  5 +
  6 +header("Content-Type: application/rss+xml");
  7 +echo "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n";
  8 +?>
  9 +<rss version="2.0" xmlns:media="http://purl.org/dc/elements/1.1/" xmlns:dc="http://purl.org/dc/elements/1.1/">
  10 +
  11 +<item_template>
  12 +<onClick>
  13 +<script>
  14 + movieLink= getItemInfo(getFocusItemIndex(), "link");
  15 + playItemURL(movieLink, 0, "mediaDisplay");
  16 + </script>
  17 +</onClick>
  18 +</item_template>
  19 +
  20 + <mediaDisplay name="onePartView"
  21 + showDefaultInfo="no" showHeader="no"
  22 + thumbnail="" sideLeftWidthPC="0" rowCount="28" columnCount="1"
  23 + itemPerPage="30" itemImageXPC="65" itemXPC="65" itemYPC="5"
  24 + itemWidthPC="50" itemHeightPC="3" backgroundColor="0:0:0"
  25 + itemBackgroundColor="80:80:80"
  26 + focusBorderColor="0:0:200" itemGapXPC=0 itemGapYPC=0
  27 + itemImageWidthPC="0" itemImageHeightPC="0" idleImageXPC="89"
  28 + idleImageYPC="8"
  29 + idleImageWidthPC="6"
  30 + idleImageHeightPC="10">
  31 +
  32 + <idleImage>/tmp/usbmounts/sda1/scripts/xLive/image/busy1.png</idleImage>
  33 + <idleImage>/tmp/usbmounts/sda1/scripts/xLive/image/busy2.png</idleImage>
  34 + <idleImage>/tmp/usbmounts/sda1/scripts/xLive/image/busy3.png</idleImage>
  35 + <idleImage>/tmp/usbmounts/sda1/scripts/xLive/image/busy4.png</idleImage>
  36 + <idleImage>/tmp/usbmounts/sda1/scripts/xLive/image/busy5.png</idleImage>
  37 + <idleImage>/tmp/usbmounts/sda1/scripts/xLive/image/busy6.png</idleImage>
  38 + <idleImage>/tmp/usbmounts/sda1/scripts/xLive/image/busy7.png</idleImage>
  39 + <idleImage>/tmp/usbmounts/sda1/scripts/xLive/image/busy8.png</idleImage>
  40 +
  41 +
  42 +
  43 +<text redraw="yes" tailDots="yes" fontSize="14" lines="1"
  44 + offsetXPC="10" offsetYPC="65" widthPC="35" heightPC="5"
  45 + backgroundColor="0:0:0" foregroundColor="255:255:255">
  46 + <script>
  47 + getItemInfo(getFocusItemIndex(), "name");
  48 +
  49 +</script>
  50 +
  51 + </text>
  52 + <text redraw="yes" tailDots="yes" fontSize="14" lines="1"
  53 + offsetXPC="10" offsetYPC="70" widthPC="35" heightPC="5"
  54 + backgroundColor="0:0:0" foregroundColor="255:255:255">
  55 + <script>
  56 +
  57 + if(getItemInfo(getFocusItemIndex(), "xeeType")=="recording") {
  58 + getItemInfo(getFocusItemIndex(), "channel");
  59 + } else if(getItemInfo(getFocusItemIndex(), "xeeType")=="folder") {
  60 + koko=getItemInfo(getFocusItemIndex(), "size");
  61 + "Koko: "+koko;
  62 + } else {
  63 + "";
  64 + }
  65 +
  66 +</script>
  67 +
  68 + </text>
  69 + <text redraw="yes" tailDots="yes" fontSize="14" lines="1"
  70 + offsetXPC="10" offsetYPC="75" widthPC="35" heightPC="5"
  71 + backgroundColor="0:0:0" foregroundColor="255:255:255">
  72 + <script>
  73 + if(getItemInfo(getFocusItemIndex(), "xeeType")=="recording") {
  74 + getItemInfo(getFocusItemIndex(), "startTime");
  75 + } else if(getItemInfo(getFocusItemIndex(), "xeeType")=="folder") {
  76 + maara=getItemInfo(getFocusItemIndex(), "recordingsCount");
  77 + "Nauhoituksia "+maara+" kpl";
  78 + } else {
  79 + "";
  80 + }
  81 +
  82 +</script>
  83 +
  84 + </text>
  85 + <text redraw="yes" tailDots="yes" fontSize="14" lines="1"
  86 + offsetXPC="10" offsetYPC="80" widthPC="35" heightPC="5"
  87 + backgroundColor="0:0:0" foregroundColor="255:255:255">
  88 + <script>
  89 + if(getItemInfo(getFocusItemIndex(), "xeeType")=="recording") {
  90 +
  91 +kesto = getItemInfo(getFocusItemIndex(), "videolength");
  92 + "kesto: "+ kesto +" min";
  93 + } else {
  94 +"";
  95 + }
  96 +
  97 +</script>
  98 +
  99 + </text>
  100 + <image redraw="yes" offsetXPC=10 offsetYPC=25 widthPC=32.9 heightPC=33.2>
  101 + <script>
  102 + getItemInfo(getFocusItemIndex(), "thumbnail");
  103 + </script>
  104 + </image>
  105 +
  106 + <image offsetXPC=10 offsetYPC=6.8 widthPC=20 heightPC=15>
  107 + <?php echo $XEEDIR; ?>images/logo_small.jpg
  108 + </image>
  109 +
  110 +<onUserInput>
  111 +userInput = currentUserInput();
  112 +
  113 +
  114 + /* OPEN LISTVIEW */
  115 + if ( userInput == "2" ) {
  116 + showIdle();
  117 + url = "<?php echo $XEEURL ?>ready.php?view=coverflow";
  118 + jumpToLink("destination");
  119 + redrawDisplay();
  120 + ret;
  121 + }
  122 +
  123 + </onUserInput>
  124 +
  125 +</mediaDisplay>
  126 +
  127 +<destination>
  128 + <link>
  129 + <script>
  130 + url;
  131 + </script>
  132 +
  133 + </link>
  134 + </destination>
  135 +
  136 +<channel>
  137 +<title>Nauhoitukset</title>
  138 +
  139 +<?php // if($folderid!="") { include("templates/rss.prevfolder.php"); } ?>
  140 +<?php // include("templates/rss.newfolder.php"); ?>
  141 +<?php foreach($this->folders as $folder) { include($XEEDIR."components/ready/layout/rss.folder.php"); } ?>
  142 +<?php foreach($this->recordings as $recording) { include($XEEDIR."components/ready/layout/rss.recording.php"); } ?>
  143 +
  144 +</channel>
  145 +</rss>
30 components/ready/layout/rss.folder.php
... ... @@ -0,0 +1,30 @@
  1 +<?php
  2 +/* Copyright Jaakko Lukkari 2011
  3 + *
  4 + * This program is free software; you can redistribute it and/or modify
  5 + * it under the terms of the GNU General Public License as published by
  6 + * the Free Software Foundation; either version 2 of the License, or
  7 + * (at your option) any later version.
  8 + *
  9 + * This program is distributed in the hope that it will be useful, but
  10 + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  11 + * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  12 + * for more details.
  13 + *
  14 + * You should have received a copy of the GNU General Public License along
  15 + * with this program; if not, write to the Free Software Foundation, Inc.,
  16 + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  17 + */
  18 +?>
  19 +<item>
  20 +<title>Kansio: <?php echo $folder->name ?></title>
  21 +<link><?php echo $XEEURL; ?>index.php?option=ready&amp;folder=<?php echo $folder->id; ?><?php if($this->folderid!="") { echo urlencode("&pfolder=").$this->folderid; } ?>&amp;view=<?php echo $this->view; ?></link>
  22 +<media:thumbnail url="<?php echo $XEEDIR; ?>images/folder.jpg" />
  23 +
  24 +<xeeType><![CDATA[folder]]></xeeType>
  25 +<id><?php echo $folder->id; ?></id>
  26 +<name><![CDATA[Kansio: <?php echo $folder->name; ?>]]></name>
  27 +<size><![CDATA[<?php echo $folder->size; ?>]]></size>
  28 +<recordingsCount><![CDATA[<?php echo $folder->recordings_count; ?>]]></recordingsCount>
  29 +
  30 +</item>
26 components/ready/layout/rss.newfolder.php
... ... @@ -0,0 +1,26 @@
  1 +<?php
  2 +/* Copyright Jaakko Lukkari 2011
  3 + *
  4 + * This program is free software; you can redistribute it and/or modify
  5 + * it under the terms of the GNU General Public License as published by
  6 + * the Free Software Foundation; either version 2 of the License, or
  7 + * (at your option) any later version.
  8 + *
  9 + * This program is distributed in the hope that it will be useful, but
  10 + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  11 + * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  12 + * for more details.
  13 + *
  14 + * You should have received a copy of the GNU General Public License along
  15 + * with this program; if not, write to the Free Software Foundation, Inc.,
  16 + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  17 + */
  18 +?>
  19 +<item>
  20 +<title>UUSI HAKEMISTO</title>
  21 +<name>Luo uusi kansio</name>
  22 +<xeeType><![CDATA[newfolder]]></xeeType>
  23 +<link></link>
  24 +<media:thumbnail url="<?php echo $XEEURL; ?>images/new_folder.jpg" />
  25 +<description></description>
  26 +</item>
27 components/ready/layout/rss.prevfolder.php
... ... @@ -0,0 +1,27 @@
  1 +<?php
  2 +/* Copyright Jaakko Lukkari 2011
  3 + *
  4 + * This program is free software; you can redistribute it and/or modify
  5 + * it under the terms of the GNU General Public License as published by
  6 + * the Free Software Foundation; either version 2 of the License, or
  7 + * (at your option) any later version.
  8 + *
  9 + * This program is distributed in the hope that it will be useful, but
  10 + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  11 + * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  12 + * for more details.
  13 + *
  14 + * You should have received a copy of the GNU General Public License along
  15 + * with this program; if not, write to the Free Software Foundation, Inc.,
  16 + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  17 + */
  18 +?>
  19 +<item>
  20 +<title>..</title>
  21 +<name>Edellinen kansio</name>
  22 +<link><?php echo $XEEURL; ?>ready.php<?php if(isset($_GET['pfolder'])) { echo "?folder=".$_GET['pfolder']; } ?></link>
  23 +<description></description>
  24 +<xeeType><![CDATA[prevfolder]]></xeeType>
  25 +<media:thumbnail url="<?php echo $XEEURL; ?>images/prevfolder.jpg" />
  26 +
  27 +</item>
41 components/ready/layout/rss.recording.php
... ... @@ -0,0 +1,41 @@
  1 +<?php
  2 +/* Copyright Jaakko Lukkari 2011
  3 + *
  4 + * This program is free software; you can redistribute it and/or modify
  5 + * it under the terms of the GNU General Public License as published by
  6 + * the Free Software Foundation; either version 2 of the License, or
  7 + * (at your option) any later version.
  8 + *
  9 + * This program is distributed in the hope that it will be useful, but
  10 + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  11 + * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  12 + * for more details.
  13 + *
  14 + * You should have received a copy of the GNU General Public License along
  15 + * with this program; if not, write to the Free Software Foundation, Inc.,
  16 + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  17 + */
  18 +?>
  19 +<item>
  20 +<title><?php echo urldecode ($recording->name); ?></title>
  21 +<link></link>
  22 +<media:thumbnail url="http://tvmedia16.pa.saunalahti.fi/thumbnails/<?php echo $recording->program_id; ?>.jpg" />
  23 +
  24 +<link><?php echo $XEEURL; ?>watch.php?id=<?php echo $recording->program_id; ?></link>
  25 +
  26 +<enclosure type="video/mpeg" url="<?php echo $XEEURL; ?>watch.php?id=<?php echo $recording->program_id; ?>"/>
  27 +<xeeType><![CDATA[recording]]></xeeType>
  28 +<id><?php echo $recording->id; ?></id>
  29 +<programId><?php echo $recording->program_id; ?></programId>
  30 +<folderId><?php echo $recording->folder_id; ?></folderId>
  31 +<name><![CDATA[<?php echo urldecode ($recording->name); ?>]]></name>
  32 +<channel><![CDATA[<?php echo $recording->channel; ?>]]></channel>
  33 +<startTime><![CDATA[<?php echo $recording->start_time; ?>]]></startTime>
  34 +<timestamp><![CDATA[<?php echo $recording->timestamp; ?>]]></timestamp>
  35 +<viewcount><![CDATA[<?php echo $recording->viewcount; ?>]]></viewcount>
  36 +<videolength><?php echo $recording->length; ?></videolength>
  37 +<description><![CDATA[Ei vielä implementoitu]]></description>
  38 +
  39 +
  40 +
  41 +</item>
4 libs/mvc/c.php
@@ -16,7 +16,7 @@
16 16 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 17 */
18 18 defined( 'parentFile' ) or die( 'No direct access! Olet väärässä paikassa!' );
19   -class XRuutuController {
  19 +class XElisaViihdeController {
20 20 private $model=null;
21 21 private $view=null;
22 22 private $layout=null;
@@ -65,4 +65,4 @@ function execute($command) {
65 65
66 66 }
67 67
68   -}
  68 +}
14 libs/mvc/m.php
@@ -16,19 +16,19 @@
16 16 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 17 */
18 18 defined( 'parentFile' ) or die( 'No direct access! Olet väärässä paikassa!' );
19   -class XRuutuModel {
  19 +class XElisaViihdeModel {
20 20
21   - private $ruutu =null;
  21 + private $elisaviihde =null;
22 22
23   - function __construct($ruutu) {
  23 + function __construct($elisaviihde) {
24 24
25   - $this->ruutu=$ruutu;
  25 + $this->elisaviihde=$elisaviihde;
26 26
27 27 }
28 28
29   - function getRuutu() {
30   - return $this->ruutu;
  29 + function getElisaViihde() {
  30 + return $this->elisaviihde;
31 31 }
32 32
33 33
34   -}
  34 +}
4 libs/mvc/v.php
@@ -16,7 +16,7 @@
16 16 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 17 */
18 18 defined( 'parentFile' ) or die( 'No direct access! Olet väärässä paikassa!' );
19   -class XRuutuView {
  19 +class XElisaViihdeView {
20 20
21 21 private $model=null;
22 22 private $layout=null;
@@ -67,4 +67,4 @@ function render($tmpl='default') {
67 67
68 68
69 69
70   -}
  70 +}

0 comments on commit e25687d

Please sign in to comment.
Something went wrong with that request. Please try again.