Project

General

Profile

Bug #24503 » 16953.diff

Administrator Admin, 2011-01-09 17:02

View differences:

t3lib/formprotection/class.t3lib_formprotection_abstract.php (Arbeitskopie)
$formName, $action = '', $formInstanceName = ''
) {
if ($formName == '') {
throw new InvalidArgumentException('$formName must not be empty.');
throw new InvalidArgumentException('$formName must not be empty.', 1294586643);
}
do {
t3lib/class.t3lib_db.php (Arbeitskopie)
public function listQuery($field, $value, $table) {
$value = (string) $value;
if (strpos(',', $value) !== FALSE) {
throw new InvalidArgumentException('$value must not contain a comma (,) in $this->listQuery() !');
throw new InvalidArgumentException('$value must not contain a comma (,) in $this->listQuery() !', 1294585862);
}
$pattern = $this->quoteStr($value, $table);
$where = 'FIND_IN_SET(\'' . $pattern . '\',' . $field . ')';
t3lib/class.t3lib_extmgm.php (Arbeitskopie)
*/
public static function getExtensionVersion($key) {
if (!is_string($key) || empty($key)) {
throw new InvalidArgumentException('Extension key must be a non-empty string.');
throw new InvalidArgumentException('Extension key must be a non-empty string.', 1294586096);
}
if (!self::isLoaded($key)) {
return '';
t3lib/class.t3lib_beuserauth.php (Arbeitskopie)
$this->backendSetUC(); // Setting the UC array. It's needed with fetchGroupData first, due to default/overriding of values.
$this->emailAtLogin(); // email at login - if option set.
} else {
throw new RuntimeException('Login Error: TYPO3 is in maintenance mode at the moment. Only administrators are allowed access.');
throw new RuntimeException('Login Error: TYPO3 is in maintenance mode at the moment. Only administrators are allowed access.', 1294585860);
}
} else {
throw new RuntimeException('Login Error: IP locking prevented you from being authorized. Can\'t proceed, sorry.');
throw new RuntimeException('Login Error: IP locking prevented you from being authorized. Can\'t proceed, sorry.', 1294585861);
}
}
}
t3lib/class.t3lib_treeview.php (Arbeitskopie)
$newID = $row['uid'];
if ($newID == 0) {
throw new RuntimeException('Endless recursion detected: TYPO3 has detected an error in the database. Please fix it manually (e.g. using phpMyAdmin) and change the UID of ' . $this->table . ':0 to a new value.<br /><br />See <a href="http://bugs.typo3.org/view.php?id=3495" target="_blank">bugs.typo3.org/view.php?id=3495</a> to get more information about a possible cause.');
throw new RuntimeException('Endless recursion detected: TYPO3 has detected an error in the database. Please fix it manually (e.g. using phpMyAdmin) and change the UID of ' . $this->table . ':0 to a new value.<br /><br />See <a href="http://bugs.typo3.org/view.php?id=3495" target="_blank">bugs.typo3.org/view.php?id=3495</a> to get more information about a possible cause.', 1294586383);
}
$this->tree[] = array(); // Reserve space.
t3lib/class.t3lib_spritemanager.php (Arbeitskopie)
// Throw exception if handler class does not implement required interface
if (!$this->handler || !($this->handler instanceof t3lib_spritemanager_SpriteIconGenerator)) {
throw new Exception(
"class in TYPO3_CONF_VARS[BE][spriteIconGenerator_handler] does not exist,
or does not implement t3lib_spritemanager_SpriteIconGenerator"
throw new RuntimeException(
'Class in $TYPO3_CONF_VARS[BE][spriteIconGenerator_handler] (' .
$GLOBALS['TYPO3_CONF_VARS']['BE']['spriteIconGenerator_handler'] .
') does not exist or does not implement t3lib_spritemanager_SpriteIconGenerator.',
1294586333
);
}
t3lib/tree/class.t3lib_tree_nodecollection.php (Arbeitskopie)
public function unserialize($serializedString) {
$arrayRepresentation = unserialize($serializedString);
if ($arrayRepresentation['serializeClassName'] !== get_class($this)) {
throw new t3lib_exception('Deserialized object type is not identical!');
throw new t3lib_exception('Deserialized object type is not identical!', 1294586647);
}
$this->dataFromArray($arrayRepresentation);
}
t3lib/tree/tca/class.t3lib_tree_tca_databasetreedataprovider.php (Arbeitskopie)
if (isset($this->columnConfiguration['foreign_table']) && $this->columnConfiguration['foreign_table'] != $this->getTableName()) {
throw new InvalidArgumentException(
'TCA Tree configuration is invalid: tree for different node-Tables is not implemented yet',
'1290944650'
1290944650
);
}
t3lib/tree/tca/class.t3lib_tree_tca_dataproviderfactory.php (Arbeitskopie)
} else {
throw new InvalidArgumentException(
'TCA Tree configuration is invalid: "foreign_table" not set',
'1288215888'
1288215888
);
}
......
} else {
throw new InvalidArgumentException(
'TCA Tree configuration is invalid: neither "childrenField" nor "parentField" is set',
'1288215889'
1288215889
);
}
} else {
throw new InvalidArgumentException(
'TCA Tree configuration is invalid: "treeConfig" array is missing',
'1288215890'
1288215890
);
}
......
// Not implemented yet
throw new InvalidArgumentException(
'TCA Tree configuration is invalid: tree for "internal_type=file" not implemented yet',
'1288215891'
1288215891
);
} else {
throw new InvalidArgumentException(
'TCA Tree configuration is invalid: tree for "internal_type=' .
$tcaConfiguration['internal_type'] .
'" not implemented yet',
'1288215892'
1288215892
);
}
t3lib/tree/class.t3lib_tree_node.php (Arbeitskopie)
public function unserialize($serializedString) {
$arrayRepresentation = unserialize($serializedString);
if ($arrayRepresentation['serializeClassName'] !== get_class($this)) {
throw new t3lib_exception('Deserialized object type is not identical!');
throw new t3lib_exception('Deserialized object type is not identical!', 1294586646);
}
$this->dataFromArray($arrayRepresentation);
}
t3lib/class.t3lib_div.php (Arbeitskopie)
) {
$errorMsg = "Function/class '$funcRef' was not prepended with '$checkPrefix'";
if ($errorMode == 2) {
throw new Exception($errorMsg);
throw new ArgumentException($errorMsg, 1294585864);
} elseif (!$errorMode) {
debug($errorMsg, 't3lib_div::callUserFunction');
}
......
array(&$params, &$ref)
);
} else {
$errorMsg = "<strong>ERROR:</strong> No method name '" . $parts[1] . "' in class " . $parts[0];
$errorMsg = "No method name '" . $parts[1] . "' in class " . $parts[0];
if ($errorMode == 2) {
throw new Exception($errorMsg);
throw new ArgumentException($errorMsg, 1294585865);
} elseif (!$errorMode) {
debug($errorMsg, 't3lib_div::callUserFunction');
}
}
} else {
$errorMsg = "<strong>ERROR:</strong> No class named: " . $parts[0];
$errorMsg = 'No class named ' . $parts[0];
if ($errorMode == 2) {
throw new Exception($errorMsg);
throw new ArgumentException($errorMsg, 1294585866);
} elseif (!$errorMode) {
debug($errorMsg, 't3lib_div::callUserFunction');
}
......
if (function_exists($funcRef)) {
$content = call_user_func_array($funcRef, array(&$params, &$ref));
} else {
$errorMsg = "<strong>ERROR:</strong> No function named: " . $funcRef;
$errorMsg = 'No function named: ' . $funcRef;
if ($errorMode == 2) {
throw new Exception($errorMsg);
throw new ArgumentException($errorMsg, 1294585867);
} elseif (!$errorMode) {
debug($errorMsg, 't3lib_div::callUserFunction');
}
t3lib/class.t3lib_lock.php (Arbeitskopie)
if (in_array($method, array('disable', 'simple', 'flock', 'semaphore'))) {
$this->method = $method;
} else {
throw new Exception('No such method "' . $method . '"');
throw new ArgumentException('No such method "' . $method . '"', 1294586097);
}
$success = FALSE;
......
}
if (!$isAcquired) {
throw new Exception('Lock file could not be created');
throw new RuntimeException('Lock file could not be created', 1294586098);
}
t3lib_div::fixPermissions($this->resource);
break;
case 'flock':
if (($this->filepointer = fopen($this->resource, 'w+')) == FALSE) {
throw new Exception('Lock file could not be opened');
throw new RuntimeException('Lock file could not be opened', 1294586099);
}
if (flock($this->filepointer, LOCK_EX | LOCK_NB) == TRUE) { // Lock without blocking
......
} elseif (flock($this->filepointer, LOCK_EX) == TRUE) { // Lock with blocking (waiting for similar locks to become released)
$noWait = FALSE;
} else {
throw new Exception('Could not lock file "' . $this->resource . '"');
throw new RuntimeException('Could not lock file "' . $this->resource . '"', 1294586100);
}
break;
case 'semaphore':
t3lib/mail/class.t3lib_mail_mailer.php (Arbeitskopie)
case 'mbox':
$mboxFile = $mailSettings['transport_mbox_file'];
if ($mboxFile == '') {
throw new t3lib_exception('$TYPO3_CONF_VARS[\'MAIL\'][\'transport_mbox_file\'] needs to be set when transport is set to "mbox"');
throw new t3lib_exception('$TYPO3_CONF_VARS[\'MAIL\'][\'transport_mbox_file\'] needs to be set when transport is set to "mbox"', 1294586645);
}
// Create our transport
$this->transport = t3lib_div::makeInstance('t3lib_mail_mboxtransport', $mboxFile);
t3lib/mail/class.t3lib_mail_mboxtransport.php (Arbeitskopie)
// Write the mbox file
$file = @fopen($this->debugFile, 'a');
if (!$file) {
throw new Exception(
throw new RuntimeException(
sprintf('Could not write to file "%s" when sending an email to debug transport', $this->debugFile),
1291064151
);
t3lib/class.t3lib_tsparser.php (Arbeitskopie)
// some file checks
if (empty($realFileName)) {
throw new Exception(sprintf('"%s" is not a valid file location.', $fileName));
throw new UnexpectedValueException(sprintf('"%s" is not a valid file location.', $fileName), 1294586441);
}
if (!is_writable($realFileName)) {
throw new Exception(sprintf('"%s" is not writable.', $fileName));
throw new RuntimeException(sprintf('"%s" is not writable.', $fileName), 1294586442);
}
if (in_array($realFileName, $extractedFileNames)) {
throw new Exception(sprintf('Recursive/multiple inclusion of file "%s"', $realFileName));
throw new RuntimeException(sprintf('Recursive/multiple inclusion of file "%s"', $realFileName), 1294586443);
}
$extractedFileNames[] = $realFileName;
......
$fileContentString = self::extractIncludes($fileContentString, ++$cycle_counter, $extractedFileNames);
if (!t3lib_div::writeFile($realFileName, $fileContentString)) {
throw new Exception(sprintf('Could not write file "%s"', $realFileName));
throw new RuntimeException(sprintf('Could not write file "%s"', $realFileName), 1294586444);
}
// insert reference to the file in the rest content
t3lib/extjs/class.t3lib_extjs_extdirectrouter.php (Arbeitskopie)
// theoretically this can never happen, because of an javascript error on
// the client side due the missing namespace/endpoint
if (!isset($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ExtDirect'][$endpointName])) {
throw new UnexpectedValueException('ExtDirect: Call to undefined endpoint: ' . $endpointName);
throw new UnexpectedValueException('ExtDirect: Call to undefined endpoint: ' . $endpointName, 1294586450);
}
$endpointObject = t3lib_div::getUserObj(
t3lib/class.t3lib_userauthgroup.php (Arbeitskopie)
}
}
if ($exitOnError) {
throw new RuntimeException('Access Error: This page is not within your DB-mounts');
throw new RuntimeException('Access Error: This page is not within your DB-mounts', 1294586445);
}
}
......
function modAccess($conf, $exitOnError) {
if (!t3lib_BEfunc::isModuleSetInTBE_MODULES($conf['name'])) {
if ($exitOnError) {
throw new RuntimeException('Fatal Error: This module "' . $conf['name'] . '" is not enabled in TBE_MODULES');
throw new RuntimeException('Fatal Error: This module "' . $conf['name'] . '" is not enabled in TBE_MODULES', 1294586446);
}
return FALSE;
}
......
// ok, go on...
} else {
if ($exitOnError) {
throw new RuntimeException('Workspace Error: This module "' . $conf['name'] . '" is not available under the current workspace');
throw new RuntimeException('Workspace Error: This module "' . $conf['name'] . '" is not available under the current workspace', 1294586447);
}
return FALSE;
}
......
$acs = $this->check('modules', $conf['name']);
}
if (!$acs && $exitOnError) {
throw new RuntimeException('Access Error: You don\'t have access to this module.');
throw new RuntimeException('Access Error: You don\'t have access to this module.', 1294586448);
} else {
return $acs;
}
typo3/file_list.php (Arbeitskopie)
} 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.filelist.correctly');
throw new RuntimeException($title . ': ' . $message);
throw new RuntimeException($title . ': ' . $message, 1294586842);
}
?>
typo3/mod.php (Arbeitskopie)
}
if ($isDispatched === FALSE) {
die('Value "' . htmlspecialchars($temp_M) . '" for "M" was not found as a module');
throw new UnexpectedValueException('No module "' . htmlspecialchars($temp_M) . '" could be found.', 1294585070);
}
?>
typo3/index.php (Arbeitskopie)
if ($this->commandLI=='setCookie') {
// we tried it a second time but still no cookie
// 26/4 2005: This does not work anymore, because the saving of challenge values in $_SESSION means the system will act as if the password was wrong.
throw new RuntimeException('Login-error: Yeah, that\'s a classic. No cookies, no TYPO3.<br /><br />Please accept cookies from TYPO3 - otherwise you\'ll not be able to use the system.');
throw new RuntimeException('Login-error: Yeah, that\'s a classic. No cookies, no TYPO3.<br /><br />Please accept cookies from TYPO3 - otherwise you\'ll not be able to use the system.', 1294586846);
} else {
// try it once again - that might be needed for auto login
$this->redirectToURL = 'index.php?commandLI=setCookie';
typo3/file_rename.php (Arbeitskopie)
if (!$this->target || !$key) {
$title = $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_mod_file_list.xml:paramError', TRUE);
$message = $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_mod_file_list.xml:targetNoDir', TRUE);
throw new RuntimeException($title . ': ' . $message);
throw new RuntimeException($title . ': ' . $message, 1294586844);
}
// Finding the icon
typo3/wizard_forms.php (Arbeitskopie)
// First, check the references by selecting the record:
$row = t3lib_BEfunc::getRecord($this->P['table'],$this->P['uid']);
if (!is_array($row)) {
throw new RuntimeException('Wizard Error: No reference to record');
throw new RuntimeException('Wizard Error: No reference to record', 1294587124);
}
// This will get the content of the form configuration code field to us - possibly cleaned up, saved to database etc. if the form has been submitted in the meantime.
typo3/wizard_table.php (Arbeitskopie)
// First, check the references by selecting the record:
$row = t3lib_BEfunc::getRecord($this->P['table'],$this->P['uid']);
if (!is_array($row)) {
throw new RuntimeException('Wizard Error: No reference to record');
throw new RuntimeException('Wizard Error: No reference to record', 1294587125);
}
// This will get the content of the form configuration code field to us - possibly cleaned up, saved to database etc. if the form has been submitted in the meantime.
typo3/file_newfolder.php (Arbeitskopie)
if (!$this->target || !$key) {
$title = $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_mod_file_list.xml:paramError', TRUE);
$message = $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_mod_file_list.xml:targetNoDir', TRUE);
throw new RuntimeException($title . ': ' . $message);
throw new RuntimeException($title . ': ' . $message, 1294586843);
}
// Finding the icon
typo3/file_edit.php (Arbeitskopie)
if (!$this->target || !$key) {
$title = $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_mod_file_list.xml:paramError', TRUE);
$message = $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_mod_file_list.xml:targetNoDir', TRUE);
throw new RuntimeException($title . ': ' . $message);
throw new RuntimeException($title . ': ' . $message, 1294586841);
}
// Finding the icon
switch($GLOBALS['FILEMOUNTS'][$key]['type']) {
typo3/init.php (Arbeitskopie)
// Check Hardcoded lock on BE:
// **********************
if ($TYPO3_CONF_VARS['BE']['adminOnly'] < 0) {
throw new RuntimeException('TYPO3 Backend locked: Backend and Install Tool are locked for maintenance. [BE][adminOnly] is set to "' . intval($TYPO3_CONF_VARS['BE']['adminOnly']) . '".');
throw new RuntimeException('TYPO3 Backend locked: Backend and Install Tool are locked for maintenance. [BE][adminOnly] is set to "' . intval($TYPO3_CONF_VARS['BE']['adminOnly']) . '".', 1294586847);
}
if (!(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_CLI) && @is_file(PATH_typo3conf . 'LOCK_BACKEND')) {
if (TYPO3_PROCEED_IF_NO_USER == 2) {
......
if ($fContent) {
header('Location: '.$fContent); // Redirect
} else {
throw new RuntimeException('TYPO3 Backend locked: Browser backend is locked for maintenance. Remove lock by removing the file "typo3conf/LOCK_BACKEND" or use CLI-scripts.');
throw new RuntimeException('TYPO3 Backend locked: Browser backend is locked for maintenance. Remove lock by removing the file "typo3conf/LOCK_BACKEND" or use CLI-scripts.', 1294586848);
}
exit;
}
......
t3lib_utility_Http::redirect('install/index.php?mode=123&step=1&password=joh316');
} elseif ($TYPO3_DB->sql_pconnect(TYPO3_db_host, TYPO3_db_username, TYPO3_db_password)) {
if (!TYPO3_db) {
throw new RuntimeException('Database Error: No database selected', time());
throw new RuntimeException('Database Error: No database selected', 1294587021);
} elseif (!$TYPO3_DB->sql_select_db(TYPO3_db)) {
throw new RuntimeException('Database Error: Cannot connect to the current database, "' . TYPO3_db . '"', time());
throw new RuntimeException('Database Error: Cannot connect to the current database, "' . TYPO3_db . '"', 1294587022);
}
} else {
throw new RuntimeException('Database Error: The current username, password or host was not accepted when the connection to the database was attempted to be established!', time());
......
// Checks for proper browser
// *******************************
if (!$CLIENT['BROWSER'] && !(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_CLI)) {
throw new RuntimeException('Browser Error: Your browser version looks incompatible with this TYPO3 version!', time());
throw new RuntimeException('Browser Error: Your browser version looks incompatible with this TYPO3 version!', 1294587023);
}
typo3/sysext/simulatestatic/class.tx_simulatestatic.php (Arbeitskopie)
header(t3lib_utility_Http::HTTP_STATUS_503);
t3lib_div::sysLog($message, 'cms', t3lib_div::SYSLOG_SEVERITY_ERROR);
$message = 'Error: PATH_INFO not configured: ' . $message . '<br /><br /><a href="' . htmlspecialchars($redirectUrl) . '">Click here to get to the right page.</a>';
throw new RuntimeException($message);
throw new RuntimeException($message, 1294587706);
}
} else {
t3lib_utility_Http::redirect($redirectUrl);
typo3/sysext/lang/lang.php (Arbeitskopie)
$this->charSet = $GLOBALS['TYPO3_CONF_VARS']['BE']['forceCharset'];
if ($this->charSet != 'utf-8' && !$this->csConvObj->initCharset($this->charSet)) {
throw new RuntimeException('Forced charset not found: The forced character set "'. $this->charSet . '" was not found in t3lib/csconvtbl/');
throw new RuntimeException('Forced charset not found: The forced character set "'. $this->charSet . '" was not found in t3lib/csconvtbl/', 1294587487);
}
}
}
typo3/sysext/cms/tslib/class.tslib_fe.php (Arbeitskopie)
$message = 'No pages are found on the rootlevel!';
t3lib_div::sysLog($message, 'cms', t3lib_div::SYSLOG_SEVERITY_ERROR);
header('HTTP/1.0 503 Service Temporarily Unavailable');
throw new RuntimeException($message);
throw new RuntimeException($message, 1294587207);
}
}
}
......
$message = 'The requested page does not exist!';
header('HTTP/1.0 404 Page Not Found');
t3lib_div::sysLog($message, 'cms', t3lib_div::SYSLOG_SEVERITY_ERROR);
throw new RuntimeException($message);
throw new RuntimeException($message, 1294587208);
}
}
}
......
$message = 'The requested page does not exist!';
header('HTTP/1.0 404 Page Not Found');
t3lib_div::sysLog($message, 'cms', t3lib_div::SYSLOG_SEVERITY_ERROR);
throw new RuntimeException($message);
throw new RuntimeException($message, 1294587209);
}
}
......
$message = 'The requested page didn\'t have a proper connection to the tree-root! <br /><br />('.$this->sys_page->error_getRootLine.')';
header('HTTP/1.0 503 Service Temporarily Unavailable');
t3lib_div::sysLog(str_replace('<br /><br />','',$message), 'cms', t3lib_div::SYSLOG_SEVERITY_ERROR);
throw new RuntimeException($message);
throw new RuntimeException($message, 1294587210);
}
}
$this->fePreview = 1;
......
$message = 'The requested page was not accessible!';
header('HTTP/1.0 503 Service Temporarily Unavailable');
t3lib_div::sysLog($message, 'cms', t3lib_div::SYSLOG_SEVERITY_ERROR);
throw new RuntimeException($message);
throw new RuntimeException($message, 1294587211);
}
} else {
$el = reset($this->rootLine);
......
$message = 'Page shortcuts were looping in uids '.implode(',',$pageLog).'...!';
header('HTTP/1.0 500 Internal Server Error');
t3lib_div::sysLog($message, 'cms', t3lib_div::SYSLOG_SEVERITY_ERROR);
throw new RuntimeException($message);
throw new RuntimeException($message, 1294587212);
}
}
// Return resulting page:
......
// Create response:
if (gettype($code)=='boolean' || !strcmp($code,1)) { // Simply boolean; Just shows TYPO3 error page with reason:
throw new RuntimeException('The page did not exist or was inaccessible.' . ($reason ? ' Reason: ' . htmlspecialchars($reason) : ''));
throw new RuntimeException('The page did not exist or was inaccessible.' . ($reason ? ' Reason: ' . htmlspecialchars($reason) : ''), 1294587213);
} elseif (t3lib_div::isFirstPartOfStr($code,'USER_FUNCTION:')) {
$funcRef = trim(substr($code,14));
$params = array(
......
$fileContent = str_replace('###REASON###', htmlspecialchars($reason), $fileContent);
echo $fileContent;
} else {
throw new RuntimeException('Configuration Error: 404 page "' . $readFile.'" could not be found.');
throw new RuntimeException('Configuration Error: 404 page "' . $readFile.'" could not be found.', 1294587214);
}
} elseif (t3lib_div::isFirstPartOfStr($code,'REDIRECT:')) {
t3lib_utility_Http::redirect(substr($code, 9));
......
$reason = 'Page cannot be found.';
}
$reason.= LF . LF . 'Additionally, ' . $code . ' was not found while trying to retrieve the error document.';
throw new RuntimeException('Reason: ' . nl2br(htmlspecialchars($reason)));
throw new RuntimeException(nl2br(htmlspecialchars($reason)), 1294587215);
}
// Prepare headers
......
echo $content; // Output the content
}
} else {
throw new RuntimeException($reason ? 'Reason: '.htmlspecialchars($reason) : 'Page cannot be found.');
throw new RuntimeException($reason ? htmlspecialchars($reason) : 'Page cannot be found.', 1294587216);
}
exit();
}
......
// Return preview keyword configuration:
return $previewConfig;
} else die(htmlspecialchars('Request URL did not match "'.t3lib_div::getIndpEnv('TYPO3_SITE_URL').'index.php?ADMCMD_prev='.$inputCode.'"')); // This check is to prevent people from setting additional GET vars via realurl or other URL path based ways of passing parameters.
} else die('POST requests are incompatible with keyword preview.');
} else die('ADMCMD command could not be executed! (No keyword configuration found)');
} else throw new Exception(htmlspecialchars('Request URL did not match "' . t3lib_div::getIndpEnv('TYPO3_SITE_URL') . 'index.php?ADMCMD_prev=' . $inputCode . '"', 1294585190)); // This check is to prevent people from setting additional GET vars via realurl or other URL path based ways of passing parameters.
} else throw new Exception('POST requests are incompatible with keyword preview.', 1294585191);
} else throw new Exception('ADMCMD command could not be executed! (No keyword configuration found)', 1294585192);
}
}
......
* @return void
* @see ADMCMD_preview(), index_ts.php
*/
function ADMCMD_preview_postInit($previewConfig){
if (is_array($previewConfig)) {
// Clear cookies:
unset($_COOKIE['be_typo_user']);
$this->ADMCMD_preview_BEUSER_uid = $previewConfig['BEUSER_uid'];
} else die('Error in preview configuration.');
function ADMCMD_preview_postInit(array $previewConfig){
// Clear cookies:
unset($_COOKIE['be_typo_user']);
$this->ADMCMD_preview_BEUSER_uid = $previewConfig['BEUSER_uid'];
}
......
$message = 'The page is not configured! [type= '.$this->type.']['.$this->sPre.']';
header('HTTP/1.0 503 Service Temporarily Unavailable');
t3lib_div::sysLog($message, 'cms', t3lib_div::SYSLOG_SEVERITY_ERROR);
throw new RuntimeException($message);
throw new RuntimeException($message, 1294587217);
}
} else {
$this->config['config'] = array();
......
$message = 'No TypoScript template found!';
header('HTTP/1.0 503 Service Temporarily Unavailable');
t3lib_div::sysLog($message, 'cms', t3lib_div::SYSLOG_SEVERITY_ERROR);
throw new RuntimeException($message);
throw new RuntimeException($message, 1294587218);
}
}
}
......
// Setting locale
if ($this->config['config']['locale_all']) {
# Change by René Fritz, 22/10 2002
# Change by René Fritz, 22/10 2002
# there's a problem that PHP parses float values in scripts wrong if the locale LC_NUMERIC is set to something with a comma as decimal point
# this does not work in php 4.2.3
#setlocale('LC_ALL',$this->config['config']['locale_all']);
......
header('Content-Disposition: attachment; filename="'.basename($absoluteFileName) . '"');
readfile($absoluteFileName);
exit;
} else die('jumpurl Secure: "'.$this->jumpurl.'" was not a valid file!');
} else die('jumpurl Secure: The requested file was not allowed to be accessed through jumpUrl (path or file not allowed)!');
} else die('jumpurl Secure: locationData, '.$locationData.', was not accessible.');
} else die('jumpurl Secure: Calculated juHash did not match the submitted juHash.');
} else throw new Exception('jumpurl Secure: "' . $this->jumpurl . '" was not a valid file!', 1294585193);
} else throw new Exception('jumpurl Secure: The requested file was not allowed to be accessed through jumpUrl (path or file not allowed)!', 1294585194);
} else throw new Exception('jumpurl Secure: locationData, ' . $locationData . ', was not accessible.', 1294585195);
} else throw new Exception('jumpurl Secure: Calculated juHash did not match the submitted juHash.', 1294585196);
} else {
$TSConf = $this->getPagesTSconfig();
if ($TSConf['TSFE.']['jumpUrl_transferSession']) {
typo3/sysext/cms/tslib/class.tslib_pagegen.php (Arbeitskopie)
You need to change this value to the URL of your website root, otherwise TYPO3 will not work!
See <a href="http://wiki.typo3.org/index.php/TYPO3_3.8.1" target="_blank">wiki.typo3.org/index.php/TYPO3_3.8.1</a> for more information.';
throw new RuntimeException(nl2br($error));
throw new RuntimeException(nl2br($error), 1294587219);
} else {
$GLOBALS['TSFE']->baseUrl = $GLOBALS['TSFE']->config['config']['baseURL'];
}
typo3/sysext/cms/tslib/showpic.php (Arbeitskopie)
// ***********************
// If no file-param is given, we must exit
if (!$this->file) {
die('Parameter Error: No file given.');
throw new UnexpectedValueException('Parameter Error: No file given.', 1294585556);
}
// Chech md5-checksum: If this md5-value does not match the one submitted, then we fail... (this is a kind of security that somebody don't just hit the script with a lot of different parameters
......
);
if ($md5_value!=$this->md5) {
die('Parameter Error: Wrong parameters sent.');
throw new UnexpectedValueException('Parameter Error: Wrong parameters sent.', 1294585557);
}
$parameters = unserialize(base64_decode($this->parametersEncoded));
......
$test_file=PATH_site.$this->file;
if (!t3lib_div::validPathStr($test_file)) {
die('Parameter Error: No valid filepath');
throw new RuntimeException('Parameter Error: No valid filepath', 1294585558);
}
if (!@is_file($test_file)) {
die('The given file was not found');
throw new RuntimeException('The given file was not found', 1294585559);
}
}
typo3/sysext/cms/tslib/index_ts.php (Arbeitskopie)
// *******************************
// Checking environment
// *******************************
if (isset($_POST['GLOBALS']) || isset($_GET['GLOBALS'])) die('You cannot set the GLOBALS-array from outside the script.');
if (isset($_POST['GLOBALS']) || isset($_GET['GLOBALS'])) {
throw new Exception('You cannot set the GLOBALS-array from outside the script.', 1294585200);
}
if (!get_magic_quotes_gpc()) {
$TT->push('Add slashes to GET/POST arrays','');
t3lib_div::addSlashesOnArray($_GET);
typo3/sysext/install/mod/class.tx_install.php (Arbeitskopie)
if (count($missingPhpModules) > 0) {
throw new RuntimeException('TYPO3 Installation Error: The following PHP module(s) is/are missing: <em>' .
implode(', ', $missingPhpModules) .
'</em><br /><br />You need to install and enable these modules first to be able to install TYPO3.'
'</em><br /><br />You need to install and enable these modules first to be able to install TYPO3.',
1294587482
);
}
}
......
*/
public function addErrorMessage($messageText) {
if ($messageText == '') {
throw new InvalidArgumentException('$messageText must not be empty.');
throw new InvalidArgumentException('$messageText must not be empty.', 1294587483);
}
$this->errorMessages[] = $messageText;
typo3/sysext/install/mod/class.tx_install_session.php (Arbeitskopie)
$sessionSavePath = $this->getSessionSavePath();
if (!is_dir($sessionSavePath)) {
if (!t3lib_div::mkdir($sessionSavePath)) {
throw new Exception('<p><strong>Could not create session folder in typo3temp/.</strong></p><p>Make sure it is writeable!</p>');
throw new RuntimeException('Could not create session folder in typo3temp/. Make sure it is writeable!', 1294587484);
}
t3lib_div::writeFile($sessionSavePath.'/.htaccess', 'Order deny, allow'."\n".'Deny from all'."\n");
$indexContent = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">';
......
ini_set('session.cookie_httponly', TRUE);
}
if (ini_get('session.auto_start')) {
$sessionCreationError = '<p><strong>Error: session.auto-start is enabled</strong></p>';
$sessionCreationError .= '<p>The PHP option session.auto-start is enabled. Disable this option in php.ini or .htaccess:</p>';
$sessionCreationError = 'Error: session.auto-start is enabled.<br />';
$sessionCreationError .= 'The PHP option session.auto-start is enabled. Disable this option in php.ini or .htaccess:<br />';
$sessionCreationError .= '<pre>php_value session.auto_start Off</pre>';
throw new Exception($sessionCreationError);
throw new RuntimeException($sessionCreationError, 1294587485);
} else if (defined('SID')) {
$sessionCreationError = '<p><strong>Error: Session already started by session_start().</strong></p>';
$sessionCreationError .= '<p>Make sure no installed extension is starting a session in its ext_localconf.php or ext_tables.php.</p>';
throw new Exception($sessionCreationError);
$sessionCreationError = 'Session already started by session_start().<br />';
$sessionCreationError .= 'Make sure no installed extension is starting a session in its ext_localconf.php or ext_tables.php.';
throw new RuntimeException($sessionCreationError, 1294587486);
}
session_start();
}
typo3/sysext/rtehtmlarea/pi1/class.tx_rtehtmlarea_pi1.php (Arbeitskopie)
if (!xml_set_default_handler($parser, 'defaultHandler')) echo('Bad xml handler setting');
if (!xml_parse($parser,'<?xml version="1.0" encoding="' . $this->parserCharset . '"?><spellchecker> ' . preg_replace('/&nbsp;/'.(($this->parserCharset == 'utf-8')?'u':''), ' ', $content) . ' </spellchecker>')) echo('Bad parsing');
if (xml_get_error_code($parser)) {
die('Line '.xml_get_current_line_number($parser).': '.xml_error_string(xml_get_error_code($parser)));
throw new UnexpectedException('Line ' . xml_get_current_line_number($parser) . ': ' . xml_error_string(xml_get_error_code($parser)), 1294585788);
}
xml_parser_free($parser);
if ($this->pspell_is_available && !$this->forceCommandMode) {
typo3/sysext/rtehtmlarea/class.tx_rtehtmlarea_base.php (Arbeitskopie)
}
$failure = t3lib_div::writeFileToTypo3tempDir($destination, $compressedJavaScript ? $compressedJavaScript : $output);
if ($failure) {
die($failure);
throw new RuntimeException($failure, 1294585668);
}
}
if ($concatenate && $fileExtension == 'js') {
......
if (!file_exists($destination)) {
$failure = t3lib_div::writeFileToTypo3tempDir($destination, $contents);
if ($failure) {
die($failure);
throw new RuntimeException($failure, 1294585669);
}
} else {
$success = file_put_contents($destination, $contents, FILE_APPEND);
if (!$success) {
die('Could not append script' + $fileName);
throw new RuntimeException('Could not append script: ' . $fileName, 1294585670);
}
}
}
typo3/sysext/scheduler/mod1/index.php (Arbeitskopie)
}
// If the timestamp is still false, throw an exception
if ($timestamp === false) {
throw new Exception;
throw new ArgumentException('"' . $string . '" seems not to be a correct date.', 1294587694);
}
}
return $timestamp;
typo3/db_list.php (Arbeitskopie)
} 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');
throw new RuntimeException($title . ': ' . $message);
throw new RuntimeException($title . ': ' . $message, 1294586840);
}
?>
typo3/file_upload.php (Arbeitskopie)
if (!$this->target || !$key) {
$title = $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_mod_file_list.xml:paramError', TRUE);
$message = $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_mod_file_list.xml:targetNoDir', TRUE);
throw new RuntimeException($title . ': ' . $message);
throw new RuntimeException($title . ': ' . $message, 1294586845);
}
// Finding the icon
    (1-1/1)