0.7.11.5
This commit is contained in:
53
web/rtc.php
53
web/rtc.php
@@ -4,14 +4,18 @@
|
||||
// Yuba RTC Browser
|
||||
/////////////////////////////////////////////////////////////////
|
||||
|
||||
$browser_version = "0.7.10.3";
|
||||
$browser_version = "0.7.10.5";
|
||||
|
||||
require "togggle.php";
|
||||
require "lib/debug.php";
|
||||
require "lib/ref/ref.php";
|
||||
|
||||
ref::config('expLvl', 1);
|
||||
ref::config('validHtml', TRUE);
|
||||
|
||||
$db_dir = "data/skim";
|
||||
$icon_size = 96;
|
||||
$pad = 40;
|
||||
$overlay_exts = array("txt","php","inc","sh","md","json","cmd");
|
||||
|
||||
?>
|
||||
|
||||
@@ -22,6 +26,9 @@ $pad = 40;
|
||||
|
||||
html { font-family: Helvetica; word-wrap: break-word; }
|
||||
|
||||
table.file td { width: 33%; }
|
||||
table.dir td:last-of-type { width: 22%; }
|
||||
|
||||
div#exectime { position: absolute; right: 8px; top: 8px; }
|
||||
|
||||
div.container { display: flex; flex-flow: row wrap; justify-content: center; }
|
||||
@@ -61,7 +68,11 @@ div.size { color: grey; margin-top: 3px; }
|
||||
img#thumb { padding: 6px; border: 1px solid gainsboro; }
|
||||
img#item { float: left; margin-right: 10px; width: 32px; height: 32px; }
|
||||
img { margin-bottom: 8px; }
|
||||
|
||||
img#thumb.overlay { border: 0px !important;
|
||||
padding: 6px !important;
|
||||
-webkit-mask-image: url('/icons/mask.png');
|
||||
-webkit-mask-size: 100%;
|
||||
outline: 1px solid black; }
|
||||
div.fileinfo { font-size: 12px; }
|
||||
div.fileinfo span.title { display: table-cell; font-weight: bold; width: 200px; }
|
||||
div.fileinfo span.value { display: table-cell; }
|
||||
@@ -76,10 +87,12 @@ div.dblist { display: none; }
|
||||
|
||||
</style>
|
||||
|
||||
<script src="/lib/ref/ref.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.0/jquery.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/lazysizes/4.1.5/lazysizes.min.js"></script>
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="/lib/ref/ref.css">
|
||||
<link type="text/css" rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.css">
|
||||
|
||||
<script type="text/javascript">
|
||||
@@ -410,10 +423,14 @@ if ($db_file) {
|
||||
$skim_version = $dbo->query("SELECT version FROM _skim")->fetch()['version'];
|
||||
$spotlight_status = $dbo->query("SELECT mdutil FROM _skim")->fetch()['mdutil'];
|
||||
|
||||
echo "<table><tr>";
|
||||
$row_a = $dbo->query("SELECT rowid, * FROM files WHERE (pid='".$pid."')")->fetch();
|
||||
if (!$row_a) { // this file doesn't exist in this version of the db
|
||||
echo "<meta http-equiv='refresh' content='0; URL=".$_SERVER['REQUEST_URI']."&pid=' />";
|
||||
}
|
||||
|
||||
echo "<table class='file'><tr>";
|
||||
|
||||
echo "<td valign='top'>";
|
||||
$row_a = $dbo->query("SELECT rowid, * FROM files WHERE (pid='".$pid."')")->fetch();
|
||||
if (is_serial($row_a['stat'])) {
|
||||
$row_a['stat'] = unserialize($row_a['stat']);
|
||||
}
|
||||
@@ -530,19 +547,22 @@ if ($db_file) {
|
||||
|
||||
echo "<td valign='top'>";
|
||||
|
||||
debug(array($row_a),"file");
|
||||
r($row_a);
|
||||
|
||||
if ($row_b['spotlight']) {
|
||||
debug(array($row_b),"mdls");
|
||||
r($row_b);
|
||||
}
|
||||
|
||||
echo "</td><td valign='top'>";
|
||||
|
||||
if ($row_c) {
|
||||
debug(array(unserialize($row_c['tags'])),"exiftool");
|
||||
r(unserialize($row_c['tags']));
|
||||
}
|
||||
|
||||
ref::config('expLvl', 2);
|
||||
|
||||
if ($row_d) {
|
||||
debug(array(json_decode(json_encode(simplexml_load_string($row_d['info'])))),"mediainfo");
|
||||
r(json_decode(json_encode(simplexml_load_string(utf8_encode($row_d['info']))))->File->track);
|
||||
}
|
||||
|
||||
echo "</td>";
|
||||
@@ -563,7 +583,7 @@ if ($db_file) {
|
||||
|
||||
echo "<div class='controls'><a href='#' class='info'>info</a></div>";
|
||||
|
||||
echo "<table><tr><td valign='top'>";
|
||||
echo "<table class='dir'><tr><td valign='top'>";
|
||||
echo "<div class='container'>";
|
||||
|
||||
$spotlight_status = $dbo->query("SELECT mdutil FROM _skim")->fetch()['mdutil'];
|
||||
@@ -589,7 +609,15 @@ if ($db_file) {
|
||||
$visibility = "unhidden";
|
||||
}
|
||||
|
||||
//if (in_array($item['Extension'],$overlay_exts) && $item['thumb_filename']) {
|
||||
//
|
||||
//$realfile = dirname($db_file).$item['thumb_filename'];
|
||||
//$icon = "<img id='thumb' class='overlay' src='".$realfile."' width='".($icon_size*.8)."' height='".$icon_size."' data-width='".($icon_size*.8)."' data-height='".$icon_size."'>";
|
||||
|
||||
//} elseif ($item['thumb_filename']) {
|
||||
|
||||
if ($item['thumb_filename']) {
|
||||
|
||||
$aspect = $item['thumb_width']/$item['thumb_height'];
|
||||
if ($aspect > 1) {
|
||||
$width = $icon_size;
|
||||
@@ -604,6 +632,7 @@ if ($db_file) {
|
||||
$icon = "<img src='/icons/directory.png' width='".$icon_size."' height='".$icon_size."' data-width='".$icon_size."' data-height='".$icon_size."'>";
|
||||
} else {
|
||||
$icon = "<img src='".findicon($item['Filename'])."' width='".$icon_size."' height='".$icon_size."' data-width='".$icon_size."' data-height='".$icon_size."'>";
|
||||
|
||||
}
|
||||
|
||||
echo "\n<a class='".$visibility."' href='?db=".$db_file."&pid=".$item['pid']."'>".$icon."</a>";
|
||||
@@ -638,11 +667,11 @@ if ($db_file) {
|
||||
echo "</div>";
|
||||
echo "</td><td valign='top' class='sidebar'>";
|
||||
|
||||
debug($view,$view['Pathname']);
|
||||
r($view);
|
||||
|
||||
if ($dirmdls['spotlight']) {
|
||||
$dirmdls['spotlight'] = $parser->parseString(utf8_for_xml($dirmdls['spotlight']));
|
||||
debug(array($dirmdls),"mdls");
|
||||
r($dirmdls);
|
||||
}
|
||||
|
||||
echo "</td></tr></table>";
|
||||
|
||||
Reference in New Issue
Block a user