PluginProbe ʕ •ᴥ•ʔ
Anti-Malware Security and Brute-Force Firewall / 4.17.57
Anti-Malware Security and Brute-Force Firewall v4.17.57
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 10 years ago session.php 11 years ago trace.php 11 years ago wp-login.php 10 years ago wp-settings.php 8 years ago
wp-settings.php
162 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 // echo "<li>del:".$index."<li>qry:".$wpdb->last_query."<li>err:".$wpdb->last_error;
138 }}
139
140 if (!function_exists("update_option")) {
141 function update_option($index, $value = "") {
142 global $wpdb, $table_prefix;
143 if (is_array($value))
144 $value = serialize($value);
145 // $value = mysqli_real_escape_string($wpdb, $value);
146 $return = $wpdb->update($table_prefix."options", array('option_value' => $value), array('option_name' => $index));
147 // echo "<li>upd:".$index."<li>qry:".$wpdb->last_query."<li>err:".$wpdb->last_error;
148 return $return;
149 }}
150
151 if (!function_exists("get_option")) {
152 function get_option($index, $value = array()) {
153 global $wpdb, $table_prefix;
154 $qry = "SELECT option_value FROM {$table_prefix}options WHERE option_name = '$index'";
155 $return = $wpdb->get_var( $qry );
156 if (@unserialize($return) && is_array(@unserialize($return)))
157 return unserialize($return);
158 else
159 return $return;
160 // echo $wpdb->func_call."<li>get:".$index."<li>qry:$qry;/".$wpdb->last_query."<li>err:".$wpdb->last_error;
161 }}
162