function removeVideoFromPlaylist() { require_once(JPATH_SITE.DS.'components'.DS.'com_hwdvideoshare'.DS.'models'.DS.'playlists.php'); hwd_vs_playlists::removeVideoFromPlaylist(); }
/** * Outputs frontpage HTML * * @return Nothing */ function savePlaylist() { global $mainframe, $params, $Itemid, $mosConfig_absolute_path, $mosConfig_mailfrom, $mosConfig_fromname, $mosConfig_live_site, $mosConfig_sitename; $c = hwd_vs_Config::get_instance(); $db = & JFactory::getDBO(); $my = & JFactory::getUser(); $acl= & JFactory::getACL(); if ($c->disablecaptcha == "0") { $sessid = session_id(); if (empty($sessid)) { session_start(); } if(($_SESSION['security_code'] == $_POST['security_code']) && (!empty($_SESSION['security_code'])) ) { // Insert you code for processing the form here, e.g emailing the submission, entering it into a database. hwd_vs_playlists::bindNewPlaylist(); unset($_SESSION['security_code']); } else { // Insert your code for showing an error message here hwd_vs_tools::infomessage(3, 0, _HWDVIDS_TITLE_UPLDFAIL, _HWDVIDS_ALERT_ERRSC, "exclamation.png", 0); return; } } else { hwd_vs_playlists::bindNewPlaylist(); } }