Fixed some formatting to comply with style guidelines.
This commit is contained in:
parent
3d03ae059d
commit
ce24055515
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
require dirname(__FILE__).'/../ui_handler_init.php';
|
||||
require(dirname(__FILE__).'/../ui_handler_init.php');
|
||||
|
||||
switch($_REQUEST['act']){
|
||||
switch ($_REQUEST['act']) {
|
||||
|
||||
case "login":
|
||||
if ($uiHandler->login($_REQUEST, $ui_fmask["login"]) === TRUE) {
|
||||
|
@ -23,11 +23,11 @@ switch($_REQUEST['act']){
|
|||
$uiHandler->logout(TRUE);
|
||||
break;
|
||||
|
||||
|
||||
## file/webstream handling
|
||||
case "addFileData":
|
||||
if (($ui_tmpid = $uiHandler->uploadFile(array_merge($_REQUEST, $_FILES), $ui_fmask["file"])) !== FALSE)
|
||||
if (($ui_tmpid = $uiHandler->uploadFile(array_merge($_REQUEST, $_FILES), $ui_fmask["file"])) !== FALSE) {
|
||||
$uiHandler->SCRATCHPAD->addItem($ui_tmpid);
|
||||
}
|
||||
break;
|
||||
|
||||
case "addWebstreamData":
|
||||
|
@ -240,26 +240,29 @@ switch($_REQUEST['act']){
|
|||
break;
|
||||
|
||||
case "PL.activate":
|
||||
if ($uiHandler->PLAYLIST->activate($_REQUEST['id']) === TRUE)
|
||||
if ($uiHandler->PLAYLIST->activate($_REQUEST['id']) === TRUE) {
|
||||
$uiHandler->SCRATCHPAD->addItem($_REQUEST['id']);
|
||||
}
|
||||
$uiHandler->PLAYLIST->setRedirect();
|
||||
break;
|
||||
|
||||
case "PL.create":
|
||||
if (($ui_tmpid = $uiHandler->PLAYLIST->create($_REQUEST['id'])) !== FALSE) {
|
||||
if ($_REQUEST['id']) $uiHandler->SCRATCHPAD->addItem($_REQUEST['id']);
|
||||
if ($_REQUEST['id']) {
|
||||
$uiHandler->SCRATCHPAD->addItem($_REQUEST['id']);
|
||||
}
|
||||
$uiHandler->SCRATCHPAD->addItem($ui_tmpid);
|
||||
}
|
||||
$uiHandler->PLAYLIST->setRedirect('_2PL.editMetaData');
|
||||
break;
|
||||
|
||||
case "PL.addItem":
|
||||
if ($uiHandler->PLAYLIST->addItem($_REQUEST['id'], $_REQUEST['playlength']) !== FALSE)
|
||||
if ($uiHandler->PLAYLIST->addItem($_REQUEST['id'], $_REQUEST['playlength']) !== FALSE) {
|
||||
$uiHandler->SCRATCHPAD->addItem($_REQUEST['id']);
|
||||
}
|
||||
$uiHandler->PLAYLIST->setReload();
|
||||
break;
|
||||
|
||||
|
||||
case "PL.setItemPlaylength":
|
||||
$uiHandler->PLAYLIST->setItemPlaylength($_REQUEST['elemId'], $_REQUEST['playlength']);
|
||||
$uiHandler->PLAYLIST->setReload();
|
||||
|
@ -276,14 +279,16 @@ switch($_REQUEST['act']){
|
|||
break;
|
||||
|
||||
case "PL.save":
|
||||
if (($ui_tmpid = $uiHandler->PLAYLIST->save()) !== FALSE)
|
||||
if (($ui_tmpid = $uiHandler->PLAYLIST->save()) !== FALSE) {
|
||||
$uiHandler->SCRATCHPAD->addItem($ui_tmpid);
|
||||
}
|
||||
$uiHandler->PLAYLIST->setReload();
|
||||
break;
|
||||
|
||||
case "PL.revert":
|
||||
if (($ui_tmpid = $uiHandler->PLAYLIST->revert()) !== FALSE)
|
||||
if (($ui_tmpid = $uiHandler->PLAYLIST->revert()) !== FALSE) {
|
||||
$uiHandler->SCRATCHPAD->addItem($ui_tmpid);
|
||||
}
|
||||
$uiHandler->PLAYLIST->setReload();
|
||||
break;
|
||||
|
||||
|
@ -324,8 +329,9 @@ switch($_REQUEST['act']){
|
|||
break;
|
||||
|
||||
case "PL.deleteActive":
|
||||
if (($ui_tmpid = $uiHandler->PLAYLIST->deleteActive()) !== FALSE)
|
||||
if (($ui_tmpid = $uiHandler->PLAYLIST->deleteActive()) !== FALSE) {
|
||||
$uiHandler->SCRATCHPAD->removeItems($ui_tmpid);
|
||||
}
|
||||
$uiHandler->PLAYLIST->setReload();
|
||||
break;
|
||||
|
||||
|
@ -419,17 +425,20 @@ switch($_REQUEST['act']){
|
|||
|
||||
case NULL:
|
||||
if ($uiHandler->userid) {
|
||||
$uiHandler->_retMsg('The uploaded filer is bigger than allowed in system settings. See "Help", chapter "Troubleshooting" for more information.');
|
||||
$uiHandler->_retMsg('The uploaded file is bigger than allowed in system settings. See "Help", chapter "Troubleshooting" for more information.');
|
||||
}
|
||||
|
||||
$uiHandler->redirUrl = UI_BROWSER;
|
||||
if ($_REQUEST['is_popup']) $uiHandler->redirUrl = UI_BROWSER.'?popup[]=_reload_parent&popup[]=_close';
|
||||
if ($_REQUEST['is_popup']) {
|
||||
$uiHandler->redirUrl = UI_BROWSER.'?popup[]=_reload_parent&popup[]=_close';
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
$uiHandler->_retMsg(tra('Unknown method: $1', $_REQUEST['act']));
|
||||
$uiHandler->redirUrl = UI_BROWSER;
|
||||
if ($_REQUEST['is_popup']) $uiHandler->redirUrl = UI_BROWSER.'?popup[]=_reload_parent&popup[]=_close';
|
||||
if ($_REQUEST['is_popup']) {
|
||||
$uiHandler->redirUrl = UI_BROWSER.'?popup[]=_reload_parent&popup[]=_close';
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue