PluginProbe ʕ •ᴥ•ʔ
Anti-Malware Security and Brute-Force Firewall / trunk
Anti-Malware Security and Brute-Force Firewall vtrunk
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 1 year ago session.php 1 year ago trace.php 2 days ago wp-login.php 1 year ago wp-settings.php 2 years ago
wp-settings.php
234 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 $wpdb->prefix = $table_prefix;
133 $wpdb->options = $table_prefix."options";
134 $wpdb->posts = $table_prefix."posts";
135 if (!function_exists("delete_option")) {
136 function delete_option($index) {
137 global $wpdb, $table_prefix;
138 $wpdb->delete($table_prefix."options", array( 'option_name' => "'$index'"));
139 }}
140
141 if (!function_exists("update_option")) {
142 function update_option($index, $value = "") {
143 global $wpdb, $table_prefix;
144 if (is_array($value))
145 $value = serialize($value);
146 $return = $wpdb->update($table_prefix."options", array('option_value' => $value), array('option_name' => $index));
147 return $return;
148 }}
149
150 if (!function_exists("get_option")) {
151 function get_option($index, $value = array()) {
152 global $wpdb, $table_prefix;
153 $qry = "SELECT option_value FROM {$table_prefix}options WHERE option_name = '$index'";
154 $return = $wpdb->get_var( $qry );
155 if (@unserialize($return) && is_array(@unserialize($return)))
156 return unserialize($return);
157 else
158 return $return;
159 }}
160
161 if (!function_exists("admin_url")) {
162 function admin_url($path = '') {
163 $url = get_option('siteurl').'wp-admin/';
164 if ($path && is_string($path))
165 $url .= ltrim($path, '/');
166 return $url;
167 }}
168
169 if (!function_exists("_deep_replace")) {
170 function _deep_replace( $search, $subject ) {
171 $subject = (string) $subject;
172
173 $count = 1;
174 while ( $count ) {
175 $subject = str_replace( $search, '', $subject, $count );
176 }
177
178 return $subject;
179 }}
180
181 if (!function_exists("valid_unicode")) {
182 function valid_unicode( $i ) {
183 return ( 0x9 == $i || 0xa == $i || 0xd == $i ||
184 ( 0x20 <= $i && $i <= 0xd7ff ) ||
185 ( 0xe000 <= $i && $i <= 0xfffd ) ||
186 ( 0x10000 <= $i && $i <= 0x10ffff ) );
187 }}
188
189 if (!function_exists("wp_kses_normalize_entities2")) {
190 function wp_kses_normalize_entities2( $matches ) {
191 if ( empty( $matches[1] ) ) {
192 return '';
193 }
194
195 $i = $matches[1];
196 if ( valid_unicode( $i ) ) {
197 $i = str_pad( ltrim( $i, '0' ), 3, '0', STR_PAD_LEFT );
198 $i = "&#$i;";
199 } else {
200 $i = "&amp;#$i;";
201 }
202
203 return $i;
204 }}
205
206 if (!function_exists("wp_kses_normalize_entities3")) {
207 function wp_kses_normalize_entities3( $matches ) {
208 if ( empty( $matches[1] ) ) {
209 return '';
210 }
211
212 $hexchars = $matches[1];
213 return ( ! valid_unicode( hexdec( $hexchars ) ) ) ? "&amp;#x$hexchars;" : '&#x' . ltrim( $hexchars, '0' ) . ';';
214 }}
215
216 if (!function_exists("wp_kses_named_entities")) {
217 function wp_kses_named_entities($matches) {
218 global $allowedentitynames;
219 if (empty($matches[1]))
220 return '';
221 $i = $matches[1];
222 return (is_array($allowedentitynames) && in_array($i, $allowedentitynames, true)) ? "&$i;" : "&amp;$i;";
223 }}
224
225 if (!function_exists("wp_kses_normalize_entities")) {
226 function wp_kses_normalize_entities($string) {
227 // Disarm all entities by converting & to &amp;
228 $string = str_replace( '&', '&amp;', $string );
229 $string = preg_replace_callback( '/&amp;([A-Za-z]{2,8}[0-9]{0,2});/', 'wp_kses_named_entities', $string );
230 $string = preg_replace_callback( '/&amp;#(0*[0-9]{1,7});/', 'wp_kses_normalize_entities2', $string );
231 $string = preg_replace_callback( '/&amp;#[Xx](0*[0-9A-Fa-f]{1,6});/', 'wp_kses_normalize_entities3', $string );
232 return $string;
233 }}
234