Commit 9b74e7cd authored by Carsten  Rose's avatar Carsten Rose
Browse files

Outdated FORMREPORT code removed.

parent ae107439
Pipeline #1167 passed with stage
in 1 minute and 40 seconds
......@@ -161,26 +161,6 @@ class Variables {
$arr["page_type"] = $GLOBALS["TSFE"]->type;
$arr["page_language_uid"] = $GLOBALS["TSFE"]->sys_language_uid;
}
// Add all variables from ext_localconf
// database aliases can be used in form sql queries (e.g. select * from "{{global.t3_name}}".fe_users...)
// localconf can be used to configure an application
$tmp = array();
if (isset($GLOBALS['TYPO3_CONF_VARS'][FORMREPORT])) {
$this->linearizeArray($GLOBALS['TYPO3_CONF_VARS'][FORMREPORT], $tmp);
}
// remove anything that contains "_password" "_username" in the key to prevent the webmaster from doing something stupid
foreach ($tmp as $key => $value) {
if (!strstr($key, "_password") && !strstr($key, "_username"))
$arr[$key] = $value;
}
// Add t3 db name too
// require(PATH_typo3conf.'localconf.php');
//TODO: $typo_db kommt von T3: PHPSTorm weiss das nicht und meckert hier. Es ist auch nicht gut das die globale Variable genommen wird. Umbauen auf etwas sinnvollerers!
//TODO: DBAlias sinnvoll setzen
$typo_db = '';
$arr["t3_name"] = $typo_db;
return ($arr);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment