* * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ include "libs/XBMCHelper.class.php"; $XBMC = new XBMCHelper(); /* _get_hash from Team XBMC Developer on XBMC Forums */ function _get_hash($file_path) { $chars = strtolower($file_path); $crc = 0xffffffff; for ($ptr = 0; $ptr < strlen($chars); $ptr++) { $chr = ord($chars[$ptr]); $crc ^= $chr << 24; for ((int) ($i = 0); $i < 8; $i++) { if ($crc & 0x80000000) { $crc = $crc << 1 ^ 0x4c11db7; } else { $crc <<= 1; } }
* it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* TODO: Filename support and path substitution on Samba Shares */ /* PROPOSED: merge to stream.php */ require 'libs/XBMCHelper.class.php'; $XBMC = new XBMCHelper(); $videoInformation = $XBMC->GetEpisodeInformation($_GET['e']); ini_set("max_execution_time", "0"); $file = $videoInformation['filePath']; $streampath = parse_url($file); if (isset($streampath['scheme']) && $streampath['scheme'] == "smb://") { // We found that the filepath includes smb://, by this we have determined a // Synchronized XBMC installation and substitute direct paths for searching for the file // In the library. $di = new RecursiveDirectoryIterator($XBMC->XBMCTVLibraryPath); foreach (new RecursiveIteratorIterator($di) as $filename => $cur) { if ($cur->getFilename() == $videoInformation['filename']) { $file = $filename; break; } }
<?php /* * OpenUluh version 0.0.1 * * Copyright (c) 2012-* ShadowEO / Toxus Communications Systems * Licensed under the GPLv3 * You are free to modify, distribute or redistribute this code as you please * so long as the above copyright notice remains intact. */ include "lib/jqmPhp.php"; include "../libs/XBMCHelper.class.php"; include "../config/application.php"; $currentPage = basename(__FILE__); $XBMC = new XBMCHelper(); $jqm = new jqmPhp(); $jqm->head()->title($config['AppTitle']); $jqm->head()->add("<meta name='viewport' content='width=device-width, initial-scale=1'/>"); // $jqm->head()->add(new jqmLink("themes/PandoraTV.min.css")); $page = new jqmPage('index'); $page->theme('b')->title($config['AppTitle']); $page->header()->theme('a'); $nav = $page->header()->add(new jqmNavbar(), true); $nav->add(new jqmButton('', '', '', 'a', "index.php", 'Home', '', true)); $nav->add(new jqmButton('', '', '', 'a', 'shows.php?ac=sl', 'All Shows', '', false)); $nav->add(new jqmButton('', '', '', 'a', 'channels.php?ac=cl', 'Channels', '', false)); //$page->AddContent('<h1>Pandora TV</h1>'); $g = $page->addContent(new jqmGrid(), true); $g->grid('b'); $ShowsList = $XBMC->RetrieveShowList(); $randshows = shuffle($ShowsList);
* GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ ?> <div id="tray"> <div id="mydroplinemenu" class="droplinebar"> <ul> <li><a href="index.php">Main</a></li> <li><a href="#">Channels</a> <ul> <?php require_once 'libs/XBMCHelper.class.php'; $XBMC = new XBMCHelper(); $studioArray = $XBMC->RetrieveStudioList(); foreach ($studioArray as $k => $v) { echo "<li><a href='index.php?p=shows&c=" . $v['strStudio'] . "'/>" . $v['strStudio'] . "</a></li>"; } ?> </ul> </li> <li><a href="index.php?p=shows">Shows</a> <ul> <?php $showsArray = $XBMC->RetrieveShowList(); foreach ($showsArray as $k => $v) { echo "<li><a href='index.php?p=episodes&s=" . $v['idShow'] . "'/>" . $v['SeriesName'] . "</a></li>"; }
* so long as the above copyright notice remains intact. */ include 'lib/jqmPhp.php'; include '../libs/XBMCHelper.class.php'; include "../config/application.php"; $jqm = new jqmPhp(); $jqm->head()->title($config['AppTitle']); $page = new jqmPage('channels'); $jqm->head()->add('<meta name="viewport" content="width=device-width, initial-scale=1">'); $page->theme('b')->title($config['AppTitle']); $page->header()->theme('a'); $nav = $page->header()->add(new jqmNavbar(), true); $nav->add(new jqmButton('', '', '', 'a', "index.php", 'Home', '', false)); $nav->add(new jqmButton('', '', '', 'a', 'shows.php?ac=sl', 'All Shows', '', false)); $nav->add(new jqmButton('', '', '', 'a', '#', 'Channels', '', true)); $XBMC = new XBMCHelper(); switch ($_GET['ac']) { case "cl": $list2 = new jqmListviem(); $list2->inset(true)->theme('a'); $list2->addDivider('Channels', $XBMC->RetrieveStudioCount())->dividerTheme('a')->countTheme('b'); $Channels = $XBMC->RetrieveStudioList(); $i = 0; foreach ($Channels as $k => $v) { $list2->AddIcon(" " . $v['strStudio'], 'shows.php?ac=csl&cn=' . $v['strStudio'], '../channel_images/' . $v['strStudio'] . ".png", $XBMC->CountShowsByChannel($v['strStudio'])); $i++; } $page->AddContent($list2); $jqm->AddPage($page); break; default:
<?php /* * OpenUluh version 0.0.1 * * Copyright (c) 2012-* ShadowEO / Toxus Communications Systems * Licensed under the GPLv3 * You are free to modify, distribute or redistribute this code as you please * so long as the above copyright notice remains intact. */ include "lib/jqmPhp.php"; include "../libs/XBMCHelper.class.php"; include "../config/application.php"; $XBMC = new XBMCHelper(); $jqm = new jqmPhp(); $jqm->head()->add('<meta name="viewport" content="width=device-width, initial-scale=1"/>'); $jqm->head()->add('<style> .ui-content { padding: 0px; }</style>'); if ($_GET['ac'] == "si") { $page = new jqmPage('shows', array('data-add-back-btn=true')); } elseif ($_GET['ac'] == "csl") { $page = new jqmPage('shows', array('data-add-back-btn' => 'true')); } else { $page = new jqmPage('shows'); } $currentPage = basename(__FILE__); switch ($_GET['ac']) { case 'csl': $page->theme('b')->title('Shows'); $page->header()->theme('a'); $nav = $page->header()->add(new jqmNavbar(), true); // $page->AddContent('<div style="padding: 15px;">');