Project

General

Profile

Bug #19756 » 10043.diff

Administrator Admin, 2009-01-01 21:12

View differences:

t3lib/class.t3lib_div.php (working copy)
}
/**
* GET/POST variable
* Returns the 'GLOBAL' value of incoming data from POST or GET, with priority to POST (that is equalent to 'GP' order)
* Strips slashes of string-outputs, but not arrays UNLESS $strip is set. If $strip is set all output will have escaped characters unescaped.
* Usage: 2
*
* @param string GET/POST var to return
* @param boolean If set, values are stripped of return values that are *arrays!* - string/integer values returned are always strip-slashed()
* @return mixed POST var named $var and if not set, the GET var of the same name.
* @deprecated since TYPO3 3.7 - Use t3lib_div::_GP instead (ALWAYS delivers a value with un-escaped values!)
* @see _GP()
*/
public static function GPvar($var,$strip=0) {
if(empty($var)) return;
$value = isset($_POST[$var]) ? $_POST[$var] : $_GET[$var];
if (isset($value) && is_string($value)) { $value = stripslashes($value); } // Originally check '&& get_magic_quotes_gpc() ' but the values of $_GET are always slashed regardless of get_magic_quotes_gpc() because HTTP_POST/GET_VARS are run through addSlashesOnArray in the very beginning of index_ts.php eg.
if ($strip && isset($value) && is_array($value)) { t3lib_div::stripSlashesOnArray($value); }
return $value;
}
/**
* Returns the GET/POST global arrays merged with POST taking precedence.
* Usage: 1
*
......
}
/**
* Implodes attributes in the array $arr for an attribute list in eg. and HTML tag (with quotes)
*
* @param array See implodeAttributes()
* @param boolean See implodeAttributes()
* @param boolean See implodeAttributes()
* @return string See implodeAttributes()
* @deprecated since TYPO3 3.7 - Name was changed into implodeAttributes
* @see implodeAttributes()
*/
public static function implodeParams(array $arr,$xhtmlSafe=FALSE,$dontOmitBlankAttribs=FALSE) {
return t3lib_div::implodeAttributes($arr,$xhtmlSafe,$dontOmitBlankAttribs);
}
/**
* Wraps JavaScript code XHTML ready with <script>-tags
* Automatic re-identing of the JS code is done by using the first line as ident reference.
* This is nice for identing JS code with PHP code on the same level.
t3lib/stddb/tables.php (working copy)
$ICON_TYPES = array();
/**
* Commonly used language labels which can be used in the $TCA array and elsewhere.
* Obsolete - just use the values of each entry directly.
*
* @deprecated since TYPO3 3.7
*/
$LANG_GENERAL_LABELS = array(
'endtime' => 'LLL:EXT:lang/locallang_general.php:LGL.endtime',
'hidden' => 'LLL:EXT:lang/locallang_general.php:LGL.hidden',
'starttime' => 'LLL:EXT:lang/locallang_general.php:LGL.starttime',
'fe_group' => 'LLL:EXT:lang/locallang_general.php:LGL.fe_group',
'hide_at_login' => 'LLL:EXT:lang/locallang_general.php:LGL.hide_at_login',
'any_login' => 'LLL:EXT:lang/locallang_general.php:LGL.any_login',
'usergroups' => 'LLL:EXT:lang/locallang_general.php:LGL.usergroups',
);
......
?>
?>
typo3/sysext/cms/tslib/class.tslib_fe.php (working copy)
}
/**
* Connect to MySQL database
* May exit after outputting an error message or some JavaScript redirecting to the install tool.
* Use connectToDB() instead!
*
* @return void
* @deprecated since TYPO3 3.8
*/
function connectToMySQL() {
$this->connectToDB();
}
/**
* Connect to SQL database
* May exit after outputting an error message or some JavaScript redirecting to the install tool.
*
......
* @see getCompressedTCarray()
*/
function includeTCA($TCAloaded=1) {
global $TCA, $PAGES_TYPES, $LANG_GENERAL_LABELS, $TBE_MODULES;
global $TCA, $PAGES_TYPES, $TBE_MODULES;
if (!$this->TCAloaded) {
$TCA = Array();
include (TYPO3_tables_script ? PATH_typo3conf.TYPO3_tables_script : PATH_t3lib.'stddb/tables.php');
......
include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['tslib/class.tslib_fe.php']);
}
?>
?>
(1-1/3)