Fixed some formatting to comply with style guidelines.
This commit is contained in:
parent
ce24055515
commit
c1b9acdefb
|
@ -1,7 +1,9 @@
|
|||
<?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'])){
|
||||
foreach ($_REQUEST['popup'] as $val) {
|
||||
|
@ -121,7 +123,7 @@ if (isset($_REQUEST['popup']) && is_array($_REQUEST['popup'])){
|
|||
$uiBrowser->gb->_gunidFromId($_REQUEST['id']),
|
||||
$_REQUEST['playlisttype'],
|
||||
$_REQUEST['exporttype']=='playlistOnly'?true:false);
|
||||
$fp=fopen($exportedPlaylist['fname'],'r');
|
||||
$fp = fopen($exportedPlaylist['fname'],'r');
|
||||
if (is_resource($fp)) {
|
||||
header("Content-Type: application/octet-stream");
|
||||
header("Content-Length: " . filesize($exportedPlaylist['fname']));
|
||||
|
@ -255,10 +257,11 @@ if ($uiBrowser->userid) {
|
|||
$Smarty->assign('structure', $uiBrowser->getStructure($uiBrowser->fid));
|
||||
$Smarty->assign('fileList', TRUE);
|
||||
|
||||
if ($_REQUEST['tree']=='Y')
|
||||
if ($_REQUEST['tree'] == 'Y') {
|
||||
$Smarty->assign('showTree', TRUE);
|
||||
else
|
||||
} else{
|
||||
$Smarty->assign('showObjects', TRUE);
|
||||
}
|
||||
|
||||
$Smarty->assign('delOverride', $_REQUEST['delOverride']);
|
||||
break;
|
||||
|
@ -269,7 +272,6 @@ if ($uiBrowser->userid) {
|
|||
$Smarty->assign('fileList', TRUE);
|
||||
break;
|
||||
|
||||
|
||||
case "uploadFileM":
|
||||
$Smarty->assign('structure', $uiBrowser->getStructure($uiBrowser->id));
|
||||
$Smarty->assign('uploadform', $uiBrowser->uploadFileM($ui_fmask['uploadFileM'], $uiBrowser->id));
|
||||
|
@ -298,7 +300,6 @@ if ($uiBrowser->userid) {
|
|||
$Smarty->assign('editItem', array('type' => $uiBrowser->type, 'id' => $_REQUEST['id'], 'folderId' => $uiBrowser->fid, 'curr_langid' => $_REQUEST['curr_langid']));
|
||||
break;
|
||||
|
||||
|
||||
case "SEARCH":
|
||||
$Smarty->assign('searchForm', $uiBrowser->SEARCH->searchForm($uiBrowser->id, $ui_fmask));
|
||||
$Smarty->assign('showLibrary', TRUE);
|
||||
|
@ -339,7 +340,6 @@ if ($uiBrowser->userid) {
|
|||
$Smarty->assign('showFile', TRUE);
|
||||
break;
|
||||
|
||||
|
||||
case "_analyzeFile":
|
||||
$Smarty->assign('_analyzeFile', $uiBrowser->_analyzeFile($uiBrowser->id, 'text'));
|
||||
$Smarty->assign('showFile', TRUE);
|
||||
|
|
Loading…
Reference in New Issue