PluginProbe ʕ •ᴥ•ʔ
Anti-Malware Security and Brute-Force Firewall / 4.21.91
Anti-Malware Security and Brute-Force Firewall v4.21.91
4.23.90 trunk 1.2.03.23 1.3.02.15 3.07.06 4.14.47 4.15.16 4.16.17 4.17.28 4.17.29 4.17.44 4.17.57 4.17.58 4.17.68 4.17.69 4.18.52 4.18.62 4.18.63 4.18.69 4.18.71 4.18.74 4.18.76 4.19.44 4.19.50 4.19.68 4.19.69 4.20.59 4.20.72 4.20.92 4.20.93 4.20.94 4.20.95 4.20.96 4.21.74 4.21.83 4.21.84 4.21.85 4.21.86 4.21.87 4.21.88 4.21.89 4.21.90 4.21.91 4.21.92 4.21.93 4.21.94 4.21.95 4.21.96 4.23.56 4.23.57 4.23.67 4.23.68 4.23.69 4.23.71 4.23.73 4.23.77 4.23.81 4.23.83 4.23.85 4.23.87 4.23.88 4.23.89
gotmls / safe-load / wp-settings.php
gotmls / safe-load Last commit date
.htaccess 11 years ago index.php 3 years ago session.php 11 years ago trace.php 11 years ago wp-login.php 3 years ago wp-settings.php 3 years ago
wp-settings.php
232 lines
1 <?php
2 if (is_file("../../../../wp-includes/version.php"))
3 require_once("../../../../wp-includes/version.php");
4 if (is_file("../../../../wp-includes/default-constants.php"))
5 require_once("../../../../wp-includes/default-constants.php");
6 if ( !defined('WP_DEBUG_DISPLAY') )
7 define( 'WP_DEBUG_DISPLAY', true );
8
9 if (!function_exists("apply_filters")) {
10 function apply_filters($filter, $value) {
11 return $value;
12 }}
13 if (!function_exists("wp_load_translations_early")) {
14 function wp_load_translations_early() {
15 return false;
16 }}
17 if (!function_exists("wp_debug_backtrace_summary")) {
18 function wp_debug_backtrace_summary() {
19 return false;
20 }}
21 if (!function_exists("is_multisite")) {
22 function is_multisite() {
23 return false;
24 }}
25 if (!function_exists("is_wp_error")) {
26 function is_wp_error() {
27 return false;
28 }}
29 if (!function_exists("mbstring_binary_safe_encoding")) {
30 function mbstring_binary_safe_encoding( $reset = false ) {
31 static $encodings = array();
32 static $overloaded = null;
33
34 if ( is_null( $overloaded ) )
35 $overloaded = function_exists( 'mb_internal_encoding' ) && ( ini_get( 'mbstring.func_'.'overload' ) & 2 );
36
37 if ( false === $overloaded )
38 return;
39
40 if ( ! $reset ) {
41 $encoding = mb_internal_encoding();
42 array_push( $encodings, $encoding );
43 mb_internal_encoding( 'ISO-8859-1' );
44 }
45
46 if ( $reset && $encodings ) {
47 $encoding = array_pop( $encodings );
48 mb_internal_encoding( $encoding );
49 }
50 }}
51 if (!function_exists("reset_mbstring_encoding")) {
52 function reset_mbstring_encoding() {
53 mbstring_binary_safe_encoding( true );
54 }}
55 if (!function_exists("_wp_filter_build_unique_id")) {
56 function _wp_filter_build_unique_id($tag, $function, $priority) {
57 global $wp_filter;
58 static $filter_id_count = 0;
59
60 if ( is_string($function) )
61 return $function;
62
63 if ( is_object($function) ) {
64 // Closures are currently implemented as objects
65 $function = array( $function, '' );
66 } else {
67 $function = (array) $function;
68 }
69
70 if (is_object($function[0]) ) {
71 // Object Class Calling
72 if ( function_exists('spl_object_hash') ) {
73 return spl_object_hash($function[0]) . $function[1];
74 } else {
75 $obj_idx = get_class($function[0]).$function[1];
76 if ( !isset($function[0]->wp_filter_id) ) {
77 if ( false === $priority )
78 return false;
79 $obj_idx .= isset($wp_filter[$tag][$priority]) ? count((array)$wp_filter[$tag][$priority]) : $filter_id_count;
80 $function[0]->wp_filter_id = $filter_id_count;
81 ++$filter_id_count;
82 } else {
83 $obj_idx .= $function[0]->wp_filter_id;
84 }
85
86 return $obj_idx;
87 }
88 } elseif ( is_string( $function[0] ) ) {
89 // Static Calling
90 return $function[0] . '::' . $function[1];
91 }
92 }}
93
94 if (!function_exists("add_filter")) {
95 function add_filter( $tag, $function_to_add, $priority = 10, $accepted_args = 1 ) {
96 global $wp_filter, $merged_filters;
97
98 $idx = _wp_filter_build_unique_id($tag, $function_to_add, $priority);
99 $wp_filter[$tag][$priority][$idx] = array('function' => $function_to_add, 'accepted_args' => $accepted_args);
100 unset( $merged_filters[ $tag ] );
101 return true;
102 }}
103 if (!function_exists("has_filter")) {
104 function has_filter($tag, $function_to_check = false) {
105 global $wp_filter;
106 $has = ! empty( $wp_filter[ $tag ] );
107 if ( $has ) {
108 $exists = false;
109 foreach ( $wp_filter[ $tag ] as $callbacks ) {
110 if ( ! empty( $callbacks ) ) {
111 $exists = true;
112 break;
113 }
114 }
115 if ( ! $exists )
116 $has = false;
117 }
118 if ( false === $function_to_check || false == $has )
119 return $has;
120 if ( !$idx = _wp_filter_build_unique_id($tag, $function_to_check, false) )
121 return false;
122 foreach ( (array) array_keys($wp_filter[$tag]) as $priority )
123 if ( isset($wp_filter[$tag][$priority][$idx]) )
124 return $priority;
125 return false;
126 }}
127
128 if (is_file("../../../../wp-includes/wp-db.php"))
129 require_once("../../../../wp-includes/wp-db.php");
130
131 $wpdb = new wpdb( DB_USER, DB_PASSWORD, DB_NAME, DB_HOST );
132
133 if (!function_exists("delete_option")) {
134 function delete_option($index) {
135 global $wpdb, $table_prefix;
136 $wpdb->delete($table_prefix."options", array( 'option_name' => "'$index'"));
137 }}
138
139 if (!function_exists("update_option")) {
140 function update_option($index, $value = "") {
141 global $wpdb, $table_prefix;
142 if (is_array($value))
143 $value = serialize($value);
144 $return = $wpdb->update($table_prefix."options", array('option_value' => $value), array('option_name' => $index));
145 return $return;
146 }}
147
148 if (!function_exists("get_option")) {
149 function get_option($index, $value = array()) {
150 global $wpdb, $table_prefix;
151 $qry = "SELECT option_value FROM {$table_prefix}options WHERE option_name = '$index'";
152 $return = $wpdb->get_var( $qry );
153 if (@unserialize($return) && is_array(@unserialize($return)))
154 return unserialize($return);
155 else
156 return $return;
157 }}
158
159 if (!function_exists("admin_url")) {
160 function admin_url($path = '') {
161 $url = get_option('siteurl').'wp-admin/';
162 if ($path && is_string($path))
163 $url .= ltrim($path, '/');
164 return $url;
165 }}
166
167 if (!function_exists("_deep_replace")) {
168 function _deep_replace( $search, $subject ) {
169 $subject = (string) $subject;
170
171 $count = 1;
172 while ( $count ) {
173 $subject = str_replace( $search, '', $subject, $count );
174 }
175
176 return $subject;
177 }}
178
179 if (!function_exists("valid_unicode")) {
180 function valid_unicode( $i ) {
181 return ( 0x9 == $i || 0xa == $i || 0xd == $i ||
182 ( 0x20 <= $i && $i <= 0xd7ff ) ||
183 ( 0xe000 <= $i && $i <= 0xfffd ) ||
184 ( 0x10000 <= $i && $i <= 0x10ffff ) );
185 }}
186
187 if (!function_exists("wp_kses_normalize_entities2")) {
188 function wp_kses_normalize_entities2( $matches ) {
189 if ( empty( $matches[1] ) ) {
190 return '';
191 }
192
193 $i = $matches[1];
194 if ( valid_unicode( $i ) ) {
195 $i = str_pad( ltrim( $i, '0' ), 3, '0', STR_PAD_LEFT );
196 $i = "&#$i;";
197 } else {
198 $i = "&amp;#$i;";
199 }
200
201 return $i;
202 }}
203
204 if (!function_exists("wp_kses_normalize_entities3")) {
205 function wp_kses_normalize_entities3( $matches ) {
206 if ( empty( $matches[1] ) ) {
207 return '';
208 }
209
210 $hexchars = $matches[1];
211 return ( ! valid_unicode( hexdec( $hexchars ) ) ) ? "&amp;#x$hexchars;" : '&#x' . ltrim( $hexchars, '0' ) . ';';
212 }}
213
214 if (!function_exists("wp_kses_named_entities")) {
215 function wp_kses_named_entities($matches) {
216 global $allowedentitynames;
217 if (empty($matches[1]))
218 return '';
219 $i = $matches[1];
220 return (is_array($allowedentitynames) && in_array($i, $allowedentitynames, true)) ? "&$i;" : "&amp;$i;";
221 }}
222
223 if (!function_exists("wp_kses_normalize_entities")) {
224 function wp_kses_normalize_entities($string) {
225 // Disarm all entities by converting & to &amp;
226 $string = str_replace( '&', '&amp;', $string );
227 $string = preg_replace_callback( '/&amp;([A-Za-z]{2,8}[0-9]{0,2});/', 'wp_kses_named_entities', $string );
228 $string = preg_replace_callback( '/&amp;#(0*[0-9]{1,7});/', 'wp_kses_normalize_entities2', $string );
229 $string = preg_replace_callback( '/&amp;#[Xx](0*[0-9A-Fa-f]{1,6});/', 'wp_kses_normalize_entities3', $string );
230 return $string;
231 }}
232