Project

General

Profile

Bug #20351 » 10971v2.diff

Administrator Admin, 2009-10-12 00:25

View differences:

typo3/sysext/impexp/app/index.php (working copy)
* external_ref[tables][]=table/_ALL
*/
unset($MCONF);
require ('conf.php');
require_once ($BACK_PATH.'init.php');
require_once ($BACK_PATH.'template.php');
$LANG->includeLLFile('EXT:impexp/app/locallang.php');
require_once (t3lib_extMgm::extPath('impexp').'class.tx_impexp.php');
typo3/class.db_list_extra.inc (working copy)
// Export
if (t3lib_extMgm::isLoaded('impexp')) {
$buttons['export'] = '<a href="' . htmlspecialchars($this->backPath. 'mod.php?M=xMOD_tximpexp&tx_impexp[action]=export&id=' . $this->id . '&tx_impexp[list][]=' . rawurlencode($this->table . ':' . $this->id)) . '">' .
'<img' . t3lib_iconWorks::skinImg($this->backPath, t3lib_extMgm::extRelPath('impexp') . 'export.gif') . ' title="' . $LANG->sL('LLL:EXT:lang/locallang_core.php:rm.export', 1) . '" alt="" />' .
'</a>';
$url = $this->backPath . t3lib_extMgm::extRelPath('impexp') . 'app/index.php?tx_impexp[action]=export';
$buttons['export'] = '<a href="' . htmlspecialchars($url . '&tx_impexp[list][]=' . rawurlencode($this->table . ':' . $this->id)) . '">' . '<img' . t3lib_iconWorks::skinImg($this->backPath, t3lib_extMgm::extRelPath('impexp') . 'export.gif') . ' title="' . $LANG->sL('LLL:EXT:lang/locallang_core.php:rm.export', 1) . '" alt="" />' .
'</a>';
}
}
typo3/sysext/impexp/ext_tables.php (working copy)
'name' => 'tx_impexp_clickmenu',
'path' => t3lib_extMgm::extPath($_EXTKEY).'class.tx_impexp_clickmenu.php'
);
t3lib_extMgm::addModulePath('xMOD_tximpexp',t3lib_extMgm::extPath($_EXTKEY).'app/');
t3lib_extMgm::insertModuleFunction(
'user_task',
typo3/sysext/impexp/class.tx_impexp_clickmenu.php (working copy)
$LL = $this->includeLL();
$url = 'mod.php?M=xMOD_tximpexp&tx_impexp[action]=export&id=' . ($table == 'pages' ? $uid : $backRef->rec['pid']);
$modUrl = $backRef->backPath.t3lib_extMgm::extRelPath('impexp').'app/index.php';
$url = $modUrl . '?tx_impexp[action]=export&id=' . ($table == 'pages' ? $uid : $backRef->rec['pid']);
if ($table=='pages') {
$url.='&tx_impexp[pagetree][id]='.$uid;
$url.='&tx_impexp[pagetree][levels]=0';
......
);
if ($table=='pages') {
$url = 'mod.php?M=xMOD_tximpexp&id='.$uid.'&table='.$table.'&tx_impexp[action]=import';
$url = $modUrl . '?id='. $uid . '&table=' . $table . '&tx_impexp[action]=import';
$localItems[] = $backRef->linkItem(
$GLOBALS['LANG']->makeEntities($GLOBALS['LANG']->getLLL('import',$LL)),
$backRef->excludeIcon('<img'.t3lib_iconWorks::skinImg($backRef->backPath,t3lib_extMgm::extRelPath('impexp').'import.gif','width="18" height="16"').' alt="" />'),
typo3/sysext/impexp/app/conf.php (working copy)
<?php
#define('TYPO3_MOD_PATH', 'sysext/impexp/app/');
#$BACK_PATH='../../../';
define('TYPO3_MOD_PATH', 'sysext/impexp/app/');
$BACK_PATH='../../../';
$MCONF['name']='xMOD_tximpexp'; // xMOD_[modulename][optional: '_something']
(1-1/3)