Fixed some formatting to comply with style guidelines.

This commit is contained in:
paul 2006-10-25 20:44:30 +00:00
parent ce24055515
commit c1b9acdefb

View file

@ -1,248 +1,250 @@
<?php <?php
require_once dirname(__FILE__).'/../ui_browser_init.php'; require_once(dirname(__FILE__).'/../ui_browser_init.php');
if (UI_DEBUG === TRUE) $Smarty->assign('DEBUG', TRUE); if (UI_DEBUG === TRUE) {
$Smarty->assign('DEBUG', TRUE);
}
if (isset($_REQUEST['popup']) && is_array($_REQUEST['popup'])){ if (isset($_REQUEST['popup']) && is_array($_REQUEST['popup'])){
foreach ($_REQUEST['popup'] as $val) { foreach ($_REQUEST['popup'] as $val) {
switch ($val) { switch ($val) {
case "jscom": case "jscom":
$Smarty->display('jscom.tpl'); $Smarty->display('jscom.tpl');
break; break;
case "_reload_parent": case "_reload_parent":
$Smarty->display('popup/_reload_parent.tpl'); $Smarty->display('popup/_reload_parent.tpl');
break; break;
case "_close": case "_close":
$Smarty->display('popup/_close.tpl'); $Smarty->display('popup/_close.tpl');
break; break;
case "_clear_parent": case "_clear_parent":
$Smarty->display('popup/_clear_parent.tpl'); $Smarty->display('popup/_clear_parent.tpl');
break; break;
case "_2PL.simpleManagement": case "_2PL.simpleManagement":
$Smarty->assign('target', 'PL.simpleManagement'); $Smarty->assign('target', 'PL.simpleManagement');
$Smarty->display('popup/_redirector.tpl'); $Smarty->display('popup/_redirector.tpl');
break; break;
case "_2PL.editMetaData": case "_2PL.editMetaData":
$Smarty->assign('target', 'PL.editMetaData'); $Smarty->assign('target', 'PL.editMetaData');
$Smarty->display('popup/_redirector.tpl'); $Smarty->display('popup/_redirector.tpl');
break; break;
case "_2changeStationPrefs": case "_2changeStationPrefs":
$Smarty->assign('target', 'changeStationPrefs'); $Smarty->assign('target', 'changeStationPrefs');
$Smarty->display('popup/_redirector.tpl'); $Smarty->display('popup/_redirector.tpl');
break; break;
case "_2SCHEDULER": case "_2SCHEDULER":
$Smarty->assign('target', 'SCHEDULER'); $Smarty->assign('target', 'SCHEDULER');
$Smarty->display('popup/_redirector.tpl'); $Smarty->display('popup/_redirector.tpl');
break; break;
case "login": case "login":
$Smarty->assign('dynform', $uiBrowser->login($ui_fmask)); $Smarty->assign('dynform', $uiBrowser->login($ui_fmask));
$Smarty->display('popup/login.tpl'); $Smarty->display('popup/login.tpl');
break; break;
case "logout": case "logout":
$Smarty->assign('logouttype', 'logout'); $Smarty->assign('logouttype', 'logout');
$Smarty->display('popup/logout.tpl'); $Smarty->display('popup/logout.tpl');
break; break;
case "signover_1": case "signover_1":
$Smarty->assign('logouttype', 'signover'); $Smarty->assign('logouttype', 'signover');
$Smarty->display('popup/logout.tpl'); $Smarty->display('popup/logout.tpl');
break; break;
case "signover_2": case "signover_2":
$Smarty->assign('loginform', $uiBrowser->loginform($Smarty, $ui_fmask)); $Smarty->assign('loginform', $uiBrowser->loginform($Smarty, $ui_fmask));
$Smarty->display('popup/login.tpl'); $Smarty->display('popup/login.tpl');
break; break;
case "deleteItem": case "deleteItem":
if (is_array($_REQUEST['id'])) { if (is_array($_REQUEST['id'])) {
foreach ($_REQUEST['id'] as $i) { foreach ($_REQUEST['id'] as $i) {
$idstr .= '&id[]='.$i; $idstr .= '&id[]='.$i;
} }
$Smarty->assign('filecount', count($_REQUEST['id'])); $Smarty->assign('filecount', count($_REQUEST['id']));
$Smarty->assign('idstr', $idstr); $Smarty->assign('idstr', $idstr);
} else { } else {
$Smarty->assign('filename', $uiBrowser->_getMDataValue($_REQUEST['id'], UI_MDATA_KEY_TITLE)); $Smarty->assign('filename', $uiBrowser->_getMDataValue($_REQUEST['id'], UI_MDATA_KEY_TITLE));
} }
$Smarty->display('popup/deleteItem.tpl'); $Smarty->display('popup/deleteItem.tpl');
break; break;
case "PL.changeTransition"; case "PL.changeTransition";
$Smarty->assign('dynform', $uiBrowser->PLAYLIST->changeTransitionForm($_REQUEST['id'], $_REQUEST['type'], $ui_fmask['PL.changeTransition'])); $Smarty->assign('dynform', $uiBrowser->PLAYLIST->changeTransitionForm($_REQUEST['id'], $_REQUEST['type'], $ui_fmask['PL.changeTransition']));
$Smarty->display('popup/PLAYLIST.changeTransition.tpl'); $Smarty->display('popup/PLAYLIST.changeTransition.tpl');
break; break;
case "PL.changeAllTransitions"; case "PL.changeAllTransitions";
$Smarty->assign('dynform', $uiBrowser->PLAYLIST->changeAllTransitionsForm($ui_fmask['PL.changeTransition'])); $Smarty->assign('dynform', $uiBrowser->PLAYLIST->changeAllTransitionsForm($ui_fmask['PL.changeTransition']));
$Smarty->display('popup/PLAYLIST.changeAllTransitions.tpl'); $Smarty->display('popup/PLAYLIST.changeAllTransitions.tpl');
break; break;
case "PL.confirmDelete": case "PL.confirmDelete":
$Smarty->display('popup/PLAYLIST.confirmDelete.tpl'); $Smarty->display('popup/PLAYLIST.confirmDelete.tpl');
break; break;
case "PL.confirmRevert": case "PL.confirmRevert":
$Smarty->display('popup/PLAYLIST.confirmRevert.tpl'); $Smarty->display('popup/PLAYLIST.confirmRevert.tpl');
break; break;
case "PL.confirmRelease": case "PL.confirmRelease":
$Smarty->display('popup/PLAYLIST.confirmRelease.tpl'); $Smarty->display('popup/PLAYLIST.confirmRelease.tpl');
break; break;
case "PL.arrangeItems": case "PL.arrangeItems":
$Smarty->display('popup/PLAYLIST.arrangeItems.tpl'); $Smarty->display('popup/PLAYLIST.arrangeItems.tpl');
break; break;
case "PL.setItemPlaylengthForm": case "PL.setItemPlaylengthForm":
$Smarty->assign('dynform', $uiBrowser->PLAYLIST->setItemPlaylengthForm($_REQUEST['id'], $_REQUEST['elemId'], $ui_fmask['PL.setItemPlaylength'])); $Smarty->assign('dynform', $uiBrowser->PLAYLIST->setItemPlaylengthForm($_REQUEST['id'], $_REQUEST['elemId'], $ui_fmask['PL.setItemPlaylength']));
$Smarty->display('popup/PLAYLIST.setItemPlaylength.tpl'); $Smarty->display('popup/PLAYLIST.setItemPlaylength.tpl');
break; break;
case "PL.export": case "PL.export":
$Smarty->assign('dynform',$uiBrowser->PLAYLIST->exportForm($_REQUEST['id'],$ui_fmask['PL.export'])); $Smarty->assign('dynform',$uiBrowser->PLAYLIST->exportForm($_REQUEST['id'],$ui_fmask['PL.export']));
$Smarty->display('popup/PLAYLIST.export.tpl'); $Smarty->display('popup/PLAYLIST.export.tpl');
break; break;
case "PL.redirect2DownloadExportedFile": case "PL.redirect2DownloadExportedFile":
$Smarty->assign('href', UI_BROWSER."?popup[]=PL.downloadExportedFile&id={$_REQUEST['id']}&playlisttype={$_REQUEST['playlisttype']}&exporttype={$_REQUEST['exporttype']}"); $Smarty->assign('href', UI_BROWSER."?popup[]=PL.downloadExportedFile&id={$_REQUEST['id']}&playlisttype={$_REQUEST['playlisttype']}&exporttype={$_REQUEST['exporttype']}");
$Smarty->display('popup/PLAYLIST.downloadExportedFile.tpl'); $Smarty->display('popup/PLAYLIST.downloadExportedFile.tpl');
break; break;
case "PL.downloadExportedFile": case "PL.downloadExportedFile":
$exportedPlaylist = $uiBrowser->gb->exportPlaylistOpen($uiBrowser->sessid, $exportedPlaylist = $uiBrowser->gb->exportPlaylistOpen($uiBrowser->sessid,
$uiBrowser->gb->_gunidFromId($_REQUEST['id']), $uiBrowser->gb->_gunidFromId($_REQUEST['id']),
$_REQUEST['playlisttype'], $_REQUEST['playlisttype'],
$_REQUEST['exporttype']=='playlistOnly'?true:false); $_REQUEST['exporttype']=='playlistOnly'?true:false);
$fp=fopen($exportedPlaylist['fname'],'r'); $fp = fopen($exportedPlaylist['fname'],'r');
if (is_resource($fp)) { if (is_resource($fp)) {
header("Content-Type: application/octet-stream"); header("Content-Type: application/octet-stream");
header("Content-Length: " . filesize($exportedPlaylist['fname'])); header("Content-Length: " . filesize($exportedPlaylist['fname']));
header('Content-Disposition: attachment; filename="playlist.tar"'); header('Content-Disposition: attachment; filename="playlist.tar"');
header("Content-Transfer-Encoding: binary\n"); header("Content-Transfer-Encoding: binary\n");
fpassthru($fp); fpassthru($fp);
$uiBrowser->gb->exportPlaylistClose($exportedPlaylist['token']); $uiBrowser->gb->exportPlaylistClose($exportedPlaylist['token']);
} }
//$Smarty->display('popup/PLAYLIST.downloadExportedFile.tpl'); //$Smarty->display('popup/PLAYLIST.downloadExportedFile.tpl');
break; break;
case "SCHEDULER.addItem": case "SCHEDULER.addItem":
$Smarty->display('popup/SCHEDULER.addItem.tpl'); $Smarty->display('popup/SCHEDULER.addItem.tpl');
break; break;
case "SCHEDULER.removeItem": case "SCHEDULER.removeItem":
$Smarty->assign('playlistName', $uiBrowser->_getMDataValue($_REQUEST['playlistId'], UI_MDATA_KEY_TITLE)); $Smarty->assign('playlistName', $uiBrowser->_getMDataValue($_REQUEST['playlistId'], UI_MDATA_KEY_TITLE));
$Smarty->display('popup/SCHEDULER.removeItem.tpl'); $Smarty->display('popup/SCHEDULER.removeItem.tpl');
break; break;
case "SUBJECTS.confirmRemoveSubj": case "SUBJECTS.confirmRemoveSubj":
$Smarty->display('popup/SUBJECTS.confirmRemoveSubj.tpl'); $Smarty->display('popup/SUBJECTS.confirmRemoveSubj.tpl');
break; break;
case "testStream": case "testStream":
$Smarty->assign('data', $uiBrowser->testStream($_REQUEST['url'])); $Smarty->assign('data', $uiBrowser->testStream($_REQUEST['url']));
$Smarty->display('popup/testStream.tpl'); $Smarty->display('popup/testStream.tpl');
break; break;
case "listen2Audio": case "listen2Audio":
$Smarty->assign('data', $uiBrowser->listen2Audio($_REQUEST['id'])); $Smarty->assign('data', $uiBrowser->listen2Audio($_REQUEST['id']));
$Smarty->display('popup/listen2Audio.tpl'); $Smarty->display('popup/listen2Audio.tpl');
break; break;
case "help": case "help":
$Smarty->display('popup/help.tpl'); $Smarty->display('popup/help.tpl');
break; break;
case 'BACKUP.setLocation': case 'BACKUP.setLocation':
if ($_REQUEST['cd']) { if ($_REQUEST['cd']) {
$uiBrowser->EXCHANGE->setFolder($_REQUEST['cd']); $uiBrowser->EXCHANGE->setFolder($_REQUEST['cd']);
} }
$Smarty->assign('isRestore',$_REQUEST['isRestore']); $Smarty->assign('isRestore',$_REQUEST['isRestore']);
$Smarty->display('backup/fileBrowser.tpl'); $Smarty->display('backup/fileBrowser.tpl');
break; break;
case 'BACKUP.setFile': case 'BACKUP.setFile':
$Smarty->assign('isFile',$uiBrowser->EXCHANGE->setFile($_REQUEST['file'])); $Smarty->assign('isFile',$uiBrowser->EXCHANGE->setFile($_REQUEST['file']));
$Smarty->assign('isRestore',$_REQUEST['isRestore']); $Smarty->assign('isRestore',$_REQUEST['isRestore']);
$Smarty->display('backup/fileBrowser.tpl'); $Smarty->display('backup/fileBrowser.tpl');
break; break;
case 'BACKUP.createBackupDownload': case 'BACKUP.createBackupDownload':
$uiBrowser->EXCHANGE->createBackupDownload(); $uiBrowser->EXCHANGE->createBackupDownload();
break; break;
case 'TR.confirmUpload2Hub': case 'TR.confirmUpload2Hub':
$uiBrowser->TRANSFERS->upload2Hub($_REQUEST['id']); $uiBrowser->TRANSFERS->upload2Hub($_REQUEST['id']);
$Smarty->display('popup/TR.confirmTransfer.tpl'); $Smarty->display('popup/TR.confirmTransfer.tpl');
break; break;
case 'TR.confirmDownloadFromHub': case 'TR.confirmDownloadFromHub':
$uiBrowser->TRANSFERS->downloadFromHub($_REQUEST['id']); $uiBrowser->TRANSFERS->downloadFromHub($_REQUEST['id']);
$Smarty->display('popup/TR.confirmTransfer.tpl'); $Smarty->display('popup/TR.confirmTransfer.tpl');
break; break;
case 'TR.pause': case 'TR.pause':
$uiBrowser->TRANSFERS->doTransportAction($_REQUEST['id'],'pause'); $uiBrowser->TRANSFERS->doTransportAction($_REQUEST['id'],'pause');
$Smarty->display('popup/TR.pauseTransfer.tpl'); $Smarty->display('popup/TR.pauseTransfer.tpl');
break; break;
case 'TR.cancel': case 'TR.cancel':
$ids = ''; $ids = '';
if (is_array($_REQUEST['id'])) { if (is_array($_REQUEST['id'])) {
foreach ($_REQUEST['id'] as $id) { foreach ($_REQUEST['id'] as $id) {
$ids .= '&id[]='.$id; $ids .= '&id[]='.$id;
} }
} else { } else {
$ids = '&id='.$_REQUEST['id']; $ids = '&id='.$_REQUEST['id'];
} }
$Smarty->assign('tansferIDs',$ids); $Smarty->assign('tansferIDs',$ids);
$Smarty->display('popup/TR.cancelTransfer.tpl'); $Smarty->display('popup/TR.cancelTransfer.tpl');
break; break;
case 'TR.resume': case 'TR.resume':
$uiBrowser->TRANSFERS->doTransportAction($_REQUEST['id'],'resume'); $uiBrowser->TRANSFERS->doTransportAction($_REQUEST['id'],'resume');
$Smarty->display('popup/TR.resumeTransfer.tpl'); $Smarty->display('popup/TR.resumeTransfer.tpl');
break; break;
case 'HUBBROWSE.getResults': case 'HUBBROWSE.getResults':
if (isset($_REQUEST['trtokid'])) { if (isset($_REQUEST['trtokid'])) {
$Smarty->assign('trtokid',$_REQUEST['trtokid']); $Smarty->assign('trtokid',$_REQUEST['trtokid']);
if ($uiBrowser->HUBBROWSE->getSearchResults($_REQUEST['trtokid'])) { if ($uiBrowser->HUBBROWSE->getSearchResults($_REQUEST['trtokid'])) {
$Smarty->assign('results',true); $Smarty->assign('results',true);
} else { } else {
$Smarty->assign('results',false); $Smarty->assign('results',false);
} }
} else { } else {
$Smarty->assign('trtokid',$uiBrowser->HUBBROWSE->searchDB()); $Smarty->assign('trtokid',$uiBrowser->HUBBROWSE->searchDB());
$Smarty->assign('results',false); $Smarty->assign('results',false);
} }
$Smarty->assign('polling_frequency',UI_HUB_POLLING_FREQUENCY); $Smarty->assign('polling_frequency',UI_HUB_POLLING_FREQUENCY);
$Smarty->assign('_prefix','HUBBROWSE'); $Smarty->assign('_prefix','HUBBROWSE');
$Smarty->display('popup/HUB.getResults.tpl'); $Smarty->display('popup/HUB.getResults.tpl');
break; break;
case 'HUBSEARCH.getResults': case 'HUBSEARCH.getResults':
if (isset($_REQUEST['trtokid']) && $_REQUEST['trtokid']) { if (isset($_REQUEST['trtokid']) && $_REQUEST['trtokid']) {
$Smarty->assign('trtokid',$_REQUEST['trtokid']); $Smarty->assign('trtokid',$_REQUEST['trtokid']);
if ($uiBrowser->HUBSEARCH->getSearchResults($_REQUEST['trtokid'])) { if ($uiBrowser->HUBSEARCH->getSearchResults($_REQUEST['trtokid'])) {
$Smarty->assign('results',true); $Smarty->assign('results',true);
} else { } else {
$Smarty->assign('results',false); $Smarty->assign('results',false);
} }
} else { } else {
$Smarty->assign('trtok',true); $Smarty->assign('trtok',true);
} }
$Smarty->assign('polling_frequency',UI_HUB_POLLING_FREQUENCY); $Smarty->assign('polling_frequency',UI_HUB_POLLING_FREQUENCY);
$Smarty->assign('_prefix','HUBSEARCH'); $Smarty->assign('_prefix','HUBSEARCH');
$Smarty->display('popup/HUB.getResults.tpl'); $Smarty->display('popup/HUB.getResults.tpl');
break; break;
} }
} }
die(); die();
@ -252,123 +254,121 @@ if ($uiBrowser->userid) {
$action = isset($_REQUEST['act']) ? $_REQUEST['act'] : null; $action = isset($_REQUEST['act']) ? $_REQUEST['act'] : null;
switch ($action) { switch ($action) {
case "fileList": case "fileList":
$Smarty->assign('structure', $uiBrowser->getStructure($uiBrowser->fid)); $Smarty->assign('structure', $uiBrowser->getStructure($uiBrowser->fid));
$Smarty->assign('fileList', TRUE); $Smarty->assign('fileList', TRUE);
if ($_REQUEST['tree']=='Y') if ($_REQUEST['tree'] == 'Y') {
$Smarty->assign('showTree', TRUE); $Smarty->assign('showTree', TRUE);
else } else{
$Smarty->assign('showObjects', TRUE); $Smarty->assign('showObjects', TRUE);
}
$Smarty->assign('delOverride', $_REQUEST['delOverride']); $Smarty->assign('delOverride', $_REQUEST['delOverride']);
break; break;
case "permissions": case "permissions":
$Smarty->assign('structure', $uiBrowser->getStructure($uiBrowser->id)); $Smarty->assign('structure', $uiBrowser->getStructure($uiBrowser->id));
$Smarty->assign('permissions', $uiBrowser->permissions($uiBrowser->id)); $Smarty->assign('permissions', $uiBrowser->permissions($uiBrowser->id));
$Smarty->assign('fileList', TRUE); $Smarty->assign('fileList', TRUE);
break; break;
case "uploadFileM": case "uploadFileM":
$Smarty->assign('structure', $uiBrowser->getStructure($uiBrowser->id)); $Smarty->assign('structure', $uiBrowser->getStructure($uiBrowser->id));
$Smarty->assign('uploadform', $uiBrowser->uploadFileM($ui_fmask['uploadFileM'], $uiBrowser->id)); $Smarty->assign('uploadform', $uiBrowser->uploadFileM($ui_fmask['uploadFileM'], $uiBrowser->id));
break; break;
case "addFileData": case "addFileData":
case "addFileMData": case "addFileMData":
$Smarty->assign('structure', $uiBrowser->getStructure($uiBrowser->id)); $Smarty->assign('structure', $uiBrowser->getStructure($uiBrowser->id));
$id = isset($_REQUEST['id']) ? $_REQUEST['id'] : null; $id = isset($_REQUEST['id']) ? $_REQUEST['id'] : null;
$langId = isset($_REQUEST['curr_langid']) ? $_REQUEST['curr_langid'] : null; $langId = isset($_REQUEST['curr_langid']) ? $_REQUEST['curr_langid'] : null;
$Smarty->assign('editItem', array('type' => 'audioclip', $Smarty->assign('editItem', array('type' => 'audioclip',
'id' => $id, 'id' => $id,
'folderId' => $uiBrowser->fid, 'folderId' => $uiBrowser->fid,
'curr_langid' => $langId)); 'curr_langid' => $langId));
break; break;
case "addWebstreamData": case "addWebstreamData":
case "addWebstreamMData": case "addWebstreamMData":
$Smarty->assign('structure', $uiBrowser->getStructure($uiBrowser->id)); $Smarty->assign('structure', $uiBrowser->getStructure($uiBrowser->id));
$Smarty->assign('editItem', array('type' => 'webstream', 'id' => $_REQUEST['id'], 'folderId' => $uiBrowser->fid, 'curr_langid' => $_REQUEST['curr_langid'])); $Smarty->assign('editItem', array('type' => 'webstream', 'id' => $_REQUEST['id'], 'folderId' => $uiBrowser->fid, 'curr_langid' => $_REQUEST['curr_langid']));
break; break;
case "editItem": case "editItem":
$uiBrowser->SCRATCHPAD->addItem($_REQUEST['id']); $uiBrowser->SCRATCHPAD->addItem($_REQUEST['id']);
$Smarty->assign('structure', $uiBrowser->getStructure($uiBrowser->id)); $Smarty->assign('structure', $uiBrowser->getStructure($uiBrowser->id));
$Smarty->assign('editItem', array('type' => $uiBrowser->type, 'id' => $_REQUEST['id'], 'folderId' => $uiBrowser->fid, 'curr_langid' => $_REQUEST['curr_langid'])); $Smarty->assign('editItem', array('type' => $uiBrowser->type, 'id' => $_REQUEST['id'], 'folderId' => $uiBrowser->fid, 'curr_langid' => $_REQUEST['curr_langid']));
break; break;
case "SEARCH": case "SEARCH":
$Smarty->assign('searchForm', $uiBrowser->SEARCH->searchForm($uiBrowser->id, $ui_fmask)); $Smarty->assign('searchForm', $uiBrowser->SEARCH->searchForm($uiBrowser->id, $ui_fmask));
$Smarty->assign('showLibrary', TRUE); $Smarty->assign('showLibrary', TRUE);
break; break;
case "BROWSE": case "BROWSE":
#echo '<XMP>uiBrowser->BROWSE->getResult():'; print_r($uiBrowser->BROWSE->getResult()); echo "</XMP>\n"; #echo '<XMP>uiBrowser->BROWSE->getResult():'; print_r($uiBrowser->BROWSE->getResult()); echo "</XMP>\n";
$Smarty->assign('browseForm', $uiBrowser->BROWSE->browseForm($uiBrowser->id, $ui_fmask)); $Smarty->assign('browseForm', $uiBrowser->BROWSE->browseForm($uiBrowser->id, $ui_fmask));
$Smarty->assign('showLibrary', TRUE); $Smarty->assign('showLibrary', TRUE);
break; break;
case "HUBSEARCH": case "HUBSEARCH":
#echo '<XMP>_REQUEST:'; print_r($_REQUEST); echo "</XMP>\n"; #echo '<XMP>_REQUEST:'; print_r($_REQUEST); echo "</XMP>\n";
#$Smarty->assign('searchForm', $uiBrowser->HUBSEARCH->searchForm($uiBrowser->id, $ui_fmask)); #$Smarty->assign('searchForm', $uiBrowser->HUBSEARCH->searchForm($uiBrowser->id, $ui_fmask));
$Smarty->assign('hubSearchForm', $uiBrowser->HUBSEARCH->searchForm($uiBrowser->id, $ui_fmask)); $Smarty->assign('hubSearchForm', $uiBrowser->HUBSEARCH->searchForm($uiBrowser->id, $ui_fmask));
$Smarty->assign('showLibrary', TRUE); $Smarty->assign('showLibrary', TRUE);
$Smarty->assign('isHub', TRUE); $Smarty->assign('isHub', TRUE);
break; break;
case "HUBBROWSE": case "HUBBROWSE":
$Smarty->assign('hubBrowseForm', $uiBrowser->HUBBROWSE->browseForm($uiBrowser->id, $ui_fmask)); $Smarty->assign('hubBrowseForm', $uiBrowser->HUBBROWSE->browseForm($uiBrowser->id, $ui_fmask));
$Smarty->assign('showLibrary', TRUE); $Smarty->assign('showLibrary', TRUE);
$Smarty->assign('isHub', TRUE); $Smarty->assign('isHub', TRUE);
break; break;
case "TRANSFERS": case "TRANSFERS":
$Smarty->assign('transfersForm', TRUE); $Smarty->assign('transfersForm', TRUE);
$Smarty->assign('showLibrary', TRUE); $Smarty->assign('showLibrary', TRUE);
break; break;
case "getFile": case "getFile":
$Smarty->assign('fData', $uiBrowser->getFile($uiBrowser->id)); $Smarty->assign('fData', $uiBrowser->getFile($uiBrowser->id));
$Smarty->assign('showFile', TRUE); $Smarty->assign('showFile', TRUE);
break; break;
case "getMData": case "getMData":
$Smarty->assign('fMetaData', $uiBrowser->getMdata($uiBrowser->id)); $Smarty->assign('fMetaData', $uiBrowser->getMdata($uiBrowser->id));
$Smarty->assign('showFile', TRUE); $Smarty->assign('showFile', TRUE);
break; break;
case "_analyzeFile": case "_analyzeFile":
$Smarty->assign('_analyzeFile', $uiBrowser->_analyzeFile($uiBrowser->id, 'text')); $Smarty->assign('_analyzeFile', $uiBrowser->_analyzeFile($uiBrowser->id, 'text'));
$Smarty->assign('showFile', TRUE); $Smarty->assign('showFile', TRUE);
break; break;
case "changeStationPrefs": case "changeStationPrefs":
$Smarty->assign('dynform', $uiBrowser->changeStationPrefs($ui_fmask['stationPrefs'])); $Smarty->assign('dynform', $uiBrowser->changeStationPrefs($ui_fmask['stationPrefs']));
$Smarty->assign('changeStationPrefs', TRUE); $Smarty->assign('changeStationPrefs', TRUE);
break; break;
case "PL.simpleManagement": case "PL.simpleManagement":
$Smarty->assign('PL_simpleManagement', TRUE); $Smarty->assign('PL_simpleManagement', TRUE);
break; break;
case "PL.editMetaData": case "PL.editMetaData":
$Smarty->assign('PL_editMetaData', TRUE); $Smarty->assign('PL_editMetaData', TRUE);
$Smarty->assign('_PL', array('curr_langid' => $_REQUEST['curr_langid'])); $Smarty->assign('_PL', array('curr_langid' => $_REQUEST['curr_langid']));
$Smarty->assign('PL_simpleManagement', TRUE); $Smarty->assign('PL_simpleManagement', TRUE);
break; break;
case "PL.import": case "PL.import":
$Smarty->assign('dynform', $uiBrowser->PLAYLIST->importForm($_REQUEST['id'], $ui_fmask['PL.import'])); $Smarty->assign('dynform', $uiBrowser->PLAYLIST->importForm($_REQUEST['id'], $ui_fmask['PL.import']));
$Smarty->assign('PL_import', TRUE); $Smarty->assign('PL_import', TRUE);
$Smarty->assign('PL_simpleManagement', TRUE); $Smarty->assign('PL_simpleManagement', TRUE);
break; break;
case "SCHEDULER": case "SCHEDULER":
$Smarty->assign('showScheduler', TRUE); $Smarty->assign('showScheduler', TRUE);
break; break;
case "SUBJECTS": case "SUBJECTS":
case "SUBJECTS.manageGroupMember": case "SUBJECTS.manageGroupMember":
@ -376,17 +376,17 @@ if ($uiBrowser->userid) {
case "SUBJECTS.addGroup": case "SUBJECTS.addGroup":
case "SUBJECTS.remSubj": case "SUBJECTS.remSubj":
case "SUBJECTS.chgPasswd": case "SUBJECTS.chgPasswd":
$Smarty->assign('showSubjects', TRUE); $Smarty->assign('showSubjects', TRUE);
$Smarty->assign('act', $action); $Smarty->assign('act', $action);
break; break;
case "BACKUP": case "BACKUP":
case "RESTORE": case "RESTORE":
case "BACKUP.schedule": case "BACKUP.schedule":
case "SCHEDULER.import": case "SCHEDULER.import":
case "SCHEDULER.export": case "SCHEDULER.export":
$Smarty->assign('act', $action); $Smarty->assign('act', $action);
break; break;
} }
if ($action != 'SCHEDULER') { if ($action != 'SCHEDULER') {