remove tabs
This commit is contained in:
@@ -100,7 +100,7 @@ function checkBLOBStreamingPlugins()
|
|||||||
foreach ($existing_plugins as $one_existing_plugin) {
|
foreach ($existing_plugins as $one_existing_plugin) {
|
||||||
// check if required plugins exist
|
// check if required plugins exist
|
||||||
if ( strtolower($one_existing_plugin['Library']) == 'libpbms.so'
|
if ( strtolower($one_existing_plugin['Library']) == 'libpbms.so'
|
||||||
&& $one_existing_plugin['Status'] == "ACTIVE") {
|
&& $one_existing_plugin['Status'] == "ACTIVE") {
|
||||||
$has_blobstreaming = true;
|
$has_blobstreaming = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -308,11 +308,11 @@ function PMA_BS_CreateReferenceLink($bs_reference, $db_name)
|
|||||||
return 'Error';
|
return 'Error';
|
||||||
}
|
}
|
||||||
|
|
||||||
$content_type = pbms_get_metadata_value("Content-Type");
|
$content_type = pbms_get_metadata_value("Content-Type");
|
||||||
if ($content_type == FALSE) {
|
if ($content_type == FALSE) {
|
||||||
$br = trim($bs_reference);
|
$br = trim($bs_reference);
|
||||||
PMA_BS_ReportPBMSError("'$content_type' PMA_BS_CreateReferenceLink('$br', '$db_name'): get BLOB Content-Type failed: ");
|
PMA_BS_ReportPBMSError("'$content_type' PMA_BS_CreateReferenceLink('$br', '$db_name'): get BLOB Content-Type failed: ");
|
||||||
}
|
}
|
||||||
|
|
||||||
PMA_do_disconnect();
|
PMA_do_disconnect();
|
||||||
|
|
||||||
@@ -324,7 +324,7 @@ function PMA_BS_CreateReferenceLink($bs_reference, $db_name)
|
|||||||
if (empty($bs_url)) {
|
if (empty($bs_url)) {
|
||||||
PMA_BS_ReportPBMSError("No blob streaming server configured!");
|
PMA_BS_ReportPBMSError("No blob streaming server configured!");
|
||||||
return 'Error';
|
return 'Error';
|
||||||
}
|
}
|
||||||
|
|
||||||
$output = "<a href=\"#\" onclick=\"requestMIMETypeChange('" . urlencode($db_name) . "', '" . urlencode($GLOBALS['table']) . "', '" . urlencode($bs_reference) . "', '" . urlencode($content_type) . "')\">$content_type</a>";
|
$output = "<a href=\"#\" onclick=\"requestMIMETypeChange('" . urlencode($db_name) . "', '" . urlencode($GLOBALS['table']) . "', '" . urlencode($bs_reference) . "', '" . urlencode($content_type) . "')\">$content_type</a>";
|
||||||
|
|
||||||
@@ -339,7 +339,7 @@ function PMA_BS_CreateReferenceLink($bs_reference, $db_name)
|
|||||||
case 'image/png':
|
case 'image/png':
|
||||||
$output .= ' (<a href="' . $bs_url . '" target="new">' . __('View image') . '</a>)';
|
$output .= ' (<a href="' . $bs_url . '" target="new">' . __('View image') . '</a>)';
|
||||||
break;
|
break;
|
||||||
// audio content
|
// audio content
|
||||||
case 'audio/mpeg':
|
case 'audio/mpeg':
|
||||||
$output .= ' (<a href="#" onclick="popupBSMedia(\'' . PMA_generate_common_url() . '\',\'' . urlencode($bs_reference) . '\', \'' . urlencode($content_type) . '\',' . ($is_custom_type ? 1 : 0) . ', 640, 120)">' . __('Play audio'). '</a>)';
|
$output .= ' (<a href="#" onclick="popupBSMedia(\'' . PMA_generate_common_url() . '\',\'' . urlencode($bs_reference) . '\', \'' . urlencode($content_type) . '\',' . ($is_custom_type ? 1 : 0) . ', 640, 120)">' . __('Play audio'). '</a>)';
|
||||||
break;
|
break;
|
||||||
@@ -379,7 +379,7 @@ function PMA_BS_IsTablePBMSEnabled($db_name, $tbl_name, $tbl_type)
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! $PMA_Config->get('BLOBSTREAMING_PLUGINS_EXIST')) {
|
if (! $PMA_Config->get('BLOBSTREAMING_PLUGINS_EXIST')) {
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -413,7 +413,7 @@ function PMA_BS_UpLoadFile($db_name, $tbl_name, $file_type, $file_name)
|
|||||||
PMA_do_disconnect();
|
PMA_do_disconnect();
|
||||||
PMA_showMessage("Could not open file: $file_name");
|
PMA_showMessage("Could not open file: $file_name");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
pbms_add_metadata("Content-Type", $file_type);
|
pbms_add_metadata("Content-Type", $file_type);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user