Commit 1e285708 authored by mkrause's avatar mkrause

Bugfix #10489: Extension uses file resources stored only in typo3.org fileadmin

git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/terfe/trunk@39591 735d13b6-9817-0410-8766-e36946ffe9aa
parent 24e629c1
28.10.2010 Steffen Kamper <marcus#exp2010@t3sec.info>
* Bugfix #10489: Extension uses file resources stored only in typo3.org fileadmin
27.10.2010 Steffen Kamper <steffen@typo3.org>
* cleanup of pi2
......@@ -21,8 +25,8 @@ Version 1.0.5 16.09.2008 Robert Lemke <robert@typo3.org>
- Obsolete extensions are now marked as such (again)
Version 1.0.4 20.03.2007 Robert Lemke <robert@typo3.org>
+ Improved the caching of extension files for the ter_fe details view: Files are now only unpacked again if the md5 sum of the T3X file (not the extensions.xml.gz) changed.
+ Changed the tx_terfe / contentcache file structure: now the files of each extension reside in their own subdirectory.
+ Improved the caching of extension files for the ter_fe details view: Files are now only unpacked again if the md5 sum of the T3X file (not the extensions.xml.gz) changed.
+ Changed the tx_terfe / contentcache file structure: now the files of each extension reside in their own subdirectory.
Version 1.0.3 16.12.2006 Robert Lemke <robert@typo3.org>
# Fixed bug 0004086: extension rating shows 0 (zero) instead of "-" or nothing
......
......@@ -352,7 +352,7 @@ class tx_terfe_common {
@mkdir ($baseDir.$firstLetter.'/'.$secondLetter.'/'.$extensionKey,0770);
foreach (glob($baseDir.$firstLetter.'/'.$secondLetter.'/'.$extensionKey.'/'.$extensionKey.'-'.$version.'*') as $fileName) {
@unlink ($fileName);
@unlink ($fileName);
}
// Now write the files to the temporary directory:
......@@ -368,7 +368,7 @@ class tx_terfe_common {
'tempfilename' => $cleanFileName
);
}
file_put_contents($baseDir.$firstLetter.'/'.$secondLetter.'/'.$extensionKey.'/'.$extensionKey.'-'.$version.'.t3xmd5', $t3xFileHash);
}
......@@ -450,14 +450,14 @@ class tx_terfe_common {
if ($activeItemsArr[$counter]) {
if ($counter > 0) {
$topMenuItems .= '<div><img src="fileadmin/templates/images/terfe-tabnav-act-left.gif" alt="" /></div>';
$topMenuItems .= '<div><img src="' . t3lib_extMgm::siteRelPath('ter_fe') . 'res/terfe-tabnav-act-left.gif" alt="" /></div>';
}
$topMenuItems .= $link.'
<div><img src="fileadmin/templates/images/terfe-tabnav-act-right.gif" alt="" /></div>
<div><img src="' . t3lib_extMgm::siteRelPath('ter_fe') . 'res/terfe-tabnav-act-right.gif" alt="" /></div>
';
} else {
if ($counter > 0 && !$activeItemsArr[$counter-1]) {
$topMenuItems .= '<div><img src="fileadmin/templates/images/terfe-tabnav-right.gif" alt="" /></div>';
$topMenuItems .= '<div><img src="' . t3lib_extMgm::siteRelPath('ter_fe') . 'res/terfe-tabnav-right.gif" alt="" /></div>';
}
$topMenuItems .= $link;
}
......@@ -467,9 +467,9 @@ class tx_terfe_common {
$topMenu = '
<div class="terfe-tabnav">
<div><img src="fileadmin/templates/images/terfe-tabnav-'.($activeItemsArr[0] ? 'act-' : '').'start.gif" alt="" /></div>
<div><img src="' . t3lib_extMgm::siteRelPath('ter_fe') . 'res/terfe-tabnav-'.($activeItemsArr[0] ? 'act-' : '').'start.gif" alt="" /></div>
'.$topMenuItems.'
<div><img src="fileadmin/templates/images/terfe-tabnav-end.gif" alt="" /></div>
<div><img src="' . t3lib_extMgm::siteRelPath('ter_fe') . 'res/terfe-tabnav-end.gif" alt="" /></div>
</div>
';
return $topMenu;
......@@ -860,23 +860,23 @@ class tx_terfe_common {
foreach ($extension as $tag => $value) {
if ($tag == 'version') {
$extensionsRow = array (
'extensionkey' => $extension['extensionkey'],
'version' => $value['version'],
'title' => $value->title,
'description' => $value->description,
'state' => $value->state,
'reviewstate' => $value->reviewstate,
'category' => $value->category,
'extensiondownloadcounter' => $extension->downloadcounter,
'versiondownloadcounter' => $value->downloadcounter,
'lastuploaddate' => $value->lastuploaddate,
'uploadcomment' => $value->uploadcomment,
'dependencies' => $value->dependencies,
'authorname' => $value->authorname,
'authoremail' => $value->authoremail,
'authorcompany' => $value->authorcompany,
'ownerusername' => $value->ownerusername,
't3xfilemd5' => $value->t3xfilemd5
'extensionkey' => $extension['extensionkey'],
'version' => $value['version'],
'title' => $value->title,
'description' => $value->description,
'state' => $value->state,
'reviewstate' => $value->reviewstate,
'category' => $value->category,
'extensiondownloadcounter' => $extension->downloadcounter,
'versiondownloadcounter' => $value->downloadcounter,
'lastuploaddate' => $value->lastuploaddate,
'uploadcomment' => $value->uploadcomment,
'dependencies' => $value->dependencies,
'authorname' => $value->authorname,
'authoremail' => $value->authoremail,
'authorcompany' => $value->authorcompany,
'ownerusername' => $value->ownerusername,
't3xfilemd5' => $value->t3xfilemd5
);
$TYPO3_DB->exec_INSERTquery ('tx_terfe_extensions', $extensionsRow);
......
......@@ -353,7 +353,7 @@ class tx_terfe_pi1 extends tslib_pibase {
} else {
$output = $this->pi_getLL('listview_search_noresult','',1);
}
}
}
return $output;
}
......@@ -629,14 +629,14 @@ class tx_terfe_pi1 extends tslib_pibase {
<p><strong>'.$this->pi_getLL('extensioninfo_feedback_yourname','',1).':</strong></p>
'.($TSFE->loginUser ?
'<input type="hidden" name="'.$this->prefixId.'[DATA][sender_name]" value="'.htmlspecialchars($TSFE->fe_user->user['name'].' ('.$TSFE->fe_user->user['username']).')" />
<p>'.htmlspecialchars($TSFE->fe_user->user['name'].' ('.$GLOBALS['TSFE']->fe_user->user['username'].')').'</p>' :
<p>'.htmlspecialchars($TSFE->fe_user->user['name'].' ('.$GLOBALS['TSFE']->fe_user->user['username'].')').'</p>' :
'<input type="text" name="'.$this->prefixId.'[DATA][sender_name]" style="width: 400px;" /><br />').
'<br />
<p><strong>'.$this->pi_getLL('extensioninfo_feedback_youremailaddress','',1).':</strong></p>
'.($TSFE->loginUser ?
'<input type="hidden" name="'.$this->prefixId.'[DATA][sender_email]" value="'.htmlspecialchars($TSFE->fe_user->user['email']).'" />
<p>'.htmlspecialchars($TSFE->fe_user->user['email']).'</p>' :
<p>'.htmlspecialchars($TSFE->fe_user->user['email']).'</p>' :
'<input type="text" name="'.$this->prefixId.'[DATA][sender_email]" style="width: 400px;"><br />').
'<br />
......@@ -800,14 +800,14 @@ class tx_terfe_pi1 extends tslib_pibase {
if ($activeItemsArr[$counter]) {
if ($counter > 0) {
$topMenuItems .= '<div><img src="fileadmin/templates/images/terfe-tabnav-act-left.gif" alt="" /></div>';
$topMenuItems .= '<div><img src="' . t3lib_extMgm::siteRelPath('ter_fe') . 'res/terfe-tabnav-act-left.gif" alt="" /></div>';
}
$topMenuItems .= $link.'
<div><img src="fileadmin/templates/images/terfe-tabnav-act-right.gif" alt="" /></div>
<div><img src="' . t3lib_extMgm::siteRelPath('ter_fe') . 'res/terfe-tabnav-act-right.gif" alt="" /></div>
';
} else {
if ($counter > 0 && !$activeItemsArr[$counter-1]) {
$topMenuItems .= '<div><img src="fileadmin/templates/images/terfe-tabnav-right.gif" alt="" /></div>';
$topMenuItems .= '<div><img src="' . t3lib_extMgm::siteRelPath('ter_fe') . 'res/terfe-tabnav-right.gif" alt="" /></div>';
}
$topMenuItems .= $link;
}
......@@ -817,9 +817,9 @@ class tx_terfe_pi1 extends tslib_pibase {
$topMenu = '
<div class="terfe-tabnav">
<div><img src="fileadmin/templates/images/terfe-tabnav-'.($activeItemsArr[0] ? 'act-' : '').'start.gif" alt="" /></div>
<div><img src="' . t3lib_extMgm::siteRelPath('ter_fe') . 'res/terfe-tabnav-'.($activeItemsArr[0] ? 'act-' : '').'start.gif" alt="" /></div>
'.$topMenuItems.'
<div><img src="fileadmin/templates/images/terfe-tabnav-end.gif" alt="" /></div>
<div><img src="' . t3lib_extMgm::siteRelPath('ter_fe') . 'res/terfe-tabnav-end.gif" alt="" /></div>
</div>
';
return $topMenu;
......
......@@ -366,7 +366,7 @@ div.terfe-tabnav {
font-size: 11px;
line-height: 19px;
height: 24px;
background: url("/fileadmin/templates/images/terfe-tabnav-bg.gif")
background: url("/typo3conf/ext/ter_fe/res/terfe-tabnav-bg.gif")
repeat-x;
width: 100%;
}
......@@ -375,7 +375,7 @@ div.terfe-tabnav a {
text-decoration: none;
color: #000;
height: 24px;
background: url("/fileadmin/templates/images/terfe-tabnav-linkbg.gif")
background: url("/typo3conf/ext/ter_fe/res/terfe-tabnav-linkbg.gif")
repeat-x;
padding: 3px 10px 0px 10px;
margin: 0;
......@@ -389,7 +389,7 @@ div.terfe-tabnav a:visited {
div.terfe-tabnav a.active {
font-weight: bold;
background: url("/fileadmin/templates/images/terfe-tabnav-act-linkbg.gif")
background: url("/typo3conf/ext/ter_fe/res/terfe-tabnav-act-linkbg.gif")
repeat-x;
}
......@@ -560,7 +560,7 @@ td.tx-terdochtml-navigation-right {
padding: 0;
list-style-type: none;
line-height: 14px;
background: url("/fileadmin/templates/images/background-li.gif")
background: url("/typo3conf/ext/ter_fe/res/background-li.gif")
no-repeat 4px 8px;
padding-left: 15px;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment