Merge pull request #51 from digital-gnome/storageareasFixes
Minor UI fixes
This commit is contained in:
commit
12b47cbfe4
|
@ -2076,7 +2076,7 @@ function cache_bust( $file ) {
|
||||||
# Use the last modified timestamp to create a link that gets a different filename
|
# Use the last modified timestamp to create a link that gets a different filename
|
||||||
# To defeat caching. Should probably use md5 hash
|
# To defeat caching. Should probably use md5 hash
|
||||||
$parts = pathinfo($file);
|
$parts = pathinfo($file);
|
||||||
$cacheFile = 'cache/'.$parts['filename'].'-'.filemtime($file).'.'.$parts['extension'];
|
$cacheFile = 'cache/'.$parts['filename'].'-'.$_COOKIE['zmCSS'].'-'.filemtime($file).'.'.$parts['extension'];
|
||||||
if ( file_exists( ZM_PATH_WEB.'/'.$cacheFile ) or symlink( ZM_PATH_WEB.'/'.$file, ZM_PATH_WEB.'/'.$cacheFile ) ) {
|
if ( file_exists( ZM_PATH_WEB.'/'.$cacheFile ) or symlink( ZM_PATH_WEB.'/'.$file, ZM_PATH_WEB.'/'.$cacheFile ) ) {
|
||||||
return $cacheFile;
|
return $cacheFile;
|
||||||
} else {
|
} else {
|
||||||
|
@ -2213,6 +2213,7 @@ function getStreamMode( ) {
|
||||||
$streamMode = 'single';
|
$streamMode = 'single';
|
||||||
Info( 'The system has fallen back to single jpeg mode for streaming. Consider enabling Cambozola or upgrading the client browser.' );
|
Info( 'The system has fallen back to single jpeg mode for streaming. Consider enabling Cambozola or upgrading the client browser.' );
|
||||||
}
|
}
|
||||||
|
return $streamMode;
|
||||||
} // end function getStreamMode
|
} // end function getStreamMode
|
||||||
|
|
||||||
function folder_size($dir) {
|
function folder_size($dir) {
|
||||||
|
|
|
@ -149,9 +149,9 @@ span.noneCue {
|
||||||
}
|
}
|
||||||
|
|
||||||
.dvrControls input {
|
.dvrControls input {
|
||||||
height: 20px;
|
height: 1.5em;
|
||||||
width: 28px;
|
width: 2em;
|
||||||
padding-bottom: 3px;
|
padding: 0 ;
|
||||||
margin: 0 3px;
|
margin: 0 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -518,7 +518,6 @@ input[type=submit]:disabled {
|
||||||
.sidebar {
|
.sidebar {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
bottom: 0;
|
|
||||||
left: 0;
|
left: 0;
|
||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
display: block;
|
display: block;
|
||||||
|
|
|
@ -131,9 +131,9 @@ span.noneCue {
|
||||||
}
|
}
|
||||||
|
|
||||||
.dvrControls input {
|
.dvrControls input {
|
||||||
height: 20px;
|
height: 1.5em;
|
||||||
width: 28px;
|
width: 2em;
|
||||||
padding-bottom: 3px;
|
padding: 0;
|
||||||
margin: 0 3px;
|
margin: 0 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -65,6 +65,7 @@ if ( $tab == 'skins' ) {
|
||||||
$current_css = $_COOKIE['zmCSS'];
|
$current_css = $_COOKIE['zmCSS'];
|
||||||
if ( isset($_GET['css-choice']) and ( $_GET['css-choice'] != $current_css ) ) {
|
if ( isset($_GET['css-choice']) and ( $_GET['css-choice'] != $current_css ) ) {
|
||||||
setcookie('zmCSS',$_GET['css-choice'], time()+3600*24*30*12*10 );
|
setcookie('zmCSS',$_GET['css-choice'], time()+3600*24*30*12*10 );
|
||||||
|
array_map('unlink', glob(ZM_PATH_WEB.'/cache/*')); //cleanup symlinks from cache_bust
|
||||||
//header("Location: index.php?view=options&tab=skins&reset_parent=1");
|
//header("Location: index.php?view=options&tab=skins&reset_parent=1");
|
||||||
$reload = true;
|
$reload = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue