Bug #23130 ยป remove_trailing_whitspaces.patch
typo3/alt_doc.php (working copy) | ||
---|---|---|
// CLOSE button:
|
||
$buttons['close'] = '<a href="#" onclick="document.editform.closeDoc.value=1; document.editform.submit(); return false;" title="' . $LANG->sL('LLL:EXT:lang/locallang_core.php:rm.closeDoc', TRUE) . '">' .
|
||
t3lib_iconWorks::getSpriteIcon('actions-document-close') .
|
||
t3lib_iconWorks::getSpriteIcon('actions-document-close') .
|
||
'</a>';
|
||
... | ... | |
if ($this->firstEl['deleteAccess'] && !$TCA[$this->firstEl['table']]['ctrl']['readOnly'] && !$this->getNewIconMode($this->firstEl['table'],'disableDelete')) {
|
||
$aOnClick = 'return deleteRecord(\''.$this->firstEl['table'].'\',\''.$this->firstEl['uid'].'\',unescape(\''.rawurlencode($this->retUrl).'\'));';
|
||
$buttons['delete'] = '<a href="#" onclick="'.htmlspecialchars($aOnClick).'" title="' . $LANG->getLL('deleteItem', TRUE) . '">' .
|
||
t3lib_iconWorks::getSpriteIcon('actions-edit-delete') .
|
||
t3lib_iconWorks::getSpriteIcon('actions-edit-delete') .
|
||
'</a>';
|
||
}
|
||
... | ... | |
$aOnClick = 'window.location.href=\'show_rechis.php?element='.rawurlencode($this->firstEl['table'].':'.$this->firstEl['uid']).'&revert=ALL_FIELDS&sumUp=-1&returnUrl='.rawurlencode($this->R_URI).'\'; return false;';
|
||
$buttons['undo'] = '<a href="#" onclick="'.htmlspecialchars($aOnClick).'"'.
|
||
' title="' . htmlspecialchars(sprintf($LANG->getLL('undoLastChange'), t3lib_BEfunc::calcAge($GLOBALS['EXEC_TIME'] - $undoButtonR['tstamp'], $LANG->sL('LLL:EXT:lang/locallang_core.php:labels.minutesHoursDaysYears')))) . '">' .
|
||
t3lib_iconWorks::getSpriteIcon('actions-edit-undo') .
|
||
t3lib_iconWorks::getSpriteIcon('actions-edit-undo') .
|
||
'</a>';
|
||
}
|
||
if ($this->getNewIconMode($this->firstEl['table'],'showHistory')) {
|
||
$aOnClick = 'window.location.href=\'show_rechis.php?element='.rawurlencode($this->firstEl['table'].':'.$this->firstEl['uid']).'&returnUrl='.rawurlencode($this->R_URI).'\'; return false;';
|
||
$buttons['history'] = '<a href="#" onclick="'.htmlspecialchars($aOnClick).'">'.
|
||
t3lib_iconWorks::getSpriteIcon('actions-document-history-open') .
|
||
t3lib_iconWorks::getSpriteIcon('actions-document-history-open') .
|
||
'</a>';
|
||
}
|
||
typo3/browse_links.php (working copy) | ||
---|---|---|
if ($tempDBmount) {
|
||
$altMountPoints = $tempDBmount;
|
||
}
|
||
|
||
if ($altMountPoints) {
|
||
$GLOBALS['BE_USER']->groupData['webmounts'] = implode(',', array_unique(t3lib_div::intExplode(',', $altMountPoints)));
|
||
$GLOBALS['WEBMOUNTS'] = $GLOBALS['BE_USER']->returnWebmounts();
|
typo3/sysext/rtehtmlarea/mod3/class.tx_rtehtmlarea_browse_links.php (working copy) | ||
---|---|---|
);
|
||
$dbmount = $flashMessage->render();
|
||
}
|
||
|
||
$content .= '
|
||
<!--
|
||
Wrapper table for page tree / record list:
|
typo3/sysext/felogin/pi1/class.tx_felogin_pi1.php (working copy) | ||
---|---|---|
$content .= $this->showLogin();
|
||
}
|
||
}
|
||
|
||
// Process the redirect
|
||
if (($this->logintype === 'login' || $this->logintype === 'logout') && $this->redirectUrl && !$this->noRedirect) {
|
||
if (!$GLOBALS['TSFE']->fe_user->cookieId) {
|
typo3/sysext/saltedpasswords/tests/tx_saltedpasswords_salts_blowfishTest.php (working copy) | ||
---|---|---|
/**
|
||
* Tests authentication procedure with alphabet characters.
|
||
*
|
||
*
|
||
* Checks if a "plain-text password" is everytime mapped to the
|
||
* same "salted password hash" when using the same salt.
|
||
*
|
||
* same "salted password hash" when using the same salt.
|
||
*
|
||
* @test
|
||
*/
|
||
public function authenticationWithValidAlphaCharClassPassword() {
|
||
... | ... | |
*/
|
||
public function authenticationWithValidLatin1SpecialCharClassPassword() {
|
||
$this->skipTestIfBlowfishIsNotAvailable();
|
||
|
||
$password = '';
|
||
for ($i = 160; $i <= 191; $i++) {
|
||
$password .= chr($i);
|
typo3/sysext/saltedpasswords/sv1/class.tx_saltedpasswords_sv1.php (working copy) | ||
---|---|---|
// instanciate default method class
|
||
$this->objInstanceSaltedPW = tx_saltedpasswords_salts_factory::getSaltingInstance(NULL);
|
||
$this->updatePassword(
|
||
intval($user['uid']),
|
||
intval($user['uid']),
|
||
array('password' => $this->objInstanceSaltedPW->getHashedPassword($password))
|
||
);
|
||
}
|
typo3/sysext/taskcenter/task/conf.php (working copy) | ||
---|---|---|
<?php
|
||
$MLANG['default']['tabs_images']['tab'] = 'task.gif';
|
||
$MLANG['default']['ll_ref']='LLL:EXT:taskcenter/task/locallang_mod.xml';
|
||
|
||
$MCONF['script']='_DISPATCH';
|
||
$MCONF['access']='group,user';
|
||
$MCONF['name']='user_task';
|
typo3/sysext/tstemplate_info/class.tx_tstemplateinfo.php (working copy) | ||
---|---|---|
*/
|
||
function tableRow($label, $data, $field) {
|
||
$ret = '<tr><td>';
|
||
$ret.= '<a href="index.php?id=' . $this->pObj->id . '&e[' . $field . ']=1">' .
|
||
$ret.= '<a href="index.php?id=' . $this->pObj->id . '&e[' . $field . ']=1">' .
|
||
t3lib_iconWorks::getSpriteIcon('actions-document-open', array('title' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:editField', true))) . '<strong>' . $label . ' </strong></a>';
|
||
$ret .= '</td><td width="80%" class="bgColor4">' . $data . ' </td></tr>';
|
||
return $ret;
|
||
... | ... | |
// Edit all icon:
|
||
$outCode.= '<br /><a href="#" onClick="' . t3lib_BEfunc::editOnClick(rawurlencode('&createExtension=0') .
|
||
'&edit[sys_template][' . $tplRow['uid'] . ']=edit', $BACK_PATH, '') . '"><strong>' .
|
||
t3lib_iconWorks::getSpriteIcon('actions-document-open', array('title'=>
|
||
t3lib_iconWorks::getSpriteIcon('actions-document-open', array('title'=>
|
||
$GLOBALS['LANG']->getLL('editTemplateRecord') )) . $GLOBALS['LANG']->getLL('editTemplateRecord') . '</strong></a>';
|
||
$theOutput.= $this->pObj->doc->section('', $outCode);
|
||
typo3/sysext/install/mod/class.tx_install.php (working copy) | ||
---|---|---|
Change the Install Tool password.
|
||
</li>
|
||
<li>
|
||
Delete the ENABLE_INSTALL_TOOL file in the /typo3conf folder. This can be done
|
||
Delete the ENABLE_INSTALL_TOOL file in the /typo3conf folder. This can be done
|
||
manually or through User tools > User settings in the backend.
|
||
</li>
|
||
<li>
|
||
... | ... | |
function messageBasicFinished() {
|
||
return '
|
||
<p>
|
||
You have completed the basic setup of the TYPO3 Content Management System.
|
||
You have completed the basic setup of the TYPO3 Content Management System.
|
||
Choose between these options to continue:
|
||
</p>
|
||
<ul>
|
typo3/sysext/install/updates/class.tx_coreupdates_compressionlevel.php (working copy) | ||
---|---|---|
*/
|
||
public function checkForUpdate(&$description) {
|
||
$description = '<strong>TYPO3_CONF_VARS[BE][compressionLevel] is enabled.</strong><br />
|
||
In TYPO3 4.4, compressionLevel was expanded to include automatic gzip compression of JavaScript and CSS stylessheet files.
|
||
In TYPO3 4.4, compressionLevel was expanded to include automatic gzip compression of JavaScript and CSS stylessheet files.
|
||
<strong>To prevent the TYPO3 backend from being unusable, you must include the relevant lines from misc/advanced.htaccess.</strong>';
|
||
if (intval($GLOBALS['TYPO3_CONF_VARS']['BE']['compressionLevel']) > 0) {
|
||
return TRUE;
|
typo3/sysext/install/updates/class.tx_coreupdates_statictemplates.php (working copy) | ||
---|---|---|
if ($message == 'continue') {
|
||
$customMessages[] = 'System Extension "statictemplates" was succesfully loaded, static templates are now supported.';
|
||
return TRUE;
|
||
} else {
|
||
} else {
|
||
return FALSE; // something went wrong
|
||
}
|
||
}
|
typo3/sysext/fluid/Classes/ViewHelpers/Form/CheckboxViewHelper.php (working copy) | ||
---|---|---|
$hiddenField = $this->renderHiddenFieldForEmptyValue();
|
||
return $hiddenField . $this->tag->render();
|
||
}
|
||
|
||
/**
|
||
* Renders a hidden field with the same name as the element, to make sure the empty value is submitted
|
||
* in case the checkbox is not selected.
|
||
*
|
||
*
|
||
* @return string the hidden field.
|
||
*/
|
||
protected function renderHiddenFieldForEmptyValue() {
|
||
... | ... | |
if (!in_array($nameOfElement, $checkboxFieldNames)) {
|
||
$checkboxFieldNames[] = $nameOfElement;
|
||
$this->viewHelperVariableContainer->addOrUpdate('Tx_Fluid_ViewHelpers_Form_CheckboxViewHelper', 'checkboxFieldNames', $checkboxFieldNames);
|
||
|
||
$tagBuilder = t3lib_div::makeInstance('Tx_Fluid_Core_ViewHelper_TagBuilder', 'input');
|
||
$tagBuilder->addAttribute('type', 'hidden');
|
||
$tagBuilder->addAttribute('name', $nameOfElement);
|
typo3/sysext/fluid/Classes/ViewHelpers/EscapeViewHelper.php (working copy) | ||
---|---|---|
/**
|
||
* Resolve the default encoding. If none is set in Frontend or Backend, uses UTF-8.
|
||
*
|
||
*
|
||
* @return string the encoding
|
||
*/
|
||
protected function resolveDefaultEncoding() {
|
typo3/sysext/fluid/Classes/ViewHelpers/DebugViewHelper.php (working copy) | ||
---|---|---|
* Wrapper for TYPO3s famous debug()
|
||
*
|
||
* @param string $title
|
||
* @return string the altered string.
|
||
* @return string the altered string.
|
||
* @author Bastian Waidelich <bastian@typo3.org>
|
||
*/
|
||
public function render($title = NULL) {
|
typo3/sysext/fluid/Classes/ViewHelpers/LayoutViewHelper.php (working copy) | ||
---|---|---|
/**
|
||
* With this tag, you can select a layout to be used..
|
||
* <code><f:layout name="main" /></code>
|
||
*
|
||
*
|
||
*
|
||
*
|
||
* @version $Id: LayoutViewHelper.php 1734 2009-11-25 21:53:57Z stucki $
|
||
* @package Fluid
|
||
* @subpackage ViewHelpers
|
typo3/sysext/fluid/Classes/ViewHelpers/ElseViewHelper.php (working copy) | ||
---|---|---|
/**
|
||
* Else-Branch of a condition. Only has an effect inside of "If". See the If-ViewHelper for documentation.
|
||
*
|
||
*
|
||
* @see Tx_Fluid_ViewHelpers_IfViewHelper
|
||
*
|
||
* @version $Id: ElseViewHelper.php 1734 2009-11-25 21:53:57Z stucki $
|
typo3/sysext/fluid/Classes/ViewHelpers/FormViewHelper.php (working copy) | ||
---|---|---|
return 'tx_' . strtolower($extensionName) . '_' . strtolower($pluginName);
|
||
}
|
||
|
||
/**
|
||
* Remove Checkbox field names from ViewHelper variable container, to start from scratch when a new form starts.
|
||
*/
|
typo3/sysext/fluid/Classes/ViewHelpers/Link/ExternalViewHelper.php (working copy) | ||
---|---|---|
* A view helper for creating links to external targets.
|
||
*
|
||
* = Examples =
|
||
*
|
||
*
|
||
* <code>
|
||
* <f:link.external uri="http://www.typo3.org" target="_blank">external link</f:link.external>
|
||
* </code>
|
typo3/sysext/fluid/Classes/ViewHelpers/Uri/ExternalViewHelper.php (working copy) | ||
---|---|---|
* Currently the specified URI is simply passed through.
|
||
*
|
||
* = Examples =
|
||
*
|
||
*
|
||
* <code>
|
||
* <f:uri.external uri="http://www.typo3.org" />
|
||
* </code>
|
typo3/sysext/fluid/Classes/ViewHelpers/AliasViewHelper.php (working copy) | ||
---|---|---|
/**
|
||
*
|
||
* @param array $map
|
||
* @param array $map
|
||
* @return string Rendered string
|
||
* @author Bastian Waidelich <bastian@typo3.org>
|
||
* @api
|
typo3/sysext/fluid/Classes/View/TemplateView.php (working copy) | ||
---|---|---|
$parserConfiguration = $this->objectManager->create('Tx_Fluid_Core_Parser_Configuration');
|
||
if ($this->controllerContext->getRequest()->getFormat() === 'html') {
|
||
$parserConfiguration->addInterceptor($this->objectManager->get('Tx_Fluid_Core_Parser_Interceptor_Escape'));
|
||
|
||
}
|
||
return $parserConfiguration;
|
||
}
|
typo3/sysext/fluid/Classes/Core/Parser/Configuration.php (working copy) | ||
---|---|---|
$this->interceptors[$interceptionPoint]->detach($interceptor);
|
||
}
|
||
}
|
||
|
||
}
|
||
/**
|
typo3/sysext/fluid/Classes/Core/Parser/TemplateParser.php (working copy) | ||
---|---|---|
// Object Accessor
|
||
if (strlen($objectAccessorString) > 0) {
|
||
|
||
$node = $this->objectManager->create('Tx_Fluid_Core_Parser_SyntaxTree_ObjectAccessorNode', $objectAccessorString);
|
||
$this->callInterceptor($node, Tx_Fluid_Core_Parser_InterceptorInterface::INTERCEPT_OBJECTACCESSOR);
|
||
... | ... | |
protected function textHandler(Tx_Fluid_Core_Parser_ParsingState $state, $text) {
|
||
$node = $this->objectManager->create('Tx_Fluid_Core_Parser_SyntaxTree_TextNode', $text);
|
||
$this->callInterceptor($node, Tx_Fluid_Core_Parser_InterceptorInterface::INTERCEPT_TEXT);
|
||
|
||
$state->getNodeFromStack()->addChildNode($node);
|
||
}
|
||
typo3/sysext/fluid/Classes/Core/Parser/Interceptor/Escape.php (working copy) | ||
---|---|---|
/**
|
||
* A stack of ViewHelperNodes which currently disable the interceptor.
|
||
* Needed to enable the interceptor again.
|
||
*
|
||
*
|
||
* @var array<Tx_Fluid_Core_Parser_SyntaxTree_NodeInterface>
|
||
*/
|
||
protected $viewHelperNodesWhichDisableTheInterceptor = array();
|
||
|
||
/**
|
||
* Inject object factory
|
||
*
|
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Fixtures/ConstraintSyntaxTreeNode.php (working copy) | ||
---|---|---|
*/
|
||
class Tx_Fluid_ViewHelpers_Fixtures_ConstraintSyntaxTreeNode extends Tx_Fluid_Core_Parser_SyntaxTree_ViewHelperNode {
|
||
public $callProtocol = array();
|
||
|
||
public function __construct(Tx_Fluid_Core_ViewHelper_TemplateVariableContainer $variableContainer) {
|
||
$this->variableContainer = $variableContainer;
|
||
}
|
||
|
||
public function evaluateChildNodes() {
|
||
$identifiers = $this->variableContainer->getAllIdentifiers();
|
||
$callElement = array();
|
||
... | ... | |
}
|
||
$this->callProtocol[] = $callElement;
|
||
}
|
||
|
||
public function evaluate() {}
|
||
}
|
||
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Form/AbstractFormFieldViewHelperTest.php (working copy) | ||
---|---|---|
$actual = $formViewHelper->_call('getName');
|
||
$this->assertSame($expected, $actual);
|
||
}
|
||
|
||
/**
|
||
* @test
|
||
* @author Sebastian Kurfรผrst <sebastian@typo3.org>
|
||
... | ... | |
$formViewHelper->_call('setErrorClassAttribute');
|
||
}
|
||
|
||
/**
|
||
* @test
|
||
* @author Sebastian Kurfรผrst <sebastian@typo3.org>
|
||
... | ... | |
$formFieldViewHelper->_set('arguments', $arguments);
|
||
$formFieldViewHelper->_call('addAdditionalIdentityPropertiesIfNeeded');
|
||
}
|
||
|
||
/**
|
||
* @test
|
||
* @author Sebastian Kurfรผrst <sebastian@typo3.org>
|
||
... | ... | |
$property = 'value.something';
|
||
$formName = 'myForm';
|
||
$expectedProperty = 'myForm[value]';
|
||
|
||
$formFieldViewHelper = $this->getAccessibleMock('Tx_Fluid_ViewHelpers_Form_AbstractFormFieldViewHelper', array('renderHiddenIdentityField'), array(), '', FALSE);
|
||
$this->injectDependenciesIntoViewHelper($formFieldViewHelper);
|
||
$arguments = new Tx_Fluid_Core_ViewHelper_Arguments(array('property' => $property));
|
||
$formFieldViewHelper->_set('arguments', $arguments);
|
||
$this->viewHelperVariableContainer->expects($this->at(0))->method('get')->with('Tx_Fluid_ViewHelpers_FormViewHelper', 'formObject')->will($this->returnValue($mockFormObject));
|
||
$this->viewHelperVariableContainer->expects($this->at(1))->method('get')->with('Tx_Fluid_ViewHelpers_FormViewHelper', 'formName')->will($this->returnValue($formName));
|
||
|
||
$formFieldViewHelper->expects($this->once())->method('renderHiddenIdentityField')->with($mockFormObject, $expectedProperty);
|
||
|
||
$formFieldViewHelper->_call('addAdditionalIdentityPropertiesIfNeeded');
|
||
}
|
||
|
||
/**
|
||
* @test
|
||
* @author Sebastian Kurfรผrst <sebastian@typo3.org>
|
||
... | ... | |
$formName = 'myForm';
|
||
$expectedProperty1 = 'myForm[value]';
|
||
$expectedProperty2 = 'myForm[value][value]';
|
||
|
||
$formFieldViewHelper = $this->getAccessibleMock('Tx_Fluid_ViewHelpers_Form_AbstractFormFieldViewHelper', array('renderHiddenIdentityField'), array(), '', FALSE);
|
||
$this->injectDependenciesIntoViewHelper($formFieldViewHelper);
|
||
$arguments = new Tx_Fluid_Core_ViewHelper_Arguments(array('property' => $property));
|
||
$formFieldViewHelper->_set('arguments', $arguments);
|
||
$this->viewHelperVariableContainer->expects($this->at(0))->method('get')->with('Tx_Fluid_ViewHelpers_FormViewHelper', 'formObject')->will($this->returnValue($mockFormObject));
|
||
$this->viewHelperVariableContainer->expects($this->at(1))->method('get')->with('Tx_Fluid_ViewHelpers_FormViewHelper', 'formName')->will($this->returnValue($formName));
|
||
|
||
$formFieldViewHelper->expects($this->at(0))->method('renderHiddenIdentityField')->with($mockFormObject, $expectedProperty1);
|
||
$formFieldViewHelper->expects($this->at(1))->method('renderHiddenIdentityField')->with($mockFormObject, $expectedProperty2);
|
||
|
||
$formFieldViewHelper->_call('addAdditionalIdentityPropertiesIfNeeded');
|
||
}
|
||
}
|
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Form/Fixtures/EmptySyntaxTreeNode.php (working copy) | ||
---|---|---|
* @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3 or later
|
||
*/
|
||
class Tx_Fluid_ViewHelpers_Fixtures_EmptySyntaxTreeNode extends Tx_Fluid_Core_Parser_SyntaxTree_ViewHelperNode {
|
||
|
||
public function __construct() {
|
||
|
||
}
|
||
|
||
}
|
||
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Format/PrintfViewHelperTest.php (working copy) | ||
---|---|---|
$viewHelper->expects($this->once())->method('renderChildren')->will($this->returnValue('%2$s %1$d %3$s %2$s'));
|
||
$actualResult = $viewHelper->render(array(123, 'foo', 'bar'));
|
||
$this->assertEquals('foo 123 bar foo', $actualResult);
|
||
}
|
||
}
|
||
}
|
||
?>
|
typo3/sysext/fluid/Tests/Unit/View/Fixtures/TransparentSyntaxTreeNode.php (working copy) | ||
---|---|---|
*/
|
||
class Tx_Fluid_View_Fixture_TransparentSyntaxTreeNode extends Tx_Fluid_Core_Parser_SyntaxTree_AbstractNode {
|
||
public $variableContainer;
|
||
|
||
public function evaluate() {
|
||
}
|
||
}
|
typo3/sysext/fluid/Tests/Unit/View/TemplateViewTest.php (working copy) | ||
---|---|---|
$templateView->setLayoutRootPath('MyLayouts');
|
||
$this->assertSame('vfs://MyTemplates/MyCoolAction.html', $templateView->_call('resolveTemplatePathAndFilename', 'myCoolAction'));
|
||
|
||
}
|
||
/**
|
typo3/sysext/fluid/Tests/Unit/Core/Parser/TemplateParserTest.php (working copy) | ||
---|---|---|
* extractNamespaceDefinitions($templateString)
|
||
* splitTemplateAtDynamicTags($templateString)
|
||
* buildObjectTree($splitTemplate)
|
||
*
|
||
*
|
||
* @test
|
||
* @author Karsten Dambekalns <karsten@typo3.org>
|
||
*/
|
typo3/sysext/fluid/Tests/Unit/Core/ViewHelper/TemplateVariableContainerTest.php (working copy) | ||
---|---|---|
$this->assertSame($this->variableContainer->get('variable'), $object);
|
||
$this->assertSame($this->variableContainer['variable'], $object);
|
||
}
|
||
|
||
/**
|
||
* @test
|
||
* @author Sebastian Kurfรผrst <sebastian@typo3.org>
|
||
... | ... | |
$this->assertTrue($this->variableContainer->exists('variable'));
|
||
$this->assertTrue(isset($this->variableContainer['variable']));
|
||
}
|
||
|
||
/**
|
||
* @test
|
||
* @author Sebastian Kurfรผrst <sebastian@typo3.org>
|
||
... | ... | |
$this->variableContainer->add("variable", $object);
|
||
$this->assertEquals($this->variableContainer->getAllIdentifiers(), array('variable'), 'Added key is not visible in getAllIdentifiers');
|
||
}
|
||
|
||
/**
|
||
* @test
|
||
* @expectedException Tx_Fluid_Core_ViewHelper_Exception_InvalidVariableException
|
||
... | ... | |
public function gettingNonexistentValueThrowsException() {
|
||
$this->variableContainer->get('nonexistent');
|
||
}
|
||
|
||
/**
|
||
* @test
|
||
* @expectedException Tx_Fluid_Core_ViewHelper_Exception_InvalidVariableException
|
||
... | ... | |
public function deletingNonexistentValueThrowsException() {
|
||
$this->variableContainer->remove('nonexistent');
|
||
}
|
||
|
||
/**
|
||
* @test
|
||
* @expectedException Tx_Fluid_Core_ViewHelper_Exception_InvalidVariableException
|
typo3/sysext/belog/mod/index.php (working copy) | ||
---|---|---|
array(
|
||
array($GLOBALS['LANG']->getLL('users'), $menuU),
|
||
array($GLOBALS['LANG']->getLL('time'), $menuT . ($this->MOD_SETTINGS['time'] == 30 ?
|
||
'<br />' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:from', true) . ' ' . $inputDate . $pickerInputDate .
|
||
'<br />' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:from', true) . ' ' . $inputDate . $pickerInputDate .
|
||
' ' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:to', true) . ' ' . $inputDate_end . $pickerInputDate_end . ' ' . $setButton : ''))
|
||
),
|
||
array(
|
typo3/sysext/wizard_crpages/class.tx_wizardcrpages_webfunc_2.php (working copy) | ||
---|---|---|
$tce->start($data,array());
|
||
$tce->process_datamap();
|
||
t3lib_BEfunc::setUpdateSignal('updatePageTree');
|
||
|
||
$flashMessage = t3lib_div::makeInstance(
|
||
't3lib_FlashMessage',
|
||
'',
|
||
$GLOBALS['LANG']->getLL('wiz_newPages_create')
|
||
);
|
||
);
|
||
} else {
|
||
$flashMessage = t3lib_div::makeInstance(
|
||
't3lib_FlashMessage',
|
||
... | ... | |
t3lib_FlashMessage::ERROR
|
||
);
|
||
}
|
||
|
||
$theCode.= $flashMessage->render();
|
||
// Display result:
|
typo3/sysext/version/cm1/index.php (working copy) | ||
---|---|---|
),
|
||
'diff' => ''
|
||
);
|
||
|
||
if($this->showDraftWorkspace === TRUE) {
|
||
$this->MOD_MENU['display'][-1] = $GLOBALS['LANG']->getLL('defaultDraft');
|
||
}
|
||
... | ... | |
*/
|
||
function main() {
|
||
global $BE_USER,$LANG,$BACK_PATH,$TCA_DESCR,$TCA,$CLIENT,$TYPO3_CONF_VARS;
|
||
|
||
// Template markers
|
||
$markers = array(
|
||
'CSH' => '',
|
typo3/sysext/beuser/mod/index.php (working copy) | ||
---|---|---|
$allCells = array();
|
||
$link_createNewUser='<a href="#" onclick="'.htmlspecialchars(t3lib_BEfunc::editOnClick('&edit[be_users][0]=new',$this->doc->backPath,-1)).'" title="' . $GLOBALS['LANG']->getLL('newUser', true) . '">'.
|
||
t3lib_iconWorks::getSpriteIcon('actions-document-new') .
|
||
t3lib_iconWorks::getSpriteIcon('actions-document-new') .
|
||
'</a>';
|
||
$allCells['USERS'] = '<table border="0" cellspacing="0" cellpadding="0" width="100%"><tr><td><strong>' . $GLOBALS['LANG']->getLL('usernames', TRUE) . '</strong></td><td width="12">' . $link_createNewUser . '</td></tr></table>';
|
||
... | ... | |
if ($curUid != $uDat['uid'] && !$uDat['disable'] && ($uDat['starttime'] == 0 ||
|
||
$uDat['starttime'] < $GLOBALS['EXEC_TIME']) && ($uDat['endtime'] == 0 ||
|
||
$uDat['endtime'] > $GLOBALS['EXEC_TIME'])) {
|
||
$uItem .= '<a href="' . t3lib_div::linkThisScript(array('SwitchUser'=>$uDat['uid'])) . '" target="_top" title="' . htmlspecialchars($GLOBALS['LANG']->getLL('switchUserTo', true) . ' ' . $uDat['username']) . ' ' . $GLOBALS['LANG']->getLL('changeToMode', TRUE) . '">' .
|
||
$uItem .= '<a href="' . t3lib_div::linkThisScript(array('SwitchUser'=>$uDat['uid'])) . '" target="_top" title="' . htmlspecialchars($GLOBALS['LANG']->getLL('switchUserTo', true) . ' ' . $uDat['username']) . ' ' . $GLOBALS['LANG']->getLL('changeToMode', TRUE) . '">' .
|
||
t3lib_iconWorks::getSpriteIcon('actions-system-backend-user-switch') .
|
||
'</a>'.
|
||
'<a href="' . t3lib_div::linkThisScript(array('SwitchUser'=>$uDat['uid'], 'switchBackUser' => 1)) . '" target="_top" title="' . htmlspecialchars($GLOBALS['LANG']->getLL('switchUserTo', true) . ' ' . $uDat['username']) . ' ' . $GLOBALS['LANG']->getLL('switchBackMode', TRUE) . '">' .
|
||
'<a href="' . t3lib_div::linkThisScript(array('SwitchUser'=>$uDat['uid'], 'switchBackUser' => 1)) . '" target="_top" title="' . htmlspecialchars($GLOBALS['LANG']->getLL('switchUserTo', true) . ' ' . $uDat['username']) . ' ' . $GLOBALS['LANG']->getLL('switchBackMode', TRUE) . '">' .
|
||
t3lib_iconWorks::getSpriteIcon('actions-system-backend-user-emulate') .
|
||
'</a>';
|
||
}
|
||
... | ... | |
'</a>';
|
||
} else {
|
||
$params='&data[' . $table . '][' . $row['uid'] . '][' . $hiddenField . ']=1';
|
||
$cells[]='<a href="' . $this->doc->issueCommand($params) . '" title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:disable', true) . '">' .
|
||
$cells[]='<a href="' . $this->doc->issueCommand($params) . '" title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:disable', true) . '">' .
|
||
t3lib_iconWorks::getSpriteIcon('actions-edit-hide') .
|
||
'</a>';
|
||
}
|
||
// Delete
|
||
$params='&cmd[' . $table . '][' . $row['uid'] . '][delete]=1';
|
||
$cells[]='<a href="' . $this->doc->issueCommand($params) . '" onclick="return confirm(unescape(\'' . rawurlencode($GLOBALS['LANG']->getLL('sureToDelete', TRUE)) . '\'));" title="' . $GLOBALS['LANG']->getLL('delete', TRUE) . '">' .
|
||
$cells[]='<a href="' . $this->doc->issueCommand($params) . '" onclick="return confirm(unescape(\'' . rawurlencode($GLOBALS['LANG']->getLL('sureToDelete', TRUE)) . '\'));" title="' . $GLOBALS['LANG']->getLL('delete', TRUE) . '">' .
|
||
t3lib_iconWorks::getSpriteIcon('actions-edit-delete') .
|
||
'</a>';
|
||
typo3/sysext/lang/lang.php (working copy) | ||
---|---|---|
*
|
||
* This copyright notice MUST APPEAR in all copies of the script!
|
||
***************************************************************/
|
||
/**
|
||
/**
|
||
* Contains the TYPO3 Backend Language class
|
||
*
|
||
* $Id$
|
||
... | ... | |
class language {
|
||
// This is set to the language that is currently running for the user
|
||
public $lang = 'default';
|
||
// Values like the labels in the tables.php-document are split by '|'.
|
||
// This values defines which language is represented by which position
|
||
// Values like the labels in the tables.php-document are split by '|'.
|
||
// This values defines which language is represented by which position
|
||
// in the resulting array after splitting a value. (NOTICE: Obsolete concept!)
|
||
public $langSplit = 'default';
|
||
... | ... | |
* @access public
|
||
*/
|
||
public function hscAndCharConv($lStr, $hsc) {
|
||
// labels returned from a locallang file used to be in the language of the charset.
|
||
// labels returned from a locallang file used to be in the language of the charset.
|
||
// Since TYPO3 4.1 they are always in the charset of the BE.
|
||
if ($hsc) {
|
||
return htmlspecialchars($lStr);
|
||
... | ... | |
}
|
||
/**
|
||
* Will convert the input strings special chars (all above 127) to entities.
|
||
* Will convert the input strings special chars (all above 127) to entities.
|
||
* The string is expected to be encoded in the charset, $this->charSet
|
||
* This function is used to create strings that can be used in the Click Menu
|
||
* (Context Sensitive Menus). The reason is that the values that are dynamically
|
||
* (Context Sensitive Menus). The reason is that the values that are dynamically
|
||
* written into the <div> layer is decoded as iso-8859-1 no matter what charset
|
||
* is used in the document otherwise (only MSIE, Mozilla is OK).
|
||
* is used in the document otherwise (only MSIE, Mozilla is OK).
|
||
* So by converting we by-pass this problem.
|
||
*
|
||
* @param string Input string
|
||
... | ... | |
}
|
||
/**
|
||
* Works like ->getLL() but takes the $LOCAL_LANG array
|
||
* Works like ->getLL() but takes the $LOCAL_LANG array
|
||
* used as the second argument instead of using the global array.
|
||
*
|
||
* @param string Label key
|
||
... | ... | |
// Get Local Language
|
||
if (strcmp($LOCAL_LANG[$this->lang][$index], '')) {
|
||
// Returns local label if not blank.
|
||
$output = $this->hscAndCharConv($LOCAL_LANG[$this->lang][$index], $hsc);
|
||
$output = $this->hscAndCharConv($LOCAL_LANG[$this->lang][$index], $hsc);
|
||
} else {
|
||
// Returns default label
|
||
$output = $this->hscAndCharConv($LOCAL_LANG['default'][$index], $hsc);
|
||
... | ... | |
$t = explode('|', $input);
|
||
$out = $t[$this->langSplitIndex] ? $t[$this->langSplitIndex] : $t[0];
|
||
return $this->hscAndCharConv($out, $hsc);
|
||
// LOCAL_LANG:
|
||
} else {
|
||
// LOCAL_LANG:
|
||
} else {
|
||
// If cached label
|
||
if (!isset($this->LL_labels_cache[$this->lang][$input])) {
|
||
$restStr = trim(substr($input, 4));
|
||
$extPrfx = '';
|
||
|
||
// ll-file refered to is found in an extension.
|
||
if (!strcmp(substr($restStr, 0, 4), 'EXT:')) {
|
||
$restStr = trim(substr($restStr, 4));
|
||
... | ... | |
}
|
||
$parts = explode(':', $restStr);
|
||
$parts[0] = $extPrfx . $parts[0];
|
||
|
||
// Getting data if not cached
|
||
if (!isset($this->LL_files_cache[$parts[0]])) {
|
||
$this->LL_files_cache[$parts[0]] = $this->readLLfile($parts[0]);
|
||
// If the current language is found in another file, load that as well:
|
||
$lFileRef = $this->localizedFileRef($parts[0]);
|
||
if ($lFileRef && is_string($this->LL_files_cache[$parts[0]][$this->lang])
|
||
if ($lFileRef && is_string($this->LL_files_cache[$parts[0]][$this->lang])
|
||
&& $this->LL_files_cache[$parts[0]][$this->lang] == 'EXT') {
|
||
$tempLL = $this->readLLfile($lFileRef);
|
||
$this->LL_files_cache[$parts[0]][$this->lang] = $tempLL[$this->lang];
|
||
... | ... | |
}
|
||
/**
|
||
* Loading $TCA_DESCR[$table]['columns'] with content from locallang files
|
||
* Loading $TCA_DESCR[$table]['columns'] with content from locallang files
|
||
* as defined in $TCA_DESCR[$table]['refs']
|
||
* $TCA_DESCR is a global var
|
||
*
|
||
... | ... | |
public function loadSingleTableDescription($table) {
|
||
global $TCA_DESCR;
|
||
// First the 'table' cannot already be loaded in [columns]
|
||
// First the 'table' cannot already be loaded in [columns]
|
||
// and secondly there must be a references to locallang files available in [refs]
|
||
if (is_array($TCA_DESCR[$table])
|
||
&& !isset($TCA_DESCR[$table]['columns'])
|
typo3/sysext/tstemplate/ts/index.php (working copy) | ||
---|---|---|
if ($this->id && $this->access) {
|
||
// View page
|
||
$buttons['view'] = '<a href="#" onclick="' . htmlspecialchars(t3lib_BEfunc::viewOnClick($this->pageinfo['uid'], $GLOBALS['BACK_PATH'], t3lib_BEfunc::BEgetRootLine($this->pageinfo['uid']))) . '" title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.showPage', TRUE) . '">' .
|
||
t3lib_iconWorks::getSpriteIcon('actions-document-view') .
|
||
t3lib_iconWorks::getSpriteIcon('actions-document-view') .
|
||
'</a>';
|
||
// If access to Web>List for user, then link to that module.
|
||
if ($GLOBALS['BE_USER']->check('modules', 'web_list')) {
|
||
$href = $GLOBALS['BACK_PATH'] . 'db_list.php?id=' . $this->pageinfo['uid'] . '&returnUrl=' . rawurlencode(t3lib_div::getIndpEnv('REQUEST_URI'));
|
||
$buttons['record_list'] = '<a href="' . htmlspecialchars($href) . '" title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.showList', TRUE) . '">' .
|
||
t3lib_iconWorks::getSpriteIcon('actions-system-list-open') .
|
||
t3lib_iconWorks::getSpriteIcon('actions-system-list-open') .
|
||
'</a>';
|
||
}
|
||
... | ... | |
$buttons['save'] = t3lib_iconWorks::getSpriteIcon('actions-document-save',
|
||
array(
|
||
'html' => '<input type="image" class="c-inputButton" name="submit" src="clear.gif" ' .
|
||
'title="'. $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:rm.saveDoc', TRUE) .'" ' .
|
||
'value="'. $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:rm.saveDoc', TRUE) .'" ' .
|
||
'title="'. $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:rm.saveDoc', TRUE) .'" ' .
|
||
'value="'. $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:rm.saveDoc', TRUE) .'" ' .
|
||
'/>'
|
||
));
|
||
... | ... | |
// CLOSE button
|
||
$buttons['close'] = t3lib_iconWorks::getSpriteIcon('actions-document-close',
|
||
array(
|
||
'html' => '<input type="image" class="c-inputButton" name="abort" src="clear.gif" ' .
|
||
'html' => '<input type="image" class="c-inputButton" name="abort" src="clear.gif" ' .
|
||
'title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:rm.closeDoc', TRUE) . '" ' .
|
||
'value="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:rm.closeDoc', TRUE) . '" ' .
|
||
'/>'
|
||
... | ... | |
if(!empty($this->sObj)) {
|
||
// BACK
|
||
$buttons['back'] = '<a href="index.php?id=' . $this->id . '" class="typo3-goBack" title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.goBack', TRUE) . '">' .
|
||
t3lib_iconWorks::getSpriteIcon('actions-view-go-back') .
|
||
t3lib_iconWorks::getSpriteIcon('actions-view-go-back') .
|
||
'</a>';
|
||
}
|
||
}
|
||
... | ... | |
// No template
|
||
$theOutput .= $this->doc->spacer(10);
|
||
|
||
$flashMessage = t3lib_div::makeInstance(
|
||
't3lib_FlashMessage',
|
||
$GLOBALS['LANG']->getLL('noTemplateDescription') . '<br />' . $GLOBALS['LANG']->getLL('createTemplateToEditConfiguration'),
|
||
... | ... | |
t3lib_FlashMessage::INFO
|
||
);
|
||
$theOutput .= $flashMessage->render();
|
||
|
||
|
||
// New standard?
|
||
if ($newStandardTemplate) {
|
||
if (t3lib_extMgm::isLoaded('statictemplates')) { // check wether statictemplates are supported
|
||
... | ... | |
// Extension?
|
||
$theOutput .= $this->doc->spacer(10);
|
||
$theOutput .= $this->doc->section($GLOBALS['LANG']->getLL('newWebsite') . $staticsText, $GLOBALS['LANG']->getLL('newWebsiteDescription') . '<br /><br />' .
|
||
$selector .
|
||
$selector .
|
||
'<input type="Submit" name="newWebsite" value="' . $GLOBALS['LANG']->getLL('newWebsiteAction') . '" />', 0, 1);
|
||
}
|
||
// Extension?
|
typo3/sysext/css_styled_content/ext_localconf.php (working copy) | ||
---|---|---|
);
|
||
$TYPO3_CONF_VARS['SC_OPTIONS']['ext/install']['compat_version']['tx_cssstyledcontent_clearerdivsafterintexttextpicelements'] = array(
|
||
'title' => 'CSS Styled Content: clear divs, changed row space, corrected margins',
|
||
'version' => 4004000,
|
||
'version' => 4004000,
|
||
'description' => '<ul><li>Clear divs will be generated by default for in-text right or left positioned textpic elements.</li><li>The default row space changes to 10px, to be in line with col space and text margin.</li><li>Rendering bugs with wrong margins were fixed (Default CSS changed).</li></ul>',
|
||
);
|
||
typo3/sysext/sys_action/ext_tables.php (working copy) | ||
---|---|---|
),
|
||
'typeicon_classes' => array(
|
||
'default' => 'mimetypes-x-sys_action',
|
||
),
|
||
),
|
||
'type' => 'type',
|
||
'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY).'x-sys_action.png',
|
||
'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tca.php'
|
typo3/sysext/statictemplates/class.tx_statictemplates.php (working copy) | ||
---|---|---|
* @return void
|
||
*/
|
||
public function includeStaticTypoScriptSources(&$params, &$pObj) {
|
||
// Static Template Records (static_template): include_static is a
|
||
// Static Template Records (static_template): include_static is a
|
||
// list of static templates to include
|
||
if (trim($params['row']['include_static'])) {
|
||
$includeStaticArr = t3lib_div::intExplode(',', $params['row']['include_static']);
|
typo3/sysext/impexp/app/index.php (working copy) | ||
---|---|---|
if (is_array($this->pageinfo) && $this->pageinfo['uid']) {
|
||
// View
|
||
$buttons['view'] = '<a href="#" onclick="' . htmlspecialchars(t3lib_BEfunc::viewOnClick($this->pageinfo['uid'], $this->doc->backPath, t3lib_BEfunc::BEgetRootLine($this->pageinfo['uid']))) . '" title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.showPage', TRUE) . '">' .
|
||
t3lib_iconWorks::getSpriteIcon('actions-document-view') .
|
||
t3lib_iconWorks::getSpriteIcon('actions-document-view') .
|
||
'</a>';
|
||
// Record list
|
||
if ($GLOBALS['BE_USER']->check('modules', 'web_list')) {
|
||
$href = $this->doc->backPath . 'db_list.php?id=' . $this->pageinfo['uid'] . '&returnUrl=' . rawurlencode(t3lib_div::getIndpEnv('REQUEST_URI'));
|
||
$buttons['record_list'] = '<a href="' . htmlspecialchars($href) . '" title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.showList', TRUE) . '">' .
|
||
t3lib_iconWorks::getSpriteIcon('actions-system-list-open') .
|
||
t3lib_iconWorks::getSpriteIcon('actions-system-list-open') .
|
||
'</a>';
|
||
}
|
||
}
|
typo3/sysext/t3editor/classes/class.tx_t3editor.php (working copy) | ||
---|---|---|
const MODE_XML = 'xml';
|
||
protected $mode = '';
|
||
|
||
/**
|
||
* counts the editors on the current page
|
||
*
|
||
... | ... | |
'T3editor.PATH_t3e = "' . $GLOBALS['BACK_PATH'] . t3lib_extmgm::extRelPath('t3editor') . '"; ' . LF.
|
||
'T3editor.URL_typo3 = "' . htmlspecialchars(t3lib_div::getIndpEnv('TYPO3_SITE_URL') . TYPO3_mainDir) . '"; ' .LF.
|
||
'T3editor.template = '. $this->getPreparedTemplate() .';' .LF.
|
||
'T3editor.parserfile = ' . $this->getParserfileByMode($this->mode) . ';' .LF.
|
||
'T3editor.parserfile = ' . $this->getParserfileByMode($this->mode) . ';' .LF.
|
||
'T3editor.stylesheet = ' . $this->getStylesheetByMode($this->mode) . ';'
|
||
);
|
||
}
|
typo3/sysext/cms/layout/class.tx_cms_layout.php (working copy) | ||
---|---|---|
*
|
||
* @author Kasper Skaarhoj <kasperYYYY@typo3.com>
|
||
*/
|
||
|
||
/**
|
||
* [CLASS/FUNCTION INDEX of SCRIPT]
|
||
*
|
||
... | ... | |
* @return string HTML for the listing
|
||
*/
|
||
function getExternalTables($id, $table) {
|
||
|
||
$type = $GLOBALS['SOBE']->MOD_SETTINGS[$table];
|
||
if (!isset($type)) {
|
||
$type = 0;
|
||
}
|
||
|
||
$fList = $this->externalTables[$table][$type]['fList']; // eg. "name;title;email;company,image"
|
||
$fList = $this->externalTables[$table][$type]['fList']; // eg. "name;title;email;company,image"
|
||
// The columns are separeted by comma ','.
|
||
// Values separated by semicolon ';' are shown in the same column.
|
||
// Values separated by semicolon ';' are shown in the same column.
|
||
$icon = $this->externalTables[$table][$type]['icon'];
|
||
$addWhere = $this->externalTables[$table][$type]['addWhere'];
|
||
|
||
// Create listing
|
||
$out = $this->makeOrdinaryList($table, $id, $fList, $icon, $addWhere);
|
||
return $out;
|
||
... | ... | |
}
|
||
if ($this->doEdit) {
|
||
$Nrow['__cmds__'].= '<a href="#" onclick="'.htmlspecialchars(t3lib_BEfunc::editOnClick($params,$this->backPath)).'" title="' . $GLOBALS['LANG']->getLL('edit', TRUE) . '">' .
|
||
t3lib_iconWorks::getSpriteIcon('actions-document-open') .
|
||
t3lib_iconWorks::getSpriteIcon('actions-document-open') .
|
||
'</a>';
|
||
} else {
|
||
$Nrow['__cmds__'].= $this->noEditIcon();
|
||
... | ... | |
$confirm = $GLOBALS['LANG']->JScharCode($GLOBALS['LANG']->getLL('deleteWarning') .
|
||
t3lib_BEfunc::translationCount('tt_content', $row['uid'], ' ' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:labels.translationsOfRecord')));
|
||
$out.='<a href="'.htmlspecialchars($GLOBALS['SOBE']->doc->issueCommand($params)).'" onclick="'.htmlspecialchars('return confirm('. $confirm .');').'" title="'.$GLOBALS['LANG']->getLL('deleteItem', TRUE).'">'.
|
||
t3lib_iconWorks::getSpriteIcon('actions-edit-delete') .
|
||
t3lib_iconWorks::getSpriteIcon('actions-edit-delete') .
|
||
'</a>';
|
||
if (!$disableMoveAndNewButtons) {
|
typo3/sysext/cms/web_info/class.tx_cms_webinfo_lang.php (working copy) | ||
---|---|---|
if (is_array($langRecUids[0])) {
|
||
$params = '&edit[pages]['.implode(',',$langRecUids[0]).']=edit&columnsOnly=title,nav_title,l18n_cfg,hidden';
|
||
$editIco = '<a href="#" onclick="'.htmlspecialchars(t3lib_BEfunc::editOnClick($params,$GLOBALS['BACK_PATH'])).'" title="' . $LANG->getLL('lang_renderl10n_editPageProperties', TRUE) . '">' .
|
||
$editIco = '<a href="#" onclick="'.htmlspecialchars(t3lib_BEfunc::editOnClick($params,$GLOBALS['BACK_PATH'])).'" title="' . $LANG->getLL('lang_renderl10n_editPageProperties', TRUE) . '">' .
|
||
t3lib_iconWorks::getSpriteIcon('actions-document-new') .
|
||
'</a>';
|
||
} else $editIco = '';
|
typo3/sysext/cms/tslib/class.tslib_feuserauth.php (working copy) | ||
---|---|---|
*/
|
||
function record_registration($recs,$maxSizeOfSessionData=0) {
|
||
// Storing value ONLY if there is a confirmed cookie set (->cookieID),
|
||
// Storing value ONLY if there is a confirmed cookie set (->cookieID),
|
||
// otherwise a shellscript could easily be spamming the fe_sessions table
|
||
// with bogus content and thus bloat the database
|
||
if (!$maxSizeOfSessionData || $this->cookieId) {
|
typo3/sysext/cms/tslib/class.tslib_menu.php (working copy) | ||
---|---|---|
} else {
|
||
$row = $loadDB->results['pages'][$val['id']];
|
||
}
|
||
|
||
//Add versioning overlay for current page (to respect workspaces)
|
||
if (is_array($row)) {
|
||
$this->sys_page->versionOL('pages', $row, true);
|
typo3/sysext/dbal/class.ux_t3lib_db.php (working copy) | ||
---|---|---|
/**
|
||
* Clears the cached field information file.
|
||
*
|
||
*
|
||
* @return void
|
||
*/
|
||
public function clearCachedFieldInfo() {
|
||
if (file_exists(PATH_typo3conf . 'temp_fieldInfo.php')) {
|
||
unlink(PATH_typo3conf . 'temp_fieldInfo.php');
|
||
unlink(PATH_typo3conf . 'temp_fieldInfo.php');
|
||
}
|
||
}
|
||
/**
|
||
* Caches the field information.
|
||
*
|
||
*
|
||
* @return void
|
||
*/
|
||
public function cacheFieldInfo() {
|
||
... | ... | |
if (isset($mappedConf['mapFieldNames'][$fieldInfo['incFields'][$mappedTable]])) {
|
||
$fieldInfo['incFields'][$mappedTableAlias] = $mappedConf['mapFieldNames'][$fieldInfo['incFields'][$mappedTable]];
|
||
} else {
|
||
$fieldInfo['incFields'][$mappedTableAlias] = $fieldInfo['incFields'][$mappedTable];
|
||
$fieldInfo['incFields'][$mappedTableAlias] = $fieldInfo['incFields'][$mappedTable];
|
||
}
|
||
}
|
||
... | ... | |
if (isset($mappedConf['mapFieldNames'][$fieldInfo['primaryKeys'][$mappedTable]])) {
|
||
$fieldInfo['primaryKeys'][$mappedTableAlias] = $mappedConf['mapFieldNames'][$fieldInfo['primaryKeys'][$mappedTable]];
|
||
} else {
|
||
$fieldInfo['primaryKeys'][$mappedTableAlias] = $fieldInfo['primaryKeys'][$mappedTable];
|
||
$fieldInfo['primaryKeys'][$mappedTableAlias] = $fieldInfo['primaryKeys'][$mappedTable];
|
||
}
|
||
}
|
||
}
|
||
... | ... | |
/**
|
||
* Truncates a table.
|
||
*
|
||
*
|
||
* @param string Database tablename
|
||
* @return mixed Result from handler
|
||
*/
|
||
... | ... | |
/**
|
||
* Executes a query.
|
||
* EXPERIMENTAL since TYPO3 4.4.
|
||
*
|
||
*
|
||
* @param array $queryParts SQL parsed by method parseSQL() of t3lib_sqlparser
|
||
* @return pointer Result pointer / DBAL object
|
||
* @see ux_t3lib_db::sql_query()
|
||
... | ... | |
}
|
||
}
|
||
return $this->exec_INSERTquery($table, $values);
|
||
|
||
case 'DELETE':
|
||
$table = $queryParts['TABLE'];
|
||
$whereClause = isset($queryParts['WHERE']) ? $this->SQLparser->compileWhereClause($queryParts['WHERE']) : '1=1';
|
||
... | ... | |
$limit = $numrows . ' OFFSET ' . $offset;
|
||
}
|
||
}
|
||
|
||
$select_fields = $this->quoteFieldNames($select_fields);
|
||
$from_table = $this->quoteFromTables($from_table);
|
||
$where_clause = $this->quoteWhereClause($where_clause);
|
||
... | ... | |
/**
|
||
* Creates a TRUNCATE TABLE SQL-statement
|
||
*
|
||
*
|
||
* @param string See exec_TRUNCATEquery()
|
||
* @return string Full SQL query for TRUNCATE TABLE
|
||
*/
|
||
... | ... | |
/**
|
||
* Quotes components of a SELECT subquery.
|
||
*
|
||
*
|
||
* @param array $components Array of SQL query components
|
||
* @return array
|
||
*/
|
||
... | ... | |
}
|
||
foreach ($select_fields[$k]['flow-control']['when'] as $key => $when) {
|
||
$select_fields[$k]['flow-control']['when'][$key]['when_value'] = $this->_quoteWhereClause($when['when_value']);
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
... | ... | |
*
|
||
* You should use exec_* function from this class instead!
|
||
* If you don't, anything that does not use the _DEFAULT handler will probably break!
|
||
*
|
||
*
|
||
* This method was deprecated in TYPO3 4.1 but is considered experimental since TYPO3 4.4
|
||
* as it tries to handle the query correctly anyway.
|
||
*
|
||
... | ... | |
$theKey['Table'] = $tableName;
|
||
$theKey['Non_unique'] = (int) !$theKey['unique'];
|
||
$theKey['Key_name'] = str_replace($tableName.'_','',$k);
|
||
|
||
// the following are probably not needed anyway...
|
||
$theKey['Collation'] = '';
|
||
$theKey['Cardinality'] = '';
|
||
... | ... | |
$theKey['Null'] = '';
|
||
$theKey['Index_type'] = '';
|
||
$theKey['Comment'] = '';
|
||
|
||
// now map multiple fields into multiple rows (we mimic MySQL, remember...)
|
||
$keycols = $theKey['columns'];
|
||
while (list($c, $theCol) = each($keycols)) {
|
||
... | ... | |
$theKey['Table'] = $tableName;
|
||
$theKey['Non_unique'] = 0;
|
||
$theKey['Key_name'] = 'PRIMARY';
|
||
|
||
// the following are probably not needed anyway...
|
||
$theKey['Collation'] = '';
|
||
$theKey['Cardinality'] = '';
|
||
... | ... | |
$theKey['Null'] = '';
|
||
$theKey['Index_type'] = '';
|
||
$theKey['Comment'] = '';
|
||
|
||
// now map multiple fields into multiple rows (we mimic MySQL, remember...)
|
||
if ($priKeyRow !== FALSE) {
|
||
while (list($c, $theCol) = each($priKeyRow)) {
|
||
... | ... | |
// Mapping withTable of the JOIN
|
||
$withTableKey = $this->getMappingKey($join['withTable']);
|
||
if ($this->mapping[$withTableKey]['mapTableName']) {
|
||
$tables[$k]['JOIN'][$joinCnt]['withTable'] = $this->mapping[$withTableKey]['mapTableName'];
|
||
$tables[$k]['JOIN'][$joinCnt]['withTable'] = $this->mapping[$withTableKey]['mapTableName'];
|
||
}
|
||
$onPartsArray = array();
|
||
// Mapping ON parts of the JOIN
|
||
... | ... | |
}
|
||
// Mapping flow-control statements
|
||
if (isset($sqlPartArray[$k]['flow-control'])) {
|
||
if (isset($sqlPartArray[$k]['flow-control'])) {
|
||
if (isset($sqlPartArray[$k]['flow-control']['type'])) {
|
||
$temp = array($sqlPartArray[$k]['flow-control']);
|
||
$this->map_sqlParts($temp, $t); // Call recursively!
|
||
... | ... | |
$sqlPartArray[$k]['value']['args'][$argK]['table'] = $this->mapping[$tableKey]['mapTableName'];
|
||
}
|
||
if (is_array($this->mapping[$tableKey]['mapFieldNames']) && isset($this->mapping[$tableKey]['mapFieldNames'][$fieldDef['field']])) {
|
||
$sqlPartArray[$k]['value']['args'][$argK]['field'] = $this->mapping[$tableKey]['mapFieldNames'][$fieldDef['field']];
|
||
$sqlPartArray[$k]['value']['args'][$argK]['field'] = $this->mapping[$tableKey]['mapFieldNames'][$fieldDef['field']];
|
||
}
|
||
}
|
||
}
|
typo3/sysext/dbal/class.tx_dbal_autoloader.php (working copy) | ||
---|---|---|
$header = 'Error';
|
||
$message = $e->getMessage();
|
||
t3lib_timeTrack::debug_typo3PrintError($header, $message, FALSE, t3lib_div::getIndpEnv('TYPO3_SITE_URL'));
|
||
exit;
|
||
exit;
|
||
}
|
||
}
|
||
typo3/sysext/dbal/class.tx_dbal_installtool.php (working copy) | ||
---|---|---|
/**
|
||
* Hooks into Installer to let a non-MySQL database to be configured.
|
||
*
|
||
*
|
||
* @param array $markers
|
||
* @param integer $step
|
||
* @param tx_install $instObj
|
||
... | ... | |
/**
|
||
* Hooks into Installer to modify lines to be written to localconf.php.
|
||
*
|
||
*
|
||
* @param array $lines
|
||
* @param integer $step
|
||
* @param tx_install $instObj
|
||
... | ... | |
/**
|
||
* Creates a specialized form to configure the DBMS connection.
|
||
*
|
||
*
|
||
* @param array $markers
|
||
* @param tx_install $instObj
|
||
* @return void
|
||
*/
|
||
protected function createConnectionForm(array &$markers, tx_install $instObj) {
|
||
// Normalize current driver
|
||
if (!$this->driver) {
|
||
if (!$this->driver) {
|
||
$this->driver = $this->getDefaultDriver();
|
||
}
|
||
... | ... | |
/**
|
||
* Creates a specialized form to configure the database.
|
||
*
|
||
*
|
||
* @param array $markers
|
||
* @param tx_install $instObj
|
||
*/
|
typo3/sysext/dbal/tests/dbPostgresqlTest.php (working copy) | ||
---|---|---|
/**
|
||
* Testcase for class ux_t3lib_db. Testing PostgreSQL database handling.
|
||
*
|
||
*
|
||
* $Id$
|
||
*
|
||
* @author Xavier Perseguers <typo3@perseguers.ch>
|
||
... | ... | |
/**
|
||
* Cleans a SQL query.
|
||
*
|
||
*
|
||
* @param mixed $sql
|
||
* @return mixed (string or array)
|
||
*/
|
||
... | ... | |
}
|
||
/**
|
||
* @test
|
||
* @test
|
||
*/
|
||
public function configurationIsUsingAdodbAndDriverPostgres() {
|
||
$configuration = $GLOBALS['TYPO3_DB']->conf['handlerCfg'];
|
||
... | ... | |
$this->assertTrue($GLOBALS['TYPO3_DB']->runningADOdbDriver('postgres') !== FALSE, 'Not using postgres driver');
|
||
}
|
||
/**
|
||
/**
|
||
* @test
|
||
*/
|
||
public function tablesWithMappingAreDetected() {
|
typo3/sysext/dbal/tests/sqlParserGeneralTest.php (working copy) | ||
---|---|---|
/**
|
||
* Testcase for class ux_t3lib_sqlparser
|
||
*
|
||
*
|
||
* $Id$
|
||
*
|
||
* @author Xavier Perseguers <typo3@perseguers.ch>
|
||
... | ... | |
/**
|
||
* Cleans a SQL query.
|
||
*
|
||
*
|
||
* @param mixed $sql
|
||
* @return mixed (string or array)
|
||
*/
|
||
... | ... | |
public function canSelectAllFieldsFromPages() {
|
||
$sql = 'SELECT * FROM pages';
|
||
$expected = $sql;
|
||
$actual = $this->cleanSql($this->fixture->debug_testSQL($sql));
|
||
$actual = $this->cleanSql($this->fixture->debug_testSQL($sql));
|
||
$this->assertEquals($expected, $actual);
|
||
}
|
||
... | ... | |
public function canUseInnerJoinInSelect() {
|
||
$sql = 'SELECT pages.uid, be_users.username FROM be_users INNER JOIN pages ON pages.cruser_id = be_users.uid';
|
||
$expected = 'SELECT pages.uid, be_users.username FROM be_users INNER JOIN pages ON pages.cruser_id=be_users.uid';
|
||
$actual = $this->cleanSql($this->fixture->debug_testSQL($sql));
|
||
$actual = $this->cleanSql($this->fixture->debug_testSQL($sql));
|
||
$this->assertEquals($expected, $actual);
|
||
}
|
||
... | ... | |
public function canUseMultipleInnerJoinsInSelect() {
|
||
$sql = 'SELECT * FROM tt_news_cat INNER JOIN tt_news_cat_mm ON tt_news_cat.uid = tt_news_cat_mm.uid_foreign INNER JOIN tt_news ON tt_news.uid = tt_news_cat_mm.uid_local';
|
||
$expected = 'SELECT * FROM tt_news_cat INNER JOIN tt_news_cat_mm ON tt_news_cat.uid=tt_news_cat_mm.uid_foreign INNER JOIN tt_news ON tt_news.uid=tt_news_cat_mm.uid_local';
|
||
$actual = $this->cleanSql($this->fixture->debug_testSQL($sql));
|
||
$actual = $this->cleanSql($this->fixture->debug_testSQL($sql));
|
||
$this->assertEquals($expected, $actual);
|
||
}
|
||
... | ... | |
/**
|
||
* @test
|
||
* @see http://bugs.typo3.org/view.php?id=14182
|
||
* @see http://bugs.typo3.org/view.php?id=14182
|
||
*/
|
||
public function canParseMultipleJoinConditionsWithLessThanOperator() {
|
||
$sql = 'SELECT * FROM T1 LEFT OUTER JOIN T2 ON T2.size < 4 OR T2.pid = T1.uid WHERE T1.cr_userid = 1';
|
||
... | ... | |
// Tests concerning DB management
|
||
///////////////////////////////////////
|
||
/**
|
||
/**
|
||
* @test
|
||
* @see http://bugs.typo3.org/view.php?id=4466
|
||
*/
|
typo3/sysext/dbal/tests/dbMssqlTest.php (working copy) | ||
---|---|---|
/**
|
||
* Testcase for class ux_t3lib_db. Testing MS SQL database handling.
|
||
*
|
||
*
|
||
* $Id$
|
||
*
|
||
* @author Xavier Perseguers <typo3@perseguers.ch>
|
||
... | ... | |
/**
|
||
* Cleans a SQL query.
|
||
*
|
||
*
|
||
* @param mixed $sql
|
||
* @return mixed (string or array)
|
||
*/
|
||
... | ... | |
}
|
||
/**
|
||
* @test
|
||
* @test
|
||
*/
|
||
public function configurationIsUsingAdodbAndDriverMssql() {
|
||
$configuration = $GLOBALS['TYPO3_DB']->conf['handlerCfg'];
|
||
... | ... | |
$this->assertTrue($GLOBALS['TYPO3_DB']->runningADOdbDriver('mssql') !== FALSE, 'Not using mssql driver');
|
||
}
|
||
/**
|
||
/**
|
||
* @test
|
||
*/
|
||
public function tablesWithMappingAreDetected() {
|
||
... | ... | |
$query = $this->cleanSql($GLOBALS['TYPO3_DB']->SELECTquery(
|
||
'*, CASE WHEN' .
|
||
' LOCATE(' . $GLOBALS['TYPO3_DB']->fullQuoteStr('(fce)', 'tx_templavoila_tmplobj') . ', datastructure)>0 THEN 2' .
|
||
' ELSE 1' .
|
||
' ELSE 1' .
|
||
' END AS scope',
|
||
'tx_templavoila_tmplobj',
|
||
'1=1'
|
||
... | ... | |
$query = $this->cleanSql($GLOBALS['TYPO3_DB']->SELECTquery(
|
||
'*, CASE WHEN' .
|