Feature #23526 » 15686.diff
typo3/db_list.php (working copy) | ||
---|---|---|
'Referer: ' . t3lib_div::getIndpEnv('HTTP_REFERER')
|
||
);
|
||
if (t3lib_extMgm::isLoaded('list')) {
|
||
t3lib_utility_Http::redirect(t3lib_extMgm::extRelPath('list') . 'mod1/db_list.php?' . $query);
|
||
t3lib_utility_Http::redirect(t3lib_extMgm::createListViewLink('', $query, '', '', TRUE, ''));
|
||
} else {
|
||
$title = sprintf($GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:extension.not.installed'), 'list');
|
||
$message = $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:link.to.dblist.correctly');
|
typo3/alt_shortcut.php (working copy) | ||
---|---|---|
if ($this->searchFor) {
|
||
$firstMP = intval($GLOBALS['WEBMOUNTS'][0]);
|
||
$this->content .= $this->doc->wrapScriptTags('jump(unescape("' .
|
||
rawurlencode(t3lib_extMgm::extRelPath('list') . 'mod1/db_list.php?id=' . $firstMP . '&search_field=' . rawurlencode($this->searchFor) . '&search_levels=4') .
|
||
rawurlencode(t3lib_extMgm::createListViewLink($firstMP, '&search_field=' . rawurlencode($this->searchFor) . '&search_levels=4', '', '', TRUE, '')) .
|
||
'"), "web_list", "web");');
|
||
}
|
||
}
|
typo3/sysext/list/mod1/index.php (revision 0) | ||
---|---|---|
<?php
|
||
require(t3lib_extMgm::extPath('list') . 'mod1/db_list.php');
|
typo3/sysext/list/mod1/db_list.php (working copy) | ||
---|---|---|
*/
|
||
unset($MCONF);
|
||
require ('conf.php');
|
||
require ($BACK_PATH.'init.php');
|
||
require ($BACK_PATH.'template.php');
|
||
$LANG->includeLLFile('EXT:lang/locallang_mod_web_list.xml');
|
||
require_once ($BACK_PATH.'class.db_list.inc');
|
||
require_once ($BACK_PATH.'class.db_list_extra.inc');
|
||
... | ... | |
// Initialize the dblist object:
|
||
$dblist = t3lib_div::makeInstance('localRecordList');
|
||
$dblist->backPath = $BACK_PATH;
|
||
$dblist->script = t3lib_extMgm::extRelPath('list') . 'mod1/db_list.php';
|
||
$dblist->script = t3lib_extMgm::createListViewLink('', '', '', '', TRUE, '');
|
||
$dblist->calcPerms = $BE_USER->calcPerms($this->pageinfo);
|
||
$dblist->thumbs = $BE_USER->uc['thumbnailsByDefault'];
|
||
$dblist->returnUrl=$this->returnUrl;
|
||
... | ... | |
<div id="typo3-listOptions">
|
||
<form action="" method="post">';
|
||
$this->body.=t3lib_BEfunc::getFuncCheck($this->id,'SET[bigControlPanel]',$this->MOD_SETTINGS['bigControlPanel'],'db_list.php',($this->table?'&table='.$this->table:''),'id="checkLargeControl"').' <label for="checkLargeControl">'.$LANG->getLL('largeControl',1).'</label><br />';
|
||
$this->body.=t3lib_BEfunc::getFuncCheck($this->id,'SET[bigControlPanel]',$this->MOD_SETTINGS['bigControlPanel'],'',($this->table?'&table='.$this->table:''),'id="checkLargeControl"').' <label for="checkLargeControl">'.$LANG->getLL('largeControl',1).'</label><br />';
|
||
if ($dblist->showClipboard) {
|
||
$this->body.=t3lib_BEfunc::getFuncCheck($this->id,'SET[clipBoard]',$this->MOD_SETTINGS['clipBoard'],'db_list.php',($this->table?'&table='.$this->table:''),'id="checkShowClipBoard"').' <label for="checkShowClipBoard">'.$LANG->getLL('showClipBoard',1).'</label><br />';
|
||
$this->body.=t3lib_BEfunc::getFuncCheck($this->id,'SET[clipBoard]',$this->MOD_SETTINGS['clipBoard'],'',($this->table?'&table='.$this->table:''),'id="checkShowClipBoard"').' <label for="checkShowClipBoard">'.$LANG->getLL('showClipBoard',1).'</label><br />';
|
||
}
|
||
$this->body.=t3lib_BEfunc::getFuncCheck($this->id,'SET[localization]',$this->MOD_SETTINGS['localization'],'db_list.php',($this->table?'&table='.$this->table:''),'id="checkLocalization"').' <label for="checkLocalization">'.$LANG->getLL('localization',1).'</label><br />';
|
||
$this->body.=t3lib_BEfunc::getFuncCheck($this->id,'SET[localization]',$this->MOD_SETTINGS['localization'],'',($this->table?'&table='.$this->table:''),'id="checkLocalization"').' <label for="checkLocalization">'.$LANG->getLL('localization',1).'</label><br />';
|
||
$this->body.='
|
||
</form>
|
||
</div>';
|
typo3/sysext/list/mod1/conf.php (working copy) | ||
---|---|---|
<?php
|
||
define('TYPO3_MOD_PATH', 'sysext/list/mod1/');
|
||
$BACK_PATH='../../../';
|
||
$MLANG['default']['tabs_images']['tab'] = 'list.gif';
|
||
$MLANG['default']['ll_ref']='LLL:EXT:lang/locallang_mod_web_list.php';
|
||
// DO NOT REMOVE OR CHANGE THESE 2 LINES:
|
||
$MCONF['name'] = 'web_list';
|
||
$MCONF['script'] = '_DISPATCH';
|
||
$MCONF['script']='db_list.php';
|
||
$MCONF['access']='user,group';
|
||
$MCONF['name']='web_list';
|
||
$MCONF['access'] = 'user,group';
|
||
$MLANG['default']['tabs_images']['tab'] = 'list.gif';
|
||
$MLANG['default']['ll_ref'] = 'LLL:EXT:lang/locallang_mod_web_list.php';
|
||
?>
|
typo3/sysext/list/ext_tables.php (working copy) | ||
---|---|---|
}
|
||
if (TYPO3_MODE === 'BE') {
|
||
t3lib_extMgm::addModulePath('web_list', t3lib_extMgm::extPath($_EXTKEY) . 'mod1/');
|
||
t3lib_extMgm::addModule('web', 'list', 'after:layout', t3lib_extMgm::extPath($_EXTKEY) . 'mod1/');
|
||
}
|
||
?>
|
typo3/sysext/list/ext_autoload.php (working copy) | ||
---|---|---|
$extensionPath = t3lib_extMgm::extPath('list');
|
||
return array(
|
||
'sc_db_list' => $extensionPath . 'mod1/db_list.php',
|
||
'sc_db_list' => $extensionPath . 'mod1/index.php',
|
||
);
|
||
?>
|
typo3/sysext/cms/tslib/class.tslib_adminpanel.php (working copy) | ||
---|---|---|
}
|
||
}
|
||
if ($GLOBALS['BE_USER']->check('modules', 'web_list')) {
|
||
$toolBar .= '<a href="' . htmlspecialchars(TYPO3_mainDir . t3lib_extMgm::extRelPath('list') . 'mod1/db_list.php?id=' . $id . '&returnUrl=' . rawurlencode(t3lib_div::getIndpEnv('REQUEST_URI'))) . '">' .
|
||
$toolBar .= '<a href="' . htmlspecialchars(TYPO3_mainDir . t3lib_extMgm::createListViewLink($id, '&returnUrl=' . rawurlencode(t3lib_div::getIndpEnv('REQUEST_URI'), '', '', TRUE, '')))) . '">' .
|
||
'<img src="' . TYPO3_mainDir . 'gfx/list.gif" width="11" height="11" hspace="2" border="0" align="top" title="' . $this->extGetLL('edit_db_list') . '" alt="" /></a>';
|
||
}
|
||
typo3/alt_clickmenu.php (working copy) | ||
---|---|---|
* @internal
|
||
*/
|
||
function DB_db_list($table,$uid,$rec) {
|
||
$url = t3lib_div::getIndpEnv('TYPO3_REQUEST_DIR') . t3lib_extMgm::extRelPath('list') . 'mod1/db_list.php?table='.($table=='pages'? '' : $table) . '&id=' . ($table == 'pages' ? $uid : $rec['pid']);
|
||
$url = t3lib_div::getIndpEnv('TYPO3_REQUEST_DIR') . t3lib_extMgm::createListViewLink($table == 'pages' ? $uid : $rec['pid'], '&table=' . ($table == 'pages' ? '' : $table), '', '', TRUE, '');
|
||
return $this->linkItem(
|
||
$GLOBALS['LANG']->makeEntities($GLOBALS['LANG']->getLL('CM_db_list')),
|
||
$this->excludeIcon(t3lib_iconWorks::getSpriteIcon('actions-system-list-open')),
|
t3lib/class.t3lib_extmgm.php (working copy) | ||
---|---|---|
}
|
||
/**
|
||
* Static function for create a link to list view
|
||
* Static function to create a link tag or a plain URL to the list view
|
||
*
|
||
* @param string $id page id / resource id
|
||
* @param string $additionalParams eg "&returnUrl=..."
|
||
* @param string $linkTitle title for the link tag
|
||
* @param string $linkText optional link text after the icon
|
||
* @param boolean $linkOnly if true only the href will be returned
|
||
* @param boolean $urlOnly if true only the URL will be returned
|
||
* @param mixed $backPathOverride backpath that should be used instead of the global $BACK_PATH
|
||
* @return string link / href
|
||
*/
|
||
public function createListViewLink($id, $additionalParams = '', $linkTitle = '', $linkText = '', $linkOnly = FALSE) {
|
||
public static function createListViewLink($id = '', $additionalParams = '', $linkTitle = '', $linkText = '', $urlOnly = FALSE, $backPathOverride = FALSE) {
|
||
if (!self::isLoaded('list') || !$GLOBALS['BE_USER']->check('modules', 'web_list')) {
|
||
return '';
|
||
}
|
||
$href = $GLOBALS['BACK_PATH'] . self::extRelPath('list') . 'mod1/db_list.php?id=' .
|
||
$id . $additionalParams;
|
||
if ($linkOnly) {
|
||
return $href;
|
||
if ($backPathOverride === FALSE) {
|
||
$backBath = $GLOBALS['BACK_PATH'];
|
||
} else {
|
||
return '<a href="' . htmlspecialchars($href) . '" title="' . htmlspecialchars($linkTitle) . '">' .
|
||
$backPath = $backPathOverride;
|
||
}
|
||
if ($id !== '') {
|
||
$id = '&id=' . $id;
|
||
}
|
||
$url = $backPath . 'mod.php?M=web_list' . $id . $additionalParams;
|
||
if ($urlOnly) {
|
||
return $url;
|
||
} else {
|
||
return '<a href="' . htmlspecialchars($url) . '" title="' . htmlspecialchars($linkTitle) . '">' .
|
||
t3lib_iconWorks::getSpriteIcon('actions-system-list-open') .
|
||
$linkText .
|
||
'</a>';
|
t3lib/class.t3lib_clipboard.php (working copy) | ||
---|---|---|
} else {
|
||
if (t3lib_extMgm::isLoaded('list')) {
|
||
$str = '<a href="' . htmlspecialchars(
|
||
$this->backPath . t3lib_extMgm::extRelPath('list') . 'mod1/db_list.php?id=' . $rec['pid']
|
||
t3lib_extMgm::createListViewLink($rec['pid'], '', '', '', TRUE, $this->backPath)
|
||
) . '">' . $str . '</a>';
|
||
}
|
||
}
|