This commit is contained in:
2019-10-06 06:46:23 -07:00
parent 5d96462b49
commit 1e37a7a134
494 changed files with 330 additions and 635207 deletions

View File

@@ -4,7 +4,7 @@
// Yuba RTC Browser
/////////////////////////////////////////////////////////////////
$browser_version = "0.7.12.6";
$browser_version = "0.7.13.0";
require "togggle.php";
require "lib/ref/ref.php";
@@ -12,7 +12,7 @@ require "lib/ref/ref.php";
ref::config('expLvl', 1);
ref::config('validHtml', TRUE);
$db_dir = "data/skim";
$db_dir = "data/debug";
$icon_size = 96;
$pad = 40;
$border_tools = array("sips","sox","ffmpeg","ql-thumbnail");
@@ -388,7 +388,11 @@ if ($db_file) {
$pid = $dbo->query("SELECT pid FROM family WHERE (rowid=2)")->fetch()['pid'];
// handle special strings
$view['opts'] = unserialize($view['opts']);
$view['qlmanage'] = array($view['qlmanage']);
if (is_serial($view['qlmanage'])) {
$view['qlmanage'] = unserialize($view['qlmanage']);
} else {
$view['qlmanage'] = array($view['qlmanage']);
}
$view['profile'] = array($view['profile']);
if ($view['details']) {
$view['details'] = unserialize($view['details']);
@@ -538,10 +542,19 @@ if ($db_file) {
}
echo $icon;
$qlm = $dbo->query("SELECT qlmanage FROM _skim")->fetch()['qlmanage'];
if (is_serial($qlm) && ($row_a['thumb_filename'] || $row_a['icon_filename'])) {
$qlm = unserialize($qlm);
$mytype = @$qlm['plugins'][@$row_b['ContentType']];
if (!empty($mytype)) {
echo "<br><br>QLGenerator used = ".$mytype."<br><br>";
}
}
// debug milk
if (count(@$row_e) > 1) {
if (@count($row_e) > 1) {
echo "<div class='dcontainer'>";
foreach($row_e as $title => $val) {
if ($title == "GPS" && $val) {
@@ -843,46 +856,49 @@ if ($db_file) {
$bundles = glob($db_dir."/*.bundle");
foreach ($bundles as $bundle) {
$exploded = explode("_", $bundle);
$sorted_bundles[$exploded[1]] = $bundle;
$sorted_bundles[$exploded[1]][] = $bundle;
}
ksort($sorted_bundles);
foreach ($sorted_bundles as $key => $bundle) {
foreach ($sorted_bundles as $row) {
foreach ($row as $bundle) {
echo "<div id='bundle'>";
$dbs = array_reverse(glob($bundle."/????-??-??_??-??-??.sqlite3"));
if ($dbs[0]) {
$dbo = new PDO("sqlite:".$dbs[0]);
$type = $dbo->query("SELECT type FROM _skim")->fetch()['type'];
echo "<img id='item' src='".$icons[$type]."'>";
}
$dbo = new PDO("sqlite:".$dbs[0]);
$info = $dbo->query("SELECT * FROM _skim")->fetch();
echo "<h2><a href='#'>".pathinfo($bundle)['filename']." (".$info['passed_total'].")</a></h2>";
echo "<div class='dblist'>";
foreach ($dbs as $db_file) {
$dbo = new PDO("sqlite:".$db_file);
$info = $dbo->query("SELECT * FROM _skim")->fetch();
if (strpos($info['status'],"completed") === 0) {
$seconds = str_replace("completed_in_","",$info['status']);
$s = (int)$seconds;
$status = sprintf("%02d:%02d:%02d:%02d", $s/86400, $s/3600%24, $s/60%60, $s%60);
echo "<div>";
} else {
echo "<div class='aborted'>";
$dbs = array_reverse(glob($bundle."/????-??-??_??-??-??.sqlite3"));
if ($dbs[0]) {
$dbo = new PDO("sqlite:".$dbs[0]);
$type = $dbo->query("SELECT type FROM _skim")->fetch()['type'];
echo "<img id='item' src='".$icons[$type]."'>";
}
echo "<a href='?db=".$db_file."'>".pathinfo($db_file)['filename']."</a>&nbsp;";
echo $info['version'].", ";
echo number_format($info['passed_total'])." files, ";
if ($info['image_file']) { echo $info['image_file'].", "; }
echo $status;
if (strpos($info['mdutil'],"disabled")) { echo " (no spotlight)"; }
$dbo = new PDO("sqlite:".$dbs[0]);
$info = $dbo->query("SELECT * FROM _skim")->fetch();
echo "<h2><a href='#'>".pathinfo($bundle)['filename']." (".$info['passed_total'].")</a></h2>";
echo "<div class='dblist'>";
foreach ($dbs as $db_file) {
$dbo = new PDO("sqlite:".$db_file);
$info = $dbo->query("SELECT * FROM _skim")->fetch();
if (strpos($info['status'],"completed") === 0) {
$seconds = str_replace("completed_in_","",$info['status']);
$s = (int)$seconds;
$status = sprintf("%02d:%02d:%02d:%02d", $s/86400, $s/3600%24, $s/60%60, $s%60);
echo "<div>";
} else {
echo "<div class='aborted'>";
}
echo "<a href='?db=".$db_file."'>".pathinfo($db_file)['filename']."</a>&nbsp;";
echo $info['version'].", ";
echo number_format($info['passed_total'])." files, ";
if ($info['image_file']) { echo $info['image_file'].", "; }
echo $status;
if (strpos($info['mdutil'],"disabled")) { echo " (no spotlight)"; }
echo "</div>";
}
echo "</div>";
echo "</div>";
}
echo "</div>";
echo "</div>";
}
}
@@ -894,4 +910,4 @@ echo "<div>Skim version = ".$skim_version.", RTC Browser Version = ".$browser_ve
?>
</body>
</html>
</html>