16 require_once SQ_CORE_PACKAGE_PATH.
'/files/file/file_edit_fns.inc';
17 require_once SQ_FUDGE_PATH.
'/general/text.inc';
38 $this->static_screens[
'details'][
'force_unlock'] = 1;
65 function processFileUpload(&$asset, &$o, $prefix, $info=Array(), $redirect_in_limbo=TRUE, $asset_cloned=FALSE)
67 if (!parent::processFileUpload($asset, $o, $prefix, $info, $redirect_in_limbo, $asset_cloned)) {
72 if (!$asset->id)
return TRUE;
74 $info = $asset->getExistingFile();
78 if (SQ_TOOL_GETID3_ENABLED) {
79 $asset->setAttrValue(
'extract_id3', TRUE);
102 check_box($prefix.
'_extract_id3', 1, FALSE);
104 ?><em>Lock the asset to access
this option</em><?php
107 if (!SQ_TOOL_GETID3_ENABLED) {
109 ?><br/><span
class=
"sq-backend-warning">ID3 Tag extraction is not currently enabled</span><?php
132 if (!$asset->
writeAccess(
'attributes'))
return FALSE;
133 $extract = isset($_POST[$prefix.
'_extract_id3']);
159 check_box($prefix.
'_write_id3', 1, FALSE);
161 ?><em>Lock the asset to access
this option</em><?php
164 if (!SQ_TOOL_GETID3_ENABLED) {
166 ?><br/><span
class=
"sq-backend-warning">ID3 Tag writing is not currently enabled</span><?php
189 if (!$asset->
writeAccess(
'attributes'))
return FALSE;
190 $write = isset($_POST[$prefix.
'_write_id3']);