File tree 1 file changed +0
-19
lines changed
1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change 123
123
ini_set ('zlib.output_compression_level ' , '5 ' );
124
124
}
125
125
126
- // Strip slashes from superglobals to avoid problems with PHP's magic_quotes.
127
- if (PHP_VERSION_ID < 50400 && get_magic_quotes_gpc ()) {
128
- $ _GET = stripslashes_deep ($ _GET );
129
- $ _POST = stripslashes_deep ($ _POST );
130
- $ _COOKIE = stripslashes_deep ($ _COOKIE );
131
- $ _REQUEST = stripslashes_deep ($ _REQUEST );
132
- }
133
-
134
126
// Add the libraries and models directories to the include path.
135
127
set_include_path (LIB_DIR . PATH_SEPARATOR . MODEL_DIR . PATH_SEPARATOR . get_include_path ());
136
128
148
140
149
141
// Define the theme directory path.
150
142
define ('THEME_DIR ' , defined ('ADMIN ' ) ? ADMIN_THEME_DIR : PUBLIC_THEME_DIR );
151
-
152
- /**
153
- * Strip slashes recursively.
154
- *
155
- * @param array|string $value
156
- * @return array
157
- */
158
- function stripslashes_deep ($ value )
159
- {
160
- return is_array ($ value ) ? array_map ('stripslashes_deep ' , $ value ) : stripslashes ($ value );
161
- }
You can’t perform that action at this time.
0 commit comments