public function showBodyContent() { $playlistLink = SERVER_PATH . 'php/index.php?web&action=' . ViewPlaylistWebPageAction::getActionName() . URL_AMP . 'subaction=' . ViewPlaylistWebPageAction::SUBACTION_PLAYLIST_OPEN . URL_AMP . 'playlist=' . base64_encode($this->playlist->getFilename()) . URL_AMP . 'PHPSESID=' . session_id(); echo '<h3>Link: ' . htmlentities($this->title) . '</h3>' . "\n"; echo '<table class="linkTable"> <tr> <td width="22px"><img width="22px" height="22px" src="../resources/playlist/undo.png" /></td> <td width="100%" align="left"><a href="' . $playlistLink . '">Return to Playlist</a></td> </tr> </table>' . "\n"; echo '<table class="playlistTable">' . "\n"; echo ' <thead>' . "\n"; echo ' <tr>' . "\n"; echo ' <th width="24px"> </th>' . "\n"; echo ' </tr>' . "\n"; echo ' </thead>' . "\n"; echo ' <tbody>' . "\n"; echo ' <tr>' . "\n"; echo ' <td>' . "\n"; $this->showPlaylistLink(); echo ' </td>' . "\n"; echo ' </tr>' . "\n"; echo ' </tbody>' . "\n"; echo ' <tfoot>' . "\n"; echo ' <tr><th align="right"> </th></tr>' . "\n"; echo ' </tfoot>' . "\n"; echo '</table>' . "\n"; }
/** * Get playlist entry rss link. */ private function showPlaylistLinkItem(PlaylistLink $link) { $itemLink = 'index.php?action=' . ViewPlaylistWebPageAction::getActionName() . URL_AMP . 'subaction=' . ViewPlaylistWebPageAction::SUBACTION_PLAYLIST_LINK . URL_AMP . 'link=' . base64_encode($link->getKey()) . URL_AMP . 'PHPSESID=' . session_id(); $deleteLink = 'index.php?action=' . ViewPlaylistWebPageAction::getActionName() . URL_AMP . 'subaction=' . ViewPlaylistWebPageAction::SUBACTION_PLAYLIST_LINK_DELETE . URL_AMP . 'link=' . base64_encode($link->getKey()) . URL_AMP . 'PHPSESID=' . session_id(); echo ' <td width="42px"><img width="42px" height="56px" src="' . $link->getThumbnail() . '" style="border:0px;" /></td>' . "\n"; echo ' <td><p><a href="' . $itemLink . '">' . htmlentities($link->getTitle()) . '</a></p><p>' . htmlentities(utf8_decode($link->getLanguage())) . ', ' . htmlentities(utf8_decode($link->getFormat())) . ', ' . htmlentities(utf8_decode($link->getTypeDescription())) . '</p></td>' . "\n"; echo ' <td width="24px"><a href="' . $itemLink . '"><img width="22px" height="22px" src="../resources/playlist/view.png" style="border:0px;" /></a></td>' . "\n"; echo ' <td width="24px"><img width="22px" height="22px" src="../resources/playlist/edit.png" style="border:0px;" /></td>' . "\n"; echo ' <td width="24px"><a href="' . $deleteLink . '" onclick="return confirm(\'Are you sure to delete link ' . htmlentities(utf8_decode($link->getTitle())) . '?\');"><img width="22px" height="22px" src="../resources/playlist/remove.png" style="border:0px;" /></a></td>' . "\n"; }
private function showPlaylistFolder($folder) { $donwloadLink = 'index.php?web&action=' . ViewPlaylistWebPageAction::getActionName() . '&subaction=' . ViewPlaylistWebPageAction::SUBACTION_FOLDER_DOWNLOAD . '&download=' . base64_encode($folder) . '&PHPSESID=' . session_id(); $itemLink = 'index.php?web&action=' . ViewPlaylistWebPageAction::getActionName() . '&subaction=' . ViewPlaylistWebPageAction::SUBACTION_PLAYLIST_FOLDER_OPEN . '&folder=' . base64_encode($folder) . '&PHPSESID=' . session_id(); $deleteLink = 'index.php?web&action=' . ViewPlaylistWebPageAction::getActionName() . '&subaction=' . ViewPlaylistWebPageAction::SUBACTION_FOLDER_DELETE . '&folder=' . base64_encode($folder) . '&PHPSESID=' . session_id(); echo ' <td width="24px"><img width="22px" height="22px" src="../resources/playlist/folder_blue.png" /></td>' . "\n"; echo ' <td style="font-weight:bold;"><a href="' . $itemLink . '">' . htmlentities(utf8_decode($folder)) . '</td>' . "\n"; echo ' <td width="24px">' . ($folder != ".." ? '<a href="' . $donwloadLink . '" target="_blank"><img width="22px" height="22px" src="../resources/playlist/folder_down.png" style="border:0px;" alt="Donwload Folder" title="Donwload Folder" /></a>' : '') . '</td>' . "\n"; echo ' <td width="24px"><a href="' . $itemLink . '"><img width="22px" height="22px" src="../resources/playlist/view.png" style="border:0px;" alt="Load folder" title="Load folder" /></a></td>' . "\n"; echo ' <td width="24px">' . '</td>' . "\n"; echo ' <td width="24px"><a href="' . $deleteLink . '"><img width="22px" height="22px" src="../resources/playlist/remove.png" style="border:0px;" alt="Remove folder" title="Remove folder" onclick="return confirm(\'Are you sure to delete folder ' . htmlentities(utf8_decode($folder)) . '?\');" /></a></td>' . "\n"; }
public function showBodyContent() { $playlistLink = 'index.php?web&action=' . ViewPlaylistWebPageAction::getActionName() . '&subaction=' . ViewPlaylistWebPageAction::SUBACTION_PLAYLIST_OPEN . '&playlist=' . base64_encode($this->playlist->getFilename()) . '&PHPSESID=' . session_id(); echo '<h3 style="margin-bottom:10px;">Add Link to Playlist</h3>' . "\n"; echo '<table class="linkTable"> <tr> <td width="22px"><img width="22px" height="22px" src="../resources/playlist/undo.png" /></td> <td width="50%" align="left"> <a href="' . $playlistLink . '">Return to Playlist</a></td> <td width="22px"><img width="22px" height="22px" src="../resources/playlist/undo.png" /></td> <td width="50%"><a href="index.php?web&action=' . ViewPlaylistWebPageAction::getActionName() . '&PHPSESID=' . session_id() . '">Return to explorer</a></td> </tr> </table>' . "\n"; echo '<form action="index.php">' . "\n"; echo '<table class="playlistTable">' . "\n"; echo ' <thead>' . "\n"; echo ' <tr>' . "\n"; echo ' <th width="24px"> </th>' . "\n"; echo ' </tr>' . "\n"; echo ' </thead>' . "\n"; echo ' <tbody>' . "\n"; echo ' <tr>' . "\n"; echo ' <td>' . "\n"; ?> <table border="0" width="100%" cellpadding="0" cellspacing="0"> <tr> <td>Title (*): </td> <td><input type="text" id="title" name="title" value="" size="40" /></td> </tr> <tr> <td>Description: </td> <td><textarea id="description" name="description" rows="8" cols="40"></textarea></td> </tr> <tr> <td>Thumbnail: </td> <td><input type="text" id="thumbnail" name="thumbnail" value="" size="40" /> (Http link or Xtreamer file path)</td> </tr> <tr> <td>Format: </td> <td><input type="text" id="format" name="format" value="" size="50" /></td> </tr> <tr> <td>Language: </td> <td> <select id="language" name="language"> <option label="Arabic" value="ar">Arabic</option> <option label="Catalonia" value="ca">Catalonia</option> <option label="Deutch" value="de">Deutch</option> <option label="English" value="en">English</option> <option label="Estonian" value="et">Estonian</option> <option label="Finnish" value="fi">Finnish</option> <option label="French" value="fr">French</option> <option label="Greek" value="gr">Greek</option> <option label="Hebrew" value="he">Hebrew</option> <option label="Hungary" value="hu">Hungary</option> <option label="Italian" value="it">Italian</option> <option label="Korean" value="kr">Korean</option> <option label="Polish" value="pl">Polish</option> <option label="Portugal-BR" value="pr-b">Portugal-BR</option> <option label="Romanian" value="ro">Romanian</option> <option label="Russian" value="ru">Russian</option> <option label="Simplified Chinese" value="zh_CN">Simplified Chinese</option> <option label="Slovenian" value="sl">Slovenian</option> <option label="Spanish" value="es">Spanish</option> <option label="Swahili" value="sw">Swahili</option> <option label="Traditional Chinese" value="cn">Traditional Chinese</option> </select> </td> </tr> <tr> <td>Link/IDs (*): </td> <td><input type="text" id="link" name="link" value="" size="50" /> <br/>Megavideo/Megaupload IDs space separated, or direct http link to file </td> </tr> <tr> <td>Type (*): </td> <td> <select id="type" name="type"> <option value="MV">Megavideo</option> <option value="MU">Megaupload</option> <option value="HTTP">HTTP File</option> </select> </td> </tr> </table> <input type="hidden" name="web" value="" /> <input type="hidden" name="action" value="<?php echo ViewPlaylistWebPageAction::getActionName(); ?> " /> <input type="hidden" name="subaction" value="<?php echo ViewPlaylistWebPageAction::SUBACTION_PLAYLIST_LINK_SAVE; ?> " /> <input type="hidden" name="PHPSESID" value="<?php echo session_id(); ?> " /> <?php echo ' </td>' . "\n"; echo ' </tr>' . "\n"; echo ' </tbody>' . "\n"; echo ' <tfoot>' . "\n"; echo ' <tr><th align="right"><input type="submit" value="CREATE LINK" name="save" style="cursor:hand;height: 20px; font-size: 10px;" /> <input type="reset" value="CLEAR FIELDS" style="cursor:hand;height: 20px; font-size: 10px;" /></th></tr>' . "\n"; echo ' </tfoot>' . "\n"; echo '</table>' . "\n"; echo '</form>' . "\n"; }
public function showBodyContent() { $playlistUploadLink = SERVER_PATH . 'php/index.php?web&action=' . ViewPlaylistWebPageAction::getActionName() . '&subaction=' . ViewPlaylistWebPageAction::SUBACTION_PLAYLIST_UPLOAD_SAVE . '&PHPSESID=' . session_id(); $explorerLink = SERVER_PATH . 'php/index.php?web&action=' . ViewPlaylistWebPageAction::getActionName() . '&PHPSESID=' . session_id(); ?> <h3>Upload Playlist to <?php echo $this->basePath; ?> </h3> <table class="linkTable"> <tr> <td width="22px"><img width="22px" height="22px" src="../resources/playlist/undo.png" /></td> <td width="100%" align="left"><a href="<?php echo $explorerLink; ?> ">Return to Explorer</a></td> </tr> </table> <?php if ($this->message && count($this->message) > 0) { echo "<ul> \n"; foreach ($this->message as $value) { echo " <li style=\"font-weight:bold;\">" . $value . "</li>\n"; } echo "</ul> \n"; } ?> <form action="<?php echo $playlistUploadLink; ?> " method="POST" enctype="multipart/form-data"> <table class="playlistTable"> <thead> <tr> <th width="24px">Only upload files with XPLS extension</th> </tr> </thead> <tbody> <tr> <td> Use Upload File to upload file from your computer to Xtreamer. Or fill Upload Web File with a valid HTTP url that contains a valid XPLS format. <table border="0" width="100%" cellpadding="0" cellspacing="0"> <tr> <td>Upload File: </td> <td colspan="2"> <input type="file" name="uploadFile" value="" size="60" accept="xpls" /> <input type="hidden" name="MAX_FILE_SIZE" value="5000000"> </td> </tr> <tr> <td rowspan="2">Upload web file (http): </td> <td style="width:80px; border-bottom:0px;">Name:</td> <td style="border-bottom:0px;"><input type="text" name="uploadFileWebName" value="" size="20" /></td> </tr> <tr> <td style="width:80px;">Link (*):</td> <td><input type="text" name="uploadFileWeb" value="http://" size="50" /></td> </tr> <tr> <td>Return to Explorer: </td> <td colspan="2"><input type="checkbox" name="returnExplorer" value="ON" /></td> </tr> </table> </td> </tr> </tbody> <tfoot> <tr> <th align="right"> <input type="submit" value="UPLOAD DATA" name="save" style="cursor:hand;height: 20px; font-size: 10px;" /> <input type="reset" value="CLEAR FIELDS" style="cursor:hand;height: 20px; font-size: 10px;" /> </th> </tr> </tfoot> </table> </form> <?php }
public function dispatchAction($action) { $this->action = $action; //---------------------------------------------------------------- //------ VIEW RSS ACTIONS if ($action == ViewAboutPageAction::getActionName()) { $implAction = new ViewAboutPageAction(); // } else { if ($action == ViewBookmarksPageAction::getActionName()) { $implAction = new ViewBookmarksPageAction(); // } else { if ($action == ViewHomePageAction::getActionName()) { $implAction = new ViewHomePageAction(); // } else { if ($action == ViewPlaylistPageAction::getActionName()) { $implAction = new ViewPlaylistPageAction(); // } else { if ($action == ViewSetupPageAction::getActionName()) { $implAction = new ViewSetupPageAction(); // } else { if ($action == ViewWebsitesPageAction::getActionName()) { $implAction = new ViewWebsitesPageAction(); // // //----- VIEW WEB ACTIONS -------------------------------------- } else { if ($action == ViewWebHomePageAction::getActionName()) { $implAction = new ViewWebHomePageAction(); // } else { if ($action == ViewPlaylistWebPageAction::getActionName()) { $implAction = new ViewPlaylistWebPageAction(); // } else { if ($action == ViewScraperMegavideoPageAction::getActionName()) { $implAction = new ViewScraperMegavideoPageAction(); // } else { if ($action == SetupXvodPageAction::getActionName()) { $implAction = new SetupXvodPageAction(); // } else { if ($action == ViewScraperPageAction::getActionName()) { $implAction = new ViewScraperPageAction(); // } else { if ($action == ViewCookiePageAction::getActionName()) { $implAction = new ViewCookiePageAction(); // } else { if ($action == ViewFavouritePageAction::getActionName()) { $implAction = new ViewFavouritePageAction(); // } else { if ($action == ViewInformationPageAction::getActionName()) { $implAction = new ViewInformationPageAction(); } } } } } } } } } } } } } } //---------------------------------------------------------------- //------ NON VIEW RSS ACTIONS if (!$implAction) { if ($action == SaveBookmarkAction::getActionName()) { $implAction = new SaveBookmarkAction(); // } else { if ($action == DeleteBookmarkAction::getActionName()) { $implAction = new DeleteBookmarkAction(); // } else { if ($action == SaveFavouriteWebsiteAction::getActionName()) { $implAction = new SaveFavouriteWebsiteAction(); // } } } } //---------------------------------------------------------------- //Execute action if ($implAction) { $implAction->dispatch(); } else { } }
/** * Show page left menu. */ private function showBodyLeftMenu() { $explorePlaylist = "index.php?web&action=" . ViewPlaylistWebPageAction::getActionName() . "&PHPSEDID=" . session_id(); $addPlaylist = "index.php?web&action=" . ViewPlaylistWebPageAction::getActionName() . "&subaction=" . ViewPlaylistWebPageAction::SUBACTION_PLAYLIST_ADD . "&PHPSEDID=" . session_id(); $megavideoScraper = "index.php?web&action=" . ViewScraperMegavideoPageAction::getActionName() . "&PHPSEDID=" . session_id(); $megavideoScraperAdd = "index.php?web&action=" . ViewScraperMegavideoPageAction::getActionName() . "&subaction=" . ViewScraperMegavideoPageAction::SUBACTION_VIEW_ADD_LINK . "&PHPSEDID=" . session_id(); $scrapers = "index.php?web&action=" . ViewScraperPageAction::getActionName() . "&PHPSEDID=" . session_id(); $cookieSetup = "index.php?web&action=" . ViewCookiePageAction::getActionName() . "&PHPSEDID=" . session_id(); $information = "index.php?web&action=" . ViewInformationPageAction::getActionName() . "&PHPSEDID=" . session_id(); $favourites = "index.php?web&action=" . ViewFavouritePageAction::getActionName() . "&PHPSEDID=" . session_id(); ?> <p style="text-align:left; color: #FFFFFF; font-size: 18px; margin-bottom: 12px; text-indent: 18px;">xVoD Menu</p> <div id="square-box"> <div id="square-box-head">Playlist</div> <ul class="menu"> <li><a href="<?php echo $explorePlaylist; ?> ">Explore System</a></li> <li><a href="<?php echo $addPlaylist; ?> ">Add Playlist</a></li> </ul> </div> <div id="square-box"> <div id="square-box-head">xVoD Setup</div> <ul class="menu"> <li><a href="<?php echo $information; ?> ">Information</a></li> <li><a href="<?php echo $cookieSetup; ?> ">Cookie MU/MV</a></li> <li><a href="<?php echo $favourites; ?> ">Favourites</a></li> <li><a href="<?php echo $scrapers; ?> ">Scrapers</a></li> </ul> </div> <div id="square-box"> <div id="square-box-head">Megavideo Scraper</div> <ul class="menu"> <li><a href="<?php echo $megavideoScraperAdd; ?> ">Add link</a></li> <li><a href="<?php echo $megavideoScraper; ?> ">Link list</a></li> </ul> </div> <?php }